import '@polkadot/api-base/types/submittable'; import type { AccountId32, Percent } from '@polkadot/types/interfaces/runtime'; import type { BTreeSet, Bytes, Option, bool, u128, u32, u64 } from '@polkadot/types-codec'; import { GprimitivesActorId, GprimitivesCodeId, GprimitivesMessageId, PalletGearVoucherInternalPrepaidCall, PalletGearVoucherInternalVoucherId, } from '../lookup'; import type { AnyNumber } from '@polkadot/types-codec/types'; import type { ApiTypes } from '@polkadot/api-base/types'; declare module '@polkadot/api-base/types/submittable' { interface AugmentedSubmittables { gear: { /** * See [`Pallet::claim_value`]. **/ claimValue: AugmentedSubmittable< (messageId: GprimitivesMessageId | string | Uint8Array) => SubmittableExtrinsic, [GprimitivesMessageId] >; /** * See [`Pallet::create_program`]. **/ createProgram: AugmentedSubmittable< ( codeId: GprimitivesCodeId | string | Uint8Array, salt: Bytes | string | Uint8Array, initPayload: Bytes | string | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array, ) => SubmittableExtrinsic, [GprimitivesCodeId, Bytes, Bytes, u64, u128, bool] >; /** * See [`Pallet::run`]. **/ run: AugmentedSubmittable< (maxGas: Option | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic, [Option] >; /** * See [`Pallet::send_message`]. **/ sendMessage: AugmentedSubmittable< ( destination: GprimitivesActorId | string | Uint8Array, payload: Bytes | string | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array, ) => SubmittableExtrinsic, [GprimitivesActorId, Bytes, u64, u128, bool] >; /** * See [`Pallet::send_reply`]. **/ sendReply: AugmentedSubmittable< ( replyToId: GprimitivesMessageId | string | Uint8Array, payload: Bytes | string | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array, ) => SubmittableExtrinsic, [GprimitivesMessageId, Bytes, u64, u128, bool] >; /** * See [`Pallet::set_execute_inherent`]. **/ setExecuteInherent: AugmentedSubmittable< (value: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool] >; /** * See [`Pallet::upload_code`]. **/ uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** * See [`Pallet::upload_program`]. **/ uploadProgram: AugmentedSubmittable< ( code: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, initPayload: Bytes | string | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array, ) => SubmittableExtrinsic, [Bytes, Bytes, Bytes, u64, u128, bool] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; gearDebug: { /** * See [`Pallet::enable_debug_mode`]. **/ enableDebugMode: AugmentedSubmittable< (debugModeOn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool] >; /** * See [`Pallet::exhaust_block_resources`]. **/ exhaustBlockResources: AugmentedSubmittable< (fraction: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Percent] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; gearVoucher: { /** * See [`Pallet::call`]. **/ call: AugmentedSubmittable< ( voucherId: PalletGearVoucherInternalVoucherId | string | Uint8Array, call: | PalletGearVoucherInternalPrepaidCall | { SendMessage: any } | { SendReply: any } | { UploadCode: any } | { DeclineVoucher: any } | string | Uint8Array, ) => SubmittableExtrinsic, [PalletGearVoucherInternalVoucherId, PalletGearVoucherInternalPrepaidCall] >; /** * See [`Pallet::call_deprecated`]. **/ callDeprecated: AugmentedSubmittable< ( call: | PalletGearVoucherInternalPrepaidCall | { SendMessage: any } | { SendReply: any } | { UploadCode: any } | { DeclineVoucher: any } | string | Uint8Array, ) => SubmittableExtrinsic, [PalletGearVoucherInternalPrepaidCall] >; /** * See [`Pallet::decline`]. **/ decline: AugmentedSubmittable< (voucherId: PalletGearVoucherInternalVoucherId | string | Uint8Array) => SubmittableExtrinsic, [PalletGearVoucherInternalVoucherId] >; /** * See [`Pallet::issue`]. **/ issue: AugmentedSubmittable< ( spender: AccountId32 | string | Uint8Array, balance: u128 | AnyNumber | Uint8Array, programs: Option> | null | Uint8Array | BTreeSet | string[], codeUploading: bool | boolean | Uint8Array, duration: u32 | AnyNumber | Uint8Array, ) => SubmittableExtrinsic, [AccountId32, u128, Option>, bool, u32] >; /** * See [`Pallet::revoke`]. **/ revoke: AugmentedSubmittable< ( spender: AccountId32 | string | Uint8Array, voucherId: PalletGearVoucherInternalVoucherId | string | Uint8Array, ) => SubmittableExtrinsic, [AccountId32, PalletGearVoucherInternalVoucherId] >; /** * See [`Pallet::update`]. **/ update: AugmentedSubmittable< ( spender: AccountId32 | string | Uint8Array, voucherId: PalletGearVoucherInternalVoucherId | string | Uint8Array, moveOwnership: Option | null | Uint8Array | AccountId32 | string, balanceTopUp: Option | null | Uint8Array | u128 | AnyNumber, appendPrograms: | Option>> | null | Uint8Array | Option> | BTreeSet | (string | Uint8Array)[], codeUploading: Option | null | Uint8Array | bool | boolean, prolongDuration: Option | null | Uint8Array | u32 | AnyNumber, ) => SubmittableExtrinsic, [ AccountId32, PalletGearVoucherInternalVoucherId, Option, Option, Option>>, Option, Option, ] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; } // AugmentedSubmittables } // declare module