diff --git a/a3p-integration/proposals/f:fast-usdc/test-cli.sh b/a3p-integration/proposals/f:fast-usdc/test-cli.sh new file mode 100755 index 00000000000..eb7bbc315ee --- /dev/null +++ b/a3p-integration/proposals/f:fast-usdc/test-cli.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# 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. + +yarn @agoric/fast-usdc operator accept >| accept.json +cat accept.json +yarn agoric wallet send --offer accept.json --from gov1 --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 +cat attest.json +yarn agoric wallet send --offer attest.json --from gov1 --keyring-backend="test" diff --git a/a3p-integration/proposals/f:fast-usdc/test.sh b/a3p-integration/proposals/f:fast-usdc/test.sh index ff669d07327..eb9d0be8634 100755 --- a/a3p-integration/proposals/f:fast-usdc/test.sh +++ b/a3p-integration/proposals/f:fast-usdc/test.sh @@ -1,2 +1,5 @@ #!/bin/bash yarn ava + +# TODO get CLI test passing and part of CI +./test-cli.sh || echo "CLI test failed"