Skip to content

Commit

Permalink
refactor(inter-protocol): jessie-check where easy
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Apr 24, 2023
1 parent de56bbf commit e2f640f
Show file tree
Hide file tree
Showing 34 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/auction/scheduleMath.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { TimeMath } from '@agoric/time';
import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
import { makeTracer } from '@agoric/internal';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/auction/sortedOffers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import {
makeRatio,
ratioToNumber,
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/auction/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import {
makeRatioFromAmounts,
multiplyRatios,
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/collectFees.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { atomicTransfer } from '@agoric/zoe/src/contractSupport/index.js';

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/contractSupport.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { AmountMath } from '@agoric/ertp';
import { makeStoredPublisherKit, makeStoredPublishKit } from '@agoric/notifier';
import { M } from '@agoric/store';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/econCommitteeCharter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '@agoric/governance/exported.js';
import { makeScalarMapStore, M, makeExo, mustMatch } from '@agoric/store';
import '@agoric/zoe/exported.js';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// @jessie-check

export { calculateCurrentDebt } from './interest-math.js';
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/interest-math.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import {
divideBy,
multiplyBy,
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/interest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { AmountMath } from '@agoric/ertp';
import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
import {
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/my-lien.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { AmountMath } from '@agoric/ertp';
import { E, Far } from '@endo/far';

Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/price/fluxAggregatorContract.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import {
hasIssuer,
makeDurableIssuerKit,
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/proposals/addAssetToVault.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { AmountMath, AssetKind } from '@agoric/ertp';
import { makeRatio } from '@agoric/zoe/src/contractSupport/index.js';
import { deeplyFulfilledObject } from '@agoric/internal';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/proposals/core-proposal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { Stable } from '@agoric/vats/src/tokens.js';
import * as econBehaviors from './econ-behaviors.js';
import { ECON_COMMITTEE_MANIFEST } from './startEconCommittee.js';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/proposals/econ-behaviors.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '../../exported.js';

import { AmountMath } from '@agoric/ertp';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/proposals/startPSM.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { AmountMath, AssetKind } from '@agoric/ertp';
import { CONTRACT_ELECTORATE, ParamTypes } from '@agoric/governance';
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/psm/psm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '@agoric/zoe/exported.js';
import '@agoric/zoe/src/contracts/exported.js';
import '@agoric/governance/exported.js';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/psm/types.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// @jessie-check

/** @typedef {import('./psm').PsmPublicFacet} PsmPublicFacet */
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/reserve/assetReserve.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { E, Far } from '@endo/far';
import { AmountMath } from '@agoric/ertp';
import { handleParamGovernance } from '@agoric/governance';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/reserve/params.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { CONTRACT_ELECTORATE, ParamTypes } from '@agoric/governance';

const makeReserveTerms = (poserInvitationAmount, timer) => ({
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/stakeFactory/attestationTool.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

/**
* @typedef {Readonly<{
* address: Address,
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/stakeFactory/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

export const AttKW = /** @type { const } */ ({
/** seat keyword for use in offers to return an attestation. */
Attestation: 'Attestation',
Expand Down
1 change: 1 addition & 0 deletions packages/inter-protocol/src/stakeFactory/stakeFactory.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @jessie-check

import { AmountMath } from '@agoric/ertp';
import { handleParamGovernance, ParamTypes } from '@agoric/governance';
import { atomicRearrange } from '@agoric/zoe/src/contractSupport/atomicTransfer.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @jessie-check

import { AmountMath, AssetKind } from '@agoric/ertp';
import { bindAllMethods, makeTracer } from '@agoric/internal';
import { makePublishKit } from '@agoric/notifier';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @jessie-check

import { AmountMath } from '@agoric/ertp';
import { makePublishKit, observeNotifier } from '@agoric/notifier';
import { mustMatch, getCopyBagEntries, M } from '@agoric/store';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/stakeFactory/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

/**
* For example, an agoric1... Cosmos address
*
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/typeGuards.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import { M } from '@agoric/store';

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/burn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '@agoric/zoe/exported.js';

import { E } from '@endo/eventual-send';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/math.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

/**
* @file calculations specific to the Vault Factory contract
* See also ../interest-math.js
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/params.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import './types.js';

import {
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/storeUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

/**
* Module to improvise composite keys for orderedVaultStore until Collections
* API supports them.
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/type-imports.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// @jessie-check

import '@agoric/zoe/exported.js';
import './types.js';
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

/**
* @typedef {import('./vault').VaultNotification} VaultNotification
* @typedef {import('./vault').Vault} Vault
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/vaultFactory.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '@agoric/governance/exported.js';
import '@agoric/zoe/exported.js';
import '@agoric/zoe/src/contracts/exported.js';
Expand Down
2 changes: 2 additions & 0 deletions packages/inter-protocol/src/vaultFactory/vaultKit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @jessie-check

import '@agoric/zoe/exported.js';

import { makeTracer } from '@agoric/internal';
Expand Down

0 comments on commit e2f640f

Please sign in to comment.