import { DelegationStatus } from "./api/getNftStakes"; import DecimalApi from "./api/index"; import Client from "./client"; import { Transaction } from "./transaction"; import Wallet from "./wallet"; import { AddressBalance } from "./interfaces/addressBalance"; import { AddressTransaction } from "./interfaces/addressTransaction"; import { AddressNftBalance } from "./interfaces/addressNftBalance"; import { AddressBookItem } from "./api/createAddressbookItem"; import { NETWORKS } from "./endpoints"; import DecimalContract from "./contract"; export interface CustomNodeEndpoints { rpc: string; rest: string; } export default class Decimal { private readonly rpcInstance; private readonly apiInstance; private readonly contractInstance; private readonly gateUrl; private readonly isNodeDirectMode; private readonly nodeRestUrl; private readonly network; private wallet; static connect(network: NETWORKS, isNodeDirectMode?: boolean, customNodeEndpoint?: CustomNodeEndpoints): Promise; private constructor(); getRpcInstance(): Client | undefined; getApiInstance(): DecimalApi; getEvmInstance(): DecimalContract; getTxTypes(): { COIN_BUY: string; COIN_CREATE: string; COIN_UPDATE: string; COIN_SELL: string; COIN_SEND: string; COIN_BURN: string; COIN_MULTISEND: string; COIN_SELL_ALL: string; COIN_REDEEM_CHECK: string; COIN_ISSUE_CHECK: string; VALIDATOR_CANDIDATE: string; VALIDATOR_DELEGATE: string; VALIDATOR_DELEGATE_COSMOS: string; VALIDATOR_REDELEGATE: string; VALIDATOR_CANCEL_REDELEGATE: string; VALIDATOR_CANCEL_UNDELEGATE: string; VALIDATOR_SET_ONLINE: string; VALIDATOR_SET_OFFLINE: string; VALIDATOR_UNBOND: string; VALIDATOR_CANDIDATE_EDIT: string; MULTISIG_CREATE_WALLET: string; MULTISIG_CREATE_TX: string; MULTISIG_SIGN_TX: string; SWAP_INIT: string; SWAP_REDEEM: string; NFT_MINT: string; NFT_BURN: string; NFT_EDIT_METADATA: string; NFT_TRANSFER: string; NFT_DELEGATE: string; NFT_UNBOND: string; NFT_REDELEGATE: string; NFT_CANCEL_REDELEGATE: string; NFT_CANCEL_UNDELEGATE: string; NFT_UPDATE_RESERVE: string; CHAIN_ACTIVATE: string; CHAIN_DEACTIVATE: string; SOFTWARE_UPGRADE: string; SOFTWARE_CANCEL_UPGRADE: string; ETHEREUM_TX: string; UPDATE_COIN_PRICES: string; REOWN_LEGACY: string; }; getNetworkBaseCoin(): string; setWallet(wallet: Wallet): void; transactionSender(baseCoin?: string): Promise; verifyAddress(address: string, prefix?: string): boolean; getEvmAccountBalance(address: string): Promise; rpcApi(): Client; getAddressbook(): Promise; createAddressbookItem(payload: AddressBookItem): Promise; updateAddressbookItem(itemId: number, payload: AddressBookItem): Promise; deleteAddressbookItem(itemId: number): Promise; requestLegacy(): Promise; getMultisigsByAddress(address: string): Promise; getMultisig(address: string): Promise; getMultisigTxs(address: string, limit?: number, offset?: number): Promise; getStakesByAddress(address: string, status: string): Promise; getValidator(address: string): Promise; getNft(id: number): Promise | null; getNftStakesByAddress(address: string, status: DelegationStatus): Promise; getNfts(address: string, limit?: number, offset?: number, query?: any): Promise | null; getNftTxes(id: number, limit?: number, offset?: number, order?: string): Promise | null; getNftsTxes(address: string, limit?: number, offset?: number, order?: string): Promise | null; getCoin(symbol: any): Promise; checkCoinExists(symbol: any): Promise; getMyCoins(limit: number, offset: number): Promise; getMyTransactions(limit: number | undefined, offset: number | undefined, types: any, coins: any): Promise; getCoinsList(limit: number | undefined, offset: number | undefined, query: any): Promise; getAddress(address: string, txLimit?: number): Promise; getBlockedAddresses(limit?: number, offset?: number, type?: object, q?: object): Promise | null; updateAddressBlockingData(address: string, isBlocked: boolean, type: string, reason?: string): Promise | null; getAddressBalances(address: string): Promise; getAddressTransactions(address: string, options?: { limit?: number; offset?: number; }): Promise<{ count: number; items: AddressTransaction[]; } | undefined>; getAddressNftsBalances(address: string): Promise; getContract(address: string): Promise; }