import { ABI } from "../chain/abi.js"; import { Asset } from "../chain/asset.js"; import { Blob } from "../chain/blob.js"; import { BlockId } from "../chain/block-id.js"; import { Bytes } from "../chain/bytes.js"; import { Checksum160, Checksum256 } from "../chain/checksum.js"; import { Float128, Float64 } from "../chain/float.js"; import { Int32, Int64, UInt128, UInt16, UInt32, UInt32Type, UInt64 } from "../chain/integer.js"; import { Name, NameType } from "../chain/name.js"; import { PublicKey, PublicKeyType } from "../chain/public-key.js"; import { Signature } from "../chain/signature.js"; import { Struct } from "../chain/struct.js"; import { BlockTimestamp, TimePoint } from "../chain/time.js"; import { Transaction, TransactionHeader, TransactionReceipt } from "../chain/transaction.js"; import { ABISerializableObject, ABISerializableType } from "../serializer/serializable.js"; import { PermissionLevel } from "../chain/permission-level.js"; import { AnyAction } from "../chain/action.js"; import { Authority, KeyWeight, Weight } from "../chain/authority.js"; export declare class AccountLinkedAction extends Struct { account: Name; action: Name; } export declare class AccountPermission extends Struct { perm_name: Name; parent: Name; required_auth: Authority; linked_actions: AccountLinkedAction[]; } export declare class AccountResourceLimit extends Struct { used: Int64; available: Int64; max: Int64; last_usage_update_time: TimePoint; current_used: Int64; } export declare class AccountTotalResources extends Struct { owner: Name; net_weight: Asset; cpu_weight: Asset; ram_bytes: UInt64; } export declare class AccountSelfDelegatedBandwidth extends Struct { from: Name; to: Name; net_weight: Asset; cpu_weight: Asset; } export declare class AccountRefundRequest extends Struct { owner: Name; request_time: TimePoint; net_amount: Asset; cpu_amount: Asset; } export declare class AccountVoterInfo extends Struct { owner: Name; proxy: Name; producers: Name[]; staked?: Int64; last_vote_weight: Float64; proxied_vote_weight: Float64; is_proxy: boolean; flags1?: UInt32; reserved2: UInt32; reserved3: string; } export declare class AccountRexInfoMaturities extends Struct { key?: TimePoint; value?: Int64; first?: TimePoint; second?: Int64; } export declare class AccountRexInfo extends Struct { version: UInt32; owner: Name; vote_stake: Asset; rex_balance: Asset; matured_rex: Int64; rex_maturities: AccountRexInfoMaturities[]; } export interface GetAbiResponse { account_name: string; abi?: ABI.Def; } export declare class GetRawAbiResponse extends Struct { account_name: Name; code_hash: Checksum256; abi_hash: Checksum256; abi: Blob; } export declare class AccountObject extends Struct { account_name: Name; head_block_num: UInt32; head_block_time: TimePoint; privileged: boolean; last_code_update: TimePoint; created: TimePoint; core_liquid_balance?: Asset; ram_quota: Int64; net_weight: Int64; cpu_weight: Int64; net_limit: AccountResourceLimit; cpu_limit: AccountResourceLimit; subjective_cpu_bill_limit: AccountResourceLimit; ram_usage: UInt64; permissions: AccountPermission[]; total_resources: AccountTotalResources; self_delegated_bandwidth?: AccountSelfDelegatedBandwidth; refund_request?: AccountRefundRequest; voter_info?: AccountVoterInfo; rex_info?: AccountRexInfo; getPermission(permission: NameType): AccountPermission; } export declare class AccountByAuthorizersRow extends Struct { account_name: Name; permission_name: Name; authorizing_key: PublicKey; authorizing_account: PermissionLevel; weight: Weight; threshold: UInt32; } export declare class AccountsByAuthorizers extends Struct { accounts: AccountByAuthorizersRow[]; } export declare class NewProducersEntry extends Struct { producer_name: Name; block_signing_key: PublicKey; } export declare class NewProducers extends Struct { version: UInt32; producers: NewProducersEntry; } export declare class BlockExtension extends Struct { type: UInt16; data: Bytes; } export declare class HeaderExtension extends Struct { type: UInt16; data: Bytes; } export declare class TrxVariant implements ABISerializableObject { readonly id: Checksum256; readonly extra: Record; static abiName: string; static from(data: any): TrxVariant; constructor(id: Checksum256, extra: Record); get transaction(): Transaction | undefined; get signatures(): Signature[] | undefined; equals(other: any): boolean; toJSON(): Checksum256; } export declare class GetBlockResponseTransactionReceipt extends TransactionReceipt { trx: TrxVariant; get id(): Checksum256; } export declare class GetBlockResponse extends Struct { timestamp: TimePoint; producer: Name; confirmed: UInt16; previous: BlockId; transaction_mroot: Checksum256; action_mroot: Checksum256; schedule_version: UInt32; new_producers?: NewProducers; header_extensions?: any[]; new_protocol_features?: any; producer_signature: Signature; transactions: GetBlockResponseTransactionReceipt[]; block_extensions: BlockExtension[]; id: BlockId; block_num: UInt32; ref_block_prefix: UInt32; } export declare class GetBlockInfoResponse extends Struct { block_num: UInt32; ref_block_num: UInt16; id: BlockId; timestamp: TimePoint; producer: Name; confirmed: UInt16; previous: BlockId; transaction_mroot: Checksum256; action_mroot: Checksum256; schedule_version: UInt32; producer_signature: Signature; ref_block_prefix: UInt32; } export declare class ActiveScheduleProducerAuthority extends Struct { producer_name: Name; authority: any; } export declare class ActiveScheduleProducer extends Struct { producer_name: Name; authority: ActiveScheduleProducerAuthority; } export declare class ActiveSchedule extends Struct { version: UInt32; producers: ActiveScheduleProducer[]; } export declare class BlockStateHeader extends Struct { timestamp: TimePoint; producer: Name; confirmed: UInt16; previous: BlockId; transaction_mroot: Checksum256; action_mroot: Checksum256; schedule_version: UInt32; header_extensions?: any[]; producer_signature: Signature; } export declare class GetBlockHeaderStateResponse extends Struct { block_num: UInt32; dpos_proposed_irreversible_blocknum: UInt32; dpos_irreversible_blocknum: UInt32; id: BlockId; header: BlockStateHeader; active_schedule: any; blockroot_merkle: any; producer_to_last_produced: any; producer_to_last_implied_irb: any; valid_block_signing_authority: any; confirm_count: any; pending_schedule: any; activated_protocol_features?: any; additional_signatures: any; } export declare class GetInfoResponse extends Struct { server_version: string; chain_id: Checksum256; head_block_num: UInt32; last_irreversible_block_num: UInt32; last_irreversible_block_id: BlockId; head_block_id: BlockId; head_block_time: TimePoint; head_block_producer: Name; virtual_block_cpu_limit: UInt64; virtual_block_net_limit: UInt64; block_cpu_limit: UInt64; block_net_limit: UInt64; server_version_string?: string; fork_db_head_block_num?: UInt32; fork_db_head_block_id?: BlockId; getTransactionHeader(secondsAhead?: number): TransactionHeader; } export interface PushTransactionResponse { transaction_id: string; processed: { id: string; block_num: number; block_time: string; receipt: { status: string; cpu_usage_us: number; net_usage_words: number; }; elapsed: number; net_usage: number; scheduled: boolean; action_traces: any[]; account_ram_delta: any; }; } export interface SendTransactionResponseExceptionStack { context: { level: string; file: string; line: number; method: string; hostname: string; thread_name: string; timestamp: string; }; format: string; data: any; } export interface SendTransactionResponseException { code: number; name: string; message: string; stack: SendTransactionResponseExceptionStack[]; } export interface SendTransactionResponse { transaction_id: string; processed: { id: string; block_num: number; block_time: string; receipt: { status: string; cpu_usage_us: number; net_usage_words: number; }; elapsed: number; except?: SendTransactionResponseException; net_usage: number; scheduled: boolean; action_traces: any[]; account_ram_delta: any; }; } export interface SendTransaction2Options { return_failure_trace?: boolean; retry_trx?: boolean; retry_trx_num_blocks?: number; } export interface SendTransaction2Response { transaction_id: string; processed: { id: string; block_num: number; block_time: string; receipt: { status: string; cpu_usage_us: number; net_usage_words: number; }; elapsed: number; net_usage: number; scheduled: boolean; action_traces: any[]; account_ram_delta: any; }; } export interface TableIndexTypes { float128: Float128; float64: Float64; i128: UInt128; i64: UInt64; name: Name; ripemd160: Checksum160; sha256: Checksum256; } export type TableIndexType = Name | UInt64 | UInt128 | Float64 | Checksum256 | Checksum160; export interface GetTableRowsParams { code: NameType; table: NameType; scope?: string | TableIndexType; lower_bound?: Index; upper_bound?: Index; limit?: UInt32Type; reverse?: boolean; index_position?: 'primary' | 'secondary' | 'tertiary' | 'fourth' | 'fifth' | 'sixth' | 'seventh' | 'eighth' | 'ninth' | 'tenth'; json?: boolean; show_payer?: boolean; } export interface GetTableRowsParamsKeyed extends GetTableRowsParams { key_type: Key; } export interface GetTableRowsParamsTyped extends GetTableRowsParams { type: Row; } export interface GetTableRowsResponse { rows: Row[]; more: boolean; ram_payers?: Name[]; next_key?: Index; } export interface GetTableByScopeParams { code: NameType; table?: NameType; lower_bound?: string; upper_bound?: string; limit?: UInt32Type; reverse?: boolean; } export declare class GetTableByScopeResponseRow extends Struct { code: Name; scope: Name; table: Name; payer: Name; count: UInt32; } export declare class GetTableByScopeResponse extends Struct { rows: GetTableByScopeResponseRow[]; more: string; } export declare class OrderedActionsResult extends Struct { global_action_seq: UInt64; account_action_seq: Int64; block_num: UInt32; block_time: BlockTimestamp; action_trace?: any; irrevirsible?: boolean; } export declare class GetActionsResponse extends Struct { actions: OrderedActionsResult[]; last_irreversible_block: Int32; head_block_num: Int32; time_limit_exceeded_error?: boolean; } export declare class TransactionTrace extends Struct { } export declare class Trx extends Struct { actions: AnyAction[]; context_free_actions: AnyAction[]; context_free_data: any[]; delay_sec: number; expiration: string; max_cpu_usage_ms: number; max_net_usage_words: number; ref_block_num: number; ref_block_prefix: number; signatures: string[]; } export declare class TransactionInfo extends Struct { receipt: TransactionReceipt; trx: Trx; } export declare class GetTransactionResponse extends Struct { id: Checksum256; block_num: UInt32; block_time: BlockTimestamp; last_irreversible_block: UInt32; traces?: TransactionTrace[]; trx: TransactionInfo; } export declare class GetKeyAccountsResponse extends Struct { account_names: Name[]; } export declare class GetCodeResponse extends Struct { abi: ABI.Def; account_name: Name; code_hash: Checksum256; wast: string; wasm: string; } export declare class GetControlledAccountsResponse extends Struct { controlled_accounts: Name[]; } export interface GetCurrencyStatsResponse { [key: string]: GetCurrencyStatsItemResponse; } export declare class GetCurrencyStatsItemResponse extends Struct { supply: Asset; max_supply: Asset; issuer: Name; } export declare class GetTransactionStatusResponse extends Struct { state: string; head_number: UInt32; head_id: BlockId; head_timestamp: TimePoint; irreversible_number: UInt32; irreversible_id: BlockId; irreversible_timestamp: TimePoint; earliest_tracked_block_id: BlockId; earliest_tracked_block_number: UInt32; } export declare class ProducerAuthority extends Struct { threshold: UInt32; keys: KeyWeight[]; } export type ProducerEntry = [number, ProducerAuthority]; export declare class Producer extends Struct { producer_name: Name; authority: ProducerEntry; static from(data: any): Struct; } export declare class ProducerSchedule extends Struct { version: UInt32; producers: Producer[]; } export declare class GetProducerScheduleResponse extends Struct { active: ProducerSchedule; pending: ProducerSchedule; proposed: ProducerSchedule; } export declare class ProtocolFeature extends Struct { feature_digest: Checksum256; activation_ordinal: UInt32; activation_block_num: UInt32; description_digest: Checksum256; dependencies: string[]; protocol_feature_type: string; specification: any[]; } export declare class GetProtocolFeaturesResponse extends Struct { activated_protocol_features: ProtocolFeature[]; more: UInt32; } export interface GetProtocolFeaturesParams { lower_bound?: UInt32 | number; upper_bound?: UInt32 | number; limit?: UInt32Type; search_by_block_num?: boolean; reverse?: boolean; } export interface GetAccountsByAuthorizersParams { accounts?: NameType[]; keys?: PublicKeyType[]; } //# sourceMappingURL=types.d.ts.map