import 'https://deno.land/x/polkadot@0.2.45/api-base/types/consts.ts'; import { GearCommonGasMultiplier, PalletGearSchedule } from '../lookup.ts'; import type { Option, bool, u128, u32, u64 } from 'https://deno.land/x/polkadot@0.2.45/types-codec/index.ts'; import type { AccountId32 } from 'https://deno.land/x/polkadot@0.2.45/types/interfaces/runtime/index.ts'; import type { ApiTypes } from 'https://deno.land/x/polkadot@0.2.45/api-base/types/index.ts'; import type { Codec } from 'https://deno.land/x/polkadot@0.2.45/types-codec/types/index.ts'; import { FrameSupportPalletId } from 'https://deno.land/x/polkadot@0.2.45/types/lookup.ts'; declare module 'https://deno.land/x/polkadot@0.2.45/api-base/types/consts.ts' { interface AugmentedConsts { gear: { /** * The minimal gas amount for message to be inserted in mailbox. * * This gas will be consuming as rent for storing and message will be available * for reply or claim, once gas ends, message removes. * * Messages with gas limit less than that minimum will not be added in mailbox, * but will be seen in events. **/ mailboxThreshold: u64 & AugmentedConst; /** * The maximum amount of bytes in outgoing messages during message execution. **/ outgoingBytesLimit: u32 & AugmentedConst; /** * The maximum amount of messages that can be produced in during all message executions. **/ outgoingLimit: u32 & AugmentedConst; /** * Performance multiplier. **/ performanceMultiplier: u32 & AugmentedConst; /** * The program rent cost per block. **/ programRentCostPerBlock: u128 & AugmentedConst; /** * The constant defines value that is added if the program * rent is disabled. **/ programRentDisabledDelta: u32 & AugmentedConst; /** * The flag determines if program rent mechanism enabled. **/ programRentEnabled: bool & AugmentedConst; /** * The free of charge period of rent. **/ programRentFreePeriod: u32 & AugmentedConst; /** * The minimal amount of blocks to resume. **/ programResumeMinimalRentPeriod: u32 & AugmentedConst; /** * The amount of blocks for processing resume session. **/ programResumeSessionDuration: u32 & AugmentedConst; /** * The account id of the rent pool if any. **/ rentPoolId: Option & AugmentedConst; /** * Amount of reservations can exist for 1 program. **/ reservationsLimit: u64 & AugmentedConst; /** * Cost schedule and limits. **/ schedule: PalletGearSchedule & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; gearBank: { /** * Bank account address, that will keep all reserved funds. **/ bankAddress: AccountId32 & AugmentedConst; /** * Gas price converter. **/ gasMultiplier: GearCommonGasMultiplier & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; gearGas: { /** * The maximum amount of gas that can be used within a single block. **/ blockGasLimit: u64 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; gearScheduler: { /** * Cost for reservation holding. **/ dispatchHoldCost: u64 & AugmentedConst; /** * Cost for storing in mailbox per block. **/ mailboxCost: u64 & AugmentedConst; /** * Cost for reservation holding. **/ reservationCost: u64 & AugmentedConst; /** * Amount of blocks for extra delay used to secure from outdated tasks. **/ reserveThreshold: u32 & AugmentedConst; /** * Cost for storing in waitlist per block. **/ waitlistCost: u64 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; gearVoucher: { /** * Maximal duration in blocks voucher could be issued/prolonged for. **/ maxDuration: u32 & AugmentedConst; /** * Maximal amount of programs to be specified to interact with. **/ maxProgramsAmount: u8 & AugmentedConst; /** * Minimal duration in blocks voucher could be issued/prolonged for. **/ minDuration: u32 & AugmentedConst; /** * The pallet id, used for deriving its sovereign account ID. **/ palletId: FrameSupportPalletId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; } }