UNPKG

client-aftermath-ts-sdk

Version:
29 lines 1.13 kB
import { Transaction, TransactionObjectArgument } from "@mysten/sui/transactions"; import { AftermathApi } from "../../../general/providers/aftermathApi"; import { Balance, CoinType, SuiAddress } from "../../../types"; import { CoinStruct } from "@mysten/sui/client"; import { TransactionBlock } from "@mysten/sui.js/transactions"; export declare class CoinApi { private readonly Provider; constructor(Provider: AftermathApi); fetchCoinWithAmountTx: (inputs: { tx: Transaction | TransactionBlock; walletAddress: SuiAddress; coinType: CoinType; coinAmount: Balance; isSponsoredTx?: boolean; }) => Promise<TransactionObjectArgument>; fetchCoinsWithAmountTx: (inputs: { tx: Transaction; walletAddress: SuiAddress; coinTypes: CoinType[]; coinAmounts: Balance[]; isSponsoredTx?: boolean; }) => Promise<TransactionObjectArgument[]>; fetchAllCoins: (inputs: { walletAddress: SuiAddress; coinType: CoinType; }) => Promise<CoinStruct[]>; private static coinWithAmountTx; } //# sourceMappingURL=coinApi.d.ts.map