aftermath-ts-sdk
Version:
Aftermath TypeScript SDK
33 lines • 1.22 kB
TypeScript
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";
export declare class CoinApi {
private readonly Provider;
constructor(Provider: AftermathApi);
fetchCoinWithAmountTx: (inputs: {
tx: Transaction;
walletAddress: SuiAddress;
coinType: CoinType;
coinAmount: Balance;
isSponsoredTx?: boolean;
}) => Promise<TransactionObjectArgument>;
fetchCoinsWithAmountTx: (inputs: {
tx: Transaction;
walletAddress: SuiAddress;
coinTypes: CoinType[];
coinAmounts: Balance[];
isSponsoredTx?: boolean;
}) => Promise<TransactionObjectArgument[]>;
fetchCoinsWithAtLeastAmount: (inputs: {
walletAddress: SuiAddress;
coinType: CoinType;
coinAmount: Balance;
}) => Promise<CoinStruct[]>;
fetchAllCoins: (inputs: {
walletAddress: SuiAddress;
coinType: CoinType;
}) => Promise<CoinStruct[]>;
private static coinWithAmountTx;
}
//# sourceMappingURL=coinApi.d.ts.map