-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add proposal 87 Fast USDC Beta #220
Changes from all commits
3b95a0d
ef3a143
f1fb54d
3d899e7
e192adc
e083729
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.json | ||
proposals/87:fast-usdc-beta/submission/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# intermediate files on the way to finding the tx | ||
proposer.json | ||
proposer-tx-hist.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This Makefile is here to help you find out what went on the | ||
# chain for a CoreEval proposal such as #76 for vaults / auctions. | ||
PROPOSAL=87 | ||
|
||
## | ||
# Find the proposal transaction | ||
|
||
# To find the transaction, let's start with: Who proposed 76? | ||
proposer.json: | ||
agd --node $(ARCHIVE_NODE) query gov proposer $(PROPOSAL) -o json >$@ | ||
|
||
# Get proposer's tranasction history. | ||
proposer-tx-hist.json: proposer.json | ||
PROPOSER="$$(jq -r .proposer $<)"; \ | ||
agd --node $(ARCHIVE_NODE) query txs --events="message.sender=$$PROPOSER" -o json >$@ | ||
|
||
# pick out their most recent CoreEvalProposal | ||
tx.json: proposer-tx-hist.json | ||
jq '.txs | .[] | select(.tx.body.messages[0].content["@type"] == "/agoric.swingset.CoreEvalProposal")' \ | ||
$< >$@ | ||
|
||
# A CoreEval proposal has a sequence of json_permits,js_code pairs. | ||
# We happen to know there were 2 in this case, and we have | ||
# been using certain filenames for them. | ||
|
||
EVALS=submission/start-fast-usdc-permit.json submission/start-fast-usdc.js | ||
|
||
core-evals: $(EVALS) | ||
|
||
# Now pick out their contents from the transaction. | ||
submission/start-fast-usdc-permit.json: tx.json | ||
jq -r '.tx.body.messages[0].content.evals[0].json_permits' $< >$@ | ||
submission/start-fast-usdc.js: tx.json | ||
jq -r '.tx.body.messages[0].content.evals[0].js_code' $< >$@ | ||
|
||
# clean up locally computed files | ||
clean: | ||
rm -f $(EVALS) | ||
|
||
# clean up files cached from the network as well | ||
realclean: clean | ||
rm -f tx.json proposer.json tx-hist-proposer.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# CoreEvalProposal to upgrade vaults and auctions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revise |
||
|
||
The `submission` permit and script are extracted from proposal 87 submitted to mainNet. (see `Makefile`) | ||
|
||
Matching bundles are available from: | ||
https://github.com/Agoric/agoric-sdk/releases/tag/fast-usdc-beta-1 0303d15 |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,7 @@ | ||||||||||||||
#!/bin/bash | ||||||||||||||
set -e | ||||||||||||||
|
||||||||||||||
echo "[$PROPOSAL] Running proposal declared in package.json" | ||||||||||||||
# copy to run in the proposal package so the dependencies can be resolved | ||||||||||||||
cp /usr/src/upgrade-test-scripts/eval_submission.js . | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this file shouldn't be necessary. it's doing the same as happens if it's absent. agoric-3-proposals/packages/synthetic-chain/public/upgrade-test-scripts/run_eval.sh Lines 24 to 29 in 30e910f
|
||||||||||||||
./eval_submission.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"agoricProposal": { | ||
"type": "/agoric.swingset.CoreEvalProposal", | ||
"releaseNotes": "https://github.com/Agoric/agoric-sdk/releases/tag/fast-usdc-beta-1" | ||
}, | ||
"type": "module", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@agoric/synthetic-chain": "~0.5.2", | ||
"ava": "^5.3.1" | ||
}, | ||
"ava": { | ||
"concurrency": 1, | ||
"timeout": "2m", | ||
"files": [ | ||
"!submission" | ||
] | ||
}, | ||
"scripts": { | ||
"agops": "yarn --cwd /usr/src/agoric-sdk/ --silent agops" | ||
}, | ||
"packageManager": "yarn@4.2.2" | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"produce": { | ||
"fastUsdcKit": true | ||
}, | ||
"consume": { | ||
"bankManager": true, | ||
"chainStorage": true, | ||
"chainTimerService": true, | ||
"localchain": true, | ||
"cosmosInterchainService": true, | ||
"startUpgradable": true, | ||
"zoe": "makeCoreProposalBehavior", | ||
"agoricNames": true, | ||
"namesByAddress": true, | ||
"board": true, | ||
"agoricNamesAdmin": "makeCoreProposalBehavior", | ||
"vatAdminSvc": "makeCoreProposalBehavior" | ||
}, | ||
"issuer": { | ||
"produce": { | ||
"FastLP": true | ||
} | ||
}, | ||
"brand": { | ||
"produce": { | ||
"FastLP": true | ||
} | ||
}, | ||
"instance": { | ||
"produce": { | ||
"fastUsdc": true | ||
} | ||
}, | ||
"installation": { | ||
"consume": { | ||
"fastUsdc": true | ||
}, | ||
"produce": "makeCoreProposalBehavior" | ||
}, | ||
"evaluateBundleCap": "makeCoreProposalBehavior", | ||
"modules": { | ||
"utils": { | ||
"runModuleBehaviors": "makeCoreProposalBehavior" | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transaction