Skip to content

Commit

Permalink
test: fast-usdc CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 26, 2024
1 parent 45e5963 commit 14ac9a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions a3p-integration/proposals/f:fast-usdc/test-cli.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions a3p-integration/proposals/f:fast-usdc/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/bin/bash
yarn ava

# TODO get CLI test passing and part of CI
./test-cli.sh || echo "CLI test failed"

0 comments on commit 14ac9a7

Please sign in to comment.