import { WalletObject } from '@ocap/wallet'; type PartialDeep = { [K in keyof T]?: T[K] extends object ? PartialDeep : T[K] } export as namespace GraphQLClient; /*~ This declaration specifies that the class constructor function *~ is the exported object from the file */ export = GraphQLClient; /*~ Write your module's methods and properties in this class */ declare class GraphQLClient { config: any; schema: void; constructor(endpoint: string, autoInit: boolean = true); getQueries(): string[]; getSubscriptions(): string[]; getMutations(): string[]; /** * Send raw query to forge and return results * * @param {*} query * @memberof GraphQLClient * @return Promise */ doRawQuery(query: any, requestOptions?: any): Promise; doRawSubscription(query: any): Promise; doBatchQuery(queries: object, requestOptions?: any): Promise; fromUnitToToken(value: string): Promise; fromTokenToUnit(amount: number): Promise; getTxSendMethods(): Array; getTxEncodeMethods(): Array; getTxSignMethods(): Array; getTxMultiSignMethods(): Array; getType(x: string): Object; decodeTx(input: string|Buffer): object; // Account methods migrateAccount(params: { from: WalletObject; to: WalletObject; }, extra?: any): Promise; delegate(params: { from: WalletObject; to: WalletObject; privileges: Array<{ typeUrl: string; limit?: { tokens?: string[]; assets?: string[] } }> | { typeUrl: string; limit?: { tokens?: string[]; assets?: string[] } }; }, extra?: any): Promise<[string, string]>; revokeDelegate(params: { from: WalletObject; to: WalletObject; privileges: Array; }, extra?: any): Promise; // Asset methods createAsset(params: { moniker: string; parent?: string; ttl?: number; data?: any; readonly?: boolean; transferrable?: boolean; display?: any; endpoint?: any; tags?: string[]; delegator?: string; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; updateAsset(params: { address: string; moniker?: string; data?: any; wallet: WalletObject; }, extra?: any): Promise; createAssetFactory(params: { factory: { name: string; description?: string; settlement?: string; limit?: number; trustedIssuers?: string[]; input?: any; output?: any; data?: any; hooks?: any[]; display?: any; }; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; acquireAsset(params: { itx: any; delegator?: string; wallet: WalletObject; }, extra?: any): Promise; // Transfer methods transfer(params: { token?: number; assets?: string[]; tokens?: Array<{ address: string; value: number }>; to: string; memo?: string; delegator?: string; wallet: WalletObject; }, extra?: any): Promise; // Exchange methods prepareExchange(params: { offerToken?: number; offerAssets?: string[]; demandToken?: number; demandAssets?: string[]; offerTokens?: Array<{ address: string; value: number }>; demandTokens?: Array<{ address: string; value: number }>; receiver?: string; memo?: string; delegator?: string; wallet: WalletObject; }, extra?: any): Promise; finalizeExchange(params: { tx: GraphQLClient.Transaction; delegator?: string; data?: any; wallet: WalletObject; }, extra?: any): Promise; exchange(params: { tx: GraphQLClient.Transaction; wallet: WalletObject; }, extra?: any): Promise; generateQueryFns(): void; generateSubscriptionFns(): void; generateMutationFns(): void; setGasPayer(wallet: WalletObject): void; pickGasPayerHeaders(req: any): any; // WebSocket methods from base.js subscribe(topic: string, callback: (data: any) => void): any; unsubscribe(topic: string, callback?: (data: any) => void): any; // Token factory methods from extension.js createTokenFactory(params: { feeRate?: number; curve?: { type?: string; slope?: string; basePrice?: string; fixedPrice?: string; }; token: { name: string; symbol: string; decimal?: number; description?: string; icon?: string; maxTotalSupply?: string; }; data?: any; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; updateTokenFactory(params: { address: string; feeRate?: number; token?: any; data?: any; wallet: WalletObject; }, extra?: any): Promise; // Token methods createToken(params: { name: string; description?: string; symbol: string; unit?: string; decimal?: number; icon?: string; totalSupply: number; initialSupply?: number; maxTotalSupply?: number; foreignToken?: any; data?: any; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; mintToken(params: { tokenFactory: string; amount: number; receiver?: string; maxReserve?: number; data?: any; wallet: WalletObject; }, extra?: any): Promise; burnToken(params: { tokenFactory: string; amount: number; receiver?: string; minReserve?: number; data?: any; wallet: WalletObject; }, extra?: any): Promise; // Staking methods stake(params: { assets?: string[]; tokens?: Array<{ address: string; value: number }>; slashers?: string[]; to: string; locked?: boolean; message?: string; nonce?: string; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; revokeStake(params: { assets?: string[]; tokens?: Array<{ address: string; value: number }>; from: string; wallet: WalletObject; }, extra?: any): Promise; slashStake(params: { assets?: string[]; tokens?: Array<{ address: string; value: number }>; reason: string; from: string; wallet: WalletObject; }, extra?: any): Promise; claimStake(params: { from: string; evidence: string; wallet: WalletObject; }, extra?: any): Promise; // Asset factory methods preMintAsset(params: { factory: string; inputs?: object; owner: string; wallet: WalletObject; extra?: object; }): Promise<{ asset: { address: string; owner: string; parent: string; [key: string]: any }; factory: string; address: string; variables: Array<{ name: string; value: any }>; issuer: any; owner: string; [key: string]: any; }>; mintAsset(params: { itx: any; wallet: WalletObject; }, extra?: any): Promise; // Rollup methods createRollup(params: { tokenAddress: string; vaultAddress: string; contractAddress: string; seedValidators: any[]; minStakeAmount: string; maxStakeAmount?: string; minSignerCount?: number; maxSignerCount?: number; minBlockSize?: number; maxBlockSize?: number; minBlockInterval?: number; minBlockConfirmation?: number; minDepositAmount?: string; maxDepositAmount?: string; minWithdrawAmount?: string; maxWithdrawAmount?: string; depositFeeRate?: number; withdrawFeeRate?: number; publisherFeeShare?: number; proposerFeeShare?: number; minDepositFee?: string; maxDepositFee?: string; minWithdrawFee?: string; maxWithdrawFee?: string; leaveWaitingPeriod?: number; publishWaitingPeriod?: number; publishSlashRate?: number; data?: any; wallet: WalletObject; }, extra?: any): Promise<[string, string]>; // Context methods getContext(): Promise<{ chainId: string; consensus: string; token: { address: string; decimal: number; symbol: string }; txConfig: any; vaults: any; tokenStateMap: Map; }>; getTokenStateMap(addressList: string[]): Promise>; sendAccountMigrateTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendDelegateTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendRevokeDelegateTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendUpgradeNodeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendExchangeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendExchangeV2Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendTransferTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendTransferV2Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendTransferV3Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateTokenTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendAcquireAssetV2Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendAcquireAssetV3Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendMintAssetTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateAssetTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendUpdateAssetTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendConsumeAssetTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateFactoryTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendStakeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendRevokeStakeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendClaimStakeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendSlashStakeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendReturnStakeTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendUpdateRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendJoinRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendLeaveRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateRollupBlockTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendClaimBlockRewardTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendPauseRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendResumeRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCloseRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendMigrateRollupTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendDepositTokenV2Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendWithdrawTokenV2Tx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendCreateTokenFactoryTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendUpdateTokenFactoryTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendMintTokenTx(param: GraphQLClient.TxParam>, extra?: any): Promise; sendBurnTokenTx(param: GraphQLClient.TxParam>, extra?: any): Promise; encodeAccountMigrateTx(param: GraphQLClient.TxParam>): Promise; encodeDelegateTx(param: GraphQLClient.TxParam>): Promise; encodeRevokeDelegateTx(param: GraphQLClient.TxParam>): Promise; encodeUpgradeNodeTx(param: GraphQLClient.TxParam>): Promise; encodeExchangeTx(param: GraphQLClient.TxParam>): Promise; encodeExchangeV2Tx(param: GraphQLClient.TxParam>): Promise; encodeTransferTx(param: GraphQLClient.TxParam>): Promise; encodeTransferV2Tx(param: GraphQLClient.TxParam>): Promise; encodeTransferV3Tx(param: GraphQLClient.TxParam>): Promise; encodeCreateTokenTx(param: GraphQLClient.TxParam>): Promise; encodeAcquireAssetV2Tx(param: GraphQLClient.TxParam>): Promise; encodeAcquireAssetV3Tx(param: GraphQLClient.TxParam>): Promise; encodeMintAssetTx(param: GraphQLClient.TxParam>): Promise; encodeCreateAssetTx(param: GraphQLClient.TxParam>): Promise; encodeUpdateAssetTx(param: GraphQLClient.TxParam>): Promise; encodeConsumeAssetTx(param: GraphQLClient.TxParam>): Promise; encodeCreateFactoryTx(param: GraphQLClient.TxParam>): Promise; encodeStakeTx(param: GraphQLClient.TxParam>): Promise; encodeRevokeStakeTx(param: GraphQLClient.TxParam>): Promise; encodeClaimStakeTx(param: GraphQLClient.TxParam>): Promise; encodeSlashStakeTx(param: GraphQLClient.TxParam>): Promise; encodeReturnStakeTx(param: GraphQLClient.TxParam>): Promise; encodeCreateRollupTx(param: GraphQLClient.TxParam>): Promise; encodeUpdateRollupTx(param: GraphQLClient.TxParam>): Promise; encodeJoinRollupTx(param: GraphQLClient.TxParam>): Promise; encodeLeaveRollupTx(param: GraphQLClient.TxParam>): Promise; encodeCreateRollupBlockTx(param: GraphQLClient.TxParam>): Promise; encodeClaimBlockRewardTx(param: GraphQLClient.TxParam>): Promise; encodePauseRollupTx(param: GraphQLClient.TxParam>): Promise; encodeResumeRollupTx(param: GraphQLClient.TxParam>): Promise; encodeCloseRollupTx(param: GraphQLClient.TxParam>): Promise; encodeMigrateRollupTx(param: GraphQLClient.TxParam>): Promise; encodeDepositTokenV2Tx(param: GraphQLClient.TxParam>): Promise; encodeWithdrawTokenV2Tx(param: GraphQLClient.TxParam>): Promise; encodeCreateTokenFactoryTx(param: GraphQLClient.TxParam>): Promise; encodeUpdateTokenFactoryTx(param: GraphQLClient.TxParam>): Promise; encodeMintTokenTx(param: GraphQLClient.TxParam>): Promise; encodeBurnTokenTx(param: GraphQLClient.TxParam>): Promise; signAccountMigrateTx(param: GraphQLClient.TxParam>): Promise; signDelegateTx(param: GraphQLClient.TxParam>): Promise; signRevokeDelegateTx(param: GraphQLClient.TxParam>): Promise; signUpgradeNodeTx(param: GraphQLClient.TxParam>): Promise; signExchangeTx(param: GraphQLClient.TxParam>): Promise; signExchangeV2Tx(param: GraphQLClient.TxParam>): Promise; signTransferTx(param: GraphQLClient.TxParam>): Promise; signTransferV2Tx(param: GraphQLClient.TxParam>): Promise; signTransferV3Tx(param: GraphQLClient.TxParam>): Promise; signCreateTokenTx(param: GraphQLClient.TxParam>): Promise; signAcquireAssetV2Tx(param: GraphQLClient.TxParam>): Promise; signAcquireAssetV3Tx(param: GraphQLClient.TxParam>): Promise; signMintAssetTx(param: GraphQLClient.TxParam>): Promise; signCreateAssetTx(param: GraphQLClient.TxParam>): Promise; signUpdateAssetTx(param: GraphQLClient.TxParam>): Promise; signConsumeAssetTx(param: GraphQLClient.TxParam>): Promise; signCreateFactoryTx(param: GraphQLClient.TxParam>): Promise; signStakeTx(param: GraphQLClient.TxParam>): Promise; signRevokeStakeTx(param: GraphQLClient.TxParam>): Promise; signClaimStakeTx(param: GraphQLClient.TxParam>): Promise; signSlashStakeTx(param: GraphQLClient.TxParam>): Promise; signReturnStakeTx(param: GraphQLClient.TxParam>): Promise; signCreateRollupTx(param: GraphQLClient.TxParam>): Promise; signUpdateRollupTx(param: GraphQLClient.TxParam>): Promise; signJoinRollupTx(param: GraphQLClient.TxParam>): Promise; signLeaveRollupTx(param: GraphQLClient.TxParam>): Promise; signCreateRollupBlockTx(param: GraphQLClient.TxParam>): Promise; signClaimBlockRewardTx(param: GraphQLClient.TxParam>): Promise; signPauseRollupTx(param: GraphQLClient.TxParam>): Promise; signResumeRollupTx(param: GraphQLClient.TxParam>): Promise; signCloseRollupTx(param: GraphQLClient.TxParam>): Promise; signMigrateRollupTx(param: GraphQLClient.TxParam>): Promise; signDepositTokenV2Tx(param: GraphQLClient.TxParam>): Promise; signWithdrawTokenV2Tx(param: GraphQLClient.TxParam>): Promise; signCreateTokenFactoryTx(param: GraphQLClient.TxParam>): Promise; signUpdateTokenFactoryTx(param: GraphQLClient.TxParam>): Promise; signMintTokenTx(param: GraphQLClient.TxParam>): Promise; signBurnTokenTx(param: GraphQLClient.TxParam>): Promise; multiSignExchangeV2Tx(param: GraphQLClient.TxParam>): Promise; multiSignTransferV3Tx(param: GraphQLClient.TxParam>): Promise; multiSignAcquireAssetV3Tx(param: GraphQLClient.TxParam>): Promise; multiSignStakeTx(param: GraphQLClient.TxParam>): Promise; multiSignUpdateRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignJoinRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignLeaveRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignPauseRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignCloseRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignMigrateRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignResumeRollupTx(param: GraphQLClient.TxParam>): Promise; multiSignDepositTokenV2Tx(param: GraphQLClient.TxParam>): Promise; multiSignWithdrawTokenV2Tx(param: GraphQLClient.TxParam>): Promise; multiSignCreateRollupBlockTx(param: GraphQLClient.TxParam>): Promise; multiSignClaimBlockRewardTx(param: GraphQLClient.TxParam>): Promise; multiSignCreateAssetTx(param: GraphQLClient.TxParam>): Promise; multiSignConsumeAssetTx(param: GraphQLClient.TxParam>): Promise; multiSignMintTokenTx(param: GraphQLClient.TxParam>): Promise; multiSignBurnTokenTx(param: GraphQLClient.TxParam>): Promise; getAccountState(params?: PartialDeep): Promise getAssetState(params?: PartialDeep): Promise getFactoryState(params?: PartialDeep): Promise getDelegateState(params?: PartialDeep): Promise getTokenState(params?: PartialDeep): Promise getEvidenceState(params?: PartialDeep): Promise getForgeState(params?: PartialDeep): Promise getTokenFactoryState(params?: PartialDeep): Promise getTx(params?: PartialDeep): Promise getBlock(params?: PartialDeep): Promise getBlocks(params?: PartialDeep): Promise getUnconfirmedTxs(params?: PartialDeep): Promise getChainInfo(): Promise getConfig(params?: PartialDeep): Promise getNetInfo(): Promise getNodeInfo(): Promise getValidatorsInfo(): Promise getForgeStats(): Promise listAssetTransactions(params?: PartialDeep): Promise listAssets(params?: PartialDeep): Promise listBlocks(params?: PartialDeep): Promise listTopAccounts(params?: PartialDeep): Promise listTransactions(params?: PartialDeep): Promise listTokens(params?: PartialDeep): Promise listFactories(params?: PartialDeep): Promise getAccountTokens(params?: PartialDeep): Promise getStakeState(params?: PartialDeep): Promise listStakes(params?: PartialDeep): Promise getRollupState(params?: PartialDeep): Promise listRollups(params?: PartialDeep): Promise getRollupBlock(params?: PartialDeep): Promise listRollupBlocks(params?: PartialDeep): Promise listRollupValidators(params?: PartialDeep): Promise listDelegations(params?: PartialDeep): Promise search(params?: PartialDeep): Promise estimateGas(params?: PartialDeep): Promise listTokenFlows(params?: PartialDeep): Promise verifyAccountRisk(params?: PartialDeep): Promise getTokenDistribution(params?: PartialDeep): Promise listTokenFactories(params?: PartialDeep): Promise sendTx(params?: PartialDeep): Promise } declare namespace GraphQLClient { interface Subscription { on(event: 'data', fn: (data: T) => any): this; on(event: 'error', fn: (err: Error) => void): this; } interface TxParam { tx: { nonce?: number; from?: string; pk?: string; chainId?: string; delegator?: string; signature?: string; signatures?: PartialDeep[]; itx?: T; } | Transaction; wallet: WalletObject, delegator?: string; signature?: string; } interface WalletTypeObject { pk: number; role: number; address: number; hash: number; } interface EncodeTxResult { object: object; buffer: Buffer; } enum Direction { MUTUAL, ONE_WAY, UNION, } enum EncodingType { BASE16, BASE58, } enum HashType { KECCAK, SHA3, SHA2, KECCAK_384, SHA3_384, KECCAK_512, SHA3_512, } enum KeyType { ED25519, SECP256K1, ETHEREUM, } enum RoleType { ROLE_ACCOUNT, ROLE_NODE, ROLE_DEVICE, ROLE_APPLICATION, ROLE_SMART_CONTRACT, ROLE_BOT, ROLE_ASSET, ROLE_STAKE, ROLE_VALIDATOR, ROLE_GROUP, ROLE_TX, ROLE_TETHER, ROLE_SWAP, ROLE_DELEGATION, ROLE_VC, ROLE_BLOCKLET, ROLE_STORE, ROLE_TOKEN, ROLE_FACTORY, ROLE_ROLLUP, ROLE_STORAGE, ROLE_ANY, } enum StatusCode { OK, INVALID_NONCE, INVALID_SIGNATURE, INVALID_SENDER_STATE, INVALID_RECEIVER_STATE, INSUFFICIENT_DATA, INSUFFICIENT_FUND, INVALID_OWNER, INVALID_TX, UNSUPPORTED_TX, EXPIRED_TX, TOO_MANY_TXS, INVALID_LOCK_STATUS, INVALID_REQUEST, INVALID_MONIKER, INVALID_PASSPHRASE, INVALID_MULTISIG, INVALID_WALLET, INVALID_CHAIN_ID, CONSENSUS_RPC_ERROR, STORAGE_RPC_ERROR, NOENT, ACCOUNT_MIGRATED, RPC_CONNECTION_ERROR, UNSUPPORTED_STAKE, INSUFFICIENT_STAKE, INVALID_STAKE_STATE, EXPIRED_WALLET_TOKEN, BANNED_UNSTAKE, INVALID_ASSET, INVALID_TX_SIZE, INVALID_SIGNER_STATE, INVALID_FORGE_STATE, EXPIRED_ASSET, UNTRANSFERRABLE_ASSET, READONLY_ASSET, CONSUMED_ASSET, INVALID_DEPOSIT_VALUE, EXCEED_DEPOSIT_CAP, INVALID_DEPOSIT_TARGET, INVALID_DEPOSITOR, INVALID_WITHDRAWER, INVALID_EXPIRY_DATE, INVALID_CUSTODIAN, INSUFFICIENT_GAS, INVALID_SWAP, INVALID_HASHKEY, INVALID_DELEGATION, INSUFFICIENT_DELEGATION, INVALID_DELEGATION_RULE, INVALID_DELEGATION_TYPE_URL, SENDER_NOT_AUTHORIZED, PROTOCOL_NOT_RUNNING, PROTOCOL_NOT_PAUSED, PROTOCOL_NOT_ACTIVATED, INVALID_DEACTIVATION, SENDER_WITHDRAW_ITEMS_FULL, WITHDRAW_ITEM_MISSING, INVALID_WITHDRAW_TX, INVALID_CHAIN_TYPE, INVALID_TIME, INVALID_SUBSCRIBE, INVALID_DID_TYPE, INVALID_CANDIDATE_STATE, VALIDATOR_NOT_FOUND, VALIDATOR_NOT_CHANGED, INVALID_FACTORY_STATE, INVALID_FACTORY_PROPS, INVALID_FACTORY_INPUT, INVALID_TOKEN, INVALID_ROLLUP, INVALID_BLOCK, FORBIDDEN, INTERNAL, TIMEOUT, } enum TokenFlowDirection { IN, OUT, } enum UpgradeAction { VERIFY, BACKUP, REPLACE, RESTART_APP, RESTART_DFS, RESTART_CONSENSUS, RESTART_P2P, RESTART_FORGE, ROLLBACK_IF_FAIL, RESTART_ALL_IF_FAIL, CRASH_IF_FAIL, DROP_ADDRESS_BOOK, } enum UpgradeType { CONFIG_APP, CONFIG_FORGE, CONFIG_DFS, CONFIG_CONSENSUS, CONFIG_P2P, EXE_APP, EXE_FORGE, EXE_DFS, EXE_CONSENSUS, EXE_P2P, } enum Validity { BOTH, VALID, INVALID, } interface AccountFilterInput { accounts: string[]; } interface AddressFilterInput { sender: string; receiver: string; direction: GraphQLClient.Direction; } interface AssetFilterInput { assets: string[]; } interface DelegationFilterInput { delegations: string[]; } interface FactoryFilterInput { factories: string[]; } interface PageInput { cursor: string; size: number; order: GraphQLClient.PageOrderInput[]; } interface PageOrderInput { field: string; type: string; } interface RangeFilterInput { from: string; to: string; } interface RequestEstimateGasInput { typeUrl: string; tx: string; } interface RequestGetAccountStateInput { address: string; keys: string[]; height: number; traceMigration: boolean; } interface RequestGetAccountTokensInput { address: string; token: string; } interface RequestGetBlockInput { height: number; } interface RequestGetBlocksInput { paging: GraphQLClient.PageInput; heightFilter: GraphQLClient.RangeFilterInput; emptyExcluded: boolean; } interface RequestGetConfigInput { parsed: boolean; } interface RequestGetEvidenceStateInput { hash: string; } interface RequestGetRollupBlockInput { hash: string; height: number; rollupAddress: string; } interface RequestGetStateInput { address: string; keys: string[]; height: number; } interface RequestGetTokenDistributionInput { tokenAddress: string; } interface RequestGetTxInput { hash: string; } interface RequestListAssetTransactionsInput { paging: GraphQLClient.PageInput; address: string; } interface RequestListAssetsInput { paging: GraphQLClient.PageInput; ownerAddress: string; factoryAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListBlocksInput { paging: GraphQLClient.PageInput; proposer: string; timeFilter: GraphQLClient.TimeFilterInput; heightFilter: GraphQLClient.RangeFilterInput; numTxsFilter: GraphQLClient.RangeFilterInput; numInvalidTxsFilter: GraphQLClient.RangeFilterInput; } interface RequestListDelegationsInput { paging: GraphQLClient.PageInput; from: string; to: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListFactoriesInput { paging: GraphQLClient.PageInput; ownerAddress: string; addressList: string[]; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListRollupBlocksInput { paging: GraphQLClient.PageInput; rollupAddress: string; tokenAddress: string; proposer: string; validatorFilter: GraphQLClient.ValidatorFilterInput; txFilter: GraphQLClient.TxFilterInput; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListRollupValidatorsInput { paging: GraphQLClient.PageInput; rollupAddress: string; } interface RequestListRollupsInput { paging: GraphQLClient.PageInput; tokenAddress: string; foreignTokenAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListStakesInput { paging: GraphQLClient.PageInput; addressFilter: GraphQLClient.AddressFilterInput; timeFilter: GraphQLClient.TimeFilterInput; assetFilter: GraphQLClient.AssetFilterInput; } interface RequestListTokenFactoriesInput { paging: GraphQLClient.PageInput; owner: string; reserveAddress: string; tokenAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListTokenFlowsInput { paging: GraphQLClient.PageInput; accountAddress: string; tokenAddress: string; depth: number; direction: GraphQLClient.TokenFlowDirection; } interface RequestListTokensInput { paging: GraphQLClient.PageInput; issuerAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListTopAccountsInput { paging: GraphQLClient.PageInput; tokenAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface RequestListTransactionsInput { paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; addressFilter: GraphQLClient.AddressFilterInput; typeFilter: GraphQLClient.TypeFilterInput; validityFilter: GraphQLClient.ValidityFilterInput; factoryFilter: GraphQLClient.FactoryFilterInput; tokenFilter: GraphQLClient.TokenFilterInput; assetFilter: GraphQLClient.AssetFilterInput; accountFilter: GraphQLClient.AccountFilterInput; txFilter: GraphQLClient.TxFilterInput; rollupFilter: GraphQLClient.RollupFilterInput; stakeFilter: GraphQLClient.StakeFilterInput; delegationFilter: GraphQLClient.DelegationFilterInput; tokenFactoryFilter: GraphQLClient.TokenFactoryFilterInput; includeData: boolean; } interface RequestSearchInput { paging: GraphQLClient.PageInput; keyword: string; } interface RequestSendTxInput { tx: string; wallet: GraphQLClient.WalletInfoInput; token: string; commit: boolean; extra: string; } interface RequestVerifyAccountRiskInput { accountAddress: string; tokenAddress: string; } interface RollupFilterInput { rollups: string[]; } interface StakeFilterInput { stakes: string[]; } interface TimeFilterInput { startDateTime: string; endDateTime: string; field: string; } interface TokenFactoryFilterInput { tokenFactories: string[]; } interface TokenFilterInput { tokens: string[]; } interface TxFilterInput { txs: string[]; } interface TypeFilterInput { types: string[]; } interface ValidatorFilterInput { validators: string[]; } interface ValidityFilterInput { validity: GraphQLClient.Validity; } interface WalletInfoInput { type: GraphQLClient.WalletTypeInput; sk: string; pk: string; address: string; } interface WalletTypeInput { pk: GraphQLClient.KeyType; hash: GraphQLClient.HashType; address: GraphQLClient.EncodingType; role: GraphQLClient.RoleType; } interface AccountConfig { address: string; pk: string; balance: string; } interface AccountMigrateTx { pk: string; type: GraphQLClient.WalletType; address: string; data: GraphQLClient.Any; } interface AccountState { balance: string; nonce: string; numTxs: string; address: string; pk: string; type: GraphQLClient.WalletType; moniker: string; context: GraphQLClient.StateContext; issuer: string; gasBalance: string; migratedTo: string[]; migratedFrom: string[]; numAssets: string; tokens: GraphQLClient.IndexedTokenInput[]; data: GraphQLClient.Any; } interface AccountToken { address: string; symbol: string; balance: string; decimal: number; } interface AcquireAssetV2Tx { factory: string; address: string; assets: string[]; variables: GraphQLClient.VariableInput[]; issuer: GraphQLClient.NFTIssuer; data: GraphQLClient.Any; } interface AcquireAssetV3Tx { factory: string; address: string; inputs: GraphQLClient.TransactionInput[]; owner: string; variables: GraphQLClient.VariableInput[]; issuer: GraphQLClient.NFTIssuer; data: GraphQLClient.Any; } interface Any { typeUrl: string; value: string; } interface AssetFactoryHook { name: string; type: string; hook: string; } interface AssetFactoryInput { value: string; tokens: GraphQLClient.TokenInput[]; assets: string[]; variables: GraphQLClient.VariableInput[]; } interface AssetFactoryState { address: string; owner: string; name: string; description: string; settlement: string; limit: number; trustedIssuers: string[]; input: GraphQLClient.IndexedFactoryInput; output: GraphQLClient.CreateAssetTx; hooks: GraphQLClient.AssetFactoryHook[]; data: GraphQLClient.Any; context: GraphQLClient.StateContext; balance: string; tokens: GraphQLClient.IndexedTokenInput[]; numMinted: number; display: GraphQLClient.NFTDisplay; lastSettlement: string; } interface AssetLimit { address: string[]; to: string[]; txCount: number; validUntil: number; rate: GraphQLClient.RateLimit; txSent: number; lastTx: number; } interface AssetState { address: string; owner: string; moniker: string; readonly: boolean; transferrable: boolean; ttl: number; consumedTime: string; issuer: string; parent: string; endpoint: GraphQLClient.NFTEndpoint; display: GraphQLClient.NFTDisplay; tags: string[]; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface BlockID { hash: string; partsHeader: GraphQLClient.PartSetHeader; } interface BlockInfo { height: string; numTxs: number; time: string; appHash: string; proposer: string; txs: GraphQLClient.TransactionInfo[]; totalTxs: string; invalidTxs: GraphQLClient.TransactionInfo[]; txsHashes: string[]; invalidTxsHashes: string[]; consensusHash: string; dataHash: string; evidenceHash: string; lastCommitHash: string; lastResultsHash: string; nextValidatorsHash: string; validatorsHash: string; version: GraphQLClient.Version; lastBlockId: GraphQLClient.BlockID; } interface BlockInfoSimple { height: string; numTxs: number; time: string; appHash: string; proposer: string; totalTxs: string; txsHashes: string[]; invalidTxsHashes: string[]; consensusHash: string; dataHash: string; evidenceHash: string; lastCommitHash: string; lastResultsHash: string; nextValidatorsHash: string; validatorsHash: string; version: GraphQLClient.Version; lastBlockId: GraphQLClient.BlockID; } interface BurnTokenTx { tokenFactory: string; inputs: GraphQLClient.TransactionInput[]; minReserve: string; receiver: string; data: GraphQLClient.Any; } interface ChainInfo { id: string; network: string; moniker: string; consensusVersion: string; synced: boolean; appHash: string; blockHash: string; blockHeight: string; blockTime: string; address: string; votingPower: string; totalTxs: string; version: string; forgeAppsVersion: GraphQLClient.ChainInfo_ForgeAppsVersionEntry[]; supportedTxs: string[]; } interface ChainInfo_ForgeAppsVersionEntry { key: string; value: string; } interface ClaimBlockRewardTx { rollup: string; blockHeight: number; blockHash: string; evidence: GraphQLClient.Evidence; publisher: string; data: GraphQLClient.Any; } interface ClaimStakeTx { address: string; evidence: GraphQLClient.Evidence; data: GraphQLClient.Any; } interface CloseRollupTx { rollup: string; message: string; data: GraphQLClient.Any; } interface ConsensusParams { maxBytes: string; maxGas: string; maxValidators: number; maxCandidates: number; pubKeyTypes: string[]; validators: GraphQLClient.Validator[]; validatorChanged: boolean; paramChanged: boolean; } interface ConsumeAssetTx { address: string; data: GraphQLClient.Any; } interface CreateAssetTx { moniker: string; data: GraphQLClient.Any; readonly: boolean; transferrable: boolean; ttl: number; parent: string; address: string; issuer: string; endpoint: GraphQLClient.NFTEndpoint; display: GraphQLClient.NFTDisplay; tags: string[]; } interface CreateFactoryTx { name: string; description: string; settlement: string; limit: number; trustedIssuers: string[]; input: GraphQLClient.AssetFactoryInput; output: GraphQLClient.CreateAssetTx; hooks: GraphQLClient.AssetFactoryHook[]; address: string; display: GraphQLClient.NFTDisplay; data: GraphQLClient.Any; } interface CreateRollupBlockTx { hash: string; height: number; merkleRoot: string; previousHash: string; txsHash: string; txs: string[]; proposer: string; signatures: GraphQLClient.Multisig[]; rollup: string; minReward: string; governance: boolean; data: GraphQLClient.Any; } interface CreateRollupTx { address: string; tokenAddress: string; vaultAddress: string; contractAddress: string; seedValidators: GraphQLClient.RollupValidator[]; minStakeAmount: string; maxStakeAmount: string; minSignerCount: number; maxSignerCount: number; minBlockSize: number; maxBlockSize: number; minBlockInterval: number; minBlockConfirmation: number; foreignChainType: string; foreignChainId: string; depositFeeRate: number; withdrawFeeRate: number; proposerFeeShare: number; minDepositAmount: string; minWithdrawAmount: string; maxDepositAmount: string; maxWithdrawAmount: string; minDepositFee: string; maxDepositFee: string; minWithdrawFee: string; maxWithdrawFee: string; paused: boolean; leaveWaitingPeriod: number; publisherFeeShare: number; publishWaitingPeriod: number; publishSlashRate: number; data: GraphQLClient.Any; } interface CreateTokenFactoryTx { address: string; feeRate: number; token: GraphQLClient.TokenInfo; reserveAddress: string; curve: GraphQLClient.CurveConfig; data: GraphQLClient.Any; } interface CreateTokenTx { name: string; description: string; symbol: string; unit: string; decimal: number; icon: string; totalSupply: string; address: string; initialSupply: string; maxTotalSupply: string; foreignToken: GraphQLClient.ForeignToken; spenders: string[]; data: GraphQLClient.Any; } interface CurveConfig { type: string; basePrice: string; slope: string; fixedPrice: string; constant: number; } interface DeclareTx { moniker: string; issuer: string; data: GraphQLClient.Any; } interface DelegateConfig { deltaInterval: number; typeUrls: string[]; } interface DelegateLimit { tokens: GraphQLClient.TokenLimit[]; assets: GraphQLClient.AssetLimit[]; } interface DelegateOp { typeUrl: string; rules: string[]; limit: GraphQLClient.DelegateLimit; } interface DelegateOpState { rule: string; numTxs: number; numTxsDelta: number; balance: string; balanceDelta: string; limit: GraphQLClient.DelegateLimit; } interface DelegateState { address: string; ops: GraphQLClient.DelegateState_OpsEntry[]; from: string; to: string; deny: string[]; validUntil: number; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface DelegateState_OpsEntry { key: string; value: GraphQLClient.DelegateOpState; } interface DelegateTx { address: string; to: string; ops: GraphQLClient.DelegateOp[]; deny: string[]; validUntil: number; data: GraphQLClient.Any; } interface DepositTokenV2Tx { token: GraphQLClient.TokenInput; to: string; proposer: string; evidence: GraphQLClient.Evidence; rollup: string; actualFee: string; data: GraphQLClient.Any; } interface Evidence { hash: string; } interface EvidenceState { hash: string; data: string; context: GraphQLClient.StateContext; } interface ExchangeInfo { value: string; assets: string[]; } interface ExchangeInfoV2 { value: string; assets: string[]; tokens: GraphQLClient.TokenInput[]; } interface ExchangeTx { to: string; sender: GraphQLClient.ExchangeInfo; receiver: GraphQLClient.ExchangeInfo; expiredAt: string; data: GraphQLClient.Any; } interface ExchangeV2Tx { to: string; sender: GraphQLClient.ExchangeInfoV2; receiver: GraphQLClient.ExchangeInfoV2; expiredAt: string; data: GraphQLClient.Any; } interface ForeignToken { type: string; contractAddress: string; chainType: string; chainName: string; chainId: number; } interface ForgeState { address: string; consensus: GraphQLClient.ConsensusParams; tasks: GraphQLClient.ForgeState_TasksEntry[]; version: string; token: GraphQLClient.ForgeToken; txConfig: GraphQLClient.TransactionConfig; upgradeInfo: GraphQLClient.UpgradeInfo; accountConfig: GraphQLClient.AccountConfig[]; vaults: GraphQLClient.VaultConfig; reservedSymbols: string[]; data: GraphQLClient.Any; } interface ForgeState_TasksEntry { key: number; value: GraphQLClient.UpgradeTasks; } interface ForgeStats { numBlocks: string[]; numTxs: string[]; numStakes: string[]; numValidators: number[]; numAccountMigrateTxs: string[]; numCreateAssetTxs: string[]; numConsensusUpgradeTxs: number[]; numDeclareTxs: string[]; numDeclareFileTxs: string[]; numExchangeTxs: string[]; numStakeTxs: string[]; numSysUpgradeTxs: number[]; numTransferTxs: string[]; numUpdateAssetTxs: string[]; numConsumeAssetTxs: string[]; tps: number[]; maxTps: number; avgTps: number; avgBlockTime: number; } interface ForgeToken { name: string; symbol: string; unit: string; description: string; icon: string; decimal: number; initialSupply: string; totalSupply: string; inflationRate: number; address: string; } interface GasEstimate { max: string; } interface GeoInfo { city: string; country: string; latitude: number; longitude: number; } interface IndexedAccountState { address: string; balance: string; numAssets: string; numTxs: string; nonce: string; genesisTime: string; renaissanceTime: string; moniker: string; migratedFrom: string; migratedTo: string; totalReceivedStakes: string; totalStakes: string; totalUnstakes: string; recentNumTxs: string[]; tokens: GraphQLClient.TokenMeta[]; } interface IndexedAssetState { address: string; owner: string; genesisTime: string; renaissanceTime: string; moniker: string; readonly: boolean; consumedTime: string; issuer: string; parent: string; transferrable: boolean; ttl: string; display: GraphQLClient.NFTDisplay; endpoint: GraphQLClient.NFTEndpoint; tags: string[]; data: GraphQLClient.Any; } interface IndexedBlock { height: string; time: string; proposer: string; numTxs: string; numInvalidTxs: string; } interface IndexedDelegationState { address: string; from: string; to: string; genesisTime: string; renaissanceTime: string; ops: GraphQLClient.IndexedDelegationState_OpsEntry[]; data: GraphQLClient.Any; } interface IndexedDelegationState_OpsEntry { key: string; value: GraphQLClient.DelegateOpState; } interface IndexedFactoryInput { value: string; tokens: GraphQLClient.IndexedTokenInput[]; assets: string[]; variables: GraphQLClient.VariableInput[]; } interface IndexedFactoryState { address: string; owner: string; name: string; description: string; settlement: string; limit: string; trustedIssuers: string[]; input: GraphQLClient.IndexedFactoryInput; output: GraphQLClient.CreateAssetTx; hooks: GraphQLClient.AssetFactoryHook[]; data: GraphQLClient.Any; balance: string; tokens: GraphQLClient.TokenMeta[]; numMinted: number; lastSettlement: string; genesisTime: string; renaissanceTime: string; display: GraphQLClient.NFTDisplay; } interface IndexedRollupBlock { hash: string; height: number; merkleRoot: string; previousHash: string; txsHash: string; txs: string[]; proposer: string; signatures: GraphQLClient.Multisig[]; genesisTime: string; renaissanceTime: string; rollup: string; mintedAmount: string; burnedAmount: string; rewardAmount: string; governance: boolean; tokenInfo: GraphQLClient.IndexedTokenInput; data: GraphQLClient.Any; } interface IndexedRollupState { address: string; tokenAddress: string; vaultAddress: string; contractAddress: string; seedValidators: GraphQLClient.RollupValidator[]; validators: GraphQLClient.RollupValidator[]; minStakeAmount: string; maxStakeAmount: string; minSignerCount: number; maxSignerCount: number; minBlockSize: number; maxBlockSize: number; minBlockInterval: number; genesisTime: string; renaissanceTime: string; tokenInfo: GraphQLClient.IndexedTokenInput; issuer: string; depositFeeRate: number; withdrawFeeRate: number; proposerFeeShare: number; minDepositAmount: string; minWithdrawAmount: string; blockHeight: number; blockHash: string; minBlockConfirmation: number; totalDepositAmount: string; totalWithdrawAmount: string; maxDepositAmount: string; maxWithdrawAmount: string; minDepositFee: string; maxDepositFee: string; minWithdrawFee: string; maxWithdrawFee: string; paused: boolean; foreignToken: GraphQLClient.ForeignToken; leaveWaitingPeriod: number; publisherFeeShare: number; publishWaitingPeriod: number; publishSlashRate: number; migrateHistory: string[]; closed: boolean; vaultHistory: string[]; data: GraphQLClient.Any; } interface IndexedRollupValidator { pk: string; address: string; moniker: string; endpoint: string; joinTime: string; leaveTime: string; genesisTime: string; renaissanceTime: string; totalStake: string; revokedStake: string; availableStake: string; totalGain: string; proposedBlockCount: number; verifiedBlockCount: number; latestBlockHeight: number; latestBlockHash: string; rollup: string; } interface IndexedStakeState { address: string; sender: string; receiver: string; tokens: GraphQLClient.TokenMeta[]; assets: string[]; revocable: boolean; genesisTime: string; renaissanceTime: string; message: string; revokeWaitingPeriod: number; revokedTokens: GraphQLClient.TokenMeta[]; revokedAssets: string[]; slashers: string[]; nonce: string; data: GraphQLClient.Any; } interface IndexedTokenFactoryState { address: string; owner: string; tokenAddress: string; reserveAddress: string; curve: GraphQLClient.CurveConfig; feeRate: number; currentSupply: string; reserveBalance: string; status: string; genesisTime: string; renaissanceTime: string; token: GraphQLClient.IndexedTokenInput; reserveToken: GraphQLClient.IndexedTokenInput; data: GraphQLClient.Any; } interface IndexedTokenFlow { value: string; hash: string; from: string; to: string; } interface IndexedTokenInput { address: string; value: string; decimal: number; unit: string; symbol: string; } interface IndexedTokenState { name: string; description: string; symbol: string; unit: string; decimal: number; issuer: string; icon: string; totalSupply: string; address: string; genesisTime: string; renaissanceTime: string; foreignToken: GraphQLClient.ForeignToken; tokenFactoryAddress: string; maxTotalSupply: string; initialSupply: string; metadata: GraphQLClient.Any; website: string; spenders: string[]; minters: string[]; type: string; data: GraphQLClient.Any; } interface IndexedTransaction { hash: string; sender: string; receiver: string; time: string; type: string; tx: GraphQLClient.Transaction; valid: boolean; code: string; tokenSymbols: GraphQLClient.TokenMeta[]; receipts: GraphQLClient.TransactionReceipt[]; } interface JoinRollupTx { rollup: string; endpoint: string; evidence: GraphQLClient.Evidence; signatures: GraphQLClient.Multisig[]; data: GraphQLClient.Any; } interface KVPair { key: string; value: string; } interface LeaveRollupTx { rollup: string; evidence: GraphQLClient.Evidence; signatures: GraphQLClient.Multisig[]; data: GraphQLClient.Any; } interface MigrateRollupTx { rollup: string; to: string; type: string; message: string; data: GraphQLClient.Any; } interface MintAssetTx { factory: string; address: string; assets: string[]; variables: GraphQLClient.VariableInput[]; owner: string; data: GraphQLClient.Any; } interface MintTokenTx { tokenFactory: string; amount: string; inputs: GraphQLClient.TransactionInput[]; receiver: string; data: GraphQLClient.Any; } interface Multisig { signer: string; pk: string; signature: string; delegator: string; data: GraphQLClient.Any; } interface NFTDisplay { type: string; content: string; } interface NFTEndpoint { id: string; scope: string; } interface NFTIssuer { id: string; pk: string; name: string; } interface NetInfo { listening: boolean; listeners: string[]; nPeers: number; peers: GraphQLClient.PeerInfo[]; } interface NodeInfo { id: string; network: string; moniker: string; consensusVersion: string; synced: boolean; appHash: string; blockHash: string; blockHeight: string; blockTime: string; address: string; votingPower: string; totalTxs: string; version: string; forgeAppsVersion: GraphQLClient.NodeInfo_ForgeAppsVersionEntry[]; supportedTxs: string[]; ip: string; geoInfo: GraphQLClient.GeoInfo; p2pAddress: string; } interface NodeInfo_ForgeAppsVersionEntry { key: string; value: string; } interface PageInfo { cursor: string; next: boolean; total: number; } interface PartSetHeader { total: number; hash: string; } interface PauseRollupTx { rollup: string; data: GraphQLClient.Any; } interface PeerInfo { id: string; network: string; consensusVersion: string; moniker: string; ip: string; geoInfo: GraphQLClient.GeoInfo; } interface PubKey { type: string; data: string; } interface RateLimit { interval: number; anchor: number; } interface ReceiptChange { target: string; action: string; value: string; } interface ResponseEstimateGas { code: string; estimate: GraphQLClient.GasEstimate; } interface ResponseGetAccountState { code: string; state: GraphQLClient.AccountState; } interface ResponseGetAccountTokens { code: string; tokens: GraphQLClient.AccountToken[]; } interface ResponseGetAssetState { code: string; state: GraphQLClient.AssetState; } interface ResponseGetBlock { code: string; block: GraphQLClient.BlockInfo; } interface ResponseGetBlocks { code: string; page: GraphQLClient.PageInfo; blocks: GraphQLClient.BlockInfoSimple[]; } interface ResponseGetChainInfo { code: string; info: GraphQLClient.ChainInfo; } interface ResponseGetConfig { code: string; config: string; } interface ResponseGetDelegateState { code: string; state: GraphQLClient.DelegateState; } interface ResponseGetEvidenceState { code: string; state: GraphQLClient.EvidenceState; } interface ResponseGetFactoryState { code: string; state: GraphQLClient.AssetFactoryState; } interface ResponseGetForgeState { code: string; state: GraphQLClient.ForgeState; } interface ResponseGetForgeStats { code: string; forgeStats: GraphQLClient.ForgeStats; } interface ResponseGetNetInfo { code: string; netInfo: GraphQLClient.NetInfo; } interface ResponseGetNodeInfo { code: string; info: GraphQLClient.NodeInfo; } interface ResponseGetRollupBlock { code: string; block: GraphQLClient.RollupBlock; } interface ResponseGetRollupState { code: string; state: GraphQLClient.RollupState; } interface ResponseGetStakeState { code: string; state: GraphQLClient.StakeState; } interface ResponseGetTokenDistribution { code: string; data: GraphQLClient.TokenDistribution; } interface ResponseGetTokenFactoryState { code: string; state: GraphQLClient.TokenFactoryState; } interface ResponseGetTokenState { code: string; state: GraphQLClient.TokenState; } interface ResponseGetTx { code: string; info: GraphQLClient.TransactionInfo; } interface ResponseGetUnconfirmedTxs { code: string; page: GraphQLClient.PageInfo; unconfirmedTxs: GraphQLClient.UnconfirmedTxs; } interface ResponseGetValidatorsInfo { code: string; validatorsInfo: GraphQLClient.ValidatorsInfo; } interface ResponseListAssetTransactions { code: string; page: GraphQLClient.PageInfo; transactions: GraphQLClient.IndexedTransaction[]; } interface ResponseListAssets { code: string; page: GraphQLClient.PageInfo; assets: GraphQLClient.IndexedAssetState[]; } interface ResponseListBlocks { code: string; page: GraphQLClient.PageInfo; blocks: GraphQLClient.IndexedBlock[]; } interface ResponseListDelegations { code: string; page: GraphQLClient.PageInfo; delegations: GraphQLClient.IndexedDelegationState[]; } interface ResponseListFactories { code: string; page: GraphQLClient.PageInfo; factories: GraphQLClient.IndexedFactoryState[]; } interface ResponseListRollupBlocks { code: string; page: GraphQLClient.PageInfo; blocks: GraphQLClient.IndexedRollupBlock[]; } interface ResponseListRollupValidators { code: string; page: GraphQLClient.PageInfo; validators: GraphQLClient.IndexedRollupValidator[]; } interface ResponseListRollups { code: string; page: GraphQLClient.PageInfo; rollups: GraphQLClient.IndexedRollupState[]; } interface ResponseListStakes { code: string; page: GraphQLClient.PageInfo; stakes: GraphQLClient.IndexedStakeState[]; } interface ResponseListTokenFactories { code: string; page: GraphQLClient.PageInfo; tokenFactories: GraphQLClient.IndexedTokenFactoryState[]; } interface ResponseListTokenFlows { code: string; page: GraphQLClient.PageInfo; data: GraphQLClient.IndexedTokenFlow[]; } interface ResponseListTokens { code: string; page: GraphQLClient.PageInfo; tokens: GraphQLClient.IndexedTokenState[]; } interface ResponseListTopAccounts { code: string; page: GraphQLClient.PageInfo; accounts: GraphQLClient.IndexedAccountState[]; } interface ResponseListTransactions { code: string; page: GraphQLClient.PageInfo; transactions: GraphQLClient.IndexedTransaction[]; } interface ResponseSearch { code: string; page: GraphQLClient.PageInfo; results: GraphQLClient.SearchResult[]; } interface ResponseSendTx { code: string; hash: string; } interface ResponseVerifyAccountRisk { code: string; data: GraphQLClient.VerifyAccountRiskResult; } interface ResumeRollupTx { rollup: string; data: GraphQLClient.Any; } interface ReturnStakeTx { address: string; outputs: GraphQLClient.TransactionInput[]; message: string; data: GraphQLClient.Any; } interface RevokeDelegateTx { address: string; to: string; typeUrls: string[]; data: GraphQLClient.Any; } interface RevokeStakeTx { address: string; outputs: GraphQLClient.TransactionInput[]; data: GraphQLClient.Any; } interface RollupBlock { hash: string; height: number; merkleRoot: string; previousHash: string; txsHash: string; txs: string[]; proposer: string; signatures: GraphQLClient.Multisig[]; rollup: string; mintedAmount: string; burnedAmount: string; rewardAmount: string; minReward: string; governance: boolean; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface RollupState { address: string; tokenAddress: string; vaultAddress: string; contractAddress: string; seedValidators: GraphQLClient.RollupValidator[]; validators: GraphQLClient.RollupValidator[]; minStakeAmount: string; maxStakeAmount: string; minSignerCount: number; maxSignerCount: number; minBlockSize: number; maxBlockSize: number; minBlockInterval: number; minBlockConfirmation: number; issuer: string; depositFeeRate: number; withdrawFeeRate: number; proposerFeeShare: number; publisherFeeShare: number; minDepositAmount: string; minWithdrawAmount: string; blockHeight: number; blockHash: string; tokenInfo: GraphQLClient.IndexedTokenInput; totalDepositAmount: string; totalWithdrawAmount: string; maxDepositAmount: string; maxWithdrawAmount: string; minDepositFee: string; maxDepositFee: string; minWithdrawFee: string; maxWithdrawFee: string; paused: boolean; foreignToken: GraphQLClient.ForeignToken; leaveWaitingPeriod: number; publishWaitingPeriod: number; publishSlashRate: number; migrateHistory: string[]; closed: boolean; vaultHistory: string[]; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface RollupValidator { pk: string; address: string; endpoint: string; } interface SearchResult { type: string; id: string; title: string; subtitle: string; description: string; tags: string[]; timestamp: string; } interface SlashStakeTx { address: string; outputs: GraphQLClient.TransactionInput[]; message: string; data: GraphQLClient.Any; } interface StakeState { address: string; sender: string; receiver: string; tokens: GraphQLClient.IndexedTokenInput[]; assets: string[]; revocable: boolean; message: string; revokeWaitingPeriod: number; revokedTokens: GraphQLClient.IndexedTokenInput[]; revokedAssets: string[]; slashers: string[]; nonce: string; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface StakeTx { address: string; receiver: string; inputs: GraphQLClient.TransactionInput[]; locked: boolean; message: string; revokeWaitingPeriod: number; slashers: string[]; nonce: string; data: GraphQLClient.Any; } interface StateContext { genesisTx: GraphQLClient.TransactionInfo; renaissanceTx: GraphQLClient.TransactionInfo; genesisTime: string; renaissanceTime: string; } interface TokenDistribution { tokenAddress: string; txTime: string; account: string; gas: string; fee: string; slashedVault: string; stake: string; revokedStake: string; gasStake: string; } interface TokenFactoryState { address: string; owner: string; tokenAddress: string; reserveAddress: string; curve: GraphQLClient.CurveConfig; currentSupply: string; reserveBalance: string; feeRate: number; status: string; token: GraphQLClient.TokenState; reserveToken: GraphQLClient.TokenState; context: GraphQLClient.StateContext; data: GraphQLClient.Any; } interface TokenInfo { address: string; symbol: string; decimal: number; unit: string; name: string; description: string; icon: string; maxTotalSupply: string; metadata: GraphQLClient.Any; website: string; spenders: string[]; minters: string[]; type: string; } interface TokenInput { address: string; value: string; } interface TokenLimit { address: string; to: string[]; txCount: number; txAllowance: string; totalAllowance: string; validUntil: number; rate: GraphQLClient.RateLimit; txSent: number; spentAllowance: string; lastTx: number; decimal: number; symbol: string; } interface TokenMeta { address: string; balance: string; decimal: number; unit: string; symbol: string; } interface TokenState { address: string; issuer: string; name: string; description: string; symbol: string; unit: string; decimal: number; icon: string; totalSupply: string; foreignToken: GraphQLClient.ForeignToken; tokenFactoryAddress: string; initialSupply: string; maxTotalSupply: string; metadata: GraphQLClient.Any; context: GraphQLClient.StateContext; website: string; spenders: string[]; minters: string[]; type: string; data: GraphQLClient.Any; } interface TokenSymbol { address: string; symbol: string; decimal: number; unit: string; } interface Transaction { from: string; delegator: string; nonce: string; chainId: string; pk: string; signature: string; signatures: GraphQLClient.Multisig[]; itxJson: any; sender: string; receiver: string; serviceFee: string; gasFee: string; gasPaid: string; } interface TransactionConfig { maxAssetSize: number; maxListSize: number; maxMultisig: number; delegate: GraphQLClient.DelegateConfig; txFee: GraphQLClient.TxFeeConfig[]; txGas: GraphQLClient.TxGasConfig; txStake: GraphQLClient.TxStakeConfig; } interface TransactionInfo { tx: GraphQLClient.Transaction; height: string; index: number; hash: string; tags: GraphQLClient.KVPair[]; code: string; time: string; receipts: GraphQLClient.TransactionReceipt[]; sender: string; receiver: string; tokenSymbols: GraphQLClient.TokenSymbol[]; } interface TransactionInput { owner: string; tokens: GraphQLClient.TokenInput[]; assets: string[]; } interface TransactionReceipt { address: string; changes: GraphQLClient.ReceiptChange[]; } interface TransferTx { to: string; value: string; assets: string[]; data: GraphQLClient.Any; } interface TransferV2Tx { to: string; value: string; assets: string[]; tokens: GraphQLClient.TokenInput[]; data: GraphQLClient.Any; } interface TransferV3Tx { inputs: GraphQLClient.TransactionInput[]; outputs: GraphQLClient.TransactionInput[]; data: GraphQLClient.Any; } interface TxFeeConfig { typeUrl: string; fee: string; } interface TxGasConfig { price: number; createState: number; updateState: number; dataStorage: number; minStake: string; maxStake: string; stakeLockPeriod: number; } interface TxStakeConfig { createToken: string; createCreditToken: string; createTokenLockPeriod: number; } interface UnconfirmedTxs { nTxs: number; txs: GraphQLClient.Transaction[]; } interface UpdateAssetTx { address: string; moniker: string; consumed: boolean; data: GraphQLClient.Any; } interface UpdateRollupTx { minStakeAmount: string; maxStakeAmount: string; minSignerCount: number; maxSignerCount: number; minBlockSize: number; maxBlockSize: number; minBlockInterval: number; minBlockConfirmation: number; depositFeeRate: number; withdrawFeeRate: number; proposerFeeShare: number; minDepositAmount: string; minWithdrawAmount: string; maxDepositAmount: string; maxWithdrawAmount: string; minDepositFee: string; maxDepositFee: string; minWithdrawFee: string; maxWithdrawFee: string; publisherFeeShare: number; leaveWaitingPeriod: number; publishWaitingPeriod: number; publishSlashRate: number; rollup: string; data: GraphQLClient.Any; } interface UpdateTokenFactoryTx { address: string; feeRate: number; token: GraphQLClient.TokenInfo; data: GraphQLClient.Any; } interface UpgradeInfo { height: string; version: string; } interface UpgradeNodeTx { height: number; version: string; override: boolean; } interface UpgradeTask { type: GraphQLClient.UpgradeType; dataHash: string; actions: GraphQLClient.UpgradeAction[]; } interface UpgradeTasks { item: GraphQLClient.UpgradeTask[]; } interface Validator { address: string; power: string; } interface ValidatorInfo { address: string; pubKey: GraphQLClient.PubKey; votingPower: string; proposerPriority: string; name: string; geoInfo: GraphQLClient.GeoInfo; } interface ValidatorsInfo { blockHeight: string; validators: GraphQLClient.ValidatorInfo[]; } interface VariableInput { name: string; value: string; description: string; required: boolean; } interface VaultConfig { slashedStake: string; txFee: string; txGas: string[]; } interface VerifyAccountRiskResult { isRisky: boolean; reason: string; data: GraphQLClient.VerifyAccountRiskResult_BalanceRisky; } interface VerifyAccountRiskResult_BalanceRisky { address: string; balance: string; transferIn: string; transferOut: string; accountCount: number; txCount: number; } interface Version { block: number; app: number; } interface WalletType { pk: GraphQLClient.KeyType; hash: GraphQLClient.HashType; address: GraphQLClient.EncodingType; role: GraphQLClient.RoleType; } interface WithdrawTokenV2Tx { token: GraphQLClient.TokenInput; to: string; rollup: string; proposer: string; maxFee: string; actualFee: string; data: GraphQLClient.Any; } interface GetAccountStateParams { address: string; height: string; keys: string[]; traceMigration: boolean; } interface GetAssetStateParams { address: string; height: string; keys: string[]; } interface GetFactoryStateParams { address: string; } interface GetDelegateStateParams { address: string; height: string; keys: string[]; } interface GetTokenStateParams { address: string; } interface GetEvidenceStateParams { hash: string; } interface GetForgeStateParams { height: string; keys: string[]; } interface GetTokenFactoryStateParams { address: string; } interface GetTxParams { hash: string; } interface GetBlockParams { height: string; } interface GetBlocksParams { emptyExcluded: boolean; heightFilter: GraphQLClient.RangeFilterInput; paging: GraphQLClient.PageInput; } interface GetUnconfirmedTxsParams { paging: GraphQLClient.PageInput; } interface GetConfigParams { parsed: boolean; } interface ListAssetTransactionsParams { address: string; paging: GraphQLClient.PageInput; } interface ListAssetsParams { ownerAddress: string; paging: GraphQLClient.PageInput; factoryAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface ListBlocksParams { heightFilter: GraphQLClient.RangeFilterInput; numInvalidTxsFilter: GraphQLClient.RangeFilterInput; numTxsFilter: GraphQLClient.RangeFilterInput; paging: GraphQLClient.PageInput; proposer: string; timeFilter: GraphQLClient.TimeFilterInput; } interface ListTopAccountsParams { paging: GraphQLClient.PageInput; tokenAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface ListTransactionsParams { addressFilter: GraphQLClient.AddressFilterInput; paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; typeFilter: GraphQLClient.TypeFilterInput; validityFilter: GraphQLClient.ValidityFilterInput; factoryFilter: GraphQLClient.FactoryFilterInput; tokenFilter: GraphQLClient.TokenFilterInput; assetFilter: GraphQLClient.AssetFilterInput; accountFilter: GraphQLClient.AccountFilterInput; txFilter: GraphQLClient.TxFilterInput; rollupFilter: GraphQLClient.RollupFilterInput; stakeFilter: GraphQLClient.StakeFilterInput; delegationFilter: GraphQLClient.DelegationFilterInput; tokenFactoryFilter: GraphQLClient.TokenFactoryFilterInput; includeItxData: boolean; } interface ListTokensParams { issuerAddress: string; paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; } interface ListFactoriesParams { ownerAddress: string; addressList: string[]; paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; } interface GetAccountTokensParams { address: string; token: string; } interface GetStakeStateParams { address: string; height: string; keys: string[]; } interface ListStakesParams { addressFilter: GraphQLClient.AddressFilterInput; assetFilter: GraphQLClient.AssetFilterInput; timeFilter: GraphQLClient.TimeFilterInput; paging: GraphQLClient.PageInput; } interface GetRollupStateParams { address: string; height: string; keys: string[]; } interface ListRollupsParams { paging: GraphQLClient.PageInput; tokenAddress: string; erc20TokenAddress: string; foreignTokenAddress: string; timeFilter: GraphQLClient.TimeFilterInput; } interface GetRollupBlockParams { hash: string; height: string; rollupAddress: string; } interface ListRollupBlocksParams { paging: GraphQLClient.PageInput; rollupAddress: string; tokenAddress: string; proposer: string; validatorFilter: GraphQLClient.ValidatorFilterInput; txFilter: GraphQLClient.TxFilterInput; timeFilter: GraphQLClient.TimeFilterInput; } interface ListRollupValidatorsParams { paging: GraphQLClient.PageInput; rollupAddress: string; } interface ListDelegationsParams { from: string; to: string; paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; } interface SearchParams { paging: GraphQLClient.PageInput; keyword: string; } interface EstimateGasParams { typeUrl: string; tx: string; } interface ListTokenFlowsParams { accountAddress: string; tokenAddress: string; paging: GraphQLClient.PageInput; depth: number; direction: GraphQLClient.TokenFlowDirection; } interface VerifyAccountRiskParams { accountAddress: string; tokenAddress: string; } interface GetTokenDistributionParams { tokenAddress: string; } interface ListTokenFactoriesParams { tokenAddress: string; reserveAddress: string; owner: string; paging: GraphQLClient.PageInput; timeFilter: GraphQLClient.TimeFilterInput; } interface SendTxParams { commit: boolean; token: string; tx: string; wallet: string; extra: string; } }