import 'https://deno.land/x/polkadot@0.2.45/types/lookup.ts'; import type { AccountId32, H256, MultiAddress, Percent } from 'https://deno.land/x/polkadot@0.2.45/types/interfaces/runtime/index.ts'; import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, } from 'https://deno.land/x/polkadot@0.2.45/types-codec/index.ts'; import type { ITuple } from 'https://deno.land/x/polkadot@0.2.45/types-codec/types/index.ts'; import { SpWeightsWeightV2Weight } from 'https://deno.land/x/polkadot@0.2.45/types/lookup.ts'; /** @name PalletGearCall (265) */ export interface PalletGearCall extends Enum { readonly isUploadCode: boolean; readonly asUploadCode: { readonly code: Bytes; } & Struct; readonly isUploadProgram: boolean; readonly asUploadProgram: { readonly code: Bytes; readonly salt: Bytes; readonly initPayload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isCreateProgram: boolean; readonly asCreateProgram: { readonly codeId: GprimitivesCodeId; readonly salt: Bytes; readonly initPayload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isSendMessage: boolean; readonly asSendMessage: { readonly destination: GprimitivesActorId; readonly payload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isSendReply: boolean; readonly asSendReply: { readonly replyToId: GprimitivesMessageId; readonly payload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isClaimValue: boolean; readonly asClaimValue: { readonly messageId: GprimitivesMessageId; } & Struct; readonly isRun: boolean; readonly asRun: { readonly maxGas: Option; } & Struct; readonly isSetExecuteInherent: boolean; readonly asSetExecuteInherent: { readonly value: bool; } & Struct; readonly type: | 'UploadCode' | 'UploadProgram' | 'CreateProgram' | 'SendMessage' | 'SendReply' | 'ClaimValue' | 'Run' | 'SetExecuteInherent'; } /** @name GprimitivesCodeId (263) */ export type GprimitivesCodeId = U8aFixed; /** @name GprimitivesActorId (264) */ export type GprimitivesActorId = U8aFixed; /** @name GprimitivesMessageId (265) */ export type GprimitivesMessageId = U8aFixed; /** @name PalletGearStakingRewardsCall (267) */ export interface PalletGearStakingRewardsCall extends Enum { readonly isRefill: boolean; readonly asRefill: { readonly value: u128; } & Struct; readonly isForceRefill: boolean; readonly asForceRefill: { readonly from: MultiAddress; readonly value: u128; } & Struct; readonly isWithdraw: boolean; readonly asWithdraw: { readonly to: MultiAddress; readonly value: u128; } & Struct; readonly isAlignSupply: boolean; readonly asAlignSupply: { readonly target: u128; } & Struct; readonly type: 'Refill' | 'ForceRefill' | 'Withdraw' | 'AlignSupply'; } /** @name PalletGearVoucherCall (268) */ export interface PalletGearVoucherCall extends Enum { readonly isIssue: boolean; readonly asIssue: { readonly spender: AccountId32; readonly balance: u128; readonly programs: Option>; readonly codeUploading: bool; readonly duration: u32; } & Struct; readonly isCall: boolean; readonly asCall: { readonly voucherId: PalletGearVoucherInternalVoucherId; readonly call: PalletGearVoucherInternalPrepaidCall; } & Struct; readonly isRevoke: boolean; readonly asRevoke: { readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; } & Struct; readonly isUpdate: boolean; readonly asUpdate: { readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; readonly moveOwnership: Option; readonly balanceTopUp: Option; readonly appendPrograms: Option>>; readonly codeUploading: Option; readonly prolongDuration: Option; } & Struct; readonly isCallDeprecated: boolean; readonly asCallDeprecated: { readonly call: PalletGearVoucherInternalPrepaidCall; } & Struct; readonly isDecline: boolean; readonly asDecline: { readonly voucherId: PalletGearVoucherInternalVoucherId; } & Struct; readonly type: 'Issue' | 'Call' | 'Revoke' | 'Update' | 'CallDeprecated' | 'Decline'; } /** @name PalletGearVoucherInternalVoucherId (272) */ export type PalletGearVoucherInternalVoucherId = U8aFixed; /** @name PalletGearVoucherInternalPrepaidCall (273) */ export interface PalletGearVoucherInternalPrepaidCall extends Enum { readonly isSendMessage: boolean; readonly asSendMessage: { readonly destination: GprimitivesActorId; readonly payload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isSendReply: boolean; readonly asSendReply: { readonly replyToId: GprimitivesMessageId; readonly payload: Bytes; readonly gasLimit: u64; readonly value: u128; readonly keepAlive: bool; } & Struct; readonly isUploadCode: boolean; readonly asUploadCode: { readonly code: Bytes; } & Struct; readonly isDeclineVoucher: boolean; readonly type: 'SendMessage' | 'SendReply' | 'UploadCode' | 'DeclineVoucher'; } /** @name PalletGearDebugCall (279) */ export interface PalletGearDebugCall extends Enum { readonly isEnableDebugMode: boolean; readonly asEnableDebugMode: { readonly debugModeOn: bool; } & Struct; readonly isExhaustBlockResources: boolean; readonly asExhaustBlockResources: { readonly fraction: Percent; } & Struct; readonly type: 'EnableDebugMode' | 'ExhaustBlockResources'; } /** @name PalletGearEvent (306) */ export interface PalletGearEvent extends Enum { readonly isMessageQueued: boolean; readonly asMessageQueued: { readonly id: GprimitivesMessageId; readonly source: AccountId32; readonly destination: GprimitivesActorId; readonly entry: GearCommonEventMessageEntry; } & Struct; readonly isUserMessageSent: boolean; readonly asUserMessageSent: { readonly message: GearCoreMessageUserUserMessage; readonly expiration: Option; } & Struct; readonly isUserMessageRead: boolean; readonly asUserMessageRead: { readonly id: GprimitivesMessageId; readonly reason: GearCommonEventReasonUserMessageReadRuntimeReason; } & Struct; readonly isMessagesDispatched: boolean; readonly asMessagesDispatched: { readonly total: u32; readonly statuses: BTreeMap; readonly stateChanges: BTreeSet; } & Struct; readonly isMessageWaited: boolean; readonly asMessageWaited: { readonly id: GprimitivesMessageId; readonly origin: Option; readonly reason: GearCommonEventReasonMessageWaitedRuntimeReason; readonly expiration: u32; } & Struct; readonly isMessageWoken: boolean; readonly asMessageWoken: { readonly id: GprimitivesMessageId; readonly reason: GearCommonEventReasonMessageWokenRuntimeReason; } & Struct; readonly isCodeChanged: boolean; readonly asCodeChanged: { readonly id: GprimitivesCodeId; readonly change: GearCommonEventCodeChangeKind; } & Struct; readonly isProgramChanged: boolean; readonly asProgramChanged: { readonly id: GprimitivesActorId; readonly change: GearCommonEventProgramChangeKind; } & Struct; readonly isQueueNotProcessed: boolean; readonly type: | 'MessageQueued' | 'UserMessageSent' | 'UserMessageRead' | 'MessagesDispatched' | 'MessageWaited' | 'MessageWoken' | 'CodeChanged' | 'ProgramChanged' | 'QueueNotProcessed'; } /** @name GearCommonEventMessageEntry (307) */ export interface GearCommonEventMessageEntry extends Enum { readonly isInit: boolean; readonly isHandle: boolean; readonly isReply: boolean; readonly asReply: GprimitivesMessageId; readonly isSignal: boolean; readonly type: 'Init' | 'Handle' | 'Reply' | 'Signal'; } /** @name GearCoreMessageUserUserMessage (308) */ export interface GearCoreMessageUserUserMessage extends Struct { readonly id: GprimitivesMessageId; readonly source: GprimitivesActorId; readonly destination: GprimitivesActorId; readonly payload: Bytes; readonly value: Compact; readonly details: Option; } /** @name GearCoreMessagePayloadSizeError (310) */ type GearCoreMessagePayloadSizeError = Null; /** @name GearCoreMessageCommonReplyDetails (312) */ export interface GearCoreMessageCommonReplyDetails extends Struct { readonly to: GprimitivesMessageId; readonly code: GearCoreErrorsSimpleReplyCode; } /** @name GearCoreErrorsSimpleReplyCode (313) */ export interface GearCoreErrorsSimpleReplyCode extends Enum { readonly isSuccess: boolean; readonly asSuccess: GearCoreErrorsSimpleSuccessReplyReason; readonly isError: boolean; readonly asError: GearCoreErrorsSimpleErrorReplyReason; readonly isUnsupported: boolean; readonly type: 'Success' | 'Error' | 'Unsupported'; } /** @name GearCoreErrorsSimpleSuccessReplyReason (314) */ export interface GearCoreErrorsSimpleSuccessReplyReason extends Enum { readonly isAuto: boolean; readonly isManual: boolean; readonly isUnsupported: boolean; readonly type: 'Auto' | 'Manual' | 'Unsupported'; } /** @name GearCoreErrorsSimpleErrorReplyReason (315) */ export interface GearCoreErrorsSimpleErrorReplyReason extends Enum { readonly isExecution: boolean; readonly asExecution: GearCoreErrorsSimpleSimpleExecutionError; readonly isFailedToCreateProgram: boolean; readonly asFailedToCreateProgram: GearCoreErrorsSimpleSimpleProgramCreationError; readonly isInactiveActor: boolean; readonly isRemovedFromWaitlist: boolean; readonly isReinstrumentationFailure: boolean; readonly isUnsupported: boolean; readonly type: | 'Execution' | 'FailedToCreateProgram' | 'InactiveActor' | 'RemovedFromWaitlist' | 'ReinstrumentationFailure' | 'Unsupported'; } /** @name GearCoreErrorsSimpleSimpleExecutionError (316) */ export interface GearCoreErrorsSimpleSimpleExecutionError extends Enum { readonly isRanOutOfGas: boolean; readonly isMemoryOverflow: boolean; readonly isBackendError: boolean; readonly isUserspacePanic: boolean; readonly isUnreachableInstruction: boolean; readonly isStackLimitExceeded: boolean; readonly isUnsupported: boolean; readonly type: | 'RanOutOfGas' | 'MemoryOverflow' | 'BackendError' | 'UserspacePanic' | 'UnreachableInstruction' | 'StackLimitExceeded' | 'Unsupported'; } /** @name GearCoreErrorsSimpleSimpleProgramCreationError (317) */ export interface GearCoreErrorsSimpleSimpleProgramCreationError extends Enum { readonly isCodeNotExists: boolean; readonly isUnsupported: boolean; readonly type: 'CodeNotExists' | 'Unsupported'; } /** @name GearCommonEventReasonUserMessageReadRuntimeReason (318) */ export interface GearCommonEventReasonUserMessageReadRuntimeReason extends Enum { readonly isRuntime: boolean; readonly asRuntime: GearCommonEventUserMessageReadRuntimeReason; readonly isSystem: boolean; readonly asSystem: GearCommonEventUserMessageReadSystemReason; readonly type: 'Runtime' | 'System'; } /** @name GearCommonEventUserMessageReadRuntimeReason (319) */ export interface GearCommonEventUserMessageReadRuntimeReason extends Enum { readonly isMessageReplied: boolean; readonly isMessageClaimed: boolean; readonly type: 'MessageReplied' | 'MessageClaimed'; } /** @name GearCommonEventUserMessageReadSystemReason (320) */ export interface GearCommonEventUserMessageReadSystemReason extends Enum { readonly isOutOfRent: boolean; readonly type: 'OutOfRent'; } /** @name GearCommonEventDispatchStatus (322) */ export interface GearCommonEventDispatchStatus extends Enum { readonly isSuccess: boolean; readonly isFailed: boolean; readonly isNotExecuted: boolean; readonly type: 'Success' | 'Failed' | 'NotExecuted'; } /** @name GearCommonGasProviderNodeGasNodeId (326) */ export interface GearCommonGasProviderNodeGasNodeId extends Enum { readonly isNode: boolean; readonly asNode: GprimitivesMessageId; readonly isReservation: boolean; readonly asReservation: GprimitivesReservationId; readonly type: 'Node' | 'Reservation'; } /** @name GprimitivesReservationId (327) */ export type GprimitivesReservationId = U8aFixed; /** @name GearCommonEventReasonMessageWaitedRuntimeReason (328) */ export interface GearCommonEventReasonMessageWaitedRuntimeReason extends Enum { readonly isRuntime: boolean; readonly asRuntime: GearCommonEventMessageWaitedRuntimeReason; readonly isSystem: boolean; readonly type: 'Runtime' | 'System'; } /** @name GearCommonEventMessageWaitedRuntimeReason (329) */ export interface GearCommonEventMessageWaitedRuntimeReason extends Enum { readonly isWaitCalled: boolean; readonly isWaitForCalled: boolean; readonly isWaitUpToCalled: boolean; readonly isWaitUpToCalledFull: boolean; readonly type: 'WaitCalled' | 'WaitForCalled' | 'WaitUpToCalled' | 'WaitUpToCalledFull'; } /** @name GearCommonEventMessageWaitedSystemReason (330) */ type GearCommonEventMessageWaitedSystemReason = Null; /** @name GearCommonEventReasonMessageWokenRuntimeReason (331) */ export interface GearCommonEventReasonMessageWokenRuntimeReason extends Enum { readonly isRuntime: boolean; readonly asRuntime: GearCommonEventMessageWokenRuntimeReason; readonly isSystem: boolean; readonly asSystem: GearCommonEventMessageWokenSystemReason; readonly type: 'Runtime' | 'System'; } /** @name GearCommonEventMessageWokenRuntimeReason (332) */ export interface GearCommonEventMessageWokenRuntimeReason extends Enum { readonly isWakeCalled: boolean; readonly type: 'WakeCalled'; } /** @name GearCommonEventMessageWokenSystemReason (333) */ export interface GearCommonEventMessageWokenSystemReason extends Enum { readonly isProgramGotInitialized: boolean; readonly isTimeoutHasCome: boolean; readonly isOutOfRent: boolean; readonly type: 'ProgramGotInitialized' | 'TimeoutHasCome' | 'OutOfRent'; } /** @name GearCommonEventCodeChangeKind (334) */ export interface GearCommonEventCodeChangeKind extends Enum { readonly isActive: boolean; readonly asActive: { readonly expiration: Option; } & Struct; readonly isInactive: boolean; readonly isReinstrumented: boolean; readonly type: 'Active' | 'Inactive' | 'Reinstrumented'; } /** @name GearCommonEventProgramChangeKind (335) */ export interface GearCommonEventProgramChangeKind extends Enum { readonly isActive: boolean; readonly asActive: { readonly expiration: u32; } & Struct; readonly isInactive: boolean; readonly isPaused: boolean; readonly isTerminated: boolean; readonly isExpirationChanged: boolean; readonly asExpirationChanged: { readonly expiration: u32; } & Struct; readonly isProgramSet: boolean; readonly asProgramSet: { readonly expiration: u32; } & Struct; readonly type: 'Active' | 'Inactive' | 'Paused' | 'Terminated' | 'ExpirationChanged' | 'ProgramSet'; } /** @name PalletGearStakingRewardsEvent (336) */ export interface PalletGearStakingRewardsEvent extends Enum { readonly isDeposited: boolean; readonly asDeposited: { readonly amount: u128; } & Struct; readonly isWithdrawn: boolean; readonly asWithdrawn: { readonly amount: u128; } & Struct; readonly isBurned: boolean; readonly asBurned: { readonly amount: u128; } & Struct; readonly isMinted: boolean; readonly asMinted: { readonly amount: u128; } & Struct; readonly type: 'Deposited' | 'Withdrawn' | 'Burned' | 'Minted'; } /** @name PalletGearVoucherEvent (337) */ export interface PalletGearVoucherEvent extends Enum { readonly isVoucherIssued: boolean; readonly asVoucherIssued: { readonly owner: AccountId32; readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; } & Struct; readonly isVoucherRevoked: boolean; readonly asVoucherRevoked: { readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; } & Struct; readonly isVoucherUpdated: boolean; readonly asVoucherUpdated: { readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; readonly newOwner: Option; } & Struct; readonly isVoucherDeclined: boolean; readonly asVoucherDeclined: { readonly spender: AccountId32; readonly voucherId: PalletGearVoucherInternalVoucherId; } & Struct; readonly type: 'VoucherIssued' | 'VoucherRevoked' | 'VoucherUpdated' | 'VoucherDeclined'; } /** @name PalletGearDebugEvent (339) */ export interface PalletGearDebugEvent extends Enum { readonly isDebugMode: boolean; readonly asDebugMode: bool; readonly isDebugDataSnapshot: boolean; readonly asDebugDataSnapshot: PalletGearDebugDebugData; readonly type: 'DebugMode' | 'DebugDataSnapshot'; } /** @name PalletGearDebugDebugData (340) */ export interface PalletGearDebugDebugData extends Struct { readonly dispatchQueue: Vec; readonly programs: Vec; } /** @name GearCoreMessageStoredStoredDispatch (342) */ export interface GearCoreMessageStoredStoredDispatch extends Struct { readonly kind: GearCoreMessageDispatchKind; readonly message: GearCoreMessageStoredStoredMessage; readonly context: Option; } /** @name GearCoreMessageDispatchKind (343) */ export interface GearCoreMessageDispatchKind extends Enum { readonly isInit: boolean; readonly isHandle: boolean; readonly isReply: boolean; readonly isSignal: boolean; readonly type: 'Init' | 'Handle' | 'Reply' | 'Signal'; } /** @name GearCoreMessageStoredStoredMessage (344) */ export interface GearCoreMessageStoredStoredMessage extends Struct { readonly id: GprimitivesMessageId; readonly source: GprimitivesActorId; readonly destination: GprimitivesActorId; readonly payload: Bytes; readonly value: Compact; readonly details: Option; } /** @name GearCoreMessageCommonMessageDetails (346) */ export interface GearCoreMessageCommonMessageDetails extends Enum { readonly isReply: boolean; readonly asReply: GearCoreMessageCommonReplyDetails; readonly isSignal: boolean; readonly asSignal: GearCoreMessageCommonSignalDetails; readonly type: 'Reply' | 'Signal'; } /** @name GearCoreMessageCommonSignalDetails (347) */ export interface GearCoreMessageCommonSignalDetails extends Struct { readonly to: GprimitivesMessageId; readonly code: GearCoreErrorsSimpleSignalCode; } /** @name GearCoreErrorsSimpleSignalCode (348) */ export interface GearCoreErrorsSimpleSignalCode extends Enum { readonly isExecution: boolean; readonly asExecution: GearCoreErrorsSimpleSimpleExecutionError; readonly isRemovedFromWaitlist: boolean; readonly type: 'Execution' | 'RemovedFromWaitlist'; } /** @name GearCoreMessageContextContextStore (350) */ export interface GearCoreMessageContextContextStore extends Struct { readonly outgoing: BTreeMap>; readonly reply: Option; readonly initialized: BTreeSet; readonly reservationNonce: u64; readonly systemReservation: Option; } /** @name PalletGearDebugProgramDetails (357) */ export interface PalletGearDebugProgramDetails extends Struct { readonly id: GprimitivesActorId; readonly state: PalletGearDebugProgramState; } /** @name PalletGearDebugProgramState (358) */ export interface PalletGearDebugProgramState extends Enum { readonly isActive: boolean; readonly asActive: PalletGearDebugProgramInfo; readonly isTerminated: boolean; readonly type: 'Active' | 'Terminated'; } /** @name PalletGearDebugProgramInfo (359) */ export interface PalletGearDebugProgramInfo extends Struct { readonly staticPages: u32; readonly persistentPages: BTreeMap; readonly codeHash: H256; } /** @name GearCoreCodeInstrumentedInstrumentedCode (586) */ export interface GearCoreCodeInstrumentedInstrumentedCode extends Struct { readonly code: Bytes; readonly originalCodeLen: u32; readonly exports: BTreeSet; readonly staticPages: u32; readonly stackEnd: Option; readonly version: u32; } /** @name GearCommonCodeMetadata (591) */ export interface GearCommonCodeMetadata extends Struct { readonly author: H256; readonly blockNumber: Compact; } /** @name NumeratedTreeIntervalsTree (592) */ export interface NumeratedTreeIntervalsTree extends Struct { readonly inner: BTreeMap; } /** @name GearCoreProgram (596) */ export interface GearCoreProgram extends Enum { readonly isActive: boolean; readonly asActive: GearCoreProgramActiveProgram; readonly isExited: boolean; readonly asExited: GprimitivesActorId; readonly isTerminated: boolean; readonly asTerminated: GprimitivesActorId; readonly type: 'Active' | 'Exited' | 'Terminated'; } /** @name GearCoreProgramActiveProgram (597) */ export interface GearCoreProgramActiveProgram extends Struct { readonly allocationsTreeLen: u32; readonly memoryInfix: u32; readonly gasReservationMap: BTreeMap; readonly codeHash: H256; readonly codeExports: BTreeSet; readonly staticPages: u32; readonly state: GearCoreProgramProgramState; readonly expirationBlock: u32; } /** @name GearCoreReservationGasReservationSlot (600) */ export interface GearCoreReservationGasReservationSlot extends Struct { readonly amount: u64; readonly start: u32; readonly finish: u32; } /** @name GearCoreProgramProgramState (603) */ export interface GearCoreProgramProgramState extends Enum { readonly isUninitialized: boolean; readonly asUninitialized: { readonly messageId: GprimitivesMessageId; } & Struct; readonly isInitialized: boolean; readonly type: 'Uninitialized' | 'Initialized'; } /** @name PalletGearProgramError (605) */ export interface PalletGearProgramError extends Enum { readonly isDuplicateItem: boolean; readonly isProgramNotFound: boolean; readonly isNotActiveProgram: boolean; readonly isCannotFindDataForPage: boolean; readonly isProgramCodeNotFound: boolean; readonly type: | 'DuplicateItem' | 'ProgramNotFound' | 'NotActiveProgram' | 'CannotFindDataForPage' | 'ProgramCodeNotFound'; } /** @name GearCommonStorageComplicatedDequeueLinkedNode (606) */ export interface GearCommonStorageComplicatedDequeueLinkedNode extends Struct { readonly next: Option; readonly value: GearCoreMessageStoredStoredDispatch; } /** @name GearCoreMessageUserUserStoredMessage (610) */ export interface GearCoreMessageUserUserStoredMessage extends Struct { readonly id: GprimitivesMessageId; readonly source: GprimitivesActorId; readonly destination: GprimitivesActorId; readonly payload: Bytes; readonly value: Compact; } /** @name GearCommonStoragePrimitivesInterval (611) */ export interface GearCommonStoragePrimitivesInterval extends Struct { readonly start: u32; readonly finish: u32; } /** @name GearCoreMessageStoredStoredDelayedDispatch (615) */ export interface GearCoreMessageStoredStoredDelayedDispatch extends Struct { readonly kind: GearCoreMessageDispatchKind; readonly message: GearCoreMessageStoredStoredMessage; } /** @name PalletGearMessengerError (616) */ export interface PalletGearMessengerError extends Enum { readonly isQueueDuplicateKey: boolean; readonly isQueueElementNotFound: boolean; readonly isQueueHeadShouldBeSet: boolean; readonly isQueueHeadShouldNotBeSet: boolean; readonly isQueueTailHasNextKey: boolean; readonly isQueueTailParentNotFound: boolean; readonly isQueueTailShouldBeSet: boolean; readonly isQueueTailShouldNotBeSet: boolean; readonly isMailboxDuplicateKey: boolean; readonly isMailboxElementNotFound: boolean; readonly isWaitlistDuplicateKey: boolean; readonly isWaitlistElementNotFound: boolean; readonly type: | 'QueueDuplicateKey' | 'QueueElementNotFound' | 'QueueHeadShouldBeSet' | 'QueueHeadShouldNotBeSet' | 'QueueTailHasNextKey' | 'QueueTailParentNotFound' | 'QueueTailShouldBeSet' | 'QueueTailShouldNotBeSet' | 'MailboxDuplicateKey' | 'MailboxElementNotFound' | 'WaitlistDuplicateKey' | 'WaitlistElementNotFound'; } /** @name GearCommonSchedulerTaskScheduledTask (618) */ export interface GearCommonSchedulerTaskScheduledTask extends Enum { readonly isPauseProgram: boolean; readonly asPauseProgram: GprimitivesActorId; readonly isRemoveCode: boolean; readonly asRemoveCode: GprimitivesCodeId; readonly isRemoveFromMailbox: boolean; readonly asRemoveFromMailbox: ITuple<[AccountId32, GprimitivesMessageId]>; readonly isRemoveFromWaitlist: boolean; readonly asRemoveFromWaitlist: ITuple<[GprimitivesActorId, GprimitivesMessageId]>; readonly isRemovePausedProgram: boolean; readonly asRemovePausedProgram: GprimitivesActorId; readonly isWakeMessage: boolean; readonly asWakeMessage: ITuple<[GprimitivesActorId, GprimitivesMessageId]>; readonly isSendDispatch: boolean; readonly asSendDispatch: GprimitivesMessageId; readonly isSendUserMessage: boolean; readonly asSendUserMessage: { readonly messageId: GprimitivesMessageId; readonly toMailbox: bool; } & Struct; readonly isRemoveGasReservation: boolean; readonly asRemoveGasReservation: ITuple<[GprimitivesActorId, GprimitivesReservationId]>; readonly isRemoveResumeSession: boolean; readonly asRemoveResumeSession: u32; readonly type: | 'PauseProgram' | 'RemoveCode' | 'RemoveFromMailbox' | 'RemoveFromWaitlist' | 'RemovePausedProgram' | 'WakeMessage' | 'SendDispatch' | 'SendUserMessage' | 'RemoveGasReservation' | 'RemoveResumeSession'; } /** @name PalletGearSchedulerError (619) */ export interface PalletGearSchedulerError extends Enum { readonly isDuplicateTask: boolean; readonly isTaskNotFound: boolean; readonly type: 'DuplicateTask' | 'TaskNotFound'; } /** @name GearCommonGasProviderNodeGasNode (620) */ export interface GearCommonGasProviderNodeGasNode extends Enum { readonly isExternal: boolean; readonly asExternal: { readonly id: AccountId32; readonly multiplier: GearCommonGasMultiplier; readonly value: u64; readonly lock: GearCommonGasProviderNodeNodeLock; readonly systemReserve: u64; readonly refs: GearCommonGasProviderNodeChildrenRefs; readonly consumed: bool; readonly deposit: bool; } & Struct; readonly isCut: boolean; readonly asCut: { readonly id: AccountId32; readonly multiplier: GearCommonGasMultiplier; readonly value: u64; readonly lock: GearCommonGasProviderNodeNodeLock; } & Struct; readonly isReserved: boolean; readonly asReserved: { readonly id: AccountId32; readonly multiplier: GearCommonGasMultiplier; readonly value: u64; readonly lock: GearCommonGasProviderNodeNodeLock; readonly refs: GearCommonGasProviderNodeChildrenRefs; readonly consumed: bool; } & Struct; readonly isSpecifiedLocal: boolean; readonly asSpecifiedLocal: { readonly parent: GearCommonGasProviderNodeGasNodeId; readonly root: GearCommonGasProviderNodeGasNodeId; readonly value: u64; readonly lock: GearCommonGasProviderNodeNodeLock; readonly systemReserve: u64; readonly refs: GearCommonGasProviderNodeChildrenRefs; readonly consumed: bool; } & Struct; readonly isUnspecifiedLocal: boolean; readonly asUnspecifiedLocal: { readonly parent: GearCommonGasProviderNodeGasNodeId; readonly root: GearCommonGasProviderNodeGasNodeId; readonly lock: GearCommonGasProviderNodeNodeLock; readonly systemReserve: u64; } & Struct; readonly type: 'External' | 'Cut' | 'Reserved' | 'SpecifiedLocal' | 'UnspecifiedLocal'; } /** @name GearCommonGasMultiplier (621) */ export interface GearCommonGasMultiplier extends Enum { readonly isValuePerGas: boolean; readonly asValuePerGas: u128; readonly isGasPerValue: boolean; readonly asGasPerValue: u64; readonly type: 'ValuePerGas' | 'GasPerValue'; } /** @name GearCommonGasProviderNodeNodeLock (622) */ export type GearCommonGasProviderNodeNodeLock = Vec; /** @name GearCommonGasProviderNodeChildrenRefs (624) */ export interface GearCommonGasProviderNodeChildrenRefs extends Struct { readonly specRefs: u32; readonly unspecRefs: u32; } /** @name PalletGearGasError (625) */ export interface PalletGearGasError extends Enum { readonly isForbidden: boolean; readonly isNodeAlreadyExists: boolean; readonly isInsufficientBalance: boolean; readonly isNodeNotFound: boolean; readonly isNodeWasConsumed: boolean; readonly isParentIsLost: boolean; readonly isParentHasNoChildren: boolean; readonly isUnexpectedConsumeOutput: boolean; readonly isUnexpectedNodeType: boolean; readonly isValueIsNotCaught: boolean; readonly isValueIsBlocked: boolean; readonly isValueIsNotBlocked: boolean; readonly isConsumedWithLock: boolean; readonly isConsumedWithSystemReservation: boolean; readonly isTotalValueIsOverflowed: boolean; readonly isTotalValueIsUnderflowed: boolean; readonly type: | 'Forbidden' | 'NodeAlreadyExists' | 'InsufficientBalance' | 'NodeNotFound' | 'NodeWasConsumed' | 'ParentIsLost' | 'ParentHasNoChildren' | 'UnexpectedConsumeOutput' | 'UnexpectedNodeType' | 'ValueIsNotCaught' | 'ValueIsBlocked' | 'ValueIsNotBlocked' | 'ConsumedWithLock' | 'ConsumedWithSystemReservation' | 'TotalValueIsOverflowed' | 'TotalValueIsUnderflowed'; } /** @name PalletGearSchedule (626) */ export interface PalletGearSchedule extends Struct { readonly limits: PalletGearScheduleLimits; readonly instructionWeights: PalletGearScheduleInstructionWeights; readonly syscallWeights: PalletGearScheduleSyscallWeights; readonly memoryWeights: PalletGearScheduleMemoryWeights; readonly moduleInstantiationPerByte: SpWeightsWeightV2Weight; readonly dbWritePerByte: SpWeightsWeightV2Weight; readonly dbReadPerByte: SpWeightsWeightV2Weight; readonly codeInstrumentationCost: SpWeightsWeightV2Weight; readonly codeInstrumentationByteCost: SpWeightsWeightV2Weight; readonly loadAllocationsWeight: SpWeightsWeightV2Weight; } /** @name PalletGearScheduleLimits (627) */ export interface PalletGearScheduleLimits extends Struct { readonly stackHeight: Option; readonly globals: u32; readonly locals: u32; readonly parameters: u32; readonly memoryPages: u16; readonly tableSize: u32; readonly brTableSize: u32; readonly subjectLen: u32; readonly callDepth: u32; readonly payloadLen: u32; readonly codeLen: u32; readonly dataSegmentsAmount: u32; } /** @name PalletGearScheduleInstructionWeights (628) */ export interface PalletGearScheduleInstructionWeights extends Struct { readonly version: u32; readonly i64const: u32; readonly i64load: u32; readonly i32load: u32; readonly i64store: u32; readonly i32store: u32; readonly select: u32; readonly r_if: u32; readonly br: u32; readonly brIf: u32; readonly brTable: u32; readonly brTablePerEntry: u32; readonly call: u32; readonly callIndirect: u32; readonly callIndirectPerParam: u32; readonly callPerLocal: u32; readonly localGet: u32; readonly localSet: u32; readonly localTee: u32; readonly globalGet: u32; readonly globalSet: u32; readonly memoryCurrent: u32; readonly i64clz: u32; readonly i32clz: u32; readonly i64ctz: u32; readonly i32ctz: u32; readonly i64popcnt: u32; readonly i32popcnt: u32; readonly i64eqz: u32; readonly i32eqz: u32; readonly i32extend8s: u32; readonly i32extend16s: u32; readonly i64extend8s: u32; readonly i64extend16s: u32; readonly i64extend32s: u32; readonly i64extendsi32: u32; readonly i64extendui32: u32; readonly i32wrapi64: u32; readonly i64eq: u32; readonly i32eq: u32; readonly i64ne: u32; readonly i32ne: u32; readonly i64lts: u32; readonly i32lts: u32; readonly i64ltu: u32; readonly i32ltu: u32; readonly i64gts: u32; readonly i32gts: u32; readonly i64gtu: u32; readonly i32gtu: u32; readonly i64les: u32; readonly i32les: u32; readonly i64leu: u32; readonly i32leu: u32; readonly i64ges: u32; readonly i32ges: u32; readonly i64geu: u32; readonly i32geu: u32; readonly i64add: u32; readonly i32add: u32; readonly i64sub: u32; readonly i32sub: u32; readonly i64mul: u32; readonly i32mul: u32; readonly i64divs: u32; readonly i32divs: u32; readonly i64divu: u32; readonly i32divu: u32; readonly i64rems: u32; readonly i32rems: u32; readonly i64remu: u32; readonly i32remu: u32; readonly i64and: u32; readonly i32and: u32; readonly i64or: u32; readonly i32or: u32; readonly i64xor: u32; readonly i32xor: u32; readonly i64shl: u32; readonly i32shl: u32; readonly i64shrs: u32; readonly i32shrs: u32; readonly i64shru: u32; readonly i32shru: u32; readonly i64rotl: u32; readonly i32rotl: u32; readonly i64rotr: u32; readonly i32rotr: u32; } /** @name PalletGearScheduleSyscallWeights (629) */ interface PalletGearScheduleSyscallWeights extends Struct { readonly alloc: SpWeightsWeightV2Weight; readonly free: SpWeightsWeightV2Weight; readonly freeRange: SpWeightsWeightV2Weight; readonly freeRangePerPage: SpWeightsWeightV2Weight; readonly grReserveGas: SpWeightsWeightV2Weight; readonly grUnreserveGas: SpWeightsWeightV2Weight; readonly grSystemReserveGas: SpWeightsWeightV2Weight; readonly grGasAvailable: SpWeightsWeightV2Weight; readonly grMessageId: SpWeightsWeightV2Weight; readonly grProgramId: SpWeightsWeightV2Weight; readonly grSource: SpWeightsWeightV2Weight; readonly grValue: SpWeightsWeightV2Weight; readonly grValueAvailable: SpWeightsWeightV2Weight; readonly grSize: SpWeightsWeightV2Weight; readonly grRead: SpWeightsWeightV2Weight; readonly grReadPerByte: SpWeightsWeightV2Weight; readonly grEnvVars: SpWeightsWeightV2Weight; readonly grBlockHeight: SpWeightsWeightV2Weight; readonly grBlockTimestamp: SpWeightsWeightV2Weight; readonly grRandom: SpWeightsWeightV2Weight; readonly grReplyDeposit: SpWeightsWeightV2Weight; readonly grSend: SpWeightsWeightV2Weight; readonly grSendPerByte: SpWeightsWeightV2Weight; readonly grSendWgas: SpWeightsWeightV2Weight; readonly grSendWgasPerByte: SpWeightsWeightV2Weight; readonly grSendInit: SpWeightsWeightV2Weight; readonly grSendPush: SpWeightsWeightV2Weight; readonly grSendPushPerByte: SpWeightsWeightV2Weight; readonly grSendCommit: SpWeightsWeightV2Weight; readonly grSendCommitWgas: SpWeightsWeightV2Weight; readonly grReservationSend: SpWeightsWeightV2Weight; readonly grReservationSendPerByte: SpWeightsWeightV2Weight; readonly grReservationSendCommit: SpWeightsWeightV2Weight; readonly grReplyCommit: SpWeightsWeightV2Weight; readonly grReplyCommitWgas: SpWeightsWeightV2Weight; readonly grReservationReply: SpWeightsWeightV2Weight; readonly grReservationReplyPerByte: SpWeightsWeightV2Weight; readonly grReservationReplyCommit: SpWeightsWeightV2Weight; readonly grReplyPush: SpWeightsWeightV2Weight; readonly grReply: SpWeightsWeightV2Weight; readonly grReplyPerByte: SpWeightsWeightV2Weight; readonly grReplyWgas: SpWeightsWeightV2Weight; readonly grReplyWgasPerByte: SpWeightsWeightV2Weight; readonly grReplyPushPerByte: SpWeightsWeightV2Weight; readonly grReplyTo: SpWeightsWeightV2Weight; readonly grSignalCode: SpWeightsWeightV2Weight; readonly grSignalFrom: SpWeightsWeightV2Weight; readonly grReplyInput: SpWeightsWeightV2Weight; readonly grReplyInputWgas: SpWeightsWeightV2Weight; readonly grReplyPushInput: SpWeightsWeightV2Weight; readonly grReplyPushInputPerByte: SpWeightsWeightV2Weight; readonly grSendInput: SpWeightsWeightV2Weight; readonly grSendInputWgas: SpWeightsWeightV2Weight; readonly grSendPushInput: SpWeightsWeightV2Weight; readonly grSendPushInputPerByte: SpWeightsWeightV2Weight; readonly grDebug: SpWeightsWeightV2Weight; readonly grDebugPerByte: SpWeightsWeightV2Weight; readonly grReplyCode: SpWeightsWeightV2Weight; readonly grExit: SpWeightsWeightV2Weight; readonly grLeave: SpWeightsWeightV2Weight; readonly grWait: SpWeightsWeightV2Weight; readonly grWaitFor: SpWeightsWeightV2Weight; readonly grWaitUpTo: SpWeightsWeightV2Weight; readonly grWake: SpWeightsWeightV2Weight; readonly grCreateProgram: SpWeightsWeightV2Weight; readonly grCreateProgramPayloadPerByte: SpWeightsWeightV2Weight; readonly grCreateProgramSaltPerByte: SpWeightsWeightV2Weight; readonly grCreateProgramWgas: SpWeightsWeightV2Weight; readonly grCreateProgramWgasPayloadPerByte: SpWeightsWeightV2Weight; readonly grCreateProgramWgasSaltPerByte: SpWeightsWeightV2Weight; } /** @name PalletGearScheduleMemoryWeights (630) */ interface PalletGearScheduleMemoryWeights extends Struct { readonly lazyPagesSignalRead: SpWeightsWeightV2Weight; readonly lazyPagesSignalWrite: SpWeightsWeightV2Weight; readonly lazyPagesSignalWriteAfterRead: SpWeightsWeightV2Weight; readonly lazyPagesHostFuncRead: SpWeightsWeightV2Weight; readonly lazyPagesHostFuncWrite: SpWeightsWeightV2Weight; readonly lazyPagesHostFuncWriteAfterRead: SpWeightsWeightV2Weight; readonly loadPageData: SpWeightsWeightV2Weight; readonly uploadPageData: SpWeightsWeightV2Weight; readonly staticPage: SpWeightsWeightV2Weight; readonly memGrow: SpWeightsWeightV2Weight; readonly memGrowPerPage: SpWeightsWeightV2Weight; readonly parachainReadHeuristic: SpWeightsWeightV2Weight; } /** @name PalletGearError (632) */ export interface PalletGearError extends Enum { readonly isMessageNotFound: boolean; readonly isInsufficientBalance: boolean; readonly isGasLimitTooHigh: boolean; readonly isProgramAlreadyExists: boolean; readonly isInactiveProgram: boolean; readonly isNoMessageTree: boolean; readonly isCodeAlreadyExists: boolean; readonly isCodeDoesntExist: boolean; readonly isCodeTooLarge: boolean; readonly isProgramConstructionFailed: boolean; readonly isMessageQueueProcessingDisabled: boolean; readonly isResumePeriodLessThanMinimal: boolean; readonly isProgramNotFound: boolean; readonly isGearRunAlreadyInBlock: boolean; readonly isProgramRentDisabled: boolean; readonly type: | 'MessageNotFound' | 'InsufficientBalance' | 'GasLimitTooHigh' | 'ProgramAlreadyExists' | 'InactiveProgram' | 'NoMessageTree' | 'CodeAlreadyExists' | 'CodeDoesntExist' | 'CodeTooLarge' | 'ProgramConstructionFailed' | 'MessageQueueProcessingDisabled' | 'ResumePeriodLessThanMinimal' | 'ProgramNotFound' | 'GearRunAlreadyInBlock' | 'ProgramRentDisabled'; } /** @name PalletGearStakingRewardsError (635) */ export interface PalletGearStakingRewardsError extends Enum { readonly isFailureToRefillPool: boolean; readonly isFailureToWithdrawFromPool: boolean; readonly type: 'FailureToRefillPool' | 'FailureToWithdrawFromPool'; } /** @name PalletGearVoucherInternalVoucherInfo (637) */ export interface PalletGearVoucherInternalVoucherInfo extends Struct { readonly owner: AccountId32; readonly programs: Option>; readonly codeUploading: bool; readonly expiry: u32; } /** @name PalletGearVoucherError (638) */ export interface PalletGearVoucherError extends Enum { readonly isBadOrigin: boolean; readonly isBalanceTransfer: boolean; readonly isInappropriateDestination: boolean; readonly isInexistentVoucher: boolean; readonly isIrrevocableYet: boolean; readonly isMaxProgramsLimitExceeded: boolean; readonly isUnknownDestination: boolean; readonly isVoucherExpired: boolean; readonly isDurationOutOfBounds: boolean; readonly isCodeUploadingEnabled: boolean; readonly isCodeUploadingDisabled: boolean; readonly type: | 'BadOrigin' | 'BalanceTransfer' | 'InappropriateDestination' | 'InexistentVoucher' | 'IrrevocableYet' | 'MaxProgramsLimitExceeded' | 'UnknownDestination' | 'VoucherExpired' | 'DurationOutOfBounds' | 'CodeUploadingEnabled' | 'CodeUploadingDisabled'; } /** @name PalletGearBankBankAccount (639) */ export interface PalletGearBankBankAccount extends Struct { readonly gas: u128; readonly value: u128; } /** @name PalletGearBankError (640) */ export interface PalletGearBankError extends Enum { readonly isInsufficientBalance: boolean; readonly isInsufficientGasBalance: boolean; readonly isInsufficientValueBalance: boolean; readonly isInsufficientBankBalance: boolean; readonly isInsufficientDeposit: boolean; readonly isOverflow: boolean; readonly type: | 'InsufficientBalance' | 'InsufficientGasBalance' | 'InsufficientValueBalance' | 'InsufficientBankBalance' | 'InsufficientDeposit' | 'Overflow'; } /** @name PalletSudoError (641) */ export interface PalletSudoError extends Enum { readonly isRequireSudo: boolean; readonly type: 'RequireSudo'; } /** @name PalletGearDebugError (645) */ type PalletGearDebugError = Null;