-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adr-37 parameters for btc light client ranges #310
Changes from all commits
897938f
f5518ea
860abc5
c1495f5
447e988
6d09184
be6a4b8
8b26d8d
8a2de68
c42b988
17baa04
9943426
f0ba241
da09b21
47b28f3
1f856cf
8660102
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
package mainnet | ||
|
||
// TODO Some default parameters. Consider how to switch those depending on network: | ||
// mainnet, testnet, devnet etc. | ||
const BtcStakingParamStr = ` | ||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": "1000", | ||
"max_staking_value_sat": "10000000000", | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": "1000", | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": "1000", | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0 | ||
}` | ||
// TODO Some default parameters | ||
const BtcStakingParamsStr = `[ | ||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": 1000, | ||
"max_staking_value_sat": 10000000000, | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": 1000, | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": 1000, | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0, | ||
"btc_activation_height": 100 | ||
} | ||
]` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,73 @@ | ||
package testnet | ||
|
||
// TODO Some default parameters. Consider how to switch those depending on network: | ||
// mainnet, testnet, devnet etc. | ||
const BtcStakingParamStr = ` | ||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": "1000", | ||
"max_staking_value_sat": "10000000000", | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": "1000", | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": "1000", | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0 | ||
}` | ||
const BtcStakingParamsStr = `[ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. basically just copy&paste 3 times to check if all of those were inserted with a different |
||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": 1000, | ||
"max_staking_value_sat": 10000000000, | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": 1000, | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": 1000, | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0, | ||
"btc_activation_height": 100 | ||
}, | ||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": 1000, | ||
"max_staking_value_sat": 10000000000, | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": 1000, | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": 1000, | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0, | ||
"btc_activation_height": 150 | ||
}, | ||
{ | ||
"covenant_pks": [ | ||
"43311589af63c2adda04fcd7792c038a05c12a4fe40351b3eb1612ff6b2e5a0e", | ||
"d415b187c6e7ce9da46ac888d20df20737d6f16a41639e68ea055311e1535dd9", | ||
"d27cd27dbff481bc6fc4aa39dd19405eb6010237784ecba13bab130a4a62df5d", | ||
"a3e107fee8879f5cf901161dbf4ff61c252ba5fec6f6407fe81b9453d244c02c", | ||
"c45753e856ad0abb06f68947604f11476c157d13b7efd54499eaa0f6918cf716" | ||
], | ||
"covenant_quorum": 3, | ||
"min_staking_value_sat": 1000, | ||
"max_staking_value_sat": 10000000000, | ||
"min_staking_time_blocks": 10, | ||
"max_staking_time_blocks": 65535, | ||
"slashing_pk_script": "dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==", | ||
"min_slashing_tx_fee_sat": 1000, | ||
"slashing_rate": "0.100000000000000000", | ||
"min_unbonding_time_blocks": 0, | ||
"unbonding_fee_sat": 1000, | ||
"min_commission_rate": "0.03", | ||
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0, | ||
"btc_activation_height": 128 | ||
} | ||
]` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package v1 | ||
|
||
type UpgradeDataString struct { | ||
BtcStakingParamStr string | ||
BtcStakingParamsStr string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @babylon-devops modified this to |
||
FinalityParamStr string | ||
IncentiveParamStr string | ||
CosmWasmParamStr string | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test checks that the params in the upgrade are consistent by passing through the
AddNewPair
but during the upgrade it is overwritten the entire set of params
@KonradStaniec