import { Codec } from '../../types'; import { Compact, Enum, Option, Struct } from '../../codec'; import { Bytes, Null, bool, u32, u64 } from '../../primitive'; import { Balance, BlockNumber, Hash } from '../runtime'; /** Struct */ export interface AliveContractInfo extends Struct { /** TrieId */ readonly trieId: TrieId; /** u32 */ readonly storageSize: u32; /** CodeHash */ readonly codeHash: CodeHash; /** Balance */ readonly rentAllowance: Balance; /** BlockNumber */ readonly deductBlock: BlockNumber; /** Option */ readonly lastWrite: Option; } /** Hash */ export declare type CodeHash = Hash; /** Enum */ export interface ContractInfo extends Enum { /** 0:: Alive(AliveContractInfo) */ readonly isAlive: boolean; /** AliveContractInfo */ readonly asAlive: AliveContractInfo; /** 1:: Tombstone(TombstoneContractInfo) */ readonly isTombstone: boolean; /** TombstoneContractInfo */ readonly asTombstone: TombstoneContractInfo; } /** Uint8Array & Codec */ export declare type ContractStorageKey = Uint8Array & Codec; /** u64 */ export declare type Gas = u64; /** Struct */ export interface PrefabWasmModule extends Struct { /** Compact */ readonly scheduleVersion: Compact; /** Compact */ readonly initial: Compact; /** Compact */ readonly maximum: Compact; /** PrefabWasmModuleReserved */ readonly _reserved: PrefabWasmModuleReserved; /** Bytes */ readonly code: Bytes; } /** Option */ export declare type PrefabWasmModuleReserved = Option; /** Struct */ export interface Schedule extends Struct { /** u32 */ readonly version: u32; /** Gas */ readonly putCodePerByteCost: Gas; /** Gas */ readonly growMemCost: Gas; /** Gas */ readonly regularOpCost: Gas; /** Gas */ readonly returnDataPerByteCost: Gas; /** Gas */ readonly eventDataPerByteCost: Gas; /** Gas */ readonly eventPerTopicCost: Gas; /** Gas */ readonly eventBaseCost: Gas; /** Gas */ readonly sandboxDataReadCost: Gas; /** Gas */ readonly sandboxDataWriteCost: Gas; /** u32 */ readonly maxEventTopics: u32; /** u32 */ readonly maxStackHeight: u32; /** u32 */ readonly maxMemoryPages: u32; /** bool */ readonly enablePrintln: bool; /** u32 */ readonly maxSubjectLen: u32; } /** Hash */ export declare type SeedOf = Hash; /** Hash */ export declare type TombstoneContractInfo = Hash; /** Bytes */ export declare type TrieId = Bytes;