Name | Lookup | Parameters | |
---|---|---|---|
update_schedule | 1200 | 1 | |
call | 1201 | 4 | |
instantiate_with_code | 1202 | 5 | |
instantiate | 1203 | 5 | |
claim_surcharge | 1204 | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
Instantiated | 1200 | ||
Evicted | 1201 | ||
Terminated | 1202 | ||
Restored | 1203 | ||
CodeStored | 1204 | ||
ScheduleUpdated | 1205 | ||
ContractEmitted | 1206 | ||
CodeRemoved | 1207 |
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>"} |
Name | Type | Value | |
---|---|---|---|
SignedClaimHandicap | BlockNumber | 0x02000000 | |
TombstoneDeposit | BalanceOf | 0x00002ae7849100000000000000000000 | |
DepositPerContract | BalanceOf | 0x00002ae7849100000000000000000000 | |
DepositPerStorageByte | BalanceOf | 0x0000869eae29d5000000000000000000 | |
DepositPerStorageItem | BalanceOf | 0x00004f8c34e814020000000000000000 | |
RentFraction | Perbill | 0x0a090000 | |
SurchargeReward | BalanceOf | 0x00c029f73d5405000000000000000000 | |
MaxDepth | u32 | 0x20000000 | |
MaxValueSize | u32 | 0x00400000 | |
DeletionQueueDepth | u32 | 0x3c000000 | |
DeletionWeightLimit | Weight | 0x00743ba40b000000 |
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. |