/** * 钱包类型 */ export declare const WalletType: { readonly Custodial: "Custodial"; readonly Mpc: "MPC"; readonly SmartContract: "SmartContract"; readonly Exchange: "Exchange"; readonly None: "None"; }; export type WalletType = (typeof WalletType)[keyof typeof WalletType]; /** * 钱包子类型 */ export declare const WalletSubtype: { readonly Asset: "Asset"; readonly Web3: "Web3"; readonly OrgControlled: "Org-Controlled"; readonly UserControlled: "User-Controlled"; readonly SafeWallet: "Safe{Wallet}"; readonly Main: "Main"; readonly Sub: "Sub"; readonly None: "None"; }; export type WalletSubtype = (typeof WalletSubtype)[keyof typeof WalletSubtype]; /** * 链信息 */ export interface ChainInfo { /** * * @type {string} * @memberof ChainInfo */ chainId?: string | null; /** * * @type {string} * @memberof ChainInfo */ symbol?: string | null; /** * * @type {string} * @memberof ChainInfo */ iconUrl?: string | null; /** * * @type {boolean} * @memberof ChainInfo */ requireMemo?: boolean | null; /** * * @type {string} * @memberof ChainInfo */ explorerTxUrl?: string | null; /** * * @type {string} * @memberof ChainInfo */ explorerAddressUrl?: string | null; /** * * @type {number} * @memberof ChainInfo */ confirmingThreshold?: number | null; /** * * @type {string} * @memberof ChainInfo */ chainIdentifier?: string | null; /** * * @type {Array} * @memberof ChainInfo */ supportedAddressEncodings: Array; /** * * @type {boolean} * @memberof ChainInfo */ isSupportedContract?: boolean | null; } /** * 分页数据 */ export interface PaginationDataSerialize { /** * * @type {number} * @memberof PaginationDataSerialize */ currentPage?: number | null; /** * * @type {number} * @memberof PaginationDataSerialize */ pageSize?: number | null; /** * * @type {number} * @memberof PaginationDataSerialize */ totalRecords?: number | null; /** * * @type {number} * @memberof PaginationDataSerialize */ totalPages?: number | null; } export interface AppAddressBalance { /** * * @type {string} * @memberof AppAddressBalance */ walletType?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ walletNameInfo?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ walletId?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ address?: string | null; /** * * @type {number} * @memberof AppAddressBalance */ encoding?: number | null; /** * * @type {string} * @memberof AppAddressBalance */ memo?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ label?: string | null; /** * * @type {boolean} * @memberof AppAddressBalance */ recent?: boolean | null; /** * * @type {string} * @memberof AppAddressBalance */ currencyValue?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ currencyUnit?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ currencySymbol?: string | null; /** * * @type {Coin} * @memberof AppAddressBalance */ /** * * @type {WalletTokenBalance} * @memberof AppAddressBalance */ /** * * @type {ChainInfo} * @memberof AppAddressBalance */ chain?: ChainInfo | null; /** * * @type {TokenInfo} * @memberof AppAddressBalance */ /** * * @type {string} * @memberof AppAddressBalance */ walletSubtype?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ subWallet?: string | null; /** * * @type {boolean} * @memberof AppAddressBalance */ depositable?: boolean | null; /** * * @type {boolean} * @memberof AppAddressBalance */ withdrawable?: boolean | null; /** * * @type {string} * @memberof AppAddressBalance */ status?: string | null; /** * * @type {number} * @memberof AppAddressBalance */ source?: number | null; /** * * @type {string} * @memberof AppAddressBalance */ vaultId?: string | null; /** * * @type {string} * @memberof AppAddressBalance */ projectId?: string | null; } /** * 获取钱包余额请求参数 */ export interface WalletBalanceRetrieveRequest { walletSubtype: WalletSubtype; walletType: WalletType; chainId?: string | null; currentPage?: number; keyword?: string | null; pageSize?: number; tokenId?: string | null; } export type WalletBalanceRetrieveFunction = (params: WalletBalanceRetrieveRequest) => Promise<{ data: AppAddressBalance[]; pagination?: PaginationDataSerialize; }>;