-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'iomekam-asset-reserve-a3p' into iomekam-ar-upgrade-tests
- Loading branch information
Showing
295 changed files
with
16,958 additions
and
5,346 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
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
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 |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
"@agoric/synthetic-chain": "^0.4.3", | ||
"@types/better-sqlite3": "^7.6.11" | ||
}, | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].3", | ||
"license": "Apache-2.0" | ||
} |
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 @@ | ||
nodeLinker: node-modules |
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,18 @@ | ||
// @ts-check | ||
/* global globalThis */ | ||
import test from 'ava'; | ||
import '@endo/init/legacy.js'; // axios compat | ||
import { makeVstorageKit } from '@agoric/client-utils'; | ||
|
||
const io = { fetch: globalThis.fetch }; | ||
const networkConfig = { | ||
rpcAddrs: ['http://0.0.0.0:26657'], | ||
chainName: 'agoriclocal', | ||
}; | ||
|
||
test('fastUsdc is in agoricNames.instance', async t => { | ||
const { agoricNames } = await makeVstorageKit(io, networkConfig); | ||
|
||
t.log('agoricNames.instance keys', Object.keys(agoricNames.instance)); | ||
t.truthy(agoricNames.instance.fastUsdc); | ||
}); |
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,28 @@ | ||
{ | ||
"agoricProposal": { | ||
"source": "subdir", | ||
"sdk-generate": [ | ||
"fast-usdc/init-fast-usdc.js submission --net A3P_INTEGRATION" | ||
], | ||
"type": "/agoric.swingset.CoreEvalProposal" | ||
}, | ||
"type": "module", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@agoric/client-utils": "dev", | ||
"@agoric/synthetic-chain": "^0.4.3", | ||
"@endo/init": "^1.1.7", | ||
"ava": "^5.3.1" | ||
}, | ||
"ava": { | ||
"concurrency": 1, | ||
"timeout": "2m", | ||
"files": [ | ||
"!submission" | ||
] | ||
}, | ||
"scripts": { | ||
"agops": "yarn --cwd /usr/src/agoric-sdk/ --silent agops" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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,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" |
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,5 @@ | ||
#!/bin/bash | ||
yarn ava | ||
|
||
# TODO get CLI test passing and part of CI | ||
./test-cli.sh || echo "CLI test failed" |
Oops, something went wrong.