From cffe0d6081749d1e4ad4a154817357ef8dd3c59f Mon Sep 17 00:00:00 2001 From: Jeremy Letang Date: Fri, 2 Feb 2024 16:17:39 +0000 Subject: [PATCH] chore: update network parameters with default values for the upgrade Signed-off-by: Jeremy Letang --- CHANGELOG.md | 4 +++- core/netparams/defaults.go | 11 +++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84c9d521a9b..45613d415cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,8 @@ - [10523](https://github.com/vegaprotocol/vega/issues/10523) - Fix repeated games statistics for multiple recurring transfers. - [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. +- [10550](https://github.com/vegaprotocol/vega/issues/10550) - Update network parameters with default values. + ### 🐛 Fixes @@ -807,7 +809,7 @@ - [7914](https://github.com/vegaprotocol/vega/issues/7914) - Offer node signatures after snapshot restore - [8187](https://github.com/vegaprotocol/vega/issues/8187) - Expose Live Only filter to the `GraphQL` Orders filter. - [9793](https://github.com/vegaprotocol/vega/issues/9793) - Map network owner correctly in creating account from transfer. -- [10516](https://github.com/vegaprotocol/vega/issues/10516) - Fix mapping of estimate position. +- [10516](https://github.com/vegaprotocol/vega/issues/10516) - Fix mapping of estimate position. ## 0.70.0 diff --git a/core/netparams/defaults.go b/core/netparams/defaults.go index e27745eed29..9ae6bd9e22d 100644 --- a/core/netparams/defaults.go +++ b/core/netparams/defaults.go @@ -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 @@ -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"), @@ -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"),