agoric 0.21.2-dev-9f6644d.0 → 0.21.2-dev-0467291.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +20 -20
  2. package/src/chain-config.js +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agoric",
3
- "version": "0.21.2-dev-9f6644d.0+9f6644d",
3
+ "version": "0.21.2-dev-0467291.0+0467291",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -30,28 +30,28 @@
30
30
  "lint:eslint": "yarn run -T eslint ."
31
31
  },
32
32
  "devDependencies": {
33
- "@agoric/cosmic-swingset": "0.41.4-dev-9f6644d.0+9f6644d",
34
- "@agoric/deploy-script-support": "0.10.4-dev-9f6644d.0+9f6644d",
33
+ "@agoric/cosmic-swingset": "0.41.4-dev-0467291.0+0467291",
34
+ "@agoric/deploy-script-support": "0.10.4-dev-0467291.0+0467291",
35
35
  "ava": "^5.3.0",
36
36
  "c8": "^10.1.2"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-9f6644d.0+9f6644d",
40
- "@agoric/cache": "0.3.3-dev-9f6644d.0+9f6644d",
41
- "@agoric/casting": "0.4.3-dev-9f6644d.0+9f6644d",
42
- "@agoric/client-utils": "0.1.1-dev-9f6644d.0+9f6644d",
43
- "@agoric/cosmic-proto": "0.4.1-dev-9f6644d.0+9f6644d",
44
- "@agoric/ertp": "0.16.3-dev-9f6644d.0+9f6644d",
45
- "@agoric/governance": "0.10.4-dev-9f6644d.0+9f6644d",
46
- "@agoric/inter-protocol": "0.16.2-dev-9f6644d.0+9f6644d",
47
- "@agoric/internal": "0.3.3-dev-9f6644d.0+9f6644d",
48
- "@agoric/network": "0.1.1-dev-9f6644d.0+9f6644d",
49
- "@agoric/smart-wallet": "0.5.4-dev-9f6644d.0+9f6644d",
50
- "@agoric/store": "0.9.3-dev-9f6644d.0+9f6644d",
51
- "@agoric/swingset-vat": "0.32.3-dev-9f6644d.0+9f6644d",
52
- "@agoric/vats": "0.15.2-dev-9f6644d.0+9f6644d",
53
- "@agoric/zoe": "0.26.3-dev-9f6644d.0+9f6644d",
54
- "@agoric/zone": "0.2.3-dev-9f6644d.0+9f6644d",
39
+ "@agoric/access-token": "0.4.22-dev-0467291.0+0467291",
40
+ "@agoric/cache": "0.3.3-dev-0467291.0+0467291",
41
+ "@agoric/casting": "0.4.3-dev-0467291.0+0467291",
42
+ "@agoric/client-utils": "0.1.1-dev-0467291.0+0467291",
43
+ "@agoric/cosmic-proto": "0.4.1-dev-0467291.0+0467291",
44
+ "@agoric/ertp": "0.16.3-dev-0467291.0+0467291",
45
+ "@agoric/governance": "0.10.4-dev-0467291.0+0467291",
46
+ "@agoric/inter-protocol": "0.16.2-dev-0467291.0+0467291",
47
+ "@agoric/internal": "0.3.3-dev-0467291.0+0467291",
48
+ "@agoric/network": "0.1.1-dev-0467291.0+0467291",
49
+ "@agoric/smart-wallet": "0.5.4-dev-0467291.0+0467291",
50
+ "@agoric/store": "0.9.3-dev-0467291.0+0467291",
51
+ "@agoric/swingset-vat": "0.32.3-dev-0467291.0+0467291",
52
+ "@agoric/vats": "0.15.2-dev-0467291.0+0467291",
53
+ "@agoric/zoe": "0.26.3-dev-0467291.0+0467291",
54
+ "@agoric/zone": "0.2.3-dev-0467291.0+0467291",
55
55
  "@cosmjs/crypto": "^0.33.0",
56
56
  "@cosmjs/encoding": "^0.33.0",
57
57
  "@cosmjs/math": "^0.33.0",
@@ -101,5 +101,5 @@
101
101
  "typeCoverage": {
102
102
  "atLeast": 79.15
103
103
  },
104
- "gitHead": "9f6644d521c5de751e9744e5bd57f75ac265f3d4"
104
+ "gitHead": "0467291b2451ba975faea3bcee681291837dbe51"
105
105
  }
@@ -255,8 +255,14 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) {
255
255
 
256
256
  // Set the denomination for different modules.
257
257
  genesis.app_state.mint.params.mint_denom = MINT_DENOM;
258
- genesis.app_state.gov.deposit_params.min_deposit = GOV_DEPOSIT_COINS;
259
- genesis.app_state.gov.voting_params.voting_period = GOV_VOTING_PERIOD;
258
+
259
+ {
260
+ const gov = genesis.app_state.gov;
261
+ const depositParams = gov.params ?? gov.deposit_params;
262
+ const votingParams = gov.params ?? gov.voting_params;
263
+ depositParams.min_deposit = GOV_DEPOSIT_COINS;
264
+ votingParams.voting_period = GOV_VOTING_PERIOD;
265
+ }
260
266
 
261
267
  // Reduce the cost of a transaction.
262
268
  genesis.app_state.auth.params.tx_size_cost_per_byte = '1';