@aarc-dev/core-viem
Version:
25 lines (24 loc) • 2.47 kB
TypeScript
import { BalancesData, BalancesResponse, CheckoutCallDataDto, CheckoutCalldataResponse, DepositCallDataDto, DepositCalldataResponse, ForwardCallDataDto, ForwardCalldataRes, GaslessCalldataResponse, IsTokenSupportedResponse, PriceData, RelayedTxListResponse, SupportedChainInfo, SupportedTokensResponse, TRX_RESPONSE } from "./CoreTypes";
export declare const generateGaslessCallData: (forwardCallDataDto: ForwardCallDataDto, dappApiKey: string) => Promise<GaslessCalldataResponse>;
export declare const generateNonGaslessCallData: (forwardCallDataDto: ForwardCallDataDto, dappApiKey: string) => Promise<GaslessCalldataResponse>;
export declare const executeGaslessCallData: (chainId: string, forwardCalldataSet: TRX_RESPONSE[], dappApiKey: string) => Promise<RelayedTxListResponse[]>;
export declare const generateDepositCallData: (depositCallDataDto: DepositCallDataDto, dappApiKey: string) => Promise<DepositCalldataResponse>;
export declare const generateForwardCallData: (forwardCallDataDto: ForwardCallDataDto, dappApiKey: string) => Promise<ForwardCalldataRes>;
export declare const generateCheckoutCallData: (depositCallDataDto: CheckoutCallDataDto, dappApiKey: string) => Promise<CheckoutCalldataResponse>;
export declare const executeForwardCallData: (chainId: string, forwardCalldataSet: ForwardCalldataRes, dappApiKey: string) => Promise<RelayedTxListResponse[]>;
/**
* @description this function will return balances of ERC-20, ERC-721 and native tokens
* @param balancesDto
* @returns
*/
export declare const fetchBalances: (apiKey: string, chainId: number, eoaAddress: string, fetchBalancesOnly?: boolean, tokenAddresses?: string[]) => Promise<BalancesResponse>;
export declare const getMultiChainBalances: (apiKey: string, walletAddress: string, destinationToken?: {
tokenAddress: string;
tokenChainId: number;
tokenAmount?: string;
}) => Promise<BalancesData>;
export declare const IsTokenSupported: (apiKey: string, chainId: number, address: string) => Promise<IsTokenSupportedResponse>;
export declare const GetSupportedTokens: (apiKey: string, chainId: number, isShortList?: boolean) => Promise<SupportedTokensResponse>;
export declare const GetSupportedChains: (apiKey: string) => Promise<SupportedChainInfo>;
export declare const GetTransactionStatus: (taskId: string) => Promise<any>;
export declare const getTokenPrice: (apiKey: string, tokenSymbol: string, tokenAddress?: string, tokenChainId?: string) => Promise<PriceData>;