zapproject / jzap

Java
MIT License
1 stars 4 forks source link

Create Dispatch interfaces #22

Closed logohere closed 3 years ago

logohere commented 3 years ago

Summary

Create Dispatch Interfaces in java

Reference


export interface ResponseArgs extends defaultTx{
  queryId : string,
  responseParams: Array<string | number>,
  dynamic : boolean
}

export interface cancelQuery extends defaultTx{
    queryId : NumType
}

export interface QueryArgs extends defaultTx {
    provider:address,
    endpoint: string,
    query: string,
    endpointParams : Array<string>,
    onchainProvider? : boolean,
    onchainSubscriber? : boolean
}

export interface ResponseArgs extends defaultTx{
    queryId : string,
    responseParams: Array<string | number>,
    dynamic : boolean
}
export interface OffchainResponse{
    id?: number|string,
    subscriber?:address,
    provider?: address,
    response?: string[]|number[],
    response1?:string,
    response2?:string,
    response3?:string,
    response4?:string
}

Definition of done

Properly imported and instantiated