zapproject / jzap

Java
MIT License
1 stars 4 forks source link

Create Register interfaces #24

Closed logohere closed 3 years ago

logohere commented 3 years ago

Summary

Create Bondage Interfaces in java


export interface InitProvider extends defaultTx{
  public_key : string,
  title :string
}

export interface InitCurve extends defaultTx{
  endpoint:string,
  term:CurveType,
  broker?: address|undefined
}

export interface EndpointParams extends defaultTx{
  endpoint:string,
  endpoint_params: string[]
}

export interface SetProviderParams extends defaultTx {
  key: string,
  value: string
}

export interface SetProviderTitle extends defaultTx{
    from:address,
    title:string
}

export interface Endpoint extends defaultTx{
    endpoint:string
}
//#################################### SUBSCRIBER #########################33

export interface BondType extends defaultTx {
    subscriber ?:address,
    provider:address,
    endpoint:string,
    dots : NumType
}

export interface DelegateBondType extends BondType {
    subscriber :address
}
export interface UnbondType extends defaultTx{
    provider:address,
    endpoint:string,
    dots : NumType
}

export interface SubscribeType extends defaultTx {
    provider:address,
    endpoint:string,
    dots : NumType,
    endpointParams : string[]
}

export interface SubscriberHandler{
    handleResponse : ()=>void,
    handleUnsubscription ?: ()=>void,
    handleSubscription ?: ()=>void
} 

Definition of done

Properly imported and instantiated