@agoric/cosmic-swingset 0.40.0 → 0.40.1-dev-800c2bb.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.
- package/Makefile +63 -34
- package/README-bridge.md +0 -3
- package/README.md +0 -2
- package/bin/ag-nchainz +1 -1
- package/bootstrap.json +2 -0
- package/calc-rpcport.js +2 -1
- package/check-validator.cjs +2 -0
- package/economy-template.json +67 -5
- package/jsconfig.json +2 -14
- package/package.json +20 -27
- package/rosetta.json +54 -0
- package/src/chain-main.js +422 -213
- package/src/entrypoint.js +3 -5
- package/src/export-kernel-db.js +430 -0
- package/src/export-storage.js +91 -0
- package/src/helpers/bufferedStorage.js +194 -0
- package/src/{is-entrypoint.js → helpers/is-entrypoint.js} +2 -0
- package/src/{json-stable-stringify.js → helpers/json-stable-stringify.js} +1 -1
- package/src/helpers/make-queue.js +134 -0
- package/src/helpers/process-value.js +133 -0
- package/src/import-kernel-db.js +207 -0
- package/src/kernel-stats.js +88 -18
- package/src/launch-chain.js +265 -206
- package/src/params.js +20 -21
- package/src/sim-chain.js +58 -54
- package/src/sim-params.js +4 -3
- package/transfer.ros +161 -0
- package/src/action-types.js +0 -13
- package/src/make-queue.js +0 -86
- package/src/validate-inbound.js +0 -109
package/Makefile
CHANGED
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
# running incidental Node.js programs to avoid starting debuggers you probably
|
|
4
4
|
# don't want.
|
|
5
5
|
|
|
6
|
-
REPOSITORY = agoric/cosmic-swingset
|
|
6
|
+
REPOSITORY = ghcr.io/agoric/cosmic-swingset
|
|
7
7
|
CHAIN_ID = agoriclocal
|
|
8
|
+
FAUCET_PORT = 7000
|
|
9
|
+
FAUCET_WALLET = provision
|
|
10
|
+
FAUCET_ADDRESS = localhost
|
|
11
|
+
ROSETTA_PORT = 8080
|
|
12
|
+
|
|
8
13
|
INITIAL_HEIGHT = 17
|
|
9
14
|
GENESIS_TIME = $(shell TZ=UTC date +%Y-%m-%dT%H:%M:%SZ)
|
|
10
15
|
VOTING_PERIOD = 45s
|
|
@@ -18,11 +23,15 @@ EVAL_DEPOSIT = 1000000ubld
|
|
|
18
23
|
VOTE_PROPOSAL = 1
|
|
19
24
|
VOTE_OPTION = yes
|
|
20
25
|
|
|
21
|
-
|
|
26
|
+
SDK_ROOT = $(shell cd ../.. >/dev/null && pwd)
|
|
27
|
+
|
|
28
|
+
# For deep (cross-vat) stacks, try...
|
|
29
|
+
# DEBUG ?= SwingSet:ls,SwingSet:vat,track-turns
|
|
30
|
+
# or to get kernel messages: SwingSet:ls,SwingSet:vat,SwingSet
|
|
22
31
|
DEBUG ?= SwingSet:ls,SwingSet:vat
|
|
23
32
|
AG_SOLO = DEBUG=$(DEBUG) $(shell cd ../solo/bin && pwd)/ag-solo
|
|
24
|
-
AGC = DEBUG=$(DEBUG) PATH="$$PWD/bin:$$PATH" $(
|
|
25
|
-
AGCH = $(
|
|
33
|
+
AGC = DEBUG=$(DEBUG) PATH="$$PWD/bin:$$PATH" "$(SDK_ROOT)/bin/agd"
|
|
34
|
+
AGCH = "$(SDK_ROOT)/bin/agd"
|
|
26
35
|
|
|
27
36
|
SHELL = bash
|
|
28
37
|
|
|
@@ -51,11 +60,6 @@ $(EVAL_CLEAN): $(EVAL_CODE)
|
|
|
51
60
|
|
|
52
61
|
INTER_PROTO=../inter-protocol
|
|
53
62
|
|
|
54
|
-
start-stakeFactory: $(INTER_PROTO)/gov-stakeFactory.js
|
|
55
|
-
make EVAL_CODE=$(INTER_PROTO)/gov-stakeFactory.js \
|
|
56
|
-
EVAL_PERMIT=$(INTER_PROTO)/gov-stakeFactory-permit.json \
|
|
57
|
-
VOTE_PROPOSAL=$(VOTE_PROPOSAL) scenario2-core-eval scenario2-vote
|
|
58
|
-
|
|
59
63
|
start-committee: $(INTER_PROTO)/gov-econ-committee.js
|
|
60
64
|
make EVAL_CODE=$(INTER_PROTO)/gov-econ-committee.js \
|
|
61
65
|
EVAL_PERMIT=$(INTER_PROTO)/gov-econ-committee-permit.json \
|
|
@@ -99,25 +103,26 @@ scenario1-run-chain:
|
|
|
99
103
|
scenario1-run-client:
|
|
100
104
|
AG_SOLO_BASEDIR=$$PWD/t9/$(BASE_PORT) $(AG_SOLO) setup --network-config=http://localhost:8001/network-config --webport=$(BASE_PORT)
|
|
101
105
|
|
|
102
|
-
BOOT_COINS=1000000000000000ubld,500000000000000uist,100provisionpass,100sendpacketpass,1000000000000ibc/
|
|
106
|
+
BOOT_COINS=1000000000000000ubld,500000000000000uist,100provisionpass,100sendpacketpass,1000000000000ibc/toyusdc,1000000000000ibc/toyatom
|
|
107
|
+
|
|
108
|
+
# Deprecated.
|
|
109
|
+
scenario2-setup-nobuild: scenario2-setup
|
|
103
110
|
|
|
104
|
-
scenario2-setup:
|
|
105
|
-
scenario2-setup-nobuild:
|
|
111
|
+
scenario2-setup:
|
|
106
112
|
rm -rf t1
|
|
107
113
|
mkdir -p t1/bootstrap
|
|
108
114
|
# Init the chain node.
|
|
109
115
|
$(AGCH) --home=t1/n0 init scenario2-chain --chain-id=$(CHAIN_ID)
|
|
110
116
|
# Init all the ag-solos, ensuring only the first one uses the $SOLO_MNEMONIC, if any.
|
|
111
117
|
set -e; \
|
|
112
|
-
first_solo=true; \
|
|
113
118
|
for port in `seq $(BASE_PORT) $$(($(BASE_PORT) + $(NUM_SOLOS) - 1))`; do \
|
|
114
119
|
NODE_OPTIONS= $(AG_SOLO) init t1/$$port --webport=$$port; \
|
|
115
|
-
if $$
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
'$(ECONOMY_TEMPLATE)' > '$(ECONOMY_PROPOSALS)'; \
|
|
120
|
+
if [ -z $$PRIMARY_ADDRESS ]; then \
|
|
121
|
+
echo "Getting PRIMARY_ADDRESS from agsolo config"; \
|
|
122
|
+
export PRIMARY_ADDRESS=$$(cat t1/$$port/ag-cosmos-helper-address); \
|
|
119
123
|
fi; \
|
|
120
|
-
done
|
|
124
|
+
done; \
|
|
125
|
+
sed -e "s!@PRIMARY_ADDRESS@!$$PRIMARY_ADDRESS!g" '$(ECONOMY_TEMPLATE)' > '$(ECONOMY_PROPOSALS)'
|
|
121
126
|
# Create the bootstrap account.
|
|
122
127
|
$(AGCH) --home=t1/bootstrap keys add bootstrap --keyring-backend=test
|
|
123
128
|
$(AGCH) --home=t1/bootstrap keys show -a bootstrap --keyring-backend=test > t1/bootstrap-address
|
|
@@ -140,24 +145,24 @@ t1/decentral-economy-config.json: $(ECONOMY_PROPOSALS)
|
|
|
140
145
|
'$(ECONOMY_PROPOSALS)' > t1/decentral-economy-config.json
|
|
141
146
|
|
|
142
147
|
scenario2-run-chain-economy: t1/decentral-economy-config.json
|
|
148
|
+
echo "DEPRECATED use: CHAIN_BOOTSTRAP_VAT_CONFIG=@agoric/vats/decentral-itest-vaults-config.json scenario2-run-chain"
|
|
143
149
|
CHAIN_BOOTSTRAP_VAT_CONFIG="$$PWD/t1/decentral-economy-config.json" \
|
|
144
|
-
|
|
145
|
-
$(AGC) --home=t1/n0 start --log_level=warn $(AGC_START_ARGS)
|
|
150
|
+
$(MAKE) scenario2-run-chain
|
|
146
151
|
|
|
147
|
-
|
|
148
|
-
|
|
152
|
+
# We want to use the same configuration that will be deployed to the next
|
|
153
|
+
# devnet.agoric.net so that developers can test their code against it locally.
|
|
154
|
+
scenario2-run-chain: ../vats/decentral-devnet-config.json
|
|
155
|
+
CHAIN_BOOTSTRAP_VAT_CONFIG="$${CHAIN_BOOTSTRAP_VAT_CONFIG-$$PWD/../vats/decentral-devnet-config.json}" \
|
|
149
156
|
OTEL_EXPORTER_PROMETHEUS_PORT=$(OTEL_EXPORTER_PROMETHEUS_PORT) \
|
|
150
157
|
$(AGC) --home=t1/n0 start --log_level=warn $(AGC_START_ARGS)
|
|
151
158
|
|
|
152
|
-
scenario2-run-chain:
|
|
153
|
-
OTEL_EXPORTER_PROMETHEUS_PORT=$(OTEL_EXPORTER_PROMETHEUS_PORT) \
|
|
154
|
-
$(AGC) --home=t1/n0 start --log_level=warn $(AGC_START_ARGS)
|
|
155
|
-
|
|
156
159
|
# Run a chain with an explicit halt.
|
|
160
|
+
BLOCKS_TO_RUN=3
|
|
157
161
|
scenario2-run-chain-to-halt: t1/decentral-economy-config.json
|
|
158
162
|
CHAIN_BOOTSTRAP_VAT_CONFIG="$$PWD/t1/decentral-economy-config.json" \
|
|
159
|
-
$(AGC) --home=t1/n0 start --log_level=warn --halt-height=$$(($(INITIAL_HEIGHT) +
|
|
163
|
+
$(AGC) --home=t1/n0 start --log_level=warn --halt-height=$$(($(INITIAL_HEIGHT) + $(BLOCKS_TO_RUN))); \
|
|
160
164
|
test "$$?" -eq 98
|
|
165
|
+
echo ran to $(INITIAL_HEIGHT) + $(BLOCKS_TO_RUN)
|
|
161
166
|
|
|
162
167
|
# Blow away all client state to try again without resetting the chain.
|
|
163
168
|
scenario2-reset-client:
|
|
@@ -173,6 +178,9 @@ scenario2-use-fee-account: t1/$(BASE_PORT)/owner-address
|
|
|
173
178
|
scenario2-use-client-account: t1/$(BASE_PORT)/owner-address
|
|
174
179
|
cp $< t1/$(BASE_PORT)/cosmos-client-account
|
|
175
180
|
|
|
181
|
+
scenario2-run-rosetta-ci: wait-for-rosetta
|
|
182
|
+
./scripts/run-rosetta-ci.sh
|
|
183
|
+
|
|
176
184
|
t1/$(BASE_PORT)/owner-address:
|
|
177
185
|
rm -rf t1/$(BASE_PORT)/owner
|
|
178
186
|
$(AGCH) --home=t1/$(BASE_PORT)/owner keys --keyring-backend=test add owner | jq -r .address > $@.tmp
|
|
@@ -183,7 +191,7 @@ scenario2-run-client: t1-provision-one-with-powers t1-start-ag-solo
|
|
|
183
191
|
|
|
184
192
|
# Provision the ag-solo from an provisionpass-holding address (idempotent).
|
|
185
193
|
AGORIC_POWERS = agoric.ALL_THE_POWERS
|
|
186
|
-
SOLO_COINS = 13000000ubld,12345000000uist,1122000000ibc/
|
|
194
|
+
SOLO_COINS = 13000000ubld,12345000000uist,1122000000ibc/toyusdc,3344000000ibc/toyatom
|
|
187
195
|
COSMOS_RPC_HOST = localhost
|
|
188
196
|
COSMOS_RPC_PORT = 26657
|
|
189
197
|
wait-for-cosmos:
|
|
@@ -200,6 +208,18 @@ wait-for-cosmos:
|
|
|
200
208
|
done
|
|
201
209
|
@echo ' done!'
|
|
202
210
|
|
|
211
|
+
wait-for-rosetta: wait-for-cosmos
|
|
212
|
+
@echo -n "Waiting for $(COSMOS_RPC_HOST):$(ROSETTA_PORT) to come live..."
|
|
213
|
+
@while true; do \
|
|
214
|
+
networks=$$(curl -s -X POST http://$(COSMOS_RPC_HOST):$(ROSETTA_PORT)/network/list --data '{ "metadata": {} }'); \
|
|
215
|
+
if ! test -z "$$networks"; then \
|
|
216
|
+
break; \
|
|
217
|
+
fi; \
|
|
218
|
+
echo -n '.'; \
|
|
219
|
+
sleep 1; \
|
|
220
|
+
done
|
|
221
|
+
@echo ' done!'
|
|
222
|
+
|
|
203
223
|
t1-provision-one-with-powers: wait-for-cosmos
|
|
204
224
|
@addrfile=t1/$(BASE_PORT)/cosmos-client-account; \
|
|
205
225
|
test -f $$addrfile || addrfile=t1/$(BASE_PORT)/ag-cosmos-helper-address; \
|
|
@@ -217,7 +237,7 @@ fund-provision-pool:
|
|
|
217
237
|
# The agoric1megzy… address is the account of the provisioning pool.
|
|
218
238
|
# The mint limit is 1000 IST and each wallet gets 0.25 IST when
|
|
219
239
|
# provisioned, so make room for 400 accounts with 100 USDC which mints 100 IST.
|
|
220
|
-
$(MAKE) ACCT_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 FUNDS=1000000000ibc/
|
|
240
|
+
$(MAKE) ACCT_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 FUNDS=1000000000ibc/toyusdc fund-acct
|
|
221
241
|
|
|
222
242
|
fund-acct:
|
|
223
243
|
$(AGCH) \
|
|
@@ -231,6 +251,12 @@ provision-acct:
|
|
|
231
251
|
tx swingset provision-one t1/$(BASE_PORT) $(ACCT_ADDR) SMART_WALLET \
|
|
232
252
|
--gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) --broadcast-mode=block --yes
|
|
233
253
|
|
|
254
|
+
provision-my-acct:
|
|
255
|
+
$(AGCH) --chain-id=$(CHAIN_ID) \
|
|
256
|
+
--home t1/8000/ag-cosmos-helper-statedir --keyring-backend=test --from=ag-solo \
|
|
257
|
+
tx swingset provision-one t1/$(BASE_PORT) $(ACCT_ADDR) SMART_WALLET \
|
|
258
|
+
--gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) --broadcast-mode=block --yes
|
|
259
|
+
|
|
234
260
|
FROM_KEY=bootstrap
|
|
235
261
|
SIGN_MODE=
|
|
236
262
|
wallet-action: wait-for-cosmos
|
|
@@ -328,20 +354,23 @@ docker-install: docker-pull
|
|
|
328
354
|
install -m 755 docker/* /usr/local/bin/
|
|
329
355
|
|
|
330
356
|
build-chain:
|
|
331
|
-
$(
|
|
357
|
+
$(AGC) build
|
|
332
358
|
|
|
333
359
|
build-helper:
|
|
334
|
-
$(
|
|
360
|
+
$(AGCH) build
|
|
335
361
|
|
|
336
362
|
install-agd:
|
|
337
|
-
|
|
363
|
+
mkdir -p "$(BIN)"
|
|
364
|
+
ln -sf "$(SDK_ROOT)/bin/agd" "$(BIN)/agd"
|
|
338
365
|
|
|
339
366
|
install-helper:
|
|
340
|
-
|
|
367
|
+
mkdir -p "$(BIN)"
|
|
368
|
+
ln -sf "$(SDK_ROOT)/bin/agd" "$(BIN)/ag-cosmos-helper"
|
|
341
369
|
|
|
342
370
|
install-local:
|
|
343
371
|
mkdir -p "$(BIN)"
|
|
344
|
-
ln -sf "
|
|
372
|
+
ln -sf "$(SDK_ROOT)/bin/agd" "$(BIN)/ag-chain-cosmos"
|
|
373
|
+
ln -sf "$$PWD/bin/ag-nchainz" "$(BIN)/"
|
|
345
374
|
|
|
346
375
|
start-ag-solo:
|
|
347
376
|
rm -rf t1
|
package/README-bridge.md
CHANGED
package/README.md
CHANGED
|
@@ -23,8 +23,6 @@ In any case, for now, you will be needing to build the solo node from the source
|
|
|
23
23
|
|
|
24
24
|
To build and install from sources, first follow the instructions at [Before Using Agoric Software](https://agoric.com/documentation/getting-started/before-using-agoric.html) to install the Agoric SDK and its prerequisites.
|
|
25
25
|
|
|
26
|
-
- **Warning:** There are some [known issues](https://github.com/Agoric/cosmic-swingset/issues/71) installing cosmic-swingset with [snap-based version of node.js on Ubuntu](https://github.com/nodesource/distributions/blob/master/README.md#snap). **We recommend** using a non-snap version
|
|
27
|
-
|
|
28
26
|
You'll then need to install the following additional software:
|
|
29
27
|
- [Golang](https://golang.org/doc/install) (you need at least version 1.17)
|
|
30
28
|
- (scenarios 1 and 0) [Python3](https://www.python.org/downloads/)
|
package/bin/ag-nchainz
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ag-nchainz - Agoric-specific nchainz scripts
|
|
3
3
|
#
|
|
4
4
|
# First run at least two Agoric chains:
|
|
5
|
-
# (https://github.com/
|
|
5
|
+
# (https://github.com/cosmos/relayer/blob/d59c98adb368822a25328fe74db433f8aae78a1d/scripts/nchainz)
|
|
6
6
|
#
|
|
7
7
|
# nchainz init agoric agoric
|
|
8
8
|
# ag-nchainz start-solos
|
package/bootstrap.json
ADDED
package/calc-rpcport.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// @jessie-check
|
|
2
3
|
|
|
3
4
|
// NOTE: Runs outside SES
|
|
4
5
|
|
|
@@ -14,7 +15,7 @@ const { laddr } = config.rpc; // like tcp://0.0.0.0:26657
|
|
|
14
15
|
// eslint-disable-next-line no-useless-escape
|
|
15
16
|
const m = laddr.match(/^tcp:\/\/([\d\.]+):(\d+)$/);
|
|
16
17
|
if (!m) {
|
|
17
|
-
throw
|
|
18
|
+
throw Error(`error, unexpected laddr format ${laddr}`);
|
|
18
19
|
}
|
|
19
20
|
let addr = m[1];
|
|
20
21
|
if (addr === '0.0.0.0') {
|
package/check-validator.cjs
CHANGED
package/economy-template.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
[
|
|
2
|
+
"@agoric/vats/scripts/init-core.js",
|
|
3
|
+
"@agoric/vats/scripts/init-network.js",
|
|
2
4
|
{
|
|
3
5
|
"module": "@agoric/inter-protocol/scripts/init-core.js",
|
|
4
6
|
"entrypoint": "defaultProposalBuilder",
|
|
@@ -18,9 +20,9 @@
|
|
|
18
20
|
"args": [
|
|
19
21
|
{
|
|
20
22
|
"interchainAssetOptions": {
|
|
21
|
-
"denom": "ibc/
|
|
23
|
+
"denom": "ibc/toyatom",
|
|
22
24
|
"decimalPlaces": 4,
|
|
23
|
-
"keyword": "
|
|
25
|
+
"keyword": "ATOM",
|
|
24
26
|
"oracleBrand": "ATOM",
|
|
25
27
|
"proposedName": "ATOM"
|
|
26
28
|
}
|
|
@@ -33,7 +35,63 @@
|
|
|
33
35
|
"args": [
|
|
34
36
|
{
|
|
35
37
|
"anchorOptions": {
|
|
36
|
-
"denom": "ibc/
|
|
38
|
+
"denom": "ibc/toyusdc",
|
|
39
|
+
"decimalPlaces": 6,
|
|
40
|
+
"keyword": "USDC_axl",
|
|
41
|
+
"proposedName": "USD Coin"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
|
|
48
|
+
"entrypoint": "psmProposalBuilder",
|
|
49
|
+
"args": [
|
|
50
|
+
{
|
|
51
|
+
"anchorOptions": {
|
|
52
|
+
"denom": "ibc/usdc5678",
|
|
53
|
+
"decimalPlaces": 6,
|
|
54
|
+
"keyword": "USDC_grv",
|
|
55
|
+
"proposedName": "USC Coin"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
|
|
62
|
+
"entrypoint": "psmProposalBuilder",
|
|
63
|
+
"args": [
|
|
64
|
+
{
|
|
65
|
+
"anchorOptions": {
|
|
66
|
+
"denom": "ibc/usdt1234",
|
|
67
|
+
"decimalPlaces": 6,
|
|
68
|
+
"keyword": "USDT_axl",
|
|
69
|
+
"proposedName": "Tether USD"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
|
|
76
|
+
"entrypoint": "psmProposalBuilder",
|
|
77
|
+
"args": [
|
|
78
|
+
{
|
|
79
|
+
"anchorOptions": {
|
|
80
|
+
"denom": "ibc/toyollie",
|
|
81
|
+
"decimalPlaces": 6,
|
|
82
|
+
"keyword": "USDT_grv",
|
|
83
|
+
"proposedName": "Tether USD"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
|
|
90
|
+
"entrypoint": "psmProposalBuilder",
|
|
91
|
+
"args": [
|
|
92
|
+
{
|
|
93
|
+
"anchorOptions": {
|
|
94
|
+
"denom": "ibc/toyellie",
|
|
37
95
|
"decimalPlaces": 6,
|
|
38
96
|
"keyword": "AUSD",
|
|
39
97
|
"proposedName": "Anchor USD"
|
|
@@ -48,7 +106,8 @@
|
|
|
48
106
|
{
|
|
49
107
|
"AGORIC_INSTANCE_NAME": "ATOM-USD price feed",
|
|
50
108
|
"oracleAddresses": [
|
|
51
|
-
"@
|
|
109
|
+
"@PRIMARY_ADDRESS@",
|
|
110
|
+
"agoric1dy0yegdsev4xvce3dx7zrz2ad9pesf5svzud6y"
|
|
52
111
|
],
|
|
53
112
|
"IN_BRAND_LOOKUP": [
|
|
54
113
|
"agoricNames",
|
|
@@ -70,7 +129,10 @@
|
|
|
70
129
|
"entrypoint": "defaultProposalBuilder",
|
|
71
130
|
"args": [
|
|
72
131
|
{
|
|
73
|
-
"voterAddresses": {
|
|
132
|
+
"voterAddresses": {
|
|
133
|
+
"someone": "@PRIMARY_ADDRESS@"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
74
136
|
]
|
|
75
137
|
}
|
|
76
138
|
]
|
package/jsconfig.json
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
// This file can contain .js-specific Typescript compiler config.
|
|
2
2
|
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
/*
|
|
9
|
-
// The following flags are for creating .d.ts files:
|
|
10
|
-
"noEmit": false,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"emitDeclarationOnly": true,
|
|
13
|
-
*/
|
|
14
|
-
"downlevelIteration": true,
|
|
15
|
-
"strictNullChecks": true,
|
|
16
|
-
"moduleResolution": "node",
|
|
5
|
+
"checkJs": false,
|
|
17
6
|
},
|
|
18
7
|
"include": [
|
|
19
8
|
"calc-*.js",
|
|
20
|
-
"exported.js",
|
|
21
9
|
"src/**/*.js",
|
|
22
10
|
"test/**/*.js",
|
|
23
11
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.40.0",
|
|
3
|
+
"version": "0.40.1-dev-800c2bb.0+800c2bb",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,44 +15,37 @@
|
|
|
15
15
|
"test:xs": "exit 0",
|
|
16
16
|
"lint-fix": "yarn lint:eslint --fix",
|
|
17
17
|
"lint": "run-s --continue-on-error lint:*",
|
|
18
|
-
"lint:types": "tsc
|
|
18
|
+
"lint:types": "tsc -p jsconfig.json",
|
|
19
19
|
"lint:eslint": "eslint ."
|
|
20
20
|
},
|
|
21
21
|
"keywords": [],
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "
|
|
26
|
-
"@agoric/cosmos": "
|
|
27
|
-
"@agoric/deploy-script-support": "
|
|
28
|
-
"@agoric/internal": "
|
|
29
|
-
"@agoric/
|
|
30
|
-
"@agoric/
|
|
31
|
-
"@agoric/
|
|
32
|
-
"@agoric/
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@endo/
|
|
38
|
-
"@endo/
|
|
39
|
-
"@endo/init": "^0.5.49",
|
|
40
|
-
"@endo/marshal": "^0.7.5",
|
|
41
|
-
"@endo/promise-kit": "^0.2.49",
|
|
42
|
-
"@endo/stream": "^0.3.18",
|
|
25
|
+
"@agoric/assert": "0.5.2-dev-800c2bb.0+800c2bb",
|
|
26
|
+
"@agoric/cosmos": "0.33.1-dev-800c2bb.0+800c2bb",
|
|
27
|
+
"@agoric/deploy-script-support": "0.9.7-dev-800c2bb.0+800c2bb",
|
|
28
|
+
"@agoric/internal": "0.2.2-dev-800c2bb.0+800c2bb",
|
|
29
|
+
"@agoric/store": "0.8.6-dev-800c2bb.0+800c2bb",
|
|
30
|
+
"@agoric/swing-store": "0.8.2-dev-800c2bb.0+800c2bb",
|
|
31
|
+
"@agoric/swingset-vat": "0.31.1-dev-800c2bb.0+800c2bb",
|
|
32
|
+
"@agoric/telemetry": "0.5.1-dev-800c2bb.0+800c2bb",
|
|
33
|
+
"@endo/far": "^0.2.18",
|
|
34
|
+
"@endo/import-bundle": "^0.3.4",
|
|
35
|
+
"@endo/init": "^0.5.56",
|
|
36
|
+
"@endo/marshal": "^0.8.5",
|
|
37
|
+
"@endo/nat": "^4.1.27",
|
|
38
|
+
"@endo/promise-kit": "^0.2.56",
|
|
43
39
|
"@iarna/toml": "^2.2.3",
|
|
44
40
|
"@opentelemetry/sdk-metrics": "^0.32.0",
|
|
45
|
-
"agoric": "^0.18.4",
|
|
46
41
|
"anylogger": "^0.21.0",
|
|
47
42
|
"deterministic-json": "^1.0.5",
|
|
48
|
-
"import-meta-resolve": "^
|
|
49
|
-
"lmdb": "^2.4.5",
|
|
43
|
+
"import-meta-resolve": "^2.2.1",
|
|
50
44
|
"tmp": "^0.2.1"
|
|
51
45
|
},
|
|
52
46
|
"devDependencies": {
|
|
53
|
-
"ava": "^
|
|
54
|
-
"c8": "^7.
|
|
55
|
-
"readline-transform": "^1.0.0"
|
|
47
|
+
"ava": "^5.2.0",
|
|
48
|
+
"c8": "^7.13.0"
|
|
56
49
|
},
|
|
57
50
|
"publishConfig": {
|
|
58
51
|
"access": "public"
|
|
@@ -66,5 +59,5 @@
|
|
|
66
59
|
],
|
|
67
60
|
"timeout": "20m"
|
|
68
61
|
},
|
|
69
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "800c2bbed8ccb1e0fc24481c9f95027f95efc1fb"
|
|
70
63
|
}
|
package/rosetta.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"network": {
|
|
3
|
+
"blockchain": "app",
|
|
4
|
+
"network": "agoriclocal"
|
|
5
|
+
},
|
|
6
|
+
"online_url": "http://127.0.0.1:8080",
|
|
7
|
+
"data_directory": "",
|
|
8
|
+
"http_timeout": 300,
|
|
9
|
+
"max_retries": 30,
|
|
10
|
+
"retry_elapsed_time": 30,
|
|
11
|
+
"force_retry": true,
|
|
12
|
+
"max_online_connections": 0,
|
|
13
|
+
"max_sync_concurrency": 0,
|
|
14
|
+
"tip_delay": 60,
|
|
15
|
+
"log_configuration": true,
|
|
16
|
+
"construction": {
|
|
17
|
+
"offline_url": "http://127.0.0.1:8080",
|
|
18
|
+
"max_offline_connections": 0,
|
|
19
|
+
"stale_depth": 0,
|
|
20
|
+
"broadcast_limit": 0,
|
|
21
|
+
"ignore_broadcast_failures": false,
|
|
22
|
+
"clear_broadcasts": false,
|
|
23
|
+
"broadcast_behind_tip": false,
|
|
24
|
+
"block_broadcast_limit": 0,
|
|
25
|
+
"rebroadcast_all": false,
|
|
26
|
+
"constructor_dsl_file": "transfer.ros",
|
|
27
|
+
"end_conditions": {
|
|
28
|
+
"create_account": 1,
|
|
29
|
+
"transferBLD": 1,
|
|
30
|
+
"transferIST": 1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"data": {
|
|
34
|
+
"active_reconciliation_concurrency": 0,
|
|
35
|
+
"inactive_reconciliation_concurrency": 0,
|
|
36
|
+
"inactive_reconciliation_frequency": 0,
|
|
37
|
+
"log_blocks": false,
|
|
38
|
+
"log_transactions": false,
|
|
39
|
+
"log_balance_changes": false,
|
|
40
|
+
"log_reconciliations": false,
|
|
41
|
+
"ignore_reconciliation_error": false,
|
|
42
|
+
"exempt_accounts": "",
|
|
43
|
+
"bootstrap_balances": "bootstrap.json",
|
|
44
|
+
"interesting_accounts": "",
|
|
45
|
+
"reconciliation_disabled": false,
|
|
46
|
+
"inactive_discrepancy_search_disabled": false,
|
|
47
|
+
"balance_tracking_disabled": false,
|
|
48
|
+
"coin_tracking_disabled": false,
|
|
49
|
+
"end_conditions": {
|
|
50
|
+
"tip": true
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|