Skip to content

Commit

Permalink
fix(lint): offer-up.proposal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mujahidkay committed Sep 12, 2024
1 parent 05efa12 commit c4430ad
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions contract/src/offer-up-proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const marshalData = makeMarshal(_val => Fail`data only`);
const IST_UNIT = 1_000_000n;
const CENT = IST_UNIT / 100n;

/**
* @import {ERef} from '@endo/far';

Check warning on line 19 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (18)

Invalid JSDoc tag name "import"

Check warning on line 19 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (20)

Invalid JSDoc tag name "import"
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';

Check warning on line 20 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (18)

Invalid JSDoc tag name "import"

Check warning on line 20 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (20)

Invalid JSDoc tag name "import"
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js';

Check warning on line 21 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (18)

Invalid JSDoc tag name "import"

Check warning on line 21 in contract/src/offer-up-proposal.js

View workflow job for this annotation

GitHub Actions / unit (20)

Invalid JSDoc tag name "import"
*/

/**
* Make a storage node for auxilliary data for a value on the board.
*
Expand All @@ -36,7 +42,11 @@ const publishBrandInfo = async (chainStorage, board, brand) => {
await E(node).setValue(JSON.stringify(aux));
};

// TODO get these from agoric-sdk
/** @typedef {Record<string, any>} BootstrapPowers */

/**
*
* Core eval script to start contract
*
* @param {BootstrapPowers} permittedPowers
Expand All @@ -47,19 +57,16 @@ export const startOfferUpContract = async permittedPowers => {
consume: { board, chainStorage, startUpgradable, zoe },
brand: {
consume: { IST: istBrandP },
// @ts-expect-error dynamic extension to promise space
produce: { Item: produceItemBrand },
},
issuer: {
consume: { IST: istIssuerP },
// @ts-expect-error dynamic extension to promise space
produce: { Item: produceItemIssuer },
},
installation: {
consume: { offerUp: offerUpInstallationP },
},
instance: {
// @ts-expect-error dynamic extension to promise space
produce: { offerUp: produceInstance },
},
} = permittedPowers;
Expand Down Expand Up @@ -98,7 +105,7 @@ export const startOfferUpContract = async permittedPowers => {
console.log('offerUp (re)started');
};

/** @type { import("@agoric/vats/src/core/lib-boot").BootstrapManifest } */
/** @type {BootstrapManifest} */
const offerUpManifest = {
[startOfferUpContract.name]: {
consume: {
Expand Down

0 comments on commit c4430ad

Please sign in to comment.