Trait noble_contracts::Config[][src]

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 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 DepositPerContract: Get<BalanceOf<Self>>[src]

The balance every contract needs to deposit to stay alive indefinitely.

This is different from the Self::TombstoneDeposit because this only needs to be deposited while the contract is alive. Costs for additional storage are added to this base cost.

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 DepositPerStorageByte: Get<BalanceOf<Self>>[src]

The balance a contract needs to deposit per storage byte to stay alive indefinitely.

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 DepositPerStorageItem: Get<BalanceOf<Self>>[src]

The balance a contract needs to deposit per storage item to stay alive indefinitely.

It works the same as Self::DepositPerStorageByte but for storage items.

type RentFraction: Get<Perbill>[src]

The fraction of the deposit that should be used as rent per block.

When a contract hasn’t enough balance deposited to stay alive indefinitely it needs to pay per block for the storage it consumes that is not covered by the deposit. This determines how high this rent payment is per block as a fraction of the deposit.

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 and event payload 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.

type WeightInfo: WeightInfo[src]

Describes the weights of the dispatchables of this module and is also used to construct a default cost schedule.

type ChainExtension: ChainExtension[src]

Type that allows the runtime authors to add new host functions for a contract to call.

type DeletionQueueDepth: Get<u32>[src]

The maximum number of tries that can be queued for deletion.

type DeletionWeightLimit: Get<Weight>[src]

The maximum amount of weight that can be consumed per block for lazy trie removal.

Loading content...

Implementors

Loading content...