Skip to content

Commit

Permalink
lint: lint-fix exports of .contract.js
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 18, 2024
1 parent 3200239 commit d8312d5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,6 @@ const contract = async (
};

export const start = withOrchestration(contract);
harden(start);

/** @typedef {typeof start} AutoStakeItSF */
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ const contract = async (zcf, _privateArgs, zone, { orchestrate, vowTools }) => {
};

export const start = withOrchestration(contract);
harden(start);

/** @typedef {typeof start} BasicFlowsSF */
2 changes: 2 additions & 0 deletions packages/orchestration/src/examples/sendAnywhere.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const SingleAmountRecord = M.and(
}),
M.not(harden({})),
);
harden(SingleAmountRecord);

/**
* Orchestration contract to be wrapped by withOrchestration for Zoe
Expand Down Expand Up @@ -104,3 +105,4 @@ const contract = async (
};

export const start = withOrchestration(contract);
harden(start);
1 change: 1 addition & 0 deletions packages/orchestration/src/examples/stakeBld.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ export const start = async (zcf, privateArgs, baggage) => {

return { publicFacet };
};
harden(start);
3 changes: 3 additions & 0 deletions packages/orchestration/src/examples/stakeIca.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const meta = harden({
timer: TimerServiceShape,
},
});
harden(meta);
export const privateArgsShape = meta.privateArgsShape;
harden(privateArgsShape);

/**
* @typedef {{
Expand Down Expand Up @@ -144,5 +146,6 @@ export const start = async (zcf, privateArgs, baggage) => {

return { publicFacet };
};
harden(start);

/** @typedef {typeof start} StakeIcaSF */
2 changes: 2 additions & 0 deletions packages/orchestration/src/examples/swapExample.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ harden(meta);
*/
export const makeNatAmountShape = (brand, min) =>
harden({ brand, value: min ? M.gte(min) : M.nat() });
harden(makeNatAmountShape);

/**
* Orchestration contract to be wrapped by withOrchestration for Zoe
Expand Down Expand Up @@ -127,3 +128,4 @@ const contract = async (zcf, privateArgs, zone, { orchestrate, zoeTools }) => {
};

export const start = withOrchestration(contract);
harden(start);
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ const contract = async (zcf, privateArgs, zone, { orchestrate }) => {
};

export const start = withOrchestration(contract);
harden(start);

0 comments on commit d8312d5

Please sign in to comment.