/** * This file was automatically generated by @octalmage/terra-cosmwasm-typescript-gen@0.2.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @octalmage/terra-cosmwasm-typescript-gen generate command to regenerate this file. */ import { LCDClient, Coins, Wallet, TxInfo, WaitTxBroadcastResult, Msg, Fee } from '@terra-money/terra.js'; import { ConnectedWallet } from '@terra-money/wallet-provider'; import { NETWORK } from '../../@types'; export declare function waitForInclusionInBlock(lcd: LCDClient, txHash: string): Promise; export interface AllAccountsResponse { accounts: string[]; [k: string]: unknown; } export declare type Uint128 = string; export declare type Expiration = { at_height: number; } | { at_time: Timestamp; } | { never: { [k: string]: unknown; }; }; export declare type Timestamp = Uint64; export declare type Uint64 = string; export interface AllAllowancesResponse { allowances: AllowanceInfo[]; [k: string]: unknown; } export interface AllowanceInfo { allowance: Uint128; expires: Expiration; spender: string; [k: string]: unknown; } export interface AllowanceResponse { allowance: Uint128; expires: Expiration; [k: string]: unknown; } export interface BalanceResponse { balance: Uint128; [k: string]: unknown; } export declare type Binary = string; export interface DownloadLogoResponse { data: Binary; mime_type: string; [k: string]: unknown; } export declare type ExecuteMsg = { deposit: { [k: string]: unknown; }; } | { redeem: { amount: Uint128; [k: string]: unknown; }; } | { transfer: { amount: Uint128; recipient: string; [k: string]: unknown; }; } | { burn: { amount: Uint128; [k: string]: unknown; }; } | { send: { amount: Uint128; contract: string; msg: Binary; [k: string]: unknown; }; } | { increase_allowance: { amount: Uint128; expires?: Expiration | null; spender: string; [k: string]: unknown; }; } | { decrease_allowance: { amount: Uint128; expires?: Expiration | null; spender: string; [k: string]: unknown; }; } | { transfer_from: { amount: Uint128; owner: string; recipient: string; [k: string]: unknown; }; } | { send_from: { amount: Uint128; contract: string; msg: Binary; owner: string; [k: string]: unknown; }; } | { burn_from: { amount: Uint128; owner: string; [k: string]: unknown; }; } | { update_minter: { new_minter?: string | null; [k: string]: unknown; }; } | { update_marketing: { description?: string | null; marketing?: string | null; project?: string | null; [k: string]: unknown; }; }; export declare type Logo = { url: string; } | { embedded: EmbeddedLogo; }; export declare type EmbeddedLogo = { svg: Binary; } | { png: Binary; }; export interface InstantiateMsg { decimals: number; initial_balances: Cw20Coin[]; marketing?: InstantiateMarketingInfo | null; mint?: MinterResponse | null; name: string; symbol: string; [k: string]: unknown; } export interface Cw20Coin { address: string; amount: Uint128; [k: string]: unknown; } export interface InstantiateMarketingInfo { description?: string | null; logo?: Logo | null; marketing?: string | null; project?: string | null; [k: string]: unknown; } export interface MinterResponse { cap?: Uint128 | null; minter: string; [k: string]: unknown; } export declare type LogoInfo = 'embedded' | { url: string; }; export declare type Addr = string; export interface MarketingInfoResponse { description?: string | null; logo?: LogoInfo | null; marketing?: Addr | null; project?: string | null; [k: string]: unknown; } export declare type QueryMsg = { balance: { address: string; [k: string]: unknown; }; } | { token_info: { [k: string]: unknown; }; } | { minter: { [k: string]: unknown; }; } | { allowance: { owner: string; spender: string; [k: string]: unknown; }; } | { all_allowances: { limit?: number | null; owner: string; start_after?: string | null; [k: string]: unknown; }; } | { all_accounts: { limit?: number | null; start_after?: string | null; [k: string]: unknown; }; } | { marketing_info: { [k: string]: unknown; }; } | { download_logo: { [k: string]: unknown; }; }; export interface TokenInfoResponse { decimals: number; name: string; symbol: string; total_supply: Uint128; [k: string]: unknown; } export interface WluncReadOnlyInterface { contractAddress: string; balanceQuery: ({ address }: { address: string; }) => Promise; tokenInfoQuery: () => Promise; minterQuery: () => Promise; allowanceQuery: ({ owner, spender, }: { owner: string; spender: string; }) => Promise; allAllowancesQuery: ({ limit, owner, startAfter, }: { limit?: number; owner: string; startAfter?: string; }) => Promise; allAccountsQuery: ({ limit, startAfter, }: { limit?: number; startAfter?: string; }) => Promise; marketingInfoQuery: () => Promise; downloadLogoQuery: () => Promise; } export declare class WluncQueryClient implements WluncReadOnlyInterface { client: LCDClient; contractAddress: string; network: NETWORK; constructor(client: LCDClient); setNetwork: () => NETWORK; balanceQuery: ({ address, }: { address: string; }) => Promise; tokenInfoQuery: () => Promise; minterQuery: () => Promise; allowanceQuery: ({ owner, spender, }: { owner: string; spender: string; }) => Promise; allAllowancesQuery: ({ limit, owner, startAfter, }: { limit?: number | undefined; owner: string; startAfter?: string | undefined; }) => Promise; allAccountsQuery: ({ limit, startAfter, }: { limit?: number | undefined; startAfter?: string | undefined; }) => Promise; marketingInfoQuery: () => Promise; downloadLogoQuery: () => Promise; } export interface WluncInterface extends WluncReadOnlyInterface { contractAddress: string; deposit: (funds?: Coins) => Promise; redeem: ({ amount, }: { amount: string; }, funds?: Coins) => Promise; transfer: ({ amount, recipient, }: { amount: string; recipient: string; }, funds?: Coins) => Promise; burn: ({ amount, }: { amount: string; }, funds?: Coins) => Promise; send: ({ amount, contract, msg, }: { amount: string; contract: string; msg: string; }, funds?: Coins) => Promise; increaseAllowance: ({ amount, expires, spender, }: { amount: string; expires?: Expiration; spender: string; }, funds?: Coins) => Promise; decreaseAllowance: ({ amount, expires, spender, }: { amount: string; expires?: Expiration; spender: string; }, funds?: Coins) => Promise; transferFrom: ({ amount, owner, recipient, }: { amount: string; owner: string; recipient: string; }, funds?: Coins) => Promise; sendFrom: ({ amount, contract, msg, owner, }: { amount: string; contract: string; msg: string; owner: string; }, funds?: Coins) => Promise; burnFrom: ({ amount, owner, }: { amount: string; owner: string; }, funds?: Coins) => Promise; } export declare class WluncClient extends WluncQueryClient implements WluncInterface { client: LCDClient; wallet: Wallet | ConnectedWallet; taxRate: any; taxCap: any; constructor(client: LCDClient, wallet: Wallet | ConnectedWallet); initGas: () => void; calcFee: (luncAmount: string, msgs: Msg[]) => Promise<{ fee: Fee; txFee: Fee | undefined; tax: number; }>; deposit: (funds?: Coins | undefined) => Promise; redeem: ({ amount, }: { amount: string; }, funds?: Coins | undefined) => Promise; transfer: ({ amount, recipient, }: { amount: string; recipient: string; }, funds?: Coins | undefined) => Promise; burn: ({ amount, }: { amount: string; }, funds?: Coins | undefined) => Promise; send: ({ amount, contract, msg, }: { amount: string; contract: string; msg: string; }, funds?: Coins | undefined) => Promise; increaseAllowance: ({ amount, expires, spender, }: { amount: string; expires?: { at_height: number; } | { at_time: string; } | { never: { [k: string]: unknown; }; } | undefined; spender: string; }, funds?: Coins | undefined) => Promise; decreaseAllowance: ({ amount, expires, spender, }: { amount: string; expires?: { at_height: number; } | { at_time: string; } | { never: { [k: string]: unknown; }; } | undefined; spender: string; }, funds?: Coins | undefined) => Promise; transferFrom: ({ amount, owner, recipient, }: { amount: string; owner: string; recipient: string; }, funds?: Coins | undefined) => Promise; sendFrom: ({ amount, contract, msg, owner, }: { amount: string; contract: string; msg: string; owner: string; }, funds?: Coins | undefined) => Promise; burnFrom: ({ amount, owner, }: { amount: string; owner: string; }, funds?: Coins | undefined) => Promise; }