Skip to content

Commit

Permalink
agoric-cli lib export (#10611)
Browse files Browse the repository at this point in the history
refs: #9109

## Description

#9109 packaged up `@agoric/client-utils` but left duplicated in a3p-integration the files copied from agoric-cli.

This makes agoric-cli export its lib modules and uses the `yarn link` established in 9109 to import them.

### Security Considerations
agoric-cli package now exports the libraries it uses.

### Scaling Considerations
none

### Documentation Considerations
The libs of agoric-cli are not yet stabilized, but since the `agoric` CLI is at 0.21 it doesn't claim to maintain backwards compatibility.

### Testing Considerations
CI

### Upgrade Considerations
n/a
  • Loading branch information
mergify[bot] authored Dec 4, 2024
2 parents 9b8cad2 + 3ce6d56 commit 3314b25
Show file tree
Hide file tree
Showing 8 changed files with 497 additions and 1,052 deletions.
52 changes: 51 additions & 1 deletion a3p-integration/proposals/s:stake-bld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
"type": "module",
"license": "Apache-2.0",
"dependencies": {
"@agoric/client-utils": "dev",
"@agoric/internal": "0.3.3-dev-5676146.0",
"@agoric/synthetic-chain": "^0.4.3",
"@cosmjs/stargate": "^0.32.3",
"@cosmjs/tendermint-rpc": "^0.32.3",
"@endo/errors": "^1.2.2",
"@endo/far": "^1.0.4",
"@endo/init": "^1.0.4",
"agoric": "0.21.2-dev-5676146.0",
"agoric": "dev",
"ava": "^5.3.1",
"execa": "^8.0.1"
},
Expand All @@ -26,5 +27,54 @@
"packageManager": "[email protected]",
"devDependencies": {
"@types/node": "^22.0.0"
},
"resolutions": {
"@agoric/cosmos": "portal:../../agoric-sdk/golang/cosmos",
"@agoric/ertp": "portal:../../agoric-sdk/packages/ERTP",
"@agoric/swingset-vat": "portal:../../agoric-sdk/packages/SwingSet",
"@agoric/access-token": "portal:../../agoric-sdk/packages/access-token",
"agoric": "portal:../../agoric-sdk/packages/agoric-cli",
"@agoric/async-flow": "portal:../../agoric-sdk/packages/async-flow",
"@agoric/base-zone": "portal:../../agoric-sdk/packages/base-zone",
"@agoric/builders": "portal:../../agoric-sdk/packages/builders",
"@agoric/cache": "portal:../../agoric-sdk/packages/cache",
"@agoric/casting": "portal:../../agoric-sdk/packages/casting",
"@agoric/client-utils": "portal:../../agoric-sdk/packages/client-utils",
"@agoric/cosmic-proto": "portal:../../agoric-sdk/packages/cosmic-proto",
"@agoric/cosmic-swingset": "portal:../../agoric-sdk/packages/cosmic-swingset",
"@agoric/create-dapp": "portal:../../agoric-sdk/packages/create-dapp",
"@agoric/deploy-script-support": "portal:../../agoric-sdk/packages/deploy-script-support",
"@agoric/eslint-config": "portal:../../agoric-sdk/packages/eslint-config",
"@agoric/fast-usdc": "portal:../../agoric-sdk/packages/fast-usdc",
"@agoric/governance": "portal:../../agoric-sdk/packages/governance",
"@agoric/import-manager": "portal:../../agoric-sdk/packages/import-manager",
"@agoric/inter-protocol": "portal:../../agoric-sdk/packages/inter-protocol",
"@agoric/internal": "portal:../../agoric-sdk/packages/internal",
"@agoric/kmarshal": "portal:../../agoric-sdk/packages/kmarshal",
"@agoric/network": "portal:../../agoric-sdk/packages/network",
"@agoric/notifier": "portal:../../agoric-sdk/packages/notifier",
"@agoric/orchestration": "portal:../../agoric-sdk/packages/orchestration",
"@agoric/pegasus": "portal:../../agoric-sdk/packages/pegasus",
"@agoric/smart-wallet": "portal:../../agoric-sdk/packages/smart-wallet",
"@agoric/solo": "portal:../../agoric-sdk/packages/solo",
"@agoric/sparse-ints": "portal:../../agoric-sdk/packages/sparse-ints",
"@agoric/spawner": "portal:../../agoric-sdk/packages/spawner",
"@agoric/stat-logger": "portal:../../agoric-sdk/packages/stat-logger",
"@agoric/store": "portal:../../agoric-sdk/packages/store",
"@agoric/swing-store": "portal:../../agoric-sdk/packages/swing-store",
"@agoric/swingset-liveslots": "portal:../../agoric-sdk/packages/swingset-liveslots",
"@agoric/swingset-xsnap-supervisor": "portal:../../agoric-sdk/packages/swingset-xsnap-supervisor",
"@agoric/telemetry": "portal:../../agoric-sdk/packages/telemetry",
"@agoric/time": "portal:../../agoric-sdk/packages/time",
"@agoric/vat-data": "portal:../../agoric-sdk/packages/vat-data",
"@agoric/vats": "portal:../../agoric-sdk/packages/vats",
"@agoric/vm-config": "portal:../../agoric-sdk/packages/vm-config",
"@agoric/vow": "portal:../../agoric-sdk/packages/vow",
"@agoric/wallet": "portal:../../agoric-sdk/packages/wallet",
"@agoric/wallet-backend": "portal:../../agoric-sdk/packages/wallet/api",
"@agoric/xsnap": "portal:../../agoric-sdk/packages/xsnap",
"@agoric/xsnap-lockdown": "portal:../../agoric-sdk/packages/xsnap-lockdown",
"@agoric/zoe": "portal:../../agoric-sdk/packages/zoe",
"@agoric/zone": "portal:../../agoric-sdk/packages/zone"
}
}
140 changes: 0 additions & 140 deletions a3p-integration/proposals/s:stake-bld/test-lib/chain.js

This file was deleted.

6 changes: 2 additions & 4 deletions a3p-integration/proposals/s:stake-bld/test-lib/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* eslint-env node */
import { execFileSync } from 'child_process';
import { LOCAL_CONFIG as networkConfig } from '@agoric/client-utils';
import { makeWalletUtils } from './wallet.js';

export const networkConfig = {
rpcAddrs: ['http://0.0.0.0:26657'],
chainName: 'agoriclocal',
};
export { networkConfig };

/**
* Resolve after a delay in milliseconds.
Expand Down
Loading

0 comments on commit 3314b25

Please sign in to comment.