diff --git a/package.json b/package.json index 3968dc2f..ad5f4f44 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@cosmjs/stargate": "0.32.4", "@cosmjs/tendermint-rpc": "^0.32.4", "@neutron-org/neutronjs": "https://github.com/neutron-org/neutronjs.git#8ca4875e81fc7cdfffab513bb410ca7cff09db78", - "@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#6bb6dd30a21527c1d232d0152383fdcb5580e933", + "@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#14dc348bea4955821565ae030bbce81b0557717f", "@types/lodash": "^4.14.182", "axios": "1.6.0", "commander": "^10.0.0", diff --git a/src/testcases/run_in_band/chain_manager.test.ts b/src/testcases/run_in_band/chain_manager.test.ts index cfba56f4..780d1a91 100644 --- a/src/testcases/run_in_band/chain_manager.test.ts +++ b/src/testcases/run_in_band/chain_manager.test.ts @@ -32,6 +32,7 @@ import { SigningNeutronClient } from '../../helpers/signing_neutron_client'; import config from '../../config.json'; import { Wallet } from '../../helpers/wallet'; import { ADMIN_MODULE_ADDRESS } from '@neutron-org/neutronjsplus/dist/constants'; +import { Duration } from '@neutron-org/neutronjs/google/protobuf/duration'; describe('Neutron / Chain Manager', () => { let testState: LocalState; @@ -226,7 +227,6 @@ describe('Neutron / Chain Manager', () => { consumer_redistribution_fraction: true, historical_entries: true, unbonding_period: true, - // !!! DEPRECATED !!! soft_opt_out_threshold is deprecated. see docs/docs/adrs/adr-015-partial-set-security.md soft_opt_out_threshold: true, reward_denoms: true, provider_reward_denoms: true, @@ -499,18 +499,18 @@ describe('Neutron / Chain Manager', () => { 'Consumer update params proposal. Will pass', updateConsumerParamsProposal({ enabled: true, - blocks_per_distribution_transmission: 321, - distribution_transmission_channel: 'channel-23', - provider_fee_pool_addr_str: chainManagerAddress, - ccv_timeout_period: '32s', - transfer_timeout_period: '23s', - consumer_redistribution_fraction: '0.33', - historical_entries: 123, - unbonding_period: '43s', - soft_opt_out_threshold: '0.55', - reward_denoms: ['tia'], - provider_reward_denoms: ['tia'], - retry_delay_period: '43s', + blocksPerDistributionTransmission: 321n, + distributionTransmissionChannel: 'channel-23', + providerFeePoolAddrStr: chainManagerAddress, + ccvTimeoutPeriod: Duration.fromPartial({ seconds: 32n }), + transferTimeoutPeriod: Duration.fromPartial({ seconds: 23n }), + consumerRedistributionFraction: '0.33', + historicalEntries: 123n, + unbondingPeriod: Duration.fromPartial({ seconds: 43n }), + softOptOutThreshold: '0.55', + rewardDenoms: ['tia'], + providerRewardDenoms: ['tia'], + retryDelayPeriod: Duration.fromPartial({ seconds: 43n }), }), '1000', ); diff --git a/yarn.lock b/yarn.lock index ada877df..1299bd8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1341,22 +1341,22 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@neutron-org/neutronjs@https://github.com/neutron-org/neutronjs.git#7f45328320b53b4fa2b572bc25bb96bf80260181": - version "4.2.0" - resolved "https://github.com/neutron-org/neutronjs.git#7f45328320b53b4fa2b572bc25bb96bf80260181" - "@neutron-org/neutronjs@https://github.com/neutron-org/neutronjs.git#8ca4875e81fc7cdfffab513bb410ca7cff09db78": version "4.2.0" resolved "https://github.com/neutron-org/neutronjs.git#8ca4875e81fc7cdfffab513bb410ca7cff09db78" -"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#6bb6dd30a21527c1d232d0152383fdcb5580e933": +"@neutron-org/neutronjs@https://github.com/neutron-org/neutronjs.git#95a719604fecba39de5540b6ac99ded3e7aacfaa": + version "4.2.0" + resolved "https://github.com/neutron-org/neutronjs.git#95a719604fecba39de5540b6ac99ded3e7aacfaa" + +"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#14dc348bea4955821565ae030bbce81b0557717f": version "0.5.0" - resolved "https://github.com/neutron-org/neutronjsplus.git#6bb6dd30a21527c1d232d0152383fdcb5580e933" + resolved "https://github.com/neutron-org/neutronjsplus.git#14dc348bea4955821565ae030bbce81b0557717f" dependencies: "@cosmjs/cosmwasm-stargate" "^0.32.4" "@cosmjs/proto-signing" "^0.32.4" "@cosmjs/stargate" "0.32.4" - "@neutron-org/neutronjs" "https://github.com/neutron-org/neutronjs.git#7f45328320b53b4fa2b572bc25bb96bf80260181" + "@neutron-org/neutronjs" "https://github.com/neutron-org/neutronjs.git#95a719604fecba39de5540b6ac99ded3e7aacfaa" axios "1.6.0" bip39 "^3.1.0" long "^5.2.1"