@rubysdk/secret-client
Version:
RubySDK Secret Network client utilities for data, token and escrow operations
87 lines • 3.84 kB
TypeScript
/**
* This file was automatically generated by @cosmwasm/ts-codegen@1.12.0.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate";
import { Coin, StdFee } from "@cosmjs/amino";
import { Addr, Uint256, Binary, Payout, RequiredDeposit, EscrowStatus, GetEscrowResponse, ListEscrowsResponse } from "./SecretEscrow.types";
export interface SecretEscrowReadOnlyInterface {
contractAddress: string;
listEscrows: ({ creator, limit, payoutTo, requiredDepositFrom, startAfter, status, tokenId }: {
creator?: Addr;
limit?: number;
payoutTo?: Addr;
requiredDepositFrom?: Addr;
startAfter?: number;
status?: EscrowStatus;
tokenId?: string;
}) => Promise<ListEscrowsResponse>;
getEscrow: ({ escrowId }: {
escrowId: number;
}) => Promise<GetEscrowResponse>;
}
export declare class SecretEscrowQueryClient implements SecretEscrowReadOnlyInterface {
client: CosmWasmClient;
contractAddress: string;
constructor(client: CosmWasmClient, contractAddress: string);
listEscrows: ({ creator, limit, payoutTo, requiredDepositFrom, startAfter, status, tokenId }: {
creator?: Addr;
limit?: number;
payoutTo?: Addr;
requiredDepositFrom?: Addr;
startAfter?: number;
status?: EscrowStatus;
tokenId?: string;
}) => Promise<ListEscrowsResponse>;
getEscrow: ({ escrowId }: {
escrowId: number;
}) => Promise<GetEscrowResponse>;
}
export interface SecretEscrowInterface extends SecretEscrowReadOnlyInterface {
contractAddress: string;
sender: string;
createEscrow: ({ expiration, memo, payouts, requiredDeposits }: {
expiration?: number;
memo?: string;
payouts: Payout[];
requiredDeposits: RequiredDeposit[];
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
receive: ({ amount, from, msg, tokenId }: {
amount: Uint256;
from: Addr;
msg?: Binary;
tokenId: string;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
cancelEscrow: ({ escrowId }: {
escrowId: number;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
executeEscrow: ({ escrowId }: {
escrowId: number;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
}
export declare class SecretEscrowClient extends SecretEscrowQueryClient implements SecretEscrowInterface {
client: SigningCosmWasmClient;
sender: string;
contractAddress: string;
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string);
createEscrow: ({ expiration, memo, payouts, requiredDeposits }: {
expiration?: number;
memo?: string;
payouts: Payout[];
requiredDeposits: RequiredDeposit[];
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
receive: ({ amount, from, msg, tokenId }: {
amount: Uint256;
from: Addr;
msg?: Binary;
tokenId: string;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
cancelEscrow: ({ escrowId }: {
escrowId: number;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
executeEscrow: ({ escrowId }: {
escrowId: number;
}, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>;
}
//# sourceMappingURL=SecretEscrow.client.d.ts.map