zapproject / jzap

Java
MIT License
1 stars 4 forks source link

Create TokenDotFactory interface #26

Closed logohere closed 3 years ago

logohere commented 3 years ago

Summary

Create TokenDotFactory interface

Reference

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

export interface InitTokenCurve extends defaultTx{
  specifier:string,
  ticker:string,
  term:CurveType
}

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

export type NextEndpoint = {
  provider:address,
  endpoint: string
};

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

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

export type TransactionCallback =
    (error: string|null,
    hash?: string|null)=>void;

Definition of done

Properly imported and instantiated