UNPKG

httpay

Version:

HTTPay SDK for interacting with HTTPay smart contracts on Neutron

85 lines 3.79 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 { ToolResponse, ToolsResponse, Uint128 } from "./Registry.types"; export interface RegistryReadOnlyInterface { contractAddress: string; getTool: ({ toolId }: { toolId: string; }) => Promise<ToolResponse>; getTools: () => Promise<ToolsResponse>; } export declare class RegistryQueryClient implements RegistryReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); getTool: ({ toolId }: { toolId: string; }) => Promise<ToolResponse>; getTools: () => Promise<ToolsResponse>; } export interface RegistryInterface extends RegistryReadOnlyInterface { contractAddress: string; sender: string; registerTool: ({ denom, description, endpoint, price, toolId, }: { denom?: string; description: string; endpoint: string; price: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updatePrice: ({ price, toolId, }: { price: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updateDenom: ({ denom, toolId, }: { denom: string; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updateEndpoint: ({ endpoint, toolId, }: { endpoint: string; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; pauseTool: ({ toolId, }: { toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; resumeTool: ({ toolId, }: { toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; } export declare class RegistryClient extends RegistryQueryClient implements RegistryInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); registerTool: ({ denom, description, endpoint, price, toolId, }: { denom?: string; description: string; endpoint: string; price: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updatePrice: ({ price, toolId, }: { price: Uint128; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updateDenom: ({ denom, toolId, }: { denom: string; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; updateEndpoint: ({ endpoint, toolId, }: { endpoint: string; toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; pauseTool: ({ toolId, }: { toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; resumeTool: ({ toolId, }: { toolId: string; }, fee_?: number | StdFee | "auto", memo_?: string, funds_?: Coin[]) => Promise<ExecuteResult>; } //# sourceMappingURL=Registry.client.d.ts.map