zapproject / jzap

Java
MIT License
1 stars 4 forks source link

Create Provider interfaces #23

Closed logohere closed 3 years ago

logohere commented 3 years ago

Summary

Create Provider Interfaces in java

Reference


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

export interface InitCurve extends defaultTx{
    endpoint:string,
    term: number[],
    broker?: address
}

export interface InitDotTokenCurve extends InitCurve{
    symbol:string
}

export type UnsubscribeListen = {
    subscriber:address,
    terminator : address,
    fromBlock : number
};

export type ListenQuery = {
    queryId: string,
    subscriber :address,
    fromBlock : number
};

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

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

export interface SetProviderTitle extends defaultTx{
    title:string
}

export interface EndpointMethods extends defaultTx{
    endpoint:string
}

Definition of done

Properly imported and instantiated