You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zoe and the smart contracts running on Zoe should use Units and UnitsOps rather than Extents and ExtentOps. Units are a labeled extent, so Units is safer to use and eliminates confusion.
The only reason we were using Extents and ExtentOps was at the time, Extents were the only easy way to allow contracts to perform calculations and record-keeping without asynchronous calls to a remote assay. This replaced the peg architecture from Scooter.
Now that smart contracts can import modules, I believe each smart contract can import the unitOps.js module and a local copy of the ExtentOps library and create their own local version of unitOps. They would create their own local version by calling makeUnitOps(label, extentOpsName, extentOpsArgs = []) with a label, extentOpsName, and extentOpsArgs provided by Zoe.
The text was updated successfully, but these errors were encountered:
This reverts commit 02e6df8.
The Node 12 ordering differences were only tickled by a bug in
@agoric/eventual-send v0.2.x. The new version installed in the
SwingSet dependencies does not have this problem.
fixesAgoric#99
Zoe and the smart contracts running on Zoe should use Units and UnitsOps rather than Extents and ExtentOps. Units are a labeled extent, so Units is safer to use and eliminates confusion.
The only reason we were using Extents and ExtentOps was at the time, Extents were the only easy way to allow contracts to perform calculations and record-keeping without asynchronous calls to a remote assay. This replaced the peg architecture from Scooter.
Now that smart contracts can import modules, I believe each smart contract can import the
unitOps.js
module and a local copy of the ExtentOps library and create their own local version of unitOps. They would create their own local version by callingmakeUnitOps(label, extentOpsName, extentOpsArgs = [])
with alabel
,extentOpsName
, andextentOpsArgs
provided by Zoe.The text was updated successfully, but these errors were encountered: