-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_leftover_ ## Description A previous PR added an A3P test of fast-usdc CLI but didn't get it working. This fixes it by providing the proper dependencies and usage. It also documents why the `yarn link` approach doesn't work for this package. ### Security Considerations n/a ### Scaling Considerations n/a ### Documentation Considerations n/a ### Testing Considerations ### Upgrade Considerations
- Loading branch information
Showing
6 changed files
with
1,644 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# proposal for deploying fast-usdc | ||
|
||
Note that this will run after upgrade-next but for iteration speed it runs before n:upgrade-next in the build sequence. | ||
|
||
A consequence of this is that it can't use `yarn link` to get `@agoric/fast-usdc` because it's not in the base image. Instead it sources the packages from NPM using `dev` to get the latest master builds. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# FIXME these commands are run against the `@agoric/fast-usdc` pulled from NPM | ||
# but should be run against the local SDK. The `yarn link` command described in | ||
# a3p-integration/README.md is supposed to make that work but it's not working. | ||
# XXX the from address is gov1 but using that causes: | ||
# Error: gov1 is not a valid name or address: decoding bech32 failed: invalid bech32 string length 4 | ||
# Usage: | ||
# agd keys show [name_or_address [name_or_address...]] [flags] | ||
|
||
yarn @agoric/fast-usdc operator accept >| accept.json | ||
yarn fast-usdc operator accept >| accept.json | ||
cat accept.json | ||
yarn agoric wallet send --offer accept.json --from gov1 --keyring-backend="test" | ||
yarn agoric wallet send --offer accept.json --from agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q --keyring-backend test | ||
ACCEPT_OFFER_ID=$(agoric wallet extract-id --offer accept.json) | ||
|
||
# FIXME attest something | ||
yarn @agoric/fast-usdc operator attest --previousOfferId "$ACCEPT_OFFER_ID" >| attest.json | ||
yarn fast-usdc operator attest --previousOfferId="$ACCEPT_OFFER_ID" --forwardingChannel=foo --recipientAddress=agoric1foo --blockHash=0xfoo --blockNumber=1 --chainId=3 --amount=123 --forwardingAddress=noble1foo --sender 0xfoo --txHash=0xtx >| attest.json | ||
cat attest.json | ||
yarn agoric wallet send --offer attest.json --from gov1 --keyring-backend="test" | ||
yarn agoric wallet send --offer attest.json --from agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q --keyring-backend test | ||
|
||
# The data above are bogus and result in errors in the logs: | ||
# SwingSet: vat: v72: ----- TxFeed.11 8 publishing evidence { aux: { forwardingChannel: 'foo', recipientAddress: 'agoric1foo' }, blockHash: '0xfoo', blockNumber: 1n, chainId: 3, tx: { amount: 123n, forwardingAddress: 'noble1foo', sender: '0xfoo' }, txHash: '0xtx' } [] | ||
# SwingSet: vat: v72: ----- Advancer.15 2 Advancer error: (Error#4) | ||
# SwingSet: vat: v72: Error#4: Data too short |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.