From 6570bb3a1b77bfa843ae11fabe286c88b8befc0e Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Mon, 29 Jul 2024 14:19:23 -0400 Subject: [PATCH] lint: lint-fix exports of .contract.js --- packages/orchestration/src/examples/auto-stake-it.contract.js | 1 + packages/orchestration/src/examples/basic-flows.contract.js | 1 + packages/orchestration/src/examples/sendAnywhere.contract.js | 2 ++ packages/orchestration/src/examples/stakeBld.contract.js | 1 + packages/orchestration/src/examples/stakeIca.contract.js | 3 +++ packages/orchestration/src/examples/swapExample.contract.js | 2 ++ packages/orchestration/src/examples/unbondExample.contract.js | 1 + 7 files changed, 11 insertions(+) diff --git a/packages/orchestration/src/examples/auto-stake-it.contract.js b/packages/orchestration/src/examples/auto-stake-it.contract.js index 3cf05d4485c..78e7b53db4b 100644 --- a/packages/orchestration/src/examples/auto-stake-it.contract.js +++ b/packages/orchestration/src/examples/auto-stake-it.contract.js @@ -86,5 +86,6 @@ const contract = async ( }; export const start = withOrchestration(contract); +harden(start); /** @typedef {typeof start} AutoStakeItSF */ diff --git a/packages/orchestration/src/examples/basic-flows.contract.js b/packages/orchestration/src/examples/basic-flows.contract.js index a430dc240c7..b1ff6b8613b 100644 --- a/packages/orchestration/src/examples/basic-flows.contract.js +++ b/packages/orchestration/src/examples/basic-flows.contract.js @@ -61,5 +61,6 @@ const contract = async ( }; export const start = withOrchestration(contract); +harden(start); /** @typedef {typeof start} BasicFlowsSF */ diff --git a/packages/orchestration/src/examples/sendAnywhere.contract.js b/packages/orchestration/src/examples/sendAnywhere.contract.js index 53e420d176b..f7dc456b135 100644 --- a/packages/orchestration/src/examples/sendAnywhere.contract.js +++ b/packages/orchestration/src/examples/sendAnywhere.contract.js @@ -33,6 +33,7 @@ export const SingleAmountRecord = M.and( }), M.not(harden({})), ); +harden(SingleAmountRecord); /** * Orchestration contract to be wrapped by withOrchestration for Zoe @@ -86,3 +87,4 @@ const contract = async ( }; export const start = withOrchestration(contract); +harden(start); diff --git a/packages/orchestration/src/examples/stakeBld.contract.js b/packages/orchestration/src/examples/stakeBld.contract.js index 935c72b9226..fa2473c2795 100644 --- a/packages/orchestration/src/examples/stakeBld.contract.js +++ b/packages/orchestration/src/examples/stakeBld.contract.js @@ -123,3 +123,4 @@ export const start = async (zcf, privateArgs, baggage) => { return { publicFacet }; }; +harden(start); diff --git a/packages/orchestration/src/examples/stakeIca.contract.js b/packages/orchestration/src/examples/stakeIca.contract.js index 0f168f052b8..1905ad7f1e0 100644 --- a/packages/orchestration/src/examples/stakeIca.contract.js +++ b/packages/orchestration/src/examples/stakeIca.contract.js @@ -37,7 +37,9 @@ export const meta = harden({ timer: TimerServiceShape, }, }); +harden(meta); export const privateArgsShape = meta.privateArgsShape; +harden(privateArgsShape); /** * @typedef {{ @@ -150,5 +152,6 @@ export const start = async (zcf, privateArgs, baggage) => { return { publicFacet }; }; +harden(start); /** @typedef {typeof start} StakeIcaSF */ diff --git a/packages/orchestration/src/examples/swapExample.contract.js b/packages/orchestration/src/examples/swapExample.contract.js index 8d75dd41087..32f5de5c042 100644 --- a/packages/orchestration/src/examples/swapExample.contract.js +++ b/packages/orchestration/src/examples/swapExample.contract.js @@ -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 @@ -127,3 +128,4 @@ const contract = async (zcf, privateArgs, zone, { orchestrate, zoeTools }) => { }; export const start = withOrchestration(contract); +harden(start); diff --git a/packages/orchestration/src/examples/unbondExample.contract.js b/packages/orchestration/src/examples/unbondExample.contract.js index 8752dc1ff4e..e2d09a1117f 100644 --- a/packages/orchestration/src/examples/unbondExample.contract.js +++ b/packages/orchestration/src/examples/unbondExample.contract.js @@ -85,3 +85,4 @@ const contract = async (zcf, privateArgs, zone, { orchestrate }) => { }; export const start = withOrchestration(contract); +harden(start);