ICON2
Search
K
Comment on page

Types of Proposals

Type of proposals (schema of a proposal)

For the section that allows validators to submit network proposals the following types of forms must be created.
  • Proposal of type "stepCosts"
    name
    "stepCosts" (fixed value)
    Required field?
    value
    T_DICT
    Y
    value.costs
    Step costs to set as a dict. All fields are optional but at least one field should be specified.
    Y
    value.costs.schema
    T_INT
    Schema version (currently fixed at 1)
    N
    value.costs.default
    T_INT
    Default cost charged each time transaction is executed
    N
    value.costs.contractCall
    T_INT
    Cost to call the smart contract function
    N
    value.costs.contractCreate
    T_INT
    Cost to call the smart contract code generation function
    N
    value.costs.contractUpdate
    T_INT
    Cost to call the smart contract code update function
    N
    value.costs.contractSet
    T_INT
    Cost to store the generated/updated smart contract code per byte
    N
    value.costs.get
    T_INT
    Cost to get values from the state database per byte
    N
    value.costs.getBase
    T_INT
    Default cost charged each time get is called
    N
    value.costs.set
    T_INT
    Cost to set values newly in the state database per byte
    N
    value.costs.setBase
    T_INT
    Default cost charged each time set is called
    N
    value.costs.delete
    T_INT
    Cost to delete values in the state database per byte
    N
    value.costs.deleteBase
    T_INT
    Default cost charged each time delete is called
    N
    value.costs.input
    T_INT
    Cost charged for input data included in transaction per byte
    N
    value.costs.log
    T_INT
    Cost to emit event logs per byte
    N
    value.costs.logBase
    T_INT
    Default cost charged each time log is called
    N
    value.costs.apiCall
    T_INT
    Cost charged for heavy API calls (e.g. hash functions)
    N
    {
    "name": "stepCosts",
    "value": {
    "costs": {"default": "0x186a0", "set": "0x140"}
    }
    }
  • Proposal of type "rewardFundsAllocation"
    Key
    Value Type
    Description
    Required field?
    name
    "rewardFundsAllocation" (fixed value)
    Y
    value
    T_DICT
    Y
    value.rewardFunds
    Reward fund values information to set. All values are required.
    Y
    value.rewardFunds.iprep
    T_INT
    The percentage allocated to the P-Rep from the monthly reward fund
    Y
    value.rewardFunds.icps
    T_INT
    The percentage allocated to the CPS from the monthly reward fund
    Y
    value.rewardFunds.irelay
    T_INT
    The percentage allocated to the BTP relay from the monthly reward fund
    Y
    value.rewardFunds.ivoter
    T_INT
    The percentage allocated to the Voter from the monthly reward fund
    Y
    {
    "name": "rewardFundsAllocation",
    "value": {
    "rewardFunds": {
    "iprep": "0x10",
    "icps": "0xa",
    "irelay": "0xa",
    "ivoter": "0x40"
    }
    }
    }

Resources: