Skip to content

Commit

Permalink
chore: update network parameters with default values for the upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Letang <me@jeremyletang.com>
  • Loading branch information
jeremyletang committed Feb 9, 2024
1 parent fa2e5ab commit 4ddef18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
- [10527](https://github.com/vegaprotocol/vega/issues/10527) - Add support for `byte32` type in market proposal oracle definition.
- [10563](https://github.com/vegaprotocol/vega/issues/10563) - Spam protection for create/update referral program.
- [10246](https://github.com/vegaprotocol/vega/issues/10246) - Add quantum volumes to teams statistics API.
- [10550](https://github.com/vegaprotocol/vega/issues/10550) - Update network parameters with default values.

### 🐛 Fixes

Expand Down
11 changes: 7 additions & 4 deletions core/netparams/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func defaultNetParams() map[string]value {
SpamProtectionBalanceSnapshotFrequency: NewDuration(gte0s, lte1h).Mutable(true).MustUpdate("5s"),
SpamProtectionApplyReferralMinFunds: NewUint(UintGTE(num.NewUint(0))).Mutable(true).MustUpdate("10"),
SpamProtectionReferralSetMinFunds: NewUint(UintGTE(num.NewUint(0))).Mutable(true).MustUpdate("10"),
SpamProtectionMaxUpdatePartyProfile: NewInt(gteI0).Mutable(true).MustUpdate("5"),
SpamProtectionMaxUpdatePartyProfile: NewInt(gteI0).Mutable(true).MustUpdate("10"),
SpamProtectionUpdateProfileMinFunds: NewUint(UintGTE(num.NewUint(0))).Mutable(true).MustUpdate("10"),

// no validation for this initially as we configure the
Expand All @@ -237,7 +237,10 @@ func defaultNetParams() map[string]value {

BlockchainsEthereumConfig: NewJSON(&proto.EthereumConfig{}, types.CheckUntypedEthereumConfig).Mutable(true).
MustUpdate("{\"network_id\": \"XXX\", \"chain_id\": \"XXX\", \"collateral_bridge_contract\": { \"address\": \"0xXXX\" }, \"confirmations\": 3, \"staking_bridge_contract\": { \"address\": \"0xXXX\", \"deployment_block_height\": 0}, \"token_vesting_contract\": { \"address\": \"0xXXX\", \"deployment_block_height\": 0 }, \"multisig_control_contract\": { \"address\": \"0xXXX\", \"deployment_block_height\": 0 }}"),
BlockchainsEthereumL2Configs: NewJSON(&proto.EthereumL2Configs{}, types.CheckUntypedEthereumL2Configs).Mutable(true).MustUpdate(`{"configs": []}`),
BlockchainsEthereumL2Configs: NewJSON(&proto.EthereumL2Configs{}, types.CheckUntypedEthereumL2Configs).Mutable(true).
MustUpdate(
`{"configs":[{"network_id":"100","chain_id":"100","confirmations":3,"name":"Gnosis Chain"}, {"network_id":"42161","chain_id":"42161","confirmations":3,"name":"Arbitrum One"}]}`,
),

ValidatorsEpochLength: NewDuration(gte1s, lte255h).Mutable(true).MustUpdate("24h0m0s"),

Expand All @@ -264,8 +267,8 @@ func defaultNetParams() map[string]value {
TransferMinTransferQuantumMultiple: NewDecimal(gteD0).Mutable(true).MustUpdate("0.1"),
TransferMaxCommandsPerEpoch: NewInt(gteI0).Mutable(true).MustUpdate("20"),
TransferFeeMaxQuantumAmount: NewDecimal(gteD0).Mutable(true).MustUpdate("1"),
TransferFeeDiscountDecayFraction: NewDecimal(gteD0, lteD1).Mutable(true).MustUpdate("0.5"),
TransferFeeDiscountMinimumTrackedAmount: NewDecimal(gteD0).Mutable(true).MustUpdate("0.001"),
TransferFeeDiscountDecayFraction: NewDecimal(gteD0, lteD1).Mutable(true).MustUpdate("0.8"),
TransferFeeDiscountMinimumTrackedAmount: NewDecimal(gteD0).Mutable(true).MustUpdate("0.01"),

// pow
SpamPoWNumberOfPastBlocks: NewUint(gteU5, UintLTE(num.NewUint(500))).Mutable(true).MustUpdate("100"),
Expand Down

0 comments on commit 4ddef18

Please sign in to comment.