n8n-nodes-wax
Version:
n8n Community Node Package for the WAX Blockchain
18 lines (17 loc) • 663 B
TypeScript
import RpcAsset from './Asset';
import { IOfferRow } from './RpcCache';
import RpcApi from './index';
export default class RpcOffer {
private readonly api;
readonly id: string;
private readonly _data;
private readonly _senderAssets;
private readonly _recipientAssets;
constructor(api: RpcApi, id: string, data?: IOfferRow, senderAssets?: RpcAsset[], receiverAssets?: RpcAsset[], cache?: boolean);
sender(): Promise<string>;
recipient(): Promise<string>;
senderAssets(): Promise<Array<RpcAsset | string>>;
recipientAssets(): Promise<Array<RpcAsset | string>>;
memo(): Promise<string>;
toObject(): Promise<object>;
}