Skip to content

Commit

Permalink
fix(vats): fix lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jan 26, 2022
1 parent efc5d9a commit 267feb0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions packages/vats/src/my-lien.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('./bridge').BridgeManager>} bridgeManager
* @param {Brand} stake
Expand Down
10 changes: 6 additions & 4 deletions packages/vats/test/authorityViz.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 267feb0

Please sign in to comment.