Skip to content

Commit

Permalink
src: added a source for anoma-testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Dec 20, 2021
1 parent ad236c0 commit 81b0fab
Showing 1 changed file with 229 additions and 0 deletions.
229 changes: 229 additions & 0 deletions src/anoma-testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
# Test network
genesis_time = "2021-12-20T15:00:00.00Z"

# 6 genesis validators.
[validator.validator-1]
# Validator's token balance at genesis.
tokens = 2000 # corresponds to 2 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 = "54.75.164.59:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-1"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

[validator.validator-2]
# Validator's token balance at genesis.
tokens = 2000
# 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 = "34.245.246.139:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-2"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

[validator.validator-3]
# Validator's token balance at genesis.
tokens = 2000
# 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.78.40.25:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-3"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

[validator.validator-4]
# Validator's token balance at genesis.
tokens = 2000
# 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 = "3.248.99.184:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-4"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

[validator.validator-5]
# Validator's token balance at genesis.
tokens = 2000
# 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 = "34.246.22.83:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-5"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

[validator.validator-6]
# Validator's token balance at genesis.
tokens = 2000
# 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.69.216:26656"
# This has to be an alias of one of the established accounts
matchmaker_account = "matchmaker-6"
# A matchmaker WASM program
matchmaker_code = "wasm/mm_token_exch.wasm"
# A transaction WASM code used by the matchmaker
matchmaker_tx = "wasm/tx_from_intent.wasm"

# 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.matchmaker-1]
vp = "vp_user"

[established.matchmaker-2]
vp = "vp_user"

[established.matchmaker-3]
vp = "vp_user"

[established.matchmaker-4]
vp = "vp_user"

[established.matchmaker-5]
vp = "vp_user"

[established.matchmaker-6]
vp = "vp_user"

[established.faucet]
address = "atest1v4ehgw36gc6yxvpjxccyzvphxycrxw2xxsuyydesxgcnjs3cg9znwv3cxgmnj32yxy6rssf5tcqjm3"
vp = "vp_testnet_faucet"

# Wasm VP definitions

# Default user VP
[wasm.vp_user]
# filename (relative to wasm path used by the node)
filename = "vp_user.wasm"
# SHA-256 hash of the wasm file
sha256 = "ab167055176ad7589f481f03802970bc9ba2c39f33101abacc5cb6d45f5ab2c7"


# Token VP
[wasm.vp_token]
filename = "vp_token.wasm"
sha256 = "1ae791d81841c71038839b0a7a39b8065f6292bc433854e6218aa211739821ba"

# Faucet VP
[wasm.vp_testnet_faucet]
filename = "vp_testnet_faucet.wasm"
sha256 = "24de64f129166b2205758aad59f513682bb5278389596ebcc4c3f27315c396d6"

# General protocol parameters.
[parameters]
# Minimum number of blocks in an epoch.
min_num_of_blocks = 10
# Minimum duration of an epoch (in seconds).
min_duration = 60

# 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

0 comments on commit 81b0fab

Please sign in to comment.