@agoric/cosmic-swingset 0.41.4-dev-baa7c08.0 → 0.41.4-dev-19c6d7f.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/Makefile +17 -10
  2. package/package.json +12 -12
package/Makefile CHANGED
@@ -200,7 +200,9 @@ wait-for-cosmos:
200
200
  @echo -n "Waiting for $(COSMOS_RPC_HOST):$(COSMOS_RPC_PORT) to come live..."
201
201
  @while true; do \
202
202
  block=$$(curl -s http://$(COSMOS_RPC_HOST):$(COSMOS_RPC_PORT)/status | jq -r .result.sync_info.latest_block_height); \
203
- if test -z "$$start"; then \
203
+ if test -n "$$block" && test "$$block" -lt 1; then \
204
+ true; \
205
+ elif test -z "$$start"; then \
204
206
  start=$$block; \
205
207
  elif test $$block -gt $$start; then \
206
208
  break; \
@@ -235,29 +237,34 @@ t1-provision-one-with-powers: wait-for-cosmos
235
237
  t1/$(BASE_PORT) $$addr $(AGORIC_POWERS) -ojson | tee /dev/stderr | grep -q '"code":0'; }
236
238
 
237
239
  # Send some USDC to the vbank/provision module account where it can be traded for IST.
238
- fund-provision-pool:
239
- # The agoric1megzy… address is the account of the provisioning pool.
240
240
  # The mint limit is 1000 IST and each wallet gets 0.25 IST when
241
241
  # provisioned, so make room for 400 accounts with 100 USDC which mints 100 IST.
242
- $(MAKE) ACCT_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 FUNDS=1000000000ibc/toyusdc fund-acct
242
+ #
243
+ # This module account for the provision pool resolves to the agoric1megzy… address.
244
+ # In other parts of the system it is assumed to be a constant (Cosmos SDK currently guarantees it),
245
+ # but we generate it here similarly to how we do in JS.
246
+ fund-provision-pool:
247
+ PROVISION_POOL=$$($(AGCH) query auth module-account vbank/provision -ojson | \
248
+ jq -r .account.base_account.address) && \
249
+ $(MAKE) ACCT_ADDR="$$PROVISION_POOL" FUNDS=1000000000ibc/toyusdc fund-acct
243
250
 
244
251
  fund-acct:
245
252
  $(AGCH) \
246
253
  --home=t1/bootstrap --keyring-backend=test --from=bootstrap \
247
- tx bank send bootstrap $(ACCT_ADDR) $(FUNDS) \
248
- --gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) --broadcast-mode=block --yes --chain-id=$(CHAIN_ID)
254
+ tx bank send bootstrap "$(ACCT_ADDR)" "$(FUNDS)" \
255
+ --gas=auto --gas-adjustment="$(GAS_ADJUSTMENT)" --broadcast-mode=block --yes --chain-id=$(CHAIN_ID)
249
256
 
250
257
  provision-acct:
251
258
  $(AGCH) --chain-id=$(CHAIN_ID) \
252
259
  --home=t1/bootstrap --keyring-backend=test --from=bootstrap \
253
- tx swingset provision-one t1/$(BASE_PORT) $(ACCT_ADDR) SMART_WALLET \
254
- --gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) --broadcast-mode=block --yes
260
+ tx swingset provision-one "t1/$(BASE_PORT)" "$(ACCT_ADDR)" SMART_WALLET \
261
+ --gas=auto --gas-adjustment="$(GAS_ADJUSTMENT)" --broadcast-mode=block --yes
255
262
 
256
263
  provision-my-acct:
257
264
  $(AGCH) --chain-id=$(CHAIN_ID) \
258
265
  --home t1/8000/ag-cosmos-helper-statedir --keyring-backend=test --from=ag-solo \
259
- tx swingset provision-one t1/$(BASE_PORT) $(ACCT_ADDR) SMART_WALLET \
260
- --gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) --broadcast-mode=block --yes
266
+ tx swingset provision-one "t1/$(BASE_PORT)" "$(ACCT_ADDR)" SMART_WALLET \
267
+ --gas=auto --gas-adjustment="$(GAS_ADJUSTMENT)" --broadcast-mode=block --yes
261
268
 
262
269
  FROM_KEY=bootstrap
263
270
  SIGN_MODE=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmic-swingset",
3
- "version": "0.41.4-dev-baa7c08.0+baa7c08",
3
+ "version": "0.41.4-dev-19c6d7f.0+19c6d7f",
4
4
  "description": "Agoric's Cosmos blockchain integration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,15 +22,15 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/builders": "0.1.1-dev-baa7c08.0+baa7c08",
26
- "@agoric/cosmos": "0.34.2-dev-baa7c08.0+baa7c08",
27
- "@agoric/deploy-script-support": "0.10.4-dev-baa7c08.0+baa7c08",
28
- "@agoric/internal": "0.3.3-dev-baa7c08.0+baa7c08",
29
- "@agoric/store": "0.9.3-dev-baa7c08.0+baa7c08",
30
- "@agoric/swing-store": "0.9.2-dev-baa7c08.0+baa7c08",
31
- "@agoric/swingset-vat": "0.32.3-dev-baa7c08.0+baa7c08",
32
- "@agoric/telemetry": "0.6.3-dev-baa7c08.0+baa7c08",
33
- "@agoric/vm-config": "0.1.1-dev-baa7c08.0+baa7c08",
25
+ "@agoric/builders": "0.1.1-dev-19c6d7f.0+19c6d7f",
26
+ "@agoric/cosmos": "0.34.2-dev-19c6d7f.0+19c6d7f",
27
+ "@agoric/deploy-script-support": "0.10.4-dev-19c6d7f.0+19c6d7f",
28
+ "@agoric/internal": "0.3.3-dev-19c6d7f.0+19c6d7f",
29
+ "@agoric/store": "0.9.3-dev-19c6d7f.0+19c6d7f",
30
+ "@agoric/swing-store": "0.9.2-dev-19c6d7f.0+19c6d7f",
31
+ "@agoric/swingset-vat": "0.32.3-dev-19c6d7f.0+19c6d7f",
32
+ "@agoric/telemetry": "0.6.3-dev-19c6d7f.0+19c6d7f",
33
+ "@agoric/vm-config": "0.1.1-dev-19c6d7f.0+19c6d7f",
34
34
  "@endo/bundle-source": "^3.5.1",
35
35
  "@endo/env-options": "^1.1.8",
36
36
  "@endo/errors": "^1.2.9",
@@ -52,7 +52,7 @@
52
52
  "tmp": "^0.2.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@agoric/kmarshal": "0.1.1-dev-baa7c08.0+baa7c08",
55
+ "@agoric/kmarshal": "0.1.1-dev-19c6d7f.0+19c6d7f",
56
56
  "ava": "^5.3.0",
57
57
  "better-sqlite3": "^9.1.1",
58
58
  "c8": "^10.1.2"
@@ -75,5 +75,5 @@
75
75
  "typeCoverage": {
76
76
  "atLeast": 84.13
77
77
  },
78
- "gitHead": "baa7c08ac81c53b4cf10a2bd76fe86baa7878c8a"
78
+ "gitHead": "19c6d7f5cc40451f5ceac02bb7aedcead6457490"
79
79
  }