Skip to content

Commit

Permalink
Merge pull request #6208 from Agoric/ta/remove-legacy-package
Browse files Browse the repository at this point in the history
clean up smart wallet
  • Loading branch information
mergify[bot] authored Sep 15, 2022
2 parents 99274dd + 467a98c commit e304af3
Show file tree
Hide file tree
Showing 21 changed files with 11 additions and 601 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ jobs:
run: cd packages/assert && yarn ${{ steps.vars.outputs.test }}
- name: yarn test (wallet/api)
run: cd packages/wallet/api && yarn ${{ steps.vars.outputs.test }}
- name: yarn test (wallet/contract)
run: cd packages/wallet/contract && yarn ${{ steps.vars.outputs.test }}
- name: yarn test (deployment)
run: cd packages/deployment && yarn ${{ steps.vars.outputs.test }}
- name: yarn test (ERTP)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"golang/cosmos",
"packages/*",
"packages/wallet/api",
"packages/wallet/contract",
"packages/wallet/ui"
],
"type": "module",
Expand Down
1 change: 0 additions & 1 deletion packages/agoric-cli/src/sdk-package-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default [
"@agoric/import-manager",
"@agoric/inter-protocol",
"@agoric/internal",
"@agoric/legacy-smart-wallet",
"@agoric/notifier",
"@agoric/pegasus",
"@agoric/same-structure",
Expand Down
3 changes: 2 additions & 1 deletion packages/smart-wallet/test/devices.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import bundleCentralSupply from '@agoric/vats/bundles/bundle-centralSupply.js';
import bundleMintHolder from '@agoric/vats/bundles/bundle-mintHolder.js';
import bundleWalletFactory from '@agoric/vats/bundles/bundle-walletFactory.js';
import bundleProvisionPool from '@agoric/vats/bundles/bundle-provisionPool.js';

import bundleWalletFactory from '../bundles/bundle-walletFactory.js';

export const devices = {
vatAdmin: {
getNamedBundleCap: name => ({
Expand Down
3 changes: 0 additions & 3 deletions packages/vats/decentral-core-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
"sharing": {
"sourceSpec": "@agoric/vats/src/vat-sharing.js"
},
"singleWallet": {
"sourceSpec": "@agoric/wallet/contract/src/singleWallet.js"
},
"walletFactory": {
"sourceSpec": "@agoric/smart-wallet/src/walletFactory.js"
},
Expand Down
7 changes: 3 additions & 4 deletions packages/vats/decentral-demo-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"sourceSpec": "@agoric/vats/src/core/boot.js",
"parameters": {
"governanceActions": true,
"economicCommitteeAddresses": { "voter": "agoric1Ersatz" }
"economicCommitteeAddresses": {
"voter": "agoric1Ersatz"
}
},
"creationOptions": {
"critical": true
Expand Down Expand Up @@ -57,9 +59,6 @@
"sharing": {
"sourceSpec": "@agoric/vats/src/vat-sharing.js"
},
"singleWallet": {
"sourceSpec": "@agoric/wallet/contract/src/singleWallet.js"
},
"walletFactory": {
"sourceSpec": "@agoric/smart-wallet/src/walletFactory.js"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/vats/decentral-psm-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"denom": "ibc/usdc1234"
}
],
"economicCommitteeAddresses": { "voter": "agoric1ersatz"}
"economicCommitteeAddresses": {
"voter": "agoric1ersatz"
}
},
"creationOptions": {
"critical": true
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/demo-proposals.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[
"@agoric/inter-protocol/scripts/init-core.js",
"@agoric/pegasus/scripts/init-core.js"
]
]
8 changes: 0 additions & 8 deletions packages/vats/scripts/build-bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ const sourceToBundle = [
[`../src/centralSupply.js`, `../bundles/bundle-centralSupply.js`],
[`../src/mintHolder.js`, `../bundles/bundle-mintHolder.js`],
[`../src/provisionPool.js`, `../bundles/bundle-provisionPool.js`],
[
`@agoric/wallet/contract/src/singleWallet.js`,
`../bundles/bundle-singleWallet.js`,
],
[
`@agoric/smart-wallet/src/walletFactory.js`,
`../bundles/bundle-walletFactory.js`,
],
];

await createBundles(sourceToBundle, dirname);
3 changes: 1 addition & 2 deletions packages/vats/src/core/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
* TokenKeyword | 'Attestation' | 'AUSD',
* installation: |
* 'centralSupply' | 'mintHolder' |
* 'singleWallet' | 'walletFactory' | 'provisionPool' |
* 'walletFactory' | 'provisionPool' |
* 'feeDistributor' |
* 'contractGovernor' | 'committee' | 'noActionElectorate' | 'binaryVoteCounter' |
* 'amm' | 'VaultFactory' | 'liquidate' | 'stakeFactory' |
Expand Down Expand Up @@ -176,7 +176,6 @@
* consume: Record<WellKnownName['installation'], Promise<Installation<unknown>>> & {
* interchainPool: Promise<Installation<import('@agoric/inter-protocol/src/interchainPool.js').start>>,
* mintHolder: Promise<Installation<import('@agoric/vats/src/mintHolder.js').start>>,
* singleWallet: Promise<Installation<import('@agoric/legacy-smart-wallet/src/singleWallet.js').start>>,
* walletFactory: Promise<Installation<import('@agoric/smart-wallet/src/walletFactory.js').start>>,
* },
* },
Expand Down
1 change: 0 additions & 1 deletion packages/vats/src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const agoricNamesReserved = harden({
installation: {
centralSupply: 'central supply',
mintHolder: 'mint holder',
singleWallet: 'single smart wallet',
walletFactory: 'multitenant smart wallet',
provisionPool: 'provision accounts with initial IST',
contractGovernor: 'contract governor',
Expand Down
4 changes: 1 addition & 3 deletions packages/vats/test/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ import bundleContractGovernor from '@agoric/governance/bundles/bundle-contractGo
import bundleBinaryVoteCounter from '@agoric/governance/bundles/bundle-binaryVoteCounter.js';
import bundlePSM from '@agoric/inter-protocol/bundles/bundle-psm.js';
import bundlePSMCharter from '@agoric/inter-protocol/bundles/bundle-psmCharter.js';
import bundleWalletFactory from '@agoric/smart-wallet/bundles/bundle-walletFactory.js';

import bundleCentralSupply from '../bundles/bundle-centralSupply.js';
import bundleMintHolder from '../bundles/bundle-mintHolder.js';
import bundleSingleWallet from '../bundles/bundle-singleWallet.js';
import bundleWalletFactory from '../bundles/bundle-walletFactory.js';
import bundleProvisionPool from '../bundles/bundle-provisionPool.js';

const bundles = {
centralSupply: bundleCentralSupply,
mintHolder: bundleMintHolder,
singleWallet: bundleSingleWallet,
walletFactory: bundleWalletFactory,
committee: bundleCommittee,
contractGovernor: bundleContractGovernor,
Expand Down
5 changes: 0 additions & 5 deletions packages/wallet/contract/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions packages/wallet/contract/jsconfig.json

This file was deleted.

52 changes: 0 additions & 52 deletions packages/wallet/contract/package.json

This file was deleted.

95 changes: 0 additions & 95 deletions packages/wallet/contract/src/singleWallet.js

This file was deleted.

Loading

0 comments on commit e304af3

Please sign in to comment.