[][src]Trait pallet_contracts::Trait

Associated Types

type Time: Time[src]

type Randomness: Randomness<Self::Hash>[src]

type Currency: Currency<Self::AccountId>[src]

The currency in which fees are paid and contract balances are held.

type Event: From<Event<Self>> + Into<Self::Event>[src]

The overarching event type.

type DetermineContractAddress: ContractAddressFor<CodeHash<Self>, Self::AccountId>[src]

A function type to get the contract address given the instantiator.

type TrieIdGenerator: TrieIdGenerator<Self::AccountId>[src]

trie id generator

type RentPayment: OnUnbalanced<NegativeImbalanceOf<Self>>[src]

Handler for rent payments.

type SignedClaimHandicap: Get<Self::BlockNumber>[src]

Number of block delay an extrinsic claim surcharge has.

When claim surcharge is called by an extrinsic the rent is checked for current_block - delay

type TombstoneDeposit: Get<BalanceOf<Self>>[src]

The minimum amount required to generate a tombstone.

type StorageSizeOffset: Get<u32>[src]

A size offset for an contract. A just created account with untouched storage will have that much of storage from the perspective of the state rent.

This is a simple way to ensure that contracts with empty storage eventually get deleted by making them pay rent. This creates an incentive to remove them early in order to save rent.

type RentByteFee: Get<BalanceOf<Self>>[src]

Price of a byte of storage per one block interval. Should be greater than 0.

type RentDepositOffset: Get<BalanceOf<Self>>[src]

The amount of funds a contract should deposit in order to offset the cost of one byte.

Let's suppose the deposit is 1,000 BU (balance units)/byte and the rent is 1 BU/byte/day, then a contract with 1,000,000 BU that uses 1,000 bytes of storage would pay no rent. But if the balance reduced to 500,000 BU and the storage stayed the same at 1,000, then it would pay 500 BU/day.

type SurchargeReward: Get<BalanceOf<Self>>[src]

Reward that is received by the party whose touch has led to removal of a contract.

type MaxDepth: Get<u32>[src]

The maximum nesting level of a call/instantiate stack.

type MaxValueSize: Get<u32>[src]

The maximum size of a storage value in bytes.

type WeightPrice: Convert<Weight, BalanceOf<Self>>[src]

Used to answer contracts's queries regarding the current weight price. This is not used to calculate the actual fee and is only for informational purposes.

Loading content...


Loading content...