Skip to content

Commit

Permalink
refactor(smart-wallet): contract start terms
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 24, 2022
1 parent f9ea0a6 commit ae60a0f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/wallet/contract/src/singleWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const { assign, entries, keys, fromEntries } = Object;

/**
* @typedef {{
* agoricNames: NameHub,
* bank: import('@agoric/vats/src/vat-bank').Bank,
* board: Board,
* agoricNames: ERef<NameHub>,
* bank: ERef<import('@agoric/vats/src/vat-bank').Bank>,
* board: ERef<Board>,
* myAddressNameAdmin: ERef<MyAddressNameAdmin>,
* namesByAddress: NameHub,
* namesByAddress: ERef<NameHub>,
* }} SmartWalletContractTerms
*/

Expand Down
6 changes: 3 additions & 3 deletions packages/wallet/contract/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const { assign, entries, keys, fromEntries } = Object;
* myAddressNameAdmin: ERef<MyAddressNameAdmin>,
* }} unique
* @param {{
* agoricNames: NameHub,
* board: Board
* namesByAddress: NameHub,
* agoricNames: ERef<NameHub>,
* board: ERef<Board>,
* namesByAddress: ERef<NameHub>,
* storageNode: ERef<StorageNode>,
* zoe: ERef<ZoeService>,
* }} shared
Expand Down
6 changes: 3 additions & 3 deletions packages/wallet/contract/src/walletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import { makeSmartWallet } from './smartWallet.js';

/**
* @typedef {{
* agoricNames: NameHub,
* board: Board,
* namesByAddress: NameHub,
* agoricNames: ERef<NameHub>,
* board: ERef<Board>,
* namesByAddress: ERef<NameHub>,
* }} SmartWalletContractTerms
*
* @typedef {{
Expand Down
1 change: 0 additions & 1 deletion packages/wallet/contract/test/test-singleWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const makeTestContext = async t => {
'singleWallet',
);
/** @type {Promise<Installation<import('../src/singleWallet.js').start>>} */
// @ts-expect-error cast
const installation = E(zoe).install(bundle);
// #endregion

Expand Down
4 changes: 1 addition & 3 deletions packages/wallet/contract/test/test-walletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const makeTestContext = async t => {
'walletFactory',
);
/** @type {Promise<Installation<import('../src/walletFactory.js').start>>} */
// @ts-expect-error case
const installation = E(zoe).install(bundle);
// #endregion

Expand All @@ -63,7 +62,6 @@ const makeTestContext = async t => {
consume.chainStorage,
'wallet',
);
const marshaller = E(consume.board).getPublishingMarshaller();

const walletFactory = E(zoe).startInstance(
installation,
Expand All @@ -73,7 +71,7 @@ const makeTestContext = async t => {
namesByAddress: consume.namesByAddress,
board: consume.board,
},
{ storageNode, marshaller },
{ storageNode },
);

return {
Expand Down

0 comments on commit ae60a0f

Please sign in to comment.