From 267feb0f85d6d560d0d9884a062ed62ea91fcdb8 Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Tue, 25 Jan 2022 20:47:07 -0600 Subject: [PATCH] fix(vats): fix lint problems --- packages/vats/src/my-lien.js | 12 ++++++++++++ packages/vats/test/authorityViz.js | 10 ++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/vats/src/my-lien.js b/packages/vats/src/my-lien.js index 526146e844e3..0cedf7275296 100644 --- a/packages/vats/src/my-lien.js +++ b/packages/vats/src/my-lien.js @@ -20,6 +20,18 @@ const XLien = { * @template T */ +/** + * @typedef {Object} StakingAuthority + * @property {(address: string, wantedBrand: Brand) => Promise<{ + * bonded: Amount, + * liened: Amount, + * locked: Amount, + * total: Amount, + * unbonding: Amount, + * currentTime: bigint, + * }>} getAccountState + */ + /** * @param {ERef} bridgeManager * @param {Brand} stake diff --git a/packages/vats/test/authorityViz.js b/packages/vats/test/authorityViz.js index fb34d0c966b1..bfcd1823151f 100644 --- a/packages/vats/test/authorityViz.js +++ b/packages/vats/test/authorityViz.js @@ -1,6 +1,6 @@ // @ts-check import '@agoric/install-ses'; -import { makeSimBootstrapManifest } from '../src/core/sim-behaviors.js'; +import * as manifests from '../src/core/manifest.js'; const { entries } = Object; @@ -112,9 +112,11 @@ const main = async (args, { readFile, stdout }) => { }, }, } = config; - const manifest = opts.includes('--sim-chain') - ? makeSimBootstrapManifest(bootstrapManifest) - : bootstrapManifest; + const manifest = + bootstrapManifest || + (opts.includes('--sim-chain') + ? manifests.SIM_CHAIN_BOOTSTRAP_MANIFEST + : manifests.CHAIN_BOOTSTRAP_MANIFEST); // console.log(JSON.stringify(bootstrapManifest, null, 2)); const g = manifest2graph(manifest);