"use strict";
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
    types: {
        AliveContractInfo: {
            trieId: 'TrieId',
            storageSize: 'u32',
            codeHash: 'CodeHash',
            rentAllowance: 'Balance',
            deductBlock: 'BlockNumber',
            lastWrite: 'Option<BlockNumber>'
        },
        CodeHash: 'Hash',
        ContractCallRequest: {
            origin: 'AccountId',
            dest: 'AccountId',
            value: 'Balance',
            gasLimit: 'u64',
            inputData: 'Bytes'
        },
        ContractExecResultSuccess: {
            status: 'u8',
            data: 'Raw'
        },
        ContractExecResult: {
            _enum: {
                Success: 'ContractExecResultSuccess',
                Error: 'Null'
            }
        },
        ContractInfo: {
            _enum: {
                Alive: 'AliveContractInfo',
                Tombstone: 'TombstoneContractInfo'
            }
        },
        ContractStorageKey: '[u8; 32]',
        Gas: 'u64',
        PrefabWasmModule: {
            scheduleVersion: 'Compact<u32>',
            initial: 'Compact<u32>',
            maximum: 'Compact<u32>',
            _reserved: 'PrefabWasmModuleReserved',
            code: 'Bytes'
        },
        PrefabWasmModuleReserved: 'Option<Null>',
        ScheduleTo212: {
            version: 'u32',
            putCodePerByteCost: 'Gas',
            growMemCost: 'Gas',
            regularOpCost: 'Gas',
            returnDataPerByteCost: 'Gas',
            eventDataPerByteCost: 'Gas',
            eventPerTopicCost: 'Gas',
            eventBaseCost: 'Gas',
            sandboxDataReadCost: 'Gas',
            sandboxDataWriteCost: 'Gas',
            maxEventTopics: 'u32',
            maxStackHeight: 'u32',
            maxMemoryPages: 'u32',
            enablePrintln: 'bool',
            maxSubjectLen: 'u32'
        },
        Schedule: {
            version: 'u32',
            putCodePerByteCost: 'Gas',
            growMemCost: 'Gas',
            regularOpCost: 'Gas',
            returnDataPerByteCost: 'Gas',
            eventDataPerByteCost: 'Gas',
            eventPerTopicCost: 'Gas',
            eventBaseCost: 'Gas',
            sandboxDataReadCost: 'Gas',
            sandboxDataWriteCost: 'Gas',
            transferCost: 'Gas',
            maxEventTopics: 'u32',
            maxStackHeight: 'u32',
            maxMemoryPages: 'u32',
            enablePrintln: 'bool',
            maxSubjectLen: 'u32'
        },
        SeedOf: 'Hash',
        TombstoneContractInfo: 'Hash',
        TrieId: 'Bytes'
    }
};
