import BigNumberJs from 'bignumber.js'; type BigNumber = InstanceType; declare const BigNumber: typeof BigNumberJs; import { OpKind } from './opkind'; export type BalanceResponse = BigNumber; export type StorageResponse = ScriptedContracts['storage']; export type ScriptResponse = ScriptedContracts; export type BigMapGetResponse = MichelsonV1Expression; export type ManagerResponse = { manager: string; }; export type ManagerKeyResponse = string | { key: string; }; export type DelegateResponse = string | null; export type OperationHash = string; export type UnstakeRequestsResponse = { finalizable: { delegate: string; cycle: number; amount: BigNumber; }[]; unfinalizable: { delegate: string; requests: { cycle: number; amount: BigNumber; }[]; }; } | null; interface INodeExtender { length: string; segment: string; proof: string; } type OtherEltsInner = { value: any; } | { inode_extender: INodeExtender; }; export type OtherElts = { node: [string, { value: string; } | { node: string; }][]; } | { other_elts: OtherEltsInner; }; export interface Inode { length: string; proofs: [string | null, string | null]; } export interface DelegatesResponse { deactivated: boolean; is_forbidden?: boolean; participation?: { expected_cycle_activity: number; minimal_cycle_activity: number; missed_slots: number; missed_levels: number; remaining_allowed_missed_slots: number; expected_attesting_rewards: string; }; dal_participation?: { expected_assigned_shards_per_slot: number; delegate_attested_dal_slots: number; delegate_attestable_dal_slots: number; expected_dal_rewards: string; sufficient_dal_participationa: true; denounced: true; }; grace_period: number; active_staking_parameters?: StakingParameters; pending_staking_parameters?: { cycle: number; parameters: StakingParameters; }[]; baking_power?: string; total_staked?: string; total_delegated?: string; min_delegated_in_current_cycle?: MinDelegatedInCurrentCycle; own_full_balance?: string; own_staked?: string; own_delegated?: string; external_staked?: string; external_delegated?: string; total_unstaked_per_cycle?: { cycle: number; deposit: string; }[]; denunciations?: { operation_hash: string; rewarded: string; misbehaviour: { level: number; round: number; kind: 'attestation' | 'block' | 'preattestation'; }; }[]; estimated_shared_pending_slashed_amount?: string; staking_denominator?: BigNumber; current_voting_power?: BigNumber; voting_power?: BigNumber; voting_info?: VotingInfoResponse; consensus_key?: { active: { pkh: string; pk: string; }; pendings?: { cycle: number; pkh: string; pk: string; }[]; }; companion_key?: { active: { pkh: string; pk: string; } | null; pendings?: { cycle: number; pkh: string; pk: string; }[]; }; stakers?: { staker: string; frozen_deposits: string; }[]; delegators?: string[]; full_balance?: BigNumber; current_frozen_deposits?: BigNumber; frozen_deposits?: BigNumber; staking_balance?: BigNumber; delegated_contracts?: string[]; delegated_balance?: BigNumber; total_delegated_stake?: BigNumber; active_consensus_key?: string; pending_denunciations?: boolean; frozen_deposits_limit?: BigNumber; current_ballot?: BallotVote; current_proposals?: string[]; remaining_proposals?: number; pending_consensus_keys?: PendingConsensusKey[]; balance?: BigNumber; frozen_balance?: BigNumber; frozen_balance_by_cycle?: Frozenbalancebycycle[]; } export type StakingParameters = { limit_of_staking_over_baking_millionth: number; edge_of_baking_over_staking_billionth: number; }; export type MinDelegatedInCurrentCycle = { amount: string; level?: LevelInfo; }; export type PendingConsensusKey = { cycle: number; pkh: string; }; export type ConsensusPower = { slots: number; baking_power: number; }; export type VotingInfoResponse = { voting_power?: string; current_ballot?: BallotListResponseEnum; current_proposals?: string[]; remaining_proposals?: number; }; interface Frozenbalancebycycle { cycle: number; deposit?: BigNumber; deposits?: BigNumber; fees: BigNumber; rewards: BigNumber; } export type BigMapKey = { key: { [key: string]: string | object[]; }; type: { prim: string; args?: object[]; }; }; export type LiquidityBakingToggleVotes = 'on' | 'off' | 'pass'; export type AdaptiveIssuanceVote = 'on' | 'off' | 'pass'; export interface BlockFullHeader { level: number; proto: number; predecessor: string; timestamp: TimeStampMixed; validation_pass: number; operations_hash: string; fitness: string[]; context: string; payload_hash?: string; payload_round?: number; priority?: number; proof_of_work_nonce: string; seed_nonce_hash?: string; liquidity_baking_toggle_vote?: LiquidityBakingToggleVotes; liquidity_baking_escape_vote?: boolean | LiquidityBakingToggleVotes; signature: string; adaptive_issuance_vote?: AdaptiveIssuanceVote; } export type InlinedAttestationKindEnum = OpKind.ATTESTATION; export type InlinedEndorsementKindEnum = OpKind.ENDORSEMENT; export type InlinedAttestationContents = OperationContentsPreattestation | OperationContentsAttestation | OperationContentsAttestationWithDal | OperationContentsPreattestationsAggregate | OperationContentsAttestationsAggregate; export interface InlinedEndorsementContents { kind: InlinedEndorsementKindEnum; slot?: number; round?: number; block_payload_hash?: string; level: number; } export interface InlinedPreattestationContents { kind: OpKind.PREATTESTATION; slot: number; level: number; round: number; block_payload_hash: string; } export interface InlinedPreEndorsementContents { kind: OpKind.PREENDORSEMENT; slot: number; level: number; round: number; block_payload_hash: string; } export interface InlinedAttestation { branch: string; operations: InlinedAttestationContents; signature?: string; } export interface InlinedEndorsement { branch: string; operations: InlinedEndorsementContents; signature?: string; } export interface InlinedPreattestation { branch: string; operations: InlinedPreattestationContents; signature?: string; } export interface InlinedPreEndorsement { branch: string; operations: InlinedPreEndorsementContents; signature?: string; } export type BallotVote = 'nay' | 'yay' | 'pass'; export interface OperationContentsAttestation { kind: OpKind.ATTESTATION; level: number; slot?: number; round?: number; block_payload_hash?: string; } export interface OperationContentsEndorsement { kind: OpKind.ENDORSEMENT; level: number; slot?: number; round?: number; block_payload_hash?: string; } export interface OperationContentsPreattestation { kind: OpKind.PREATTESTATION; slot: number; level: number; round: number; block_payload_hash: string; } export interface OperationContentsPreEndorsement { kind: OpKind.PREENDORSEMENT; slot: number; level: number; round: number; block_payload_hash: string; } export interface OperationContentsDoublePreattestation { kind: OpKind.DOUBLE_PREATTESTATION_EVIDENCE; op1: InlinedPreattestation; op2: InlinedPreattestation; } export interface OperationContentsDoublePreEndorsement { kind: OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE; op1: InlinedPreEndorsement; op2: InlinedPreEndorsement; } export interface OperationContentsSetDepositsLimit { kind: OpKind.SET_DEPOSITS_LIMIT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; limit?: string; } export interface OperationContentsAttestationWithDal { kind: OpKind.ATTESTATION_WITH_DAL; slot: number; level: number; round: number; block_payload_hash: string; dal_attestation: string; } export interface OperationContentsEndorsementWithDal { kind: OpKind.ENDORSEMENT_WITH_DAL; slot: number; level: number; round: number; block_payload_hash: string; dal_attestation: string; } export interface OperationContentsRevelation { kind: OpKind.SEED_NONCE_REVELATION; level: number; nonce: string; } export interface OperationContentsVdfRevelation { kind: OpKind.VDF_REVELATION; solution: string[]; } export interface OperationContentsDoubleAttestation { kind: OpKind.DOUBLE_ATTESTATION_EVIDENCE; op1: InlinedAttestation; op2: InlinedAttestation; slot?: number; } export interface OperationContentsDoubleEndorsement { kind: OpKind.DOUBLE_ENDORSEMENT_EVIDENCE; op1: InlinedEndorsement; op2: InlinedEndorsement; slot?: number; } export interface OperationContentsDoubleBaking { kind: OpKind.DOUBLE_BAKING_EVIDENCE; bh1: BlockFullHeader; bh2: BlockFullHeader; } export interface OperationContentsActivateAccount { kind: OpKind.ACTIVATION; pkh: string; secret: string; } export interface OperationContentsFailingNoop { kind: OpKind.FAILING_NOOP; arbitrary: string; } export interface OperationContentsProposals { kind: OpKind.PROPOSALS; source: string; period: number; proposals: string[]; } export interface OperationContentsBallot { kind: OpKind.BALLOT; source: string; period: number; proposal: string; ballot: BallotVote; } export interface OperationContentsReveal { kind: OpKind.REVEAL; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; public_key: string; proof?: string; } export interface OperationContentsTransaction { kind: OpKind.TRANSACTION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; amount: string; destination: string; parameters?: TransactionOperationParameter; } export interface OperationContentsOrigination { kind: OpKind.ORIGINATION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; balance: string; delegate?: string; script?: ScriptedContracts; } export interface OperationContentsDelegation { kind: OpKind.DELEGATION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; delegate?: string; } export interface OperationContentsRegisterGlobalConstant { kind: OpKind.REGISTER_GLOBAL_CONSTANT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; value: MichelsonV1Expression; } export interface OperationContentsTransferTicket { kind: OpKind.TRANSFER_TICKET; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; ticket_contents: MichelsonV1Expression; ticket_ty: MichelsonV1Expression; ticket_ticketer: string; ticket_amount: string; destination: string; entrypoint: string; } export interface OperationContentsUpdateConsensusKey { kind: OpKind.UPDATE_CONSENSUS_KEY; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pk: string; proof?: string; } export interface OperationContentsUpdateCompanionKey { kind: OpKind.UPDATE_COMPANION_KEY; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pk: string; proof?: string; } export interface OperationContentsDrainDelegate { kind: OpKind.DRAIN_DELEGATE; consensus_key: string; delegate: string; destination: string; } export interface OperationContentsIncreasePaidStorage { kind: OpKind.INCREASE_PAID_STORAGE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; amount: string; destination: string; } export interface OperationContentsSmartRollupOriginate { kind: OpKind.SMART_ROLLUP_ORIGINATE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pvm_kind: PvmKind; kernel: string; parameters_ty: MichelsonV1Expression; whitelist?: string[]; } export interface OperationContentsSmartRollupAddMessages { kind: OpKind.SMART_ROLLUP_ADD_MESSAGES; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; message: string[]; } export interface OperationContentsSmartRollupExecuteOutboxMessage { kind: OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; cemented_commitment: string; output_proof: string; } export interface OperationContentsSmartRollupPublish { kind: OpKind.SMART_ROLLUP_PUBLISH; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; commitment: SmartRollupPublishCommitment; } export interface OperationContentsSmartRollupCement { kind: OpKind.SMART_ROLLUP_CEMENT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; commitment: string; } export interface OperationContentsSmartRollupRefute { kind: OpKind.SMART_ROLLUP_REFUTE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; opponent: string; refutation: SmartRollupRefutation; } export interface OperationContentsSmartRollupRecoverBond { kind: OpKind.SMART_ROLLUP_RECOVER_BOND; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; staker: string; } export interface OperationContentsSmartRollupTimeout { kind: OpKind.SMART_ROLLUP_TIMEOUT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; stakers: SmartRollupTimeoutStakers; } export interface OperationContentsDalPublishCommitment { kind: OpKind.DAL_PUBLISH_COMMITMENT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; slot_header: { slot_index: number; commitment: string; commitment_proof: string; }; } export interface OperationContentsDalEntrapmentEvidence { kind: OpKind.DAL_ENTRAPMENT_EVIDENCE; attestation: InlinedAttestation; consensus_slot: number; slot_index: number; shard_with_proof: { shard: (number | string[])[]; proof: string; }; } export interface OperationContentsPreattestationsAggregate { kind: OpKind.PREATTESTATIONS_AGGREGATE; consensus_content: { level: number; round: number; block_payload_hash: string; }; committee: number[]; } export interface OperationContentsAttestationsAggregate { kind: OpKind.ATTESTATIONS_AGGREGATE; consensus_content: { level: number; round: number; block_payload_hash: string; }; committee: { slot: number; dal_attestation?: string; }[]; } export interface OperationContentsDoubleConsensusOperationEvidence { kind: OpKind.DOUBLE_CONSENSUS_OPERATION_EVIDENCE; slot: number; op1: InlinedAttestation; op2: InlinedAttestation; } export type OperationContents = OperationContentsAttestation | OperationContentsPreattestation | OperationContentsDoublePreattestation | OperationContentsEndorsement | OperationContentsPreEndorsement | OperationContentsDoublePreEndorsement | OperationContentsRevelation | OperationContentsVdfRevelation | OperationContentsDoubleAttestation | OperationContentsDoubleEndorsement | OperationContentsDoubleBaking | OperationContentsActivateAccount | OperationContentsProposals | OperationContentsBallot | OperationContentsReveal | OperationContentsTransaction | OperationContentsOrigination | OperationContentsDelegation | OperationContentsAttestationWithDal | OperationContentsEndorsementWithDal | OperationContentsFailingNoop | OperationContentsRegisterGlobalConstant | OperationContentsSetDepositsLimit | OperationContentsTransferTicket | OperationContentsUpdateConsensusKey | OperationContentsDrainDelegate | OperationContentsIncreasePaidStorage | OperationContentsSmartRollupOriginate | OperationContentsSmartRollupAddMessages | OperationContentsSmartRollupExecuteOutboxMessage | OperationContentsSmartRollupPublish | OperationContentsSmartRollupCement | OperationContentsSmartRollupRefute | OperationContentsSmartRollupRecoverBond | OperationContentsSmartRollupTimeout | OperationContentsDalEntrapmentEvidence | OperationContentsDalPublishCommitment | OperationContentsDoubleConsensusOperationEvidence | OperationContentsUpdateCompanionKey | OperationContentsPreattestationsAggregate | OperationContentsAttestationsAggregate; export interface OperationContentsAndResultMetadataExtended1 { balance_updates?: OperationMetadataBalanceUpdates[]; delegate: string; consensus_power: ConsensusPower | null; consensus_key: string; } export interface OperationContentsAndResultMetadataExtended0 { balance_updates?: OperationMetadataBalanceUpdates[]; delegate: string; endorsement_power: number; consensus_key?: string; } export interface OperationContentsAndResultMetadataAttestationsAggregate { balance_updates?: OperationMetadataBalanceUpdates[]; committee: { delegate: string; consensus_pkh: string; }[]; consensus_power: ConsensusPower | null; } export interface OperationContentsAndResultMetadataPreattestation { balance_updates?: OperationMetadataBalanceUpdates[]; delegate: string; consensus_power: ConsensusPower | null; consensus_key?: string; } export interface OperationContentsAndResultMetadataPreattestationsAggregate { balance_updates?: OperationMetadataBalanceUpdates[]; committee: { delegate: string; consensus_pkh: string; }[]; consensus_power: ConsensusPower | null; } export interface OperationContentsAndResultMetadataPreEndorsement { balance_updates?: OperationMetadataBalanceUpdates[]; delegate: string; preendorsement_power: number; consensus_key?: string; } export interface OperationContentsAndResultMetadataReveal { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultReveal; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataTransaction { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultTransaction; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataDelegation { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultDelegation; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataRegisterGlobalConstant { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultRegisterGlobalConstant; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSetDepositsLimit { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSetDepositsLimit; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadata { balance_updates?: OperationMetadataBalanceUpdates[]; } export interface OperationContentsAndResultMetadataTransferTicket { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultTransferTicket; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataIncreasePaidStorage { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultIncreasePaidStorage; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataUpdateConsensusKey { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultUpdateConsensusKey; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataUpdateCompanionKey { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultUpdateConsensusKey; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataDrainDelegate { balance_updates?: OperationMetadataBalanceUpdates[]; allocated_destination_contract?: boolean; } export interface OperationContentsAndResultMetadataSmartRollupOriginate { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupOriginate; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupAddMessages { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupAddMessages; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupExecuteOutboxMessage { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupExecuteOutboxMessage; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupPublish { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupPublish; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupCement { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupCement; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupRefute { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupRefute; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupRecoverBond { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupRecoverBond; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataSmartRollupTimeout { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultSmartRollupTimeout; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataDalPublishCommitment { balance_updates?: OperationMetadataBalanceUpdates[]; operation_result: OperationResultDalPublishCommitment; internal_operation_results?: InternalOperationResult[]; } export interface OperationContentsAndResultMetadataDalEntrapmentEvidence { balance_updates?: OperationMetadataBalanceUpdates[]; } export interface OperationContentsAndResultMetadataDoubleConsensusOperationEvidence { punished_delegate: string; rewarded_delegate: string; misbehaviour: { level: number; round: number; kind: 'attestation' | 'block' | 'preattestation'; }; } export interface OperationContentsAndResultMetadataDoubleBaking { punished_delegate: string; rewarded_delegate: string; misbehaviour: { level: number; round: number; kind: 'attestation' | 'block' | 'preattestation'; }; } export interface OperationContentsAndResultAttestation { kind: OpKind.ATTESTATION; block_payload_hash?: string; level: number; round?: number; slot?: number; metadata: OperationContentsAndResultMetadataExtended1; } export interface OperationContentsAndResultAttestationsAggregate { kind: OpKind.ATTESTATIONS_AGGREGATE; consensus_content: { level: number; round: number; block_payload_hash: string; }; committee: { slot: number; dal_attestation?: string; }[]; metadata: OperationContentsAndResultMetadataAttestationsAggregate; } export interface OperationContentsAndResultEndorsement { kind: OpKind.ENDORSEMENT; block_payload_hash?: string; level: number; round?: number; slot?: number; metadata: OperationContentsAndResultMetadataExtended0; } export interface OperationContentsAndResultPreattestation { kind: OpKind.PREATTESTATION; slot: number; level: number; round: number; block_payload_hash: string; metadata: OperationContentsAndResultMetadataPreattestation; } export interface OperationContentsAndResultPreattestationsAggregate { kind: OpKind.PREATTESTATIONS_AGGREGATE; consensus_content: { level: number; round: number; block_payload_hash: string; }; committee: number[]; metadata: OperationContentsAndResultMetadataPreattestationsAggregate; } export interface OperationContentsAndResultPreEndorsement { kind: OpKind.PREENDORSEMENT; slot: number; level: number; round: number; block_payload_hash: string; metadata: OperationContentsAndResultMetadataPreEndorsement; } export interface OperationContentsAndResultDoublePreattestation { kind: OpKind.DOUBLE_PREATTESTATION_EVIDENCE; op1: InlinedPreattestation; op2: InlinedPreattestation; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultAttestationWithDal { kind: OpKind.ATTESTATION_WITH_DAL; slot: number; level: number; round: number; block_payload_hash: string; dal_attestation: string; metadata: OperationContentsAndResultMetadataExtended1; } export interface OperationContentsAndResultDoublePreEndorsement { kind: OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE; op1: InlinedPreEndorsement; op2: InlinedPreEndorsement; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultEndorsementWithDal { kind: OpKind.ENDORSEMENT_WITH_DAL; slot: number; level: number; round: number; block_payload_hash: string; dal_attestation: string; metadata: OperationContentsAndResultMetadataExtended0; } export interface OperationContentsAndResultRevelation { kind: OpKind.SEED_NONCE_REVELATION; level: number; nonce: string; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultDoubleAttestation { kind: OpKind.DOUBLE_ATTESTATION_EVIDENCE; op1: InlinedAttestation; op2: InlinedAttestation; slot?: number; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultDoubleEndorsement { kind: OpKind.DOUBLE_ENDORSEMENT_EVIDENCE; op1: InlinedEndorsement; op2: InlinedEndorsement; slot?: number; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultDoubleBaking { kind: OpKind.DOUBLE_BAKING_EVIDENCE; bh1: BlockFullHeader; bh2: BlockFullHeader; metadata: OperationContentsAndResultMetadataDoubleBaking; } export interface OperationContentsAndResultActivateAccount { kind: OpKind.ACTIVATION; pkh: string; secret: string; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultProposals { kind: OpKind.PROPOSALS; source: string; period: number; proposals: string[]; } export interface OperationContentsAndResultBallot { kind: OpKind.BALLOT; source: string; period: number; proposal: string; ballot: BallotVote; } export interface OperationContentsAndResultReveal { kind: OpKind.REVEAL; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; public_key: string; proof?: string; metadata: OperationContentsAndResultMetadataReveal; } export interface OperationContentsAndResultTransaction { kind: OpKind.TRANSACTION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; amount: string; destination: string; parameters?: TransactionOperationParameter; metadata: OperationContentsAndResultMetadataTransaction; } export interface OperationContentsAndResultDelegation { kind: OpKind.DELEGATION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; delegate?: string; metadata: OperationContentsAndResultMetadataDelegation; } export interface OperationContentsAndResultRegisterGlobalConstant { kind: OpKind.REGISTER_GLOBAL_CONSTANT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; value: MichelsonV1Expression; metadata: OperationContentsAndResultMetadataRegisterGlobalConstant; } export interface OperationContentsAndResultSetDepositsLimit { kind: OpKind.SET_DEPOSITS_LIMIT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; limit?: string; metadata: OperationContentsAndResultMetadataSetDepositsLimit; } export interface OperationContentsAndResultTransferTicket { kind: OpKind.TRANSFER_TICKET; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; ticket_contents: MichelsonV1Expression; ticket_ty: MichelsonV1Expression; ticket_ticketer: string; ticket_amount: string; destination: string; entrypoint: string; metadata: OperationContentsAndResultMetadataTransferTicket; } export interface OperationContentsAndResultUpdateConsensusKey { kind: OpKind.UPDATE_CONSENSUS_KEY; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pk: string; proof?: string; metadata: OperationContentsAndResultMetadataUpdateConsensusKey; } export interface OperationContentsAndResultUpdateCompanionKey { kind: OpKind.UPDATE_COMPANION_KEY; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pk: string; proof?: string; metadata: OperationContentsAndResultMetadataUpdateCompanionKey; } export interface OperationContentsAndResultDrainDelegate { kind: OpKind.DRAIN_DELEGATE; consensus_key: string; delegate: string; destination: string; metadata: OperationContentsAndResultMetadataDrainDelegate; } export interface OperationContentsAndResultIncreasePaidStorage { kind: OpKind.INCREASE_PAID_STORAGE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; amount: string; destination: string; metadata: OperationContentsAndResultMetadataIncreasePaidStorage; } export interface OperationContentsAndResultVdfRevelation { kind: OpKind.VDF_REVELATION; solution: string[]; metadata: OperationContentsAndResultMetadata; } export interface OperationContentsAndResultSmartRollupOriginate { kind: OpKind.SMART_ROLLUP_ORIGINATE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; pvm_kind: PvmKind; kernel: string; parameters_ty: MichelsonV1Expression; whitelist?: string[]; metadata: OperationContentsAndResultMetadataSmartRollupOriginate; } export interface OperationContentsAndResultSmartRollupAddMessages { kind: OpKind.SMART_ROLLUP_ADD_MESSAGES; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; message: string[]; metadata: OperationContentsAndResultMetadataSmartRollupAddMessages; } export interface OperationContentsAndResultSmartRollupExecuteOutboxMessage { kind: OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; cemented_commitment: string; output_proof: string; metadata: OperationContentsAndResultMetadataSmartRollupExecuteOutboxMessage; } export interface OperationContentsAndResultSmartRollupPublish { kind: OpKind.SMART_ROLLUP_PUBLISH; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; commitment: SmartRollupPublishCommitment; metadata: OperationContentsAndResultMetadataSmartRollupPublish; } export interface OperationContentsAndResultSmartRollupCement { kind: OpKind.SMART_ROLLUP_CEMENT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; metadata: OperationContentsAndResultMetadataSmartRollupCement; } export interface OperationContentsAndResultSmartRollupRefute { kind: OpKind.SMART_ROLLUP_REFUTE; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; opponent: string; refutation: SmartRollupRefutation; metadata: OperationContentsAndResultMetadataSmartRollupRefute; } export interface OperationContentsAndResultSmartRollupRecoverBond { kind: OpKind.SMART_ROLLUP_RECOVER_BOND; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; staker: string; metadata: OperationContentsAndResultMetadataSmartRollupRecoverBond; } export interface OperationContentsAndResultSmartRollupTimeout { kind: OpKind.SMART_ROLLUP_TIMEOUT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; rollup: string; stakers: SmartRollupTimeoutStakers; metadata: OperationContentsAndResultMetadataSmartRollupTimeout; } export interface OperationContentsAndResultDalPublishCommitment { kind: OpKind.DAL_PUBLISH_COMMITMENT; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; slot_header: { slot_index: number; commitment: string; commitment_proof: string; }; metadata: OperationContentsAndResultMetadataDalPublishCommitment; } export interface OperationContentsAndResultDalEntrapmentEvidence { kind: OpKind.DAL_ENTRAPMENT_EVIDENCE; attestation: InlinedAttestation; consensus_slot: number; slot_index: number; shard_with_proof: { shard: (number | string[])[]; proof: string; }; metadata: OperationContentsAndResultMetadataDalEntrapmentEvidence; } export interface OperationContentsAndResultDoubleConsensusOperationEvidence { kind: OpKind.DOUBLE_CONSENSUS_OPERATION_EVIDENCE; slot: number; op1: InlinedAttestation; op2: InlinedAttestation; metadata: OperationContentsAndResultMetadataDoubleConsensusOperationEvidence; } export type OperationContentsAndResult = OperationContentsAndResultAttestation | OperationContentsAndResultPreattestation | OperationContentsAndResultDoublePreattestation | OperationContentsAndResultEndorsement | OperationContentsAndResultPreEndorsement | OperationContentsAndResultDoublePreEndorsement | OperationContentsAndResultRevelation | OperationContentsAndResultDoubleEndorsement | OperationContentsAndResultDoubleAttestation | OperationContentsAndResultDoubleBaking | OperationContentsAndResultActivateAccount | OperationContentsAndResultProposals | OperationContentsAndResultBallot | OperationContentsAndResultReveal | OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultAttestationWithDal | OperationContentsAndResultEndorsementWithDal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultTransferTicket | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultDrainDelegate | OperationContentsAndResultVdfRevelation | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultSmartRollupPublish | OperationContentsAndResultSmartRollupCement | OperationContentsAndResultSmartRollupRefute | OperationContentsAndResultSmartRollupRecoverBond | OperationContentsAndResultSmartRollupTimeout | OperationContentsAndResultDalPublishCommitment | OperationContentsAndResultDalEntrapmentEvidence | OperationContentsAndResultDoubleConsensusOperationEvidence | OperationContentsAndResultUpdateCompanionKey | OperationContentsAndResultPreattestationsAggregate | OperationContentsAndResultAttestationsAggregate; export type OperationContentsAndResultWithFee = OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultReveal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultTransferTicket | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultDalPublishCommitment | OperationContentsAndResultUpdateCompanionKey; export declare enum OPERATION_METADATA { TOO_LARGE = "too large" } export interface OperationEntry { protocol: string; chain_id: string; hash: string; branch: string; contents: (OperationContents | OperationContentsAndResult)[]; signature?: string; metadata?: OPERATION_METADATA; } export interface BlockResponse { protocol: string; chain_id: string; hash: string; header: BlockFullHeader; metadata: BlockMetadata; operations: OperationEntry[][]; } export type BakingRightsArgumentsDelegate = string | string[]; export type BakingRightsArgumentsCycle = number | number[]; export type BakingRightsArgumentsLevel = number | number[]; export type AllDelegatesQueryArguments = { active?: boolean; inactive?: boolean; with_minimal_stake?: boolean; without_minimal_stake?: boolean; }; export type BakingRightsQueryArguments = BakingRightsQueryArgumentsBase; export interface BakingRightsQueryArgumentsBase { level?: BakingRightsArgumentsLevel; cycle?: BakingRightsArgumentsCycle; delegate?: BakingRightsArgumentsDelegate; consensus_key?: string; max_priority?: number; max_round?: string; all?: null; } export interface BakingRightsResponseItem { level: number; delegate: string; round?: number; estimated_time?: Date; consensus_key?: string; priority?: number; } export type BakingRightsResponse = BakingRightsResponseItem[]; export type AttestationRightsArgumentsDelegate = string | string[]; export type AttestationRightsArgumentsCycle = number | number[]; export type AttestationRightsArgumentsLevel = number | number[]; export interface AttestationRightsQueryArguments { level?: AttestationRightsArgumentsLevel; cycle?: AttestationRightsArgumentsCycle; delegate?: AttestationRightsArgumentsDelegate; consensus_key?: string; } export interface AttestationRightsResponseItemDelegates { delegate: string; first_slot: number; attesting_power: number; consensus_key: string; attestation_power?: number; } export interface AttestationRightsResponseItem { level: number; delegates?: AttestationRightsResponseItemDelegates[]; estimated_time?: Date; delegate?: string; slots?: number[]; } export type AttestationRightsResponse = AttestationRightsResponseItem[]; export type BallotListResponseEnum = 'nay' | 'yay' | 'pass'; export interface BallotListResponseItem { pkh: string; ballot: BallotListResponseEnum; } export type BallotListResponse = BallotListResponseItem[]; export interface BallotsResponse { yay: BigNumber; nay: BigNumber; pass: BigNumber; } export type PeriodKindResponse = 'proposal' | 'exploration' | 'cooldown' | 'promotion' | 'adoption' | 'testing_vote' | 'testing' | 'promotion_vote'; export type CurrentProposalResponse = string | null; export type CurrentQuorumResponse = number; export interface VotesListingsResponseItem { pkh: string; rolls?: number; voting_power?: BigNumber; } export type VotesListingsResponse = VotesListingsResponseItem[]; export type ProposalsResponseItem = [string, BigNumber]; export type ProposalsResponse = ProposalsResponseItem[]; export type HeaderContentEnum = 'activate' | 'activate_testchain'; export interface HeaderContent { command: HeaderContentEnum; hash: string; fitness: string[]; protocol_parameters: string; } export interface BlockHeaderResponse { protocol: string; chain_id: string; hash: string; level: number; proto: number; predecessor: string; timestamp: string; validation_pass: number; operations_hash: string; fitness: string[]; context: string; content: HeaderContent; payload_hash?: string; payload_round?: number; priority?: number; proof_of_work_nonce: string; liquidity_baking_escape_vote?: boolean | LiquidityBakingToggleVotes; signature: string; } export interface PackDataParams { data: MichelsonV1Expression; type: MichelsonV1Expression; gas?: BigNumber; } export interface TicketTokenParams { ticketer: string; content_type: MichelsonV1Expression; content: MichelsonV1Expression; } export interface TicketBalance { ticketer: string; content_type: MichelsonV1Expression; content: MichelsonV1Expression; amount: string; } export type AllTicketBalances = TicketBalance[]; export type HexString = string; export interface PackDataResponse { packed: HexString; gas?: BigNumber | 'unaccounted'; } export type BigMapResponse = MichelsonV1Expression | MichelsonV1Expression[]; export type SaplingDiffResponse = { root: SaplingTransactionCommitmentHash; commitments_and_ciphertexts: CommitmentsAndCiphertexts[]; nullifiers: string[]; }; export type SaplingTransactionCommitmentHash = string; export type PreapplyParams = OperationObject[]; export type PreapplyResponse = { contents: OperationContentsAndResult[]; }; export type ForgeOperationsParams = Pick; export type TimeStampMixed = Date | string; export type BalanceUpdateKindEnum = MetadataBalanceUpdatesKindEnum; export type BalanceUpdateCategoryEnum = MetadataBalanceUpdatesCategoryEnum; export interface MichelsonV1ExpressionBase { int?: string; string?: string; bytes?: string; } export interface MichelsonV1ExpressionExtended { prim: string; args?: MichelsonV1Expression[]; annots?: string[]; } export type MichelsonV1Expression = MichelsonV1ExpressionBase | MichelsonV1ExpressionExtended | MichelsonV1Expression[]; export interface ScriptedContracts { code: MichelsonV1Expression[]; storage: MichelsonV1Expression; } export type AILaunchCycleResponse = number | null; export type BondId = { smart_rollup: string; }; export type OperationBalanceUpdates = OperationMetadataBalanceUpdates[]; export interface OperationObject { branch?: string; contents?: OperationContents[]; protocol?: string; signature?: string; } export type InternalOperationResultKindEnum = OpKind.TRANSACTION | OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.EVENT; export type SuccessfulManagerOperationResultKindEnum = OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ORIGINATION | OpKind.DELEGATION; export type InternalOperationResultEnum = OperationResultReveal | OperationResultTransaction | OperationResultDelegation | OperationResultOrigination | OperationResultEvent; export interface OperationResultTransferTicket { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; ticket_updates?: TicketUpdates[]; consumed_milligas?: string; paid_storage_size_diff?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultIncreasePaidStorage { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; consumed_milligas?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultUpdateConsensusKey { status: OperationResultStatusEnum; consumed_milligas?: string; errors?: TezosGenericOperationError[]; kind?: boolean; } export interface OperationResultDelegation { status: OperationResultStatusEnum; consumed_gas?: string; errors?: TezosGenericOperationError[]; consumed_milligas?: string; } export interface OperationResultSetDepositsLimit { status: OperationResultStatusEnum; consumed_gas?: string; errors?: TezosGenericOperationError[]; consumed_milligas?: string; } export interface OperationResultRegisterGlobalConstant { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; consumed_gas?: string; storage_size?: string; global_address?: string; errors?: TezosGenericOperationError[]; consumed_milligas?: string; } export interface OperationResultSmartRollupOriginate { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; address?: string; genesis_commitment_hash?: string; consumed_milligas?: string; size?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupAddMessages { status: OperationResultStatusEnum; consumed_milligas?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupExecuteOutboxMessage { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; ticket_updates?: TicketUpdates[]; consumed_milligas?: string; paid_storage_size_diff?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupPublish { status: OperationResultStatusEnum; consumed_milligas?: string; staked_hash?: string; published_at_level?: number; balance_updates?: OperationBalanceUpdates; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupCement { status: OperationResultStatusEnum; consumed_milligas?: string; inbox_level?: number; commitment_hash?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupRefute { status: OperationResultStatusEnum; consumed_milligas?: string; game_status?: SmartRollupGameStatus; balance_updates?: OperationBalanceUpdates; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupRecoverBond { status: OperationResultStatusEnum; balance_updates?: OperationBalanceUpdates; consumed_milligas?: string; errors?: TezosGenericOperationError[]; } export interface OperationResultSmartRollupTimeout { status: OperationResultStatusEnum; consumed_milligas?: string; game_status?: SmartRollupGameStatus; balance_updates?: OperationBalanceUpdates; errors?: TezosGenericOperationError[]; } export interface OperationResultDalPublishCommitment { status: OperationResultStatusEnum; slot_header?: { version: string; level: number; index: number; commitment: string; }; consumed_milligas?: string; errors?: TezosGenericOperationError[]; } export interface ContractBigMapDiffItem { key_hash?: string; key?: MichelsonV1Expression; value?: MichelsonV1Expression; action?: DiffActionEnum; big_map?: string; source_big_map?: string; destination_big_map?: string; key_type?: MichelsonV1Expression; value_type?: MichelsonV1Expression; } export type ContractBigMapDiff = ContractBigMapDiffItem[]; export interface TezosGenericOperationError { kind: string; id: string; delegate?: string; } export interface TicketUpdates { ticket_token: { ticketer: string; content_type: MichelsonV1Expression; content: MichelsonV1Expression; }; updates: { account: string; amount: string; }[]; } export type TicketReceipt = TicketUpdates; export type BatchOperationResult = OperationResultTransaction | OperationResultReveal | OperationResultDelegation | OperationResultOrigination | OperationResultIncreasePaidStorage | OperationResultRegisterGlobalConstant | OperationResultTransferTicket | OperationResultSmartRollupAddMessages | OperationResultSmartRollupOriginate | OperationResultUpdateConsensusKey; export type OperationResult = OperationResultOrigination | OperationResultTransaction | OperationResultReveal | OperationResultDelegation | OperationResultIncreasePaidStorage | OperationResultRegisterGlobalConstant | OperationResultTransferTicket | OperationResultUpdateConsensusKey | OperationResultSmartRollupOriginate | OperationResultSmartRollupAddMessages | OperationResultSetDepositsLimit | OperationResultSmartRollupPublish | OperationResultSmartRollupCement | OperationResultSmartRollupRefute | OperationResultSmartRollupRecoverBond | OperationResultSmartRollupTimeout | OperationResultSmartRollupExecuteOutboxMessage | OperationResultDalPublishCommitment; export interface AddressRegistryDiff { address: string; index: string; } export interface OperationResultTransaction { status: OperationResultStatusEnum; storage?: MichelsonV1Expression; big_map_diff?: ContractBigMapDiff; balance_updates?: OperationBalanceUpdates; ticket_updates?: TicketUpdates[]; ticket_receipt?: TicketReceipt[]; originated_contracts?: string[]; consumed_gas?: string; storage_size?: string; paid_storage_size_diff?: string; allocated_destination_contract?: boolean; errors?: TezosGenericOperationError[]; consumed_milligas?: string; lazy_storage_diff?: LazyStorageDiff[]; ticket_hash?: string; address_registry_diff?: AddressRegistryDiff[]; } export interface OperationResultReveal { status: OperationResultStatusEnum; consumed_gas?: string; errors?: TezosGenericOperationError[]; consumed_milligas?: string; } export interface TransactionOperationParameter { entrypoint: string; value: MichelsonV1Expression; } export interface InternalOperationResult { kind: InternalOperationResultKindEnum; source: string; nonce: number; amount?: string; destination?: string; parameters?: TransactionOperationParameter; result: InternalOperationResultEnum; balance?: string; delegate?: string; script?: ScriptedContracts; type?: MichelsonV1Expression; tag?: string; payload?: MichelsonV1Expression; public_key?: string; value?: MichelsonV1Expression; limit?: string; } export interface SuccessfulManagerOperationResult { kind: SuccessfulManagerOperationResultKindEnum; consumed_gas?: string; consumed_milligas?: string; storage?: MichelsonV1Expression; big_map_diff?: ContractBigMapDiff; balance_updates?: OperationBalanceUpdates; originated_contracts?: string[]; storage_size?: string; paid_storage_size_diff?: string; lazy_storage_diff?: LazyStorageDiff[]; } export type MetadataBalanceUpdatesKindEnum = 'contract' | 'accumulator' | 'freezer' | 'minted' | 'burned' | 'commitment' | 'staking'; export declare enum METADATA_BALANCE_UPDATES_CATEGORY { ACTIVATION = "activation", ATTESTATION = "attestation", ATTESTATIONS_AGGREGATE = "attestations_aggregate", ATTESTATION_WITH_DAL = "attestation_with_dal", ATTESTING_REWARDS = "attesting rewards", BAKING_BONUSES = "baking bonuses", BAKING_REWARDS = "baking rewards", BALLOT = "ballot", BLOCK_FEES = "block fees", BONDS = "bonds", BOOTSTRAP = "bootstrap", BURNED = "burned", COMMITMENT = "commitment", DAL_ATTESTING_REWARDS = "dal attesting rewards", DAL_ENTRAPMENT_EVIDENCE = "dal_entrapment_evidence", DAL_PUBLISH_COMMITMENT = "dal_publish_commitment", DELEGATE_DENOMINATOR = "delegate_denominator", DELEGATION = "delegation", DELEGATOR_NUMERATOR = "delegator_numerator", DEPOSITS = "deposits", DOUBLE_ATTESTATION_EVIDENCE = "double_attestation_evidence", DOUBLE_BAKING_EVIDENCE = "double_baking_evidence", DOUBLE_ENDORSEMENT_EVIDENCE = "double_endorsement_evidence", DOUBLE_PREATTESTATION_EVIDENCE = "double_preattestation_evidence", DOUBLE_PREENDORSEMENT_EVIDENCE = "double_preendorsement_evidence", DRAIN_DELEGATE = "drain_delegate", ENDORSEMENT = "endorsement", ENDORSEMENT_WITH_DAL = "endorsement_with_dal", EVENT = "event", FAILING_NOOP = "failing_noop", INCREASE_PAID_STORAGE = "increase_paid_storage", INVOICE = "invoice", LOST_ATTESTING_REWARDS = "lost attesting rewards", LOST_DAL_ATTESTING_REWARDS = "lost dal attesting rewards", MINTED = "minted", NONCE_REVELATION_REWARDS = "nonce revelation rewards", ORIGINATION = "origination", PREATTESTATION = "preattestation", PREATTESTATIONS_AGGREGATE = "preattestations_aggregate", PREENDORSEMENT = "preendorsement", PROPOSALS = "proposals", PUNISHMENTS = "punishments", REGISTER_GLOBAL_CONSTANT = "register_global_constant", REVEAL = "reveal", SEED_NONCE_REVELATION = "seed_nonce_revelation", SET_DEPOSITS_LIMIT = "set_deposits_limit", SMART_ROLLUP_ADD_MESSAGES = "smart_rollup_add_messages", SMART_ROLLUP_CEMENT = "smart_rollup_cement", SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message", SMART_ROLLUP_ORIGINATE = "smart_rollup_originate", SMART_ROLLUP_PUBLISH = "smart_rollup_publish", SMART_ROLLUP_RECOVER_BOND = "smart_rollup_recover_bond", SMART_ROLLUP_REFUTATION_PUNISHMENTS = "smart_rollup_refutation_punishments", SMART_ROLLUP_REFUTATION_REWARDS = "smart_rollup_refutation_rewards", SMART_ROLLUP_REFUTE = "smart_rollup_refute", SMART_ROLLUP_TIMEOUT = "smart_rollup_timeout", STORAGE_FEES = "storage fees", SUBSIDY = "subsidy", TICKET_UPDATES = "ticket_updates", TRANSACTION = "transaction", TRANSFER_TICKET = "transfer_ticket", UNSTAKED_DEPOSITS = "unstaked_deposits", UPDATE_COMPANION_KEY = "update_companion_key", UPDATE_CONSENSUS_KEY = "update_consensus_key", VDF_REVELATION = "vdf_revelation" } export type MetadataBalanceUpdatesCategoryEnum = METADATA_BALANCE_UPDATES_CATEGORY; export type MetadataBalanceUpdatesOriginEnum = 'block' | 'migration' | 'subsidy' | 'simulation' | 'delayed_operation'; export type FrozenStaker = SingleStaker | SharedStaker | Baker | Baker_edge; export type Staker = SingleStaker | SharedStaker; export interface SingleStaker { contract: string; delegate: string; } export interface SharedStaker { delegate: string; } export interface Baker { baker_own_stake: string; } export interface Baker_edge { baker_edge: string; } export interface OperationMetadataBalanceUpdates { kind: MetadataBalanceUpdatesKindEnum; contract?: string; change: string; origin?: MetadataBalanceUpdatesOriginEnum; category?: MetadataBalanceUpdatesCategoryEnum; staker?: FrozenStaker | Staker; delegate?: string; participation?: boolean; revelation?: boolean; committer?: string; bond_id?: BondId; cycle?: number; delegator?: string; delayed_operation_hash?: string; } export type OperationResultStatusEnum = 'applied' | 'failed' | 'skipped' | 'backtracked'; export type DiffActionEnum = 'update' | 'remove' | 'copy' | 'alloc'; export type LazyStorageDiff = LazyStorageDiffBigMap | LazyStorageDiffSaplingState; export interface LazyStorageDiffBigMap { kind: 'big_map'; id: string; diff: LazyStorageDiffBigMapItems; } export interface LazyStorageDiffSaplingState { kind: 'sapling_state'; id: string; diff: LazyStorageDiffSaplingStateItems; } export interface LazyStorageDiffBigMapItems { action: DiffActionEnum; updates?: LazyStorageDiffUpdatesBigMap[]; source?: string; key_type?: MichelsonV1Expression; value_type?: MichelsonV1Expression; } export interface LazyStorageDiffSaplingStateItems { action: DiffActionEnum; updates?: LazyStorageDiffUpdatesSaplingState; source?: string; memo_size?: number; } export interface LazyStorageDiffUpdatesBigMap { key_hash: string; key: MichelsonV1Expression; value?: MichelsonV1Expression; } export type CommitmentsAndCiphertexts = [ SaplingTransactionCommitment, SaplingTransactionCiphertext ]; export type SaplingTransactionCommitment = string; export interface LazyStorageDiffUpdatesSaplingState { commitments_and_ciphertexts: CommitmentsAndCiphertexts[]; nullifiers: string[]; } export interface SaplingTransactionCiphertext { cv: string; epk: string; payload_enc: string; nonce_enc: string; payload_out: string; nonce_out: string; } export interface OperationResultOrigination { status: OperationResultStatusEnum; big_map_diff?: ContractBigMapDiff; balance_updates?: OperationBalanceUpdates; originated_contracts?: string[]; consumed_gas?: string; storage_size?: string; paid_storage_size_diff?: string; errors?: TezosGenericOperationError[]; consumed_milligas?: string; lazy_storage_diff?: LazyStorageDiff[]; } export interface OperationResultEvent { status: OperationResultStatusEnum; consumed_milligas?: string; errors?: TezosGenericOperationError[]; } export interface OperationContentsAndResultMetadataOrigination { balance_updates: OperationMetadataBalanceUpdates[]; operation_result: OperationResultOrigination; internal_operation_results?: InternalOperationResult[]; } export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto024 & ConstantsResponseProto023 & ConstantsResponseProto022 & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002; export interface ConstantsResponseCommon { proof_of_work_nonce_size: number; nonce_length: number; max_operation_data_length: number; preserved_cycles: number; blocks_per_cycle: number; blocks_per_commitment: number; blocks_per_roll_snapshot: number; blocks_per_voting_period: number; time_between_blocks: BigNumber[]; endorsers_per_block: number; hard_gas_limit_per_operation: BigNumber; hard_gas_limit_per_block: BigNumber; proof_of_work_threshold: BigNumber; tokens_per_roll: BigNumber; michelson_maximum_type_size: number; seed_nonce_revelation_tip: BigNumber; block_security_deposit: BigNumber; endorsement_security_deposit: BigNumber; endorsement_reward: BigNumber | BigNumber[]; cost_per_byte: BigNumber; hard_storage_limit_per_operation: BigNumber; } export type Ratio = { numerator: number; denominator: number; }; export interface ConstantsResponseProto024 extends Omit { all_bakers_attest_activation_threshold: Ratio; } export type ConstantsResponseProto023 = ConstantsResponseProto022; export interface ConstantsResponseProto022 extends Omit { aggregate_attestation: boolean; all_bakers_attest_activation_level: null | number; allow_tz4_delegate_enable: boolean; consensus_key_activation_delay: number; consensus_threshold_size: number; dal_parametric: { attestation_lag: number; attestation_threshold: number; feature_enable: boolean; incentives_enable: boolean; minimal_participation_ratio: Ratio; number_of_shards: number; number_of_slots: number; page_size: number; redundancy_factor: number; rewards_ratio: Ratio; slot_size: number; traps_fraction: Ratio; }; denunciation_period: number; issuance_modification_delay: number; issuance_weights: { attesting_reward_weight: number; baking_reward_bonus_weight: number; baking_reward_fixed_portion_weight: number; base_total_issued_per_minute: string; dal_rewards_weight: number; seed_nonce_revelation_tip_weight: number; vdf_revelation_tip_weight: number; }; max_slashing_threshold: Ratio; slashing_delay: number; tolerated_inactivity_period: number; unstake_finalization_delay: number; } export type ConstantsResponseProto021 = ConstantsResponseProto020; export interface ConstantsResponseProto020 extends Omit { adaptive_issuance_force_activation: boolean; adaptive_rewards_params: { center_dz: { denominator: string; numerator: string; }; growth_rate: { denominator: string; numerator: string; }; issuance_ratio_final_max: { denominator: string; numerator: string; }; issuance_ratio_final_min: { denominator: string; numerator: string; }; issuance_ratio_initial_max: { denominator: string; numerator: string; }; issuance_ratio_initial_min: { denominator: string; numerator: string; }; max_bonus: string; radius_dz: { denominator: string; numerator: string; }; initial_period: number; transition_period: number; }; blocks_preservation_cycles: number; consensus_rights_delay: number; dal_parametric: { attestation_lag: number; attestation_threshold: number; feature_enable: boolean; incentives_enable: boolean; number_of_shards: number; number_of_slots: number; page_size: number; redundancy_factor: number; slot_size: number; }; delegate_parameters_activation_delay: number; direct_ticket_spending_enable: boolean; issuance_weights: { attesting_reward_weight: number; baking_reward_bonus_weight: number; baking_reward_fixed_portion_weight: number; base_total_issued_per_minute: string; seed_nonce_revelation_tip_weight: number; vdf_revelation_tip_weight: number; }; liquidity_baking_subsidy: string; max_slashing_per_block: number; max_slashing_threshold: number; ns_enable: boolean; smart_rollup_reveal_activation_level: { dal_attested_slots_validity_lag: number; dal_page: number; dal_parameters: number; metadata: number; raw_data: { Blake2B: number; }; }; } export interface ConstantsResponseProto019 extends Omit { adaptive_issuance_activation_vote_enable: boolean; adaptive_issuance_launch_ema_threshold: number; adaptive_rewards_params: { center_dz: { denominator: string; numerator: string; }; growth_rate: { denominator: string; numerator: string; }; issuance_ratio_max: { denominator: string; numerator: string; }; issuance_ratio_min: { denominator: string; numerator: string; }; max_bonus: string; radius_dz: { denominator: string; numerator: string; }; }; autostaking_enable: boolean; edge_of_staking_over_delegation: number; global_limit_of_staking_over_baking: number; issuance_weights: { attesting_reward_weight: number; baking_reward_bonus_weight: number; baking_reward_fixed_portion_weight: number; base_total_issued_per_minute: string; liquidity_baking_subsidy_weight: number; seed_nonce_revelation_tip_weight: number; vdf_revelation_tip_weight: number; }; limit_of_delegation_over_baking: number; minimal_frozen_stake: string; percentage_of_frozen_deposits_slashed_per_double_attestation: number; percentage_of_frozen_deposits_slashed_per_double_baking: number; smart_rollup_private_enable: boolean; smart_rollup_reveal_activation_level: { dal_page: number; dal_parameters: number; metadata: number; raw_data: { Blake2B: number; }; }; smart_rollup_riscv_pvm_enable: boolean; zk_rollup_max_ticket_payload_size: number; } export type ConstantsResponseProto017 = ConstantsResponseProto016; export interface ConstantsResponseProto016 extends Omit { smart_rollup_arith_pvm_enable: boolean; smart_rollup_challenge_window_in_blocks: number; smart_rollup_commitment_period_in_blocks: number; smart_rollup_enable: boolean; smart_rollup_max_active_outbox_levels: number; smart_rollup_max_lookahead_in_blocks: number; smart_rollup_max_number_of_cemented_commitments: number; smart_rollup_max_number_of_messages_per_level: string; smart_rollup_max_number_of_parallel_games: number; smart_rollup_max_outbox_messages_per_level: number; smart_rollup_max_wrapped_proof_binary_size: number; smart_rollup_message_size_limit: number; smart_rollup_number_of_sections_in_dissection: number; smart_rollup_origination_size: number; smart_rollup_stake_amount: string; smart_rollup_timeout_period_in_blocks: number; } export interface ConstantsResponseProto015 extends Omit { minimal_stake: BigNumber; sc_max_wrapped_proof_binary_size: number; sc_rollup_message_size_limit: number; sc_rollup_max_number_of_messages_per_commitment_period: number; sc_rollup_number_of_sections_in_dissection: number; sc_rollup_timeout_period_in_blocks: number; sc_rollup_max_number_of_cemented_commitments: number; zk_rollup_enable: number; zk_rollup_origination_size: number; zk_rollup_min_pending_to_process: number; } export interface DalParametric { feature_enable: boolean; number_of_slots: number; attestation_lag: number; attestation_threshold?: number; blocks_per_epoch?: number; redundancy_factor?: number; page_size?: number; slot_size?: number; number_of_shards: number; endorsement_lag?: number; availability_threshold: number; } export interface ConstantsResponseProto014 extends ConstantsResponseProto013 { max_wrapped_proof_binary_size?: number; nonce_revelation_threshold?: number; vdf_difficulty?: BigNumber; testnet_dictator?: string; dal_parametric?: DalParametric; sc_rollup_stake_amount?: BigNumber; sc_rollup_commitment_period_in_blocks?: number; sc_rollup_max_lookahead_in_blocks?: number; sc_rollup_max_active_outbox_levels?: number; sc_rollup_max_outbox_messages_per_level?: number; } export interface ConstantsResponseProto013 extends Omit { cache_layout_size?: number; cache_sampler_state_cycles?: number; cache_script_size?: number; cache_stake_distribution_cycles?: number; cycles_per_voting_period?: number; liquidity_baking_toggle_ema_threshold?: number; initial_seed?: string; tx_rollup_enable?: boolean; tx_rollup_origination_size?: number; tx_rollup_hard_size_limit_per_inbox?: number; tx_rollup_hard_size_limit_per_message?: number; tx_rollup_max_withdrawals_per_batch?: number; tx_rollup_commitment_bond?: BigNumber; tx_rollup_finality_period?: number; tx_rollup_withdraw_period?: number; tx_rollup_max_inboxes_count?: number; tx_rollup_max_messages_per_inbox?: number; tx_rollup_max_commitments_count?: number; tx_rollup_cost_per_byte_ema_factor?: number; tx_rollup_max_ticket_payload_size?: number; tx_rollup_rejection_max_proof_size?: number; tx_rollup_sunset_level?: number; sc_rollup_enable?: boolean; sc_rollup_origination_size?: number; sc_rollup_challenge_window_in_blocks?: number; sc_rollup_max_available_messages?: number; } export interface ConstantsResponseProto012 extends Omit { blocks_per_stake_snapshot?: number; baking_reward_fixed_portion?: BigNumber; baking_reward_bonus_per_slot?: BigNumber; endorsing_reward_per_slot?: BigNumber; max_operations_time_to_live?: number; consensus_committee_size?: number; consensus_threshold?: number; minimal_participation_ratio?: Ratio; max_slashing_period?: number; frozen_deposits_percentage?: number; double_baking_punishment?: BigNumber; ratio_of_frozen_deposits_slashed_per_double_endorsement?: Ratio; delegate_selection?: 'random' | string[][]; delay_increment_per_round?: BigNumber; } export interface ConstantsResponseProto011 extends ConstantsResponseProto010 { max_micheline_node_count?: number; max_allowed_global_constants_depth?: number; max_micheline_bytes_limit?: number; cache_layout?: BigNumber[]; } export interface ConstantsResponseProto010 extends ConstantsResponseProto009 { minimal_block_delay?: BigNumber; liquidity_baking_subsidy?: BigNumber; liquidity_baking_sunset_level?: number; liquidity_baking_escape_ema_threshold?: number; } export interface ConstantsResponseProto009 extends ConstantsResponseProto008 { } export interface ConstantsResponseProto008 extends ConstantsResponseProto007 { } export interface ConstantsResponseProto007 extends Omit { max_anon_ops_per_block?: number; } export interface ConstantsResponseProto006 extends Omit { baking_reward_per_endorsement?: BigNumber[]; } export interface ConstantsResponseProto005 extends ConstantsResponseProto004 { quorum_min?: number; quorum_max?: number; min_proposal_quorum?: number; initial_endorsers?: number; delay_per_missing_endorsement?: BigNumber; } export interface ConstantsResponseProto004 extends ConstantsResponseProto003 { test_chain_duration?: BigNumber; } export interface ConstantsResponseProto003 extends Omit { origination_size?: number; max_proposals_per_delegate?: number; } export interface ConstantsResponseProto001And002 extends ConstantsResponseCommon { max_revelations_per_block?: number; origination_burn?: string; block_reward?: BigNumber; } export interface ContractResponse { balance: BigNumber; script: ScriptedContracts; counter?: string; delegate?: string; revealed?: boolean; } export interface TestChainStatus { status: 'not_running' | 'forking' | 'running'; protocol?: string; expiration?: TimeStampMixed; chain_id?: string; genesis?: string; } export interface MaxOperationListLength { max_size: number; max_op?: number; } export interface Level { level: number; level_position: number; cycle: number; cycle_position: number; voting_period: number; voting_period_position: number; expected_commitment: boolean; } export interface LevelInfo { level: number; level_position: number; cycle: number; cycle_position: number; expected_commitment: boolean; } export interface Attestations { total_committee_power: number; threshold: number; recorded_power: number; } export interface PreAttestations { total_committee_power: number; threshold: number; recorded_power: number; } export interface BlockMetadata { protocol: string; next_protocol: string; test_chain_status: TestChainStatus; max_operations_ttl: number; max_operation_data_length: number; max_block_header_length: number; max_operation_list_length: MaxOperationListLength[]; proposer?: string; baker: string; level_info?: LevelInfo; voting_period_info?: VotingPeriodBlockResult; nonce_hash?: string; deactivated?: string[]; balance_updates?: OperationBalanceUpdates; liquidity_baking_toggle_ema?: number; implicit_operations_results?: SuccessfulManagerOperationResult[]; proposer_consensus_key?: string; baker_consensus_key?: string; consumed_milligas?: string; dal_attestation?: string; level?: Level; voting_period_kind?: string; consumed_gas?: string; liquidity_baking_escape_ema?: number; all_bakers_attest_activation_level?: LevelInfo | null; attestations?: Attestations; preattestations?: PreAttestations; adaptive_issuance_vote_ema?: number; adaptive_issuance_activation_cycle?: number; } export interface RPCSimulateOperationParam { operation: OperationObject; chain_id: string; blocks_before_activation?: number; latency?: number; } export type RPCRunCodeParam = { script: MichelsonV1ExpressionExtended[]; storage: MichelsonV1Expression; input: MichelsonV1Expression; amount: string; chain_id: string; source?: string; payer?: string; gas?: string; self?: string; entrypoint?: string; balance?: string; unparsing_mode?: UnparsingMode; now?: string; level?: string; }; export type RunCodeResult = { storage: MichelsonV1Expression; operations: InternalOperationResult[]; big_map_diff?: ContractBigMapDiff; lazy_storage_diff?: LazyStorageDiff; }; export type RPCRunScriptViewParam = { contract: string; view: string; input: MichelsonV1Expression; unlimited_gas?: boolean; chain_id: string; source?: string; payer?: string; gas?: string; unparsing_mode?: UnparsingModeEnum; now?: string; level?: string; }; export type RunScriptViewResult = { data: MichelsonV1Expression; }; export type RPCRunViewParam = { contract: string; entrypoint: string; input: MichelsonV1Expression; chain_id: string; source?: string; payer?: string; gas?: BigNumber; unparsing_mode?: UnparsingModeEnum; }; export type RunViewResult = { data: MichelsonV1Expression; }; export type EntrypointsResponse = { entrypoints: { [key: string]: MichelsonV1ExpressionExtended; }; unreachable?: { path: ('Left' | 'Right')[]; }; }; export interface OperationContentsAndResultOrigination { kind: OpKind.ORIGINATION; source: string; fee: string; counter: string; gas_limit: string; storage_limit: string; balance: string; delegate?: string; script?: ScriptedContracts; metadata: OperationContentsAndResultMetadataOrigination; } export interface VotingPeriodResult { index: number; kind: PeriodKindResponse; start_position: number; } export interface VotingPeriodBlockResult { voting_period: VotingPeriodResult; position: number; remaining: number; } export type UnparsingModeEnum = 'Readable' | 'Optimized' | 'Optimized_legacy'; export type UnparsingMode = { unparsing_mode: UnparsingModeEnum; }; export type ProtocolsResponse = { protocol: string; next_protocol: string; }; export type ProtocolActivationsResponse = ProtocolActivation[] | ProtocolActivation; export type ProtocolActivation = { protocol: string; proto_level: number; activation_block: { block_hash: string; level: number; }; }; export type Next = { next: number; } | { newest: number; oldest: number; }; export type LastRemovedCommitmentHashes = { last_message_hash: string; commitment_hash: string; }; export interface PendingOperationsQueryArguments { version?: 1 | 2 | '1' | '2'; validated?: boolean; applied?: boolean; refused?: boolean; outdated?: boolean; branchRefused?: boolean; branchDelayed?: boolean; validationPass?: '0' | '1' | '2' | '3' | 0 | 1 | 2 | 3; source?: string; operationHash?: string; } export type MempoolFilterQueryArguments = { include_default?: boolean; }; export type RpcRatio = [string | number, string | number]; export interface MempoolFilterResponse { minimal_fees?: string | number; minimal_nanotez_per_gas_unit?: RpcRatio; minimal_nanotez_per_byte?: RpcRatio; [key: string]: unknown; } type FailedProcessedOperation = Pick & { error: TezosGenericOperationError[]; }; export interface PendingOperationsV2 { validated: Pick[]; refused: FailedProcessedOperation[]; outdated: FailedProcessedOperation[]; branch_refused: FailedProcessedOperation[]; branch_delayed: FailedProcessedOperation[]; unprocessed: Pick[]; } export declare enum PvmKind { WASM2 = "wasm_2_0_0", ARITH = "arith", RISCV = "riscv" } export interface SmartRollupPublishCommitment { compressed_state: string; inbox_level: number; predecessor: string; number_of_ticks: string; } export declare enum SmartRollupRefutationOptions { START = "start", MOVE = "move" } export type SmartRollupRefutation = SmartRollupRefutationStart | SmartRollupRefutationMove; export interface SmartRollupRefutationStart { refutation_kind: SmartRollupRefutationOptions.START; player_commitment_hash: string; opponent_commitment_hash: string; } export interface SmartRollupRefutationMove { refutation_kind: SmartRollupRefutationOptions.MOVE; choice: string; step: SmartRollupRefutationMoveStep; } export type SmartRollupRefutationMoveStep = SmartRollupRefutationMoveStepDissection[] | SmartRollupRefutationMoveStepProof; export interface SmartRollupRefutationMoveStepDissection { state?: string; tick: number; } export interface SmartRollupRefutationMoveStepProof { pvm_step: string; input_proof?: SmartRollupRefutationMoveInputProof; } export declare enum SmartRollupInputProofKind { INBOX_PROOF = "inbox_proof", REVEAL_PROOF = "reveal_proof", FIRST_INPUT = "first_input" } export interface SmartRollupRefutationMoveInputProofInbox { input_proof_kind: SmartRollupInputProofKind.INBOX_PROOF; level: number; message_counter: string; serialized_proof: string; } export interface SmartRollupRefutationMoveInputProofReveal { input_proof_kind: SmartRollupInputProofKind.REVEAL_PROOF; reveal_proof: SmartRollupRefuteRevealProofOptions; } export interface SmartRollupRefutationMoveInputProofFirstInput { input_proof_kind: SmartRollupInputProofKind.FIRST_INPUT; } export type SmartRollupRefutationMoveInputProof = SmartRollupRefutationMoveInputProofInbox | SmartRollupRefutationMoveInputProofReveal | SmartRollupRefutationMoveInputProofFirstInput; export declare enum SmartRollupRefuteRevealProofKind { RAW_DATA_PROOF = "raw_data_proof", METADATA_PROOF = "metadata_proof", DAL_PAGE_PROOF = "dal_page_proof", DAL_PARAMETERS_PROOF = "dal_parameters_proof" } export interface SmartRollupRefuteRevealProofRaw { reveal_proof_kind: SmartRollupRefuteRevealProofKind.RAW_DATA_PROOF; raw_data: string; } export interface SmartRollupRefuteRevealProofMetadata { reveal_proof_kind: SmartRollupRefuteRevealProofKind.METADATA_PROOF; } export interface SmartRollupRefuteRevealProofDalPage { reveal_proof_kind: SmartRollupRefuteRevealProofKind.DAL_PAGE_PROOF; dal_page_id: { published_level: number; slot_index: number; page_index: number; }; dal_proof: string; } export interface SmartRollupRefuteRevealProofDalParameters { reveal_proof_kind: SmartRollupRefuteRevealProofKind.DAL_PARAMETERS_PROOF; } export type SmartRollupRefuteRevealProofOptions = SmartRollupRefuteRevealProofRaw | SmartRollupRefuteRevealProofMetadata | SmartRollupRefuteRevealProofDalPage | SmartRollupRefuteRevealProofDalParameters; export type SmartRollupGameStatus = SmartRollupRefuteGameStatusOptions.ONGOING | SmartRollupRefuteGameStatusEnded; export declare enum SmartRollupRefuteGameStatusOptions { ONGOING = "ongoing", ENDED = "ended" } export interface SmartRollupRefuteGameStatusEnded { result: SmartRollupRefuteGameStatusResult; } export type SmartRollupRefuteGameStatusResult = SmartRollupRefuteGameEndedResultLoser | SmartRollupRefuteGameEndedResultDraw; export interface SmartRollupRefuteGameEndedResultLoser { kind: SmartRollupRefuteGameEndedPlayerOutcomes.LOSER; reason: SmartRollupRefuteGameEndedReason; player: string; } export interface SmartRollupRefuteGameEndedResultDraw { kind: SmartRollupRefuteGameEndedPlayerOutcomes.DRAW; } export declare enum SmartRollupRefuteGameEndedPlayerOutcomes { LOSER = "loser", DRAW = "draw" } export declare enum SmartRollupRefuteGameEndedReason { CONFLICT_RESOLVED = "conflict_resolved", TIMEOUT = "timeout" } export interface SmartRollupTimeoutStakers { alice: string; bob: string; } export interface ActiveStakingParametersResponse { limit_of_staking_over_baking_millionth: number; edge_of_baking_over_staking_billionth: number; } export type PendingStakingParametersResponse = Array<{ cycle: number; parameters: { limit_of_staking_over_baking_millionth: number; edge_of_baking_over_staking_billionth: number; }; }>; export type DestinationIndexResponse = string | null; export {};