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 13, 2024
1 parent 07b1830 commit cfc2b77
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';
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js';
*/

/**
* 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 cfc2b77

Please sign in to comment.