Skip to content

Commit

Permalink
chore: export bridge types
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Oct 26, 2022
1 parent 78778a5 commit fd324c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/inter-protocol/src/my-lien.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const XLien = /** @type { const } */ ({
*/

/**
* @param {ERef<BridgeManager>} bridgeManager
* @param {ERef<import('@agoric/vats').BridgeManager>} bridgeManager
* @param {Brand<'nat'>} brand
* @param {string} [denom]
* @returns {StakingAuthority}
Expand Down
2 changes: 1 addition & 1 deletion packages/smart-wallet/src/walletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const publishDepositFacet = async (
* @param {ZCF<SmartWalletContractTerms>} zcf
* @param {{
* storageNode: ERef<StorageNode>,
* bridgeManager?: ERef<import('@agoric/vats/src/bridge.js').BridgeManager>,
* bridgeManager?: ERef<import('@agoric/vats').BridgeManager>,
* }} privateArgs
*/
export const start = async (zcf, privateArgs) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/smart-wallet/test/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const setUpZoeForTest = async () => {
harden(setUpZoeForTest);

const makeFakeBridgeManager = () => {
/** @type {Record<string, ERef<import('@agoric/vats/src/bridge').BridgeHandler>>} */
/** @type {Record<string, ERef<import('@agoric/vats').BridgeHandler>>} */
const handlers = {};
/** @type {import('@agoric/vats/src/bridge').BridgeManager} */
/** @type {import('@agoric/vats').BridgeManager} */
const manager = {
register(srcID, handler) {
handlers[srcID] = handler;
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/src/core/chain-behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ harden(connectChainFaucet);

/**
* @param {SoloVats | NetVats} vats
* @param {OptionalBridgeManager} dibcBridgeManager
* @param {import('../bridge.js').BridgeManager=} dibcBridgeManager
*/
export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
const ps = [];
Expand Down
5 changes: 0 additions & 5 deletions packages/vats/src/core/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
* }} ChainDevices
*/

/**
* @typedef {ReturnType<typeof import('../bridge.js').makeBridgeManager>} BridgeManager
* @typedef {BridgeManager | undefined} OptionalBridgeManager
*/

/**
* @typedef {{
* getChainBundle: () => unknown,
Expand Down

0 comments on commit fd324c8

Please sign in to comment.