UNPKG

httpay

Version:

HTTPay SDK for interacting with HTTPay smart contracts on Neutron

79 lines 3.43 kB
/** * This file was automatically generated by @cosmwasm/ts-codegen@1.12.1. * 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 { Coin, StdFee } from "@cosmjs/amino"; import { CosmWasmClient, ExecuteResult, SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import { CollectedFeesResponse, EscrowResponse, EscrowsResponse, Uint128 } from "./Escrow.types"; export interface EscrowReadOnlyInterface { contractAddress: string; getEscrow: ({ escrowId }: { escrowId: number; }) => Promise<EscrowResponse>; getCollectedFees: () => Promise<CollectedFeesResponse>; getEscrows: ({ caller, limit, provider, startAfter, }: { caller?: string; limit?: number; provider?: string; startAfter?: number; }) => Promise<EscrowsResponse>; } export declare class EscrowQueryClient implements EscrowReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); getEscrow: ({ escrowId, }: { escrowId: number; }) => Promise<EscrowResponse>; getCollectedFees: () => Promise<CollectedFeesResponse>; getEscrows: ({ caller, limit, provider, startAfter, }: { caller?: string; limit?: number; provider?: string; startAfter?: number; }) => Promise<EscrowsResponse>; } export interface EscrowInterface extends EscrowReadOnlyInterface { contractAddress: string; sender: string; lockFunds: ({ authToken, expires, maxFee, toolId, }: { authToken: string; expires: number; maxFee: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; release: ({ escrowId, usageFee, }: { escrowId: number; usageFee: Uint128; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; refundExpired: ({ escrowId, }: { escrowId: number; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; claimFees: ({ denom, }: { denom?: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; } export declare class EscrowClient extends EscrowQueryClient implements EscrowInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); lockFunds: ({ authToken, expires, maxFee, toolId, }: { authToken: string; expires: number; maxFee: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; release: ({ escrowId, usageFee, }: { escrowId: number; usageFee: Uint128; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; refundExpired: ({ escrowId, }: { escrowId: number; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; claimFees: ({ denom, }: { denom?: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; } //# sourceMappingURL=Escrow.client.d.ts.map