From 469f018b0ef17faab34aadf06502a5d3a50a701a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 25 Nov 2022 19:04:33 +0100 Subject: [PATCH 1/2] add 0.11.0 template copy from anoma-devnet-masp --- templates/anoma-devnet-0.11.0.toml | 156 +++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 templates/anoma-devnet-0.11.0.toml diff --git a/templates/anoma-devnet-0.11.0.toml b/templates/anoma-devnet-0.11.0.toml new file mode 100644 index 0000000..b9f85a0 --- /dev/null +++ b/templates/anoma-devnet-0.11.0.toml @@ -0,0 +1,156 @@ +# Developer network +genesis_time = "2021-12-20T15:00:00.00Z" + +# 4 genesis validators. +[validator.validator-1] +# Validator's token balance at genesis. +tokens = 1844674407370 # corresponds to 6_714_000 voting power +# Amount of the validator's genesis token balance which is not staked. +non_staked_balance = 1000000000000 +# VP for the validator account +validator_vp = "vp_user" +# VP for the staking reward account +staking_reward_vp = "vp_user" +# Public IP:port address +net_address = "52.210.23.30:26656" + +[validator.validator-2] +# Validator's token balance at genesis. +tokens = 1844674407370 +# Amount of the validator's genesis token balance which is not staked. +non_staked_balance = 1000000000000 +# VP for the validator account +validator_vp = "vp_user" +# VP for the staking reward account +staking_reward_vp = "vp_user" +# Public IP:port address +net_address = "63.32.203.239:26656" + +[validator.validator-3] +# Validator's token balance at genesis. +tokens = 1844674407370 +# Amount of the validator's genesis token balance which is not staked. +non_staked_balance = 1000000000000 +# VP for the validator account +validator_vp = "vp_user" +# VP for the staking reward account +staking_reward_vp = "vp_user" +# Public IP:port address +net_address = "54.195.72.213:26656" + +[validator.validator-4] +# Validator's token balance at genesis. +tokens = 1844674407370 +# Amount of the validator's genesis token balance which is not staked. +non_staked_balance = 1000000000000 +# VP for the validator account +validator_vp = "vp_user" +# VP for the staking reward account +staking_reward_vp = "vp_user" +# Public IP:port address +net_address = "79.125.112.218:26656" + +# Some tokens present at genesis. + +[token.XAN] +address = "atest1v4ehgw36x3prswzxggunzv6pxqmnvdj9xvcyzvpsggeyvs3cg9qnywf589qnwvfsg5erg3fkl09rg5" +vp = "vp_token" +[token.XAN.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.BTC] +address = "atest1v4ehgw36xdzryve5gsc52veeg5cnsv2yx5eygvp38qcrvd29xy6rys6p8yc5xvp4xfpy2v694wgwcp" +vp = "vp_token" +[token.BTC.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.ETH] +address = "atest1v4ehgw36xqmr2d3nx3ryvd2xxgmrq33j8qcns33sxezrgv6zxdzrydjrxveygd2yxumrsdpsf9jc2p" +vp = "vp_token" +[token.ETH.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.DOT] +address = "atest1v4ehgw36gg6nvs2zgfpyxsfjgc65yv6pxy6nwwfsxgungdzrggeyzv35gveyxsjyxymyz335hur2jn" +vp = "vp_token" +[token.DOT.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.Schnitzel] +address = "atest1v4ehgw36xue5xvf5xvuyzvpjx5un2v3k8qeyvd3cxdqns32p89rrxd6xx9zngvpegccnzs699rdnnt" +vp = "vp_token" +[token.Schnitzel.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.Apfel] +address = "atest1v4ehgw36gfryydj9g3p5zv3kg9znyd358ycnzsfcggc5gvecgc6ygs2rxv6ry3zpg4zrwdfeumqcz9" +vp = "vp_token" +[token.Apfel.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +[token.Kartoffel] +address = "atest1v4ehgw36gep5ysecxq6nyv3jg3zygv3e89qn2vp48pryxsf4xpznvve5gvmy23fs89pryvf5a6ht90" +public_key = "" +vp = "vp_token" +[token.Kartoffel.balances] +atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3 = 9223372036854 + +# Some established accounts present at genesis. +[established.faucet] +address = "atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3" +vp = "vp_testnet_faucet" + +[established.masp] +address = "atest1v4ehgw36xaryysfsx5unvve4g5my2vjz89p52sjxxgenzd348yuyyv3hg3pnjs35g5unvde4ca36y5" +vp = "vp_masp" + +# Wasm VP definitions + +# Default user VP +[wasm.vp_user] +# filename (relative to wasm path used by the node) +filename = "vp_user.wasm" + +# Token VP +[wasm.vp_token] +filename = "vp_token.wasm" + +# Faucet VP +[wasm.vp_testnet_faucet] +filename = "vp_testnet_faucet.wasm" + +# MASP VP +[wasm.vp_masp] +filename = "vp_masp.wasm" + +# General protocol parameters. +[parameters] +# Minimum number of blocks in an epoch. +min_num_of_blocks = 100 +# Minimum duration of an epoch (in seconds). +min_duration = 1200 +# Maximum expected time per block (in seconds). +max_expected_time_per_block = 30 + +# Proof of stake parameters. +[pos_params] +# Maximum number of active validators. +max_validator_slots = 128 +# Pipeline length (in epochs). Any change in the validator set made in +# epoch 'n' will become active in epoch 'n + pipeline_len'. +pipeline_len = 2 +# Unbonding length (in epochs). Validators may have their stake slashed +# for a fault in epoch 'n' up through epoch 'n + unbonding_len'. +unbonding_len = 4 +# Votes per token (in basis points, i.e., per 10,000 tokens) +votes_per_token = 10 +# Reward for proposing a block. +block_proposer_reward = 100 +# Reward for voting on a block. +block_vote_reward = 1 +# Portion of a validator's stake that should be slashed on a duplicate +# vote (in basis points, i.e., 500 = 5%). +duplicate_vote_slash_rate = 500 +# Portion of a validator's stake that should be slashed on a light +# client attack (in basis points, i.e., 500 = 5%). +light_client_attack_slash_rate = 500 From 513247bd9458e60c5b0684738a2782245c278c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 25 Nov 2022 19:08:58 +0100 Subject: [PATCH 2/2] apply changes for --- templates/anoma-devnet-0.11.0.toml | 43 +++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/templates/anoma-devnet-0.11.0.toml b/templates/anoma-devnet-0.11.0.toml index b9f85a0..5ed745d 100644 --- a/templates/anoma-devnet-0.11.0.toml +++ b/templates/anoma-devnet-0.11.0.toml @@ -1,5 +1,6 @@ # Developer network genesis_time = "2021-12-20T15:00:00.00Z" +native_token = "NAM" # 4 genesis validators. [validator.validator-1] @@ -8,7 +9,11 @@ tokens = 1844674407370 # corresponds to 6_714_000 voting power # Amount of the validator's genesis token balance which is not staked. non_staked_balance = 1000000000000 # VP for the validator account -validator_vp = "vp_user" +validator_vp = "vp_validator" +# Commission rate for rewards +commission_rate = 0.05 +# Maximum change per epoch in the commission rate +max_commission_rate_change = 0.01 # VP for the staking reward account staking_reward_vp = "vp_user" # Public IP:port address @@ -106,7 +111,11 @@ vp = "vp_masp" # Wasm VP definitions -# Default user VP +# Implicit VP +[wasm.vp_implicit] +filename = "vp_implicit.wasm" + +# Default user VP in established accounts [wasm.vp_user] # filename (relative to wasm path used by the node) filename = "vp_user.wasm" @@ -127,10 +136,16 @@ filename = "vp_masp.wasm" [parameters] # Minimum number of blocks in an epoch. min_num_of_blocks = 100 -# Minimum duration of an epoch (in seconds). -min_duration = 1200 # Maximum expected time per block (in seconds). max_expected_time_per_block = 30 +# Implicit VP WASM name +implicit_vp = "vp_implicit" +# Expected number of epochs per year (also sets the min duration of an epoch in seconds) +epochs_per_year = 26_280 # ~1200 sec epoch duration (60*60*24*365 / 1200) +# The P gain factor in the Proof of Stake rewards controller +pos_gain_p = 0.1 +# The D gain factor in the Proof of Stake rewards controller +pos_gain_d = 0.1 # Proof of stake parameters. [pos_params] @@ -142,15 +157,19 @@ pipeline_len = 2 # Unbonding length (in epochs). Validators may have their stake slashed # for a fault in epoch 'n' up through epoch 'n + unbonding_len'. unbonding_len = 4 -# Votes per token (in basis points, i.e., per 10,000 tokens) -votes_per_token = 10 +# Votes per fundamental staking token (namnam) +tm_votes_per_token = 1 # Reward for proposing a block. -block_proposer_reward = 100 +block_proposer_reward = 0.125 # Reward for voting on a block. -block_vote_reward = 1 +block_vote_reward = 0.1 +# Maximum inflation rate per annum (10%) +max_inflation_rate = 0.1 +# Targeted ratio of staked tokens to total tokens in the supply +target_staked_ratio = 0.6667 # Portion of a validator's stake that should be slashed on a duplicate -# vote (in basis points, i.e., 500 = 5%). -duplicate_vote_slash_rate = 500 +# vote. +duplicate_vote_min_slash_rate = 0.001 # Portion of a validator's stake that should be slashed on a light -# client attack (in basis points, i.e., 500 = 5%). -light_client_attack_slash_rate = 500 +# client attack. +light_client_attack_min_slash_rate = 0.001 \ No newline at end of file