Skip to content

Commit 2ba0f88

Browse files
authored
Merge pull request #11 from sirouk/main
Update to v0.44.0 and include mainnet parameters
2 parents 1c60dd0 + 383b36e commit 2ba0f88

24 files changed

+71122
-70995
lines changed

config/nginx-vanilla.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ server {
8080

8181
# Namada public rpc
8282
server {
83-
listen 443;
83+
listen 80;
8484
server_name rpc.TLD_NAME;
8585

8686
location / {
@@ -179,6 +179,14 @@ server {
179179

180180
location / {
181181
proxy_pass http://localhost:6000;
182+
183+
# Ensure Nginx doesn't buffer the SSE stream
184+
proxy_buffering off;
185+
186+
# Keep the connection alive for SSE
187+
proxy_read_timeout 300;
188+
proxy_send_timeout 300;
189+
182190
#add_header Access-Control-Allow-Origin *;
183191
add_header Access-Control-Max-Age 3600;
184192
add_header Access-Control-Expose-Headers Content-Length;

docker/compose/docker-compose-local-namada.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ services:
2929
- GENESIS_DELAY_MINS=${GENESIS_DELAY_MINS:-1}
3030
ports:
3131
- "${P2P_PORT}:26656" # p2p
32-
# - "26657" # http rpc
3332
- "8082:8123" # configs server
3433

3534
namada-2:
@@ -51,7 +50,6 @@ services:
5150
- GENESIS_DELAY_MINS=${GENESIS_DELAY_MINS:-1}
5251
ports:
5352
- "26656" # p2p
54-
# - "26657" # http rpc
5553
- "${RPC_PORT:-26657}:26657" # http rpc
5654
- "26660:26660" # prometheus metrics
5755

@@ -74,8 +72,6 @@ services:
7472
ports:
7573
- "26656" # p2p
7674
- "26657"
77-
# - "${RPC_PORT:-26657}:26657" # http rpc
78-
# - "26660:26660"
7975

8076
volumes:
8177
# shared 'network directory' for genesis txs etc that need to be shared between validators when generating genesis files

docker/config/local-namada/genesis/balances.toml

Lines changed: 70711 additions & 1 deletion
Large diffs are not rendered by default.

docker/config/local-namada/genesis/balances.toml.new

Lines changed: 0 additions & 70696 deletions
This file was deleted.

docker/config/local-namada/genesis/parameters.toml

Lines changed: 28 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,35 @@
1+
# source: https://github.com/heliaxdev/namada-network-templates/blob/fraccaman/housefire-campfire/devnet/campfire/parameters.toml
2+
13
# General protocol parameters.
24
[parameters]
35
native_token = "NAM"
6+
7+
# This is enabled which does not mirror mainnet pre-Stage 5, but this is testnet, let the people play
48
is_native_token_transferable = true
9+
510
# Minimum number of blocks in an epoch.
6-
min_num_of_blocks = 4
7-
# Maximum expected time per block (in seconds).
8-
max_expected_time_per_block = 30
11+
min_num_of_blocks = 180
912
# Max payload size, in bytes, for a tx.
1013
max_tx_bytes = 1048576
1114
# Max payload size, in bytes, for a tx batch proposal.
1215
max_proposal_bytes = 6291456
13-
# vp whitelist
14-
vp_whitelist = []
15-
# tx whitelist
16-
tx_whitelist = []
16+
# vp allowlist
17+
vp_allowlist = []
18+
# tx allowlist
19+
tx_allowlist = []
1720
# Implicit VP WASM name
1821
implicit_vp = "vp_implicit"
1922
# Expected number of epochs per year (also sets the min duration of an epoch in seconds)
20-
# kept the same as it is easier for our test to keep a short epoch time
21-
epochs_per_year = 105_120
23+
epochs_per_year = 35040
2224
# The multiplier for masp epochs
2325
masp_epoch_multiplier = 2
24-
# The P gain factor in the Proof of Stake rewards controller
25-
pos_gain_p = "0.1"
26-
# The D gain factor in the Proof of Stake rewards controller
27-
pos_gain_d = "0.1"
28-
# Maximum number of signature per transaction
29-
max_signatures_per_transaction = 15
3026
# Max gas for block
3127
max_block_gas = 20000000
3228
# Masp fee payment gas limit
33-
masp_fee_payment_gas_limit = 20000
34-
# Fee unshielding gas limit
35-
fee_unshielding_gas_limit = 20000
36-
# Fee unshielding descriptions limit
37-
fee_unshielding_descriptions_limit = 15
29+
masp_fee_payment_gas_limit = 150_000
3830
# Gas scale
39-
gas_scale = 100_000_000
31+
gas_scale = 10_000
32+
4033

4134
# Map of the cost per gas unit for every token allowed for fee payment
4235
[parameters.minimum_gas_price]
@@ -45,25 +38,23 @@ nam = "0.000001"
4538
# Proof of stake parameters.
4639
[pos_params]
4740
# Maximum number of active validators.
48-
#max_validator_slots = 128
49-
max_validator_slots = 20
41+
max_validator_slots = 255
5042
# Pipeline length (in epochs). Any change in the validator set made in
5143
# epoch 'n' will become active in epoch 'n + pipeline_len'.
5244
pipeline_len = 2
5345
# Unbonding length (in epochs). Validators may have their stake slashed
5446
# for a fault in epoch 'n' up through epoch 'n + unbonding_len'.
55-
unbonding_len = 3
47+
unbonding_len = 53
5648
# Votes per fundamental staking token (namnam)
5749
tm_votes_per_token = "1"
5850
# Reward for proposing a block.
5951
block_proposer_reward = "0.125"
6052
# Reward for voting on a block.
6153
block_vote_reward = "0.1"
6254
# Maximum inflation rate per annum (10%)
63-
max_inflation_rate = "0.1"
55+
max_inflation_rate = "0"
6456
# Targeted ratio of staked tokens to total tokens in the supply
65-
#target_staked_ratio = "0.6667"
66-
target_staked_ratio = "0.40"
57+
target_staked_ratio = "0.6667"
6758
# Portion of a validator's stake that should be slashed on a duplicate
6859
# vote.
6960
duplicate_vote_min_slash_rate = "0.001"
@@ -75,10 +66,10 @@ light_client_attack_min_slash_rate = "0.001"
7566
cubic_slashing_window_length = 1
7667
# The minimum amount of bonded tokens that a validator needs to be in
7768
# either the `consensus` or `below_capacity` validator sets
78-
validator_stake_threshold = "1"
69+
validator_stake_threshold = "1000000000"
7970
# The length, in blocks, of the sliding window for consensus validators
8071
# inactivity verification
81-
liveness_window_check = 1000
72+
liveness_window_check = 10_000
8273
# The minimum required activity of consensus validators, in percentage, over
8374
# the `liveness_window_check`
8475
liveness_threshold = "0.1"
@@ -90,34 +81,28 @@ rewards_gain_d = "0.25"
9081
# Governance parameters.
9182
[gov_params]
9283
# minimum amount of nam token to lock
93-
#min_proposal_fund = 500
9484
min_proposal_fund = 2000
9585
# proposal code size in bytes
96-
max_proposal_code_size = 600000
86+
max_proposal_code_size = 1000_000
9787
# min proposal period length in epochs
98-
#min_proposal_voting_period = 3
99-
# to have easier values to calculate and put in our JSON
100-
min_proposal_voting_period = 2
88+
min_proposal_voting_period = 29
10189
# max proposal period length in epochs
102-
max_proposal_period = 27
90+
max_proposal_period = 84
10391
# maximum number of characters in the proposal content
104-
max_proposal_content_size = 10000
92+
max_proposal_content_size = 10_000
10593
# minimum epochs between end and activation epoch
106-
#min_proposal_grace_epochs = 3
107-
# to have easier values to calculate and put in our JSON
108-
min_proposal_grace_epochs = 2
94+
min_proposal_grace_epochs = 8
10995
# maximum number of epochs between current epoch and start epoch
110-
max_proposal_latency = 10
96+
max_proposal_latency = 8
11197

11298
# Public goods funding parameters
11399
[pgf_params]
114100
# Initial set of stewards
115-
#stewards = ["STEWARD_ADDR"]
116101
stewards = []
117102
# The pgf funding inflation rate
118-
pgf_inflation_rate = "0.1"
103+
pgf_inflation_rate = "0"
119104
# The pgf stewards inflation rate
120-
stewards_inflation_rate = "0.01"
105+
stewards_inflation_rate = "0"
121106
# The maximum number of pgf stewards
122107
maximum_number_of_stewards = 5
123108

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,66 @@
1+
# source: https://github.com/heliaxdev/namada-network-templates/blob/fraccaman/housefire-campfire/devnet/campfire/tokens.toml
2+
13
# Token accounts with their validity predicates
24

35
[token.NAM]
46
denom = 6
57

6-
[token.NAM.parameters]
7-
max_reward_rate = "0"
8-
kd_gain_nom = "0"
9-
kp_gain_nom = "0"
10-
locked_ratio_target = "0"
8+
[token.NAM.masp_params]
9+
max_reward_rate = "0.01"
10+
kd_gain_nom = "0.25"
11+
kp_gain_nom = "0.25"
12+
locked_amount_target = 10000
1113

1214
[token.BTC]
1315
denom = 8
1416

15-
[token.BTC.parameters]
16-
max_reward_rate = "0.1"
17-
kd_gain_nom = "0.1"
18-
kp_gain_nom = "0.1"
19-
locked_ratio_target = "0.6667"
17+
[token.BTC.masp_params]
18+
max_reward_rate = "0.01"
19+
kd_gain_nom = "0.25"
20+
kp_gain_nom = "0.25"
21+
locked_amount_target = 10000
2022

2123
[token.ETH]
2224
denom = 18
2325

24-
[token.ETH.parameters]
25-
max_reward_rate = "0.1"
26-
kd_gain_nom = "0.1"
27-
kp_gain_nom = "0.1"
28-
locked_ratio_target = "0.6667"
26+
[token.ETH.masp_params]
27+
max_reward_rate = "0.01"
28+
kd_gain_nom = "0.25"
29+
kp_gain_nom = "0.25"
30+
locked_amount_target = 10000
2931

3032
[token.DOT]
3133
denom = 10
3234

33-
[token.DOT.parameters]
34-
max_reward_rate = "0.1"
35-
kd_gain_nom = "0.1"
36-
kp_gain_nom = "0.1"
37-
locked_ratio_target = "0.6667"
35+
[token.DOT.masp_params]
36+
max_reward_rate = "0.01"
37+
kd_gain_nom = "0.25"
38+
kp_gain_nom = "0.25"
39+
locked_amount_target = 10000
3840

3941
[token.Schnitzel]
4042
denom = 6
4143

42-
[token.Schnitzel.parameters]
43-
max_reward_rate = "0.1"
44-
kd_gain_nom = "0.1"
45-
kp_gain_nom = "0.1"
46-
locked_ratio_target = "0.6667"
44+
[token.Schnitzel.masp_params]
45+
max_reward_rate = "0.01"
46+
kd_gain_nom = "0.25"
47+
kp_gain_nom = "0.25"
48+
locked_amount_target = 10000
4749

4850
[token.Apfel]
4951
denom = 6
5052

51-
[token.Apfel.parameters]
52-
max_reward_rate = "0.1"
53-
kd_gain_nom = "0.1"
54-
kp_gain_nom = "0.1"
55-
locked_ratio_target = "0.6667"
53+
[token.Apfel.masp_params]
54+
max_reward_rate = "0.01"
55+
kd_gain_nom = "0.25"
56+
kp_gain_nom = "0.25"
57+
locked_amount_target = 10000
5658

5759
[token.Kartoffel]
5860
denom = 6
5961

60-
[token.Kartoffel.parameters]
61-
max_reward_rate = "0.1"
62-
kd_gain_nom = "0.1"
63-
kp_gain_nom = "0.1"
64-
locked_ratio_target = "0.6667"
62+
[token.Kartoffel.masp_params]
63+
max_reward_rate = "0.01"
64+
kd_gain_nom = "0.25"
65+
kp_gain_nom = "0.25"
66+
locked_amount_target = 10000
Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,91 @@
1+
# source: https://github.com/heliaxdev/namada-network-templates/blob/fraccaman/housefire-campfire/devnet/campfire/transactions.toml
2+
13
# Genesis multisignature accounts
24

35
# Luminara
46
[[established_account]]
57
vp = "vp_user"
68
threshold = 2
7-
public_keys = ["tpknam1qznkjea724764zp328vzm8ft8pk3h38y5qsjgnmll5ep05yzq949szadxxq", "tpknam1qqurg9ev4n0yj7hzct3xylqkaxujwmpadat88w56cl4pf6u3g0s2wqwpgzp", "tpknam1qr4tzfltdqussjxg3rxlxxp8zu0c8pcvtu9agl79undavhmz8ehr23zd3y8"]
9+
public_keys = [
10+
"tpknam1qznkjea724764zp328vzm8ft8pk3h38y5qsjgnmll5ep05yzq949szadxxq",
11+
"tpknam1qqurg9ev4n0yj7hzct3xylqkaxujwmpadat88w56cl4pf6u3g0s2wqwpgzp",
12+
"tpknam1qr4tzfltdqussjxg3rxlxxp8zu0c8pcvtu9agl79undavhmz8ehr23zd3y8",
13+
]
814

915
# Heliax 1
1016
[[established_account]]
1117
vp = "vp_user"
1218
threshold = 2
13-
public_keys = ["tpknam1qzu72qdv8t8eh8n77hugt259l560zgdu500cavajs2pax72q4uq97v9af4k", "tpknam1qrv93f6yaqaq6vez0tecs39dshue9u9wxljs6hg4yk2m3zypkzepucvn7mc", "tpknam1qpfunuvr6200ekug6xnthtu26v2z500dy9a9dzjvshc9klwc6fym500kext"]
19+
public_keys = [
20+
"tpknam1qzu72qdv8t8eh8n77hugt259l560zgdu500cavajs2pax72q4uq97v9af4k",
21+
"tpknam1qrv93f6yaqaq6vez0tecs39dshue9u9wxljs6hg4yk2m3zypkzepucvn7mc",
22+
"tpknam1qpfunuvr6200ekug6xnthtu26v2z500dy9a9dzjvshc9klwc6fym500kext",
23+
]
1424

1525
# Heliax 2
1626
[[established_account]]
1727
vp = "vp_user"
1828
threshold = 2
19-
public_keys = ["tpknam1qqzxsl3kp3gt8zs9zrhv9u2c3wdq00excjvvck4swu2kra608hu8wwa7tn7", "tpknam1qq6mysh8nkdzxekxq4mqlff6uxh3ansgewjn34s808gnv40n0lxlju44mu0", "tpknam1qrcq4yafva9pxy6whm4k9tt3nr2zfj4526wsdsnn25yzmdrv768r54vv39f"]
29+
public_keys = [
30+
"tpknam1qqzxsl3kp3gt8zs9zrhv9u2c3wdq00excjvvck4swu2kra608hu8wwa7tn7",
31+
"tpknam1qq6mysh8nkdzxekxq4mqlff6uxh3ansgewjn34s808gnv40n0lxlju44mu0",
32+
"tpknam1qrcq4yafva9pxy6whm4k9tt3nr2zfj4526wsdsnn25yzmdrv768r54vv39f",
33+
]
2034

2135
# Anoma Foundation (r&d_ecosystem_dev)
2236
[[established_account]]
2337
vp = "vp_user"
2438
threshold = 2
25-
public_keys = ["tpknam1qpfg5vhwpl3h82p6mnkfx8dyle65uqnfmc6x8akse7f9yvwgcgnty0vdjec", "tpknam1qzc0xknpctwdap35uysujy3ng6046qf24ge8mpr4jqmhtykruy2ysy7fgzq", "tpknam1qp9trqswg6350y6gz8glgtt8fufrjt4snh7uxkvj42tsjnwym72g6gw39x6"]
39+
public_keys = [
40+
"tpknam1qpfg5vhwpl3h82p6mnkfx8dyle65uqnfmc6x8akse7f9yvwgcgnty0vdjec",
41+
"tpknam1qzc0xknpctwdap35uysujy3ng6046qf24ge8mpr4jqmhtykruy2ysy7fgzq",
42+
"tpknam1qp9trqswg6350y6gz8glgtt8fufrjt4snh7uxkvj42tsjnwym72g6gw39x6",
43+
]
2644

2745
# Anoma Foundation (public_allocations_future)
2846
[[established_account]]
2947
vp = "vp_user"
3048
threshold = 2
31-
public_keys = ["tpknam1qz4uhnqqx7nxg4lugdz7w3l6u6r605v4fc5fa4tx04e7crcw23vykgnfxcn", "tpknam1qq2s8gz3dxh9pdm284nw2reljya9t4f6x04qe7n7qrx8xjgmygejusg60wd", "tpknam1qqckwdzrddhvhpsslef9fa3uv5gtcsaju2nmpfj3f474j34gkwkagd7mle0"]
49+
public_keys = [
50+
"tpknam1qz4uhnqqx7nxg4lugdz7w3l6u6r605v4fc5fa4tx04e7crcw23vykgnfxcn",
51+
"tpknam1qq2s8gz3dxh9pdm284nw2reljya9t4f6x04qe7n7qrx8xjgmygejusg60wd",
52+
"tpknam1qqckwdzrddhvhpsslef9fa3uv5gtcsaju2nmpfj3f474j34gkwkagd7mle0",
53+
]
3254

3355
# Anoma Foundation (public_allocations_future)
3456
[[established_account]]
3557
vp = "vp_user"
3658
threshold = 2
37-
public_keys = ["tpknam1qrjmg9pyh4nw30u3g9cvcl9av4sccl6p8y6p0eujhz34aqp3fp7kx93y5t0", "tpknam1qqj3dntsjj56rrgagzzqk6qazafaujzkecrgysgudtsq0vfqc8sxcpwqnx4", "tpknam1qzyvhl7f33m6u23rd2wjz7rd08tt3lhahcpxj358ruzdtyf5tsffgslwjq2"]
59+
public_keys = [
60+
"tpknam1qrjmg9pyh4nw30u3g9cvcl9av4sccl6p8y6p0eujhz34aqp3fp7kx93y5t0",
61+
"tpknam1qqj3dntsjj56rrgagzzqk6qazafaujzkecrgysgudtsq0vfqc8sxcpwqnx4",
62+
"tpknam1qzyvhl7f33m6u23rd2wjz7rd08tt3lhahcpxj358ruzdtyf5tsffgslwjq2",
63+
]
3864

3965
# Anoma Foundation (af_backers)
4066
[[established_account]]
4167
vp = "vp_user"
4268
threshold = 2
43-
public_keys = ["tpknam1qzuagsc7j9spv39ry2p2557eshmxru7h86cae80jry7yejyne5c4umul72z", "tpknam1qzktg4m2sgfgaemwhyqkqjw8pukh0zxv9ssy54p9rwngdrvaqqa0sg9r3q6", "tpknam1qpqmkljurhal9xzg8e8sk257dcuv2pyqghnqmupr983px42d0d42yjqg4j0"]
69+
public_keys = [
70+
"tpknam1qzuagsc7j9spv39ry2p2557eshmxru7h86cae80jry7yejyne5c4umul72z",
71+
"tpknam1qzktg4m2sgfgaemwhyqkqjw8pukh0zxv9ssy54p9rwngdrvaqqa0sg9r3q6",
72+
"tpknam1qpqmkljurhal9xzg8e8sk257dcuv2pyqghnqmupr983px42d0d42yjqg4j0",
73+
]
4474

4575
# Anoma Foundation (early_core_contributors)
4676
[[established_account]]
4777
vp = "vp_user"
4878
threshold = 2
49-
public_keys = ["tpknam1qzmmumvf6hkfwuz4crjyt0eumg9557ykjh7w2ezgdxnuq36jddq82d9plcg", "tpknam1qzuvwwzxdchp8yz6xua9egckk59fhldhqv3fqff90vzj6lqu5wh2zxva0c2", "tpknam1qq6t0lqd77fja77l698crq9spdf444gdx8guucyjj4655dqdnfm5yzewmvh"]
79+
public_keys = [
80+
"tpknam1qzmmumvf6hkfwuz4crjyt0eumg9557ykjh7w2ezgdxnuq36jddq82d9plcg",
81+
"tpknam1qzuvwwzxdchp8yz6xua9egckk59fhldhqv3fqff90vzj6lqu5wh2zxva0c2",
82+
"tpknam1qq6t0lqd77fja77l698crq9spdf444gdx8guucyjj4655dqdnfm5yzewmvh",
83+
]
84+
85+
# Heliax 3
86+
[[established_account]]
87+
vp = "vp_user"
88+
threshold = 1
89+
public_keys = [
90+
"tpknam1qzvszv50azclqa05reqveehkwknpl4kh6tn3vajpt0vusa8mjpluk89ac03",
91+
]

0 commit comments

Comments
 (0)