subscan
Runtime Modules / Contracts
Spec Version:
Call Functions
Name
Lookup
Parameters
update_schedule12001
call12014
instantiate_with_code12025
instantiate12035
claim_surcharge12042
Storage Functions
Name
Type
CurrentSchedule{"origin":"PlainType","plain_type":"Schedule"}
PristineCode{"origin":"MapType","map_type":{"key":"CodeHash","hasher":"Identity","value":"Bytes","isLinked":false}}
CodeStorage{"origin":"MapType","map_type":{"key":"CodeHash","hasher":"Identity","value":"PrefabWasmModule","isLinked":false}}
AccountCounter{"origin":"PlainType","plain_type":"u64"}
ContractInfoOf{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"ContractInfo","isLinked":false}}
DeletionQueue{"origin":"PlainType","plain_type":"Vec<storage::DeletedContract>"}
Constants
Name
Type
Value
SignedClaimHandicapBlockNumber0x02000000
TombstoneDepositBalanceOf0x00002ae7849100000000000000000000
DepositPerContractBalanceOf0x00002ae7849100000000000000000000
DepositPerStorageByteBalanceOf0x0000869eae29d5000000000000000000
DepositPerStorageItemBalanceOf0x00004f8c34e814020000000000000000
RentFractionPerbill0x0a090000
SurchargeRewardBalanceOf0x00c029f73d5405000000000000000000
MaxDepthu320x20000000
MaxValueSizeu320x00400000
DeletionQueueDepthu320x3c000000
DeletionWeightLimitWeight0x00743ba40b000000
Error Types
Name
Docs
InvalidScheduleVersion A new schedule must have a greater version than the current one.
InvalidSurchargeClaim An origin must be signed or inherent and auxiliary sender only provided on inherent.
InvalidSourceContract Cannot restore from nonexisting or tombstone contract.
InvalidDestinationContract Cannot restore to nonexisting or alive contract.
InvalidTombstone Tombstones don't match.
InvalidContractOrigin An origin TrieId written in the current block.
OutOfGas The executed contract exhausted its gas limit.
OutputBufferTooSmall The output buffer supplied to a contract API call was too small.
BelowSubsistenceThreshold Performing the requested transfer would have brought the contract below the subsistence threshold. No transfer is allowed to do this in order to allow for a tombstone to be created. Use `seal_terminate` to remove a contract without leaving a tombstone behind.
NewContractNotFunded The newly created contract is below the subsistence threshold after executing its contructor. No contracts are allowed to exist below that threshold.
TransferFailed Performing the requested transfer failed for a reason originating in the chosen currency implementation of the runtime. Most probably the balance is too low or locks are placed on it.
MaxCallDepthReached Performing a call was denied because the calling depth reached the limit of what is specified in the schedule.
NotCallable The contract that was called is either no contract at all (a plain account) or is a tombstone.
CodeTooLarge The code supplied to `instantiate_with_code` exceeds the limit specified in the current schedule.
CodeNotFound No code could be found at the supplied code hash.
OutOfBounds A buffer outside of sandbox memory was passed to a contract API function.
DecodingFailed Input passed to a contract API function failed to decode as expected type.
ContractTrapped Contract trapped during execution.
ValueTooLarge The size defined in `T::MaxValueSize` was exceeded.
ReentranceDenied The action performed is not allowed while the contract performing it is already on the call stack. Those actions are contract self destruction and restoration of a tombstone.
InputAlreadyRead `seal_input` was called twice from the same contract execution context.
RandomSubjectTooLong The subject passed to `seal_random` exceeds the limit.
TooManyTopics The amount of topics passed to `seal_deposit_events` exceeds the limit.
DuplicateTopics The topics passed to `seal_deposit_events` contains at least one duplicate.
NoChainExtension The chain does not provide a chain extension. Calling the chain extension results in this error. Note that this usually shouldn't happen as deploying such contracts is rejected.
DeletionQueueFull Removal of a contract failed because the deletion queue is full. This can happen when either calling [`Module::claim_surcharge`] or `seal_terminate`. The queue is filled by deleting contracts and emptied by a fixed amount each block. Trying again during another block is the only way to resolve this issue.
ContractNotEvictable A contract could not be evicted because it has enough balance to pay rent. This can be returned from [`Module::claim_surcharge`] because the target contract has enough balance to pay for its rent.
StorageExhausted A storage modification exhausted the 32bit type that holds the storage size. This can either happen when the accumulated storage in bytes is too large or when number of storage items is too large.
DuplicateContract A contract with the same AccountId already exists.