@agoric/zoe 0.26.3-other-dev-d15096d.0.d15096d → 0.26.3-other-dev-ecf44df.0.ecf44df
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contractFacet.js +0 -2
- package/package.json +35 -47
- package/source-spec-registry.js +23 -0
- package/src/cleanProposal.d.ts +5 -1
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +5 -5
- package/src/contractFacet/allocationMath.d.ts +4 -0
- package/src/contractFacet/allocationMath.d.ts.map +1 -1
- package/src/contractFacet/allocationMath.js +7 -1
- package/src/contractFacet/buildRootObject.d.ts +14 -0
- package/src/contractFacet/buildRootObject.d.ts.map +1 -0
- package/src/contractFacet/buildRootObject.js +89 -0
- package/src/contractFacet/evalContractCode.d.ts +1 -1
- package/src/contractFacet/evalContractCode.d.ts.map +1 -1
- package/src/contractFacet/evalContractCode.js +0 -2
- package/src/contractFacet/exit.d.ts +1 -1
- package/src/contractFacet/exit.d.ts.map +1 -1
- package/src/contractFacet/exit.js +8 -4
- package/src/contractFacet/offerHandlerStorage.d.ts +3 -1
- package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
- package/src/contractFacet/offerHandlerStorage.js +3 -3
- package/src/contractFacet/offerSafety.d.ts +2 -0
- package/src/contractFacet/offerSafety.d.ts.map +1 -1
- package/src/contractFacet/offerSafety.js +4 -0
- package/src/contractFacet/reallocate.d.ts +3 -0
- package/src/contractFacet/reallocate.d.ts.map +1 -1
- package/src/contractFacet/reallocate.js +3 -2
- package/src/contractFacet/rightsConservation.d.ts +1 -0
- package/src/contractFacet/rightsConservation.d.ts.map +1 -1
- package/src/contractFacet/rightsConservation.js +4 -2
- package/src/contractFacet/typeGuards.d.ts +44 -4
- package/src/contractFacet/typeGuards.d.ts.map +1 -1
- package/src/contractFacet/types.d.ts +16 -8
- package/src/contractFacet/types.d.ts.map +1 -1
- package/src/contractFacet/types.js +256 -0
- package/src/contractFacet/vatRoot.d.ts +5 -20
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/vatRoot.js +2 -77
- package/src/contractFacet/zcfMint.d.ts +8 -0
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +9 -3
- package/src/contractFacet/zcfSeat.d.ts +5 -0
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +14 -8
- package/src/contractFacet/zcfZygote.d.ts +10 -0
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +15 -6
- package/src/contractSupport/atomicTransfer.d.ts +17 -2
- package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
- package/src/contractSupport/atomicTransfer.js +11 -3
- package/src/contractSupport/bondingCurves.d.ts +1 -0
- package/src/contractSupport/bondingCurves.d.ts.map +1 -1
- package/src/contractSupport/bondingCurves.js +6 -4
- package/src/contractSupport/durability.d.ts +3 -0
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/durability.js +3 -2
- package/src/contractSupport/index.d.ts +3 -3
- package/src/contractSupport/index.js +11 -13
- package/src/contractSupport/prepare-ownable.d.ts +2 -0
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.js +4 -1
- package/src/contractSupport/priceAuthority.d.ts +159 -14
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +9 -3
- package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +3 -2
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +2 -0
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.js +12 -9
- package/src/contractSupport/priceAuthorityTransform.d.ts +6 -2
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityTransform.js +7 -2
- package/src/contractSupport/priceQuote.d.ts +2 -0
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/priceQuote.js +4 -4
- package/src/contractSupport/recorder.d.ts +9 -39
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +5 -18
- package/src/contractSupport/testJigHelpers.d.ts +7 -0
- package/src/contractSupport/testJigHelpers.d.ts.map +1 -0
- package/src/contractSupport/testJigHelpers.js +26 -0
- package/src/contractSupport/topics.d.ts +17 -5
- package/src/contractSupport/topics.d.ts.map +1 -1
- package/src/contractSupport/topics.js +5 -3
- package/src/contractSupport/{types-ambient.d.ts → types.d.ts} +16 -9
- package/src/contractSupport/types.d.ts.map +1 -0
- package/src/contractSupport/{types-ambient.js → types.js} +8 -3
- package/src/contractSupport/zoeHelpers.d.ts +16 -2
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +7 -4
- package/src/contracts/atomicSwap.d.ts +5 -1
- package/src/contracts/atomicSwap.d.ts.map +1 -1
- package/src/contracts/atomicSwap.js +5 -1
- package/src/contracts/auction/assertBidSeat.d.ts +1 -1
- package/src/contracts/auction/assertBidSeat.d.ts.map +1 -1
- package/src/contracts/auction/assertBidSeat.js +2 -2
- package/src/contracts/auction/firstPriceLogic.d.ts +2 -0
- package/src/contracts/auction/firstPriceLogic.d.ts.map +1 -1
- package/src/contracts/auction/firstPriceLogic.js +5 -0
- package/src/contracts/auction/index.d.ts +22 -20
- package/src/contracts/auction/index.d.ts.map +1 -1
- package/src/contracts/auction/index.js +9 -7
- package/src/contracts/auction/secondPriceLogic.d.ts +2 -0
- package/src/contracts/auction/secondPriceLogic.d.ts.map +1 -1
- package/src/contracts/auction/secondPriceLogic.js +5 -0
- package/src/contracts/automaticRefund.d.ts +8 -4
- package/src/contracts/automaticRefund.d.ts.map +1 -1
- package/src/contracts/automaticRefund.js +4 -0
- package/src/contracts/autoswap.d.ts +5 -1
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +10 -7
- package/src/contracts/barterExchange.d.ts +7 -3
- package/src/contracts/barterExchange.d.ts.map +1 -1
- package/src/contracts/barterExchange.js +5 -1
- package/src/contracts/callSpread/calculateShares.d.ts +1 -1
- package/src/contracts/callSpread/calculateShares.js +7 -3
- package/src/contracts/callSpread/fundedCallSpread.d.ts +8 -1
- package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/fundedCallSpread.js +9 -4
- package/src/contracts/callSpread/payoffHandler.d.ts +12 -0
- package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -1
- package/src/contracts/callSpread/payoffHandler.js +13 -5
- package/src/contracts/callSpread/percent.d.ts +2 -2
- package/src/contracts/callSpread/percent.js +5 -0
- package/src/contracts/callSpread/pricedCallSpread.d.ts +7 -5
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +10 -5
- package/src/contracts/callSpread/{types-ambient.d.ts → types.d.ts} +12 -8
- package/src/contracts/callSpread/types.d.ts.map +1 -0
- package/src/contracts/callSpread/{types-ambient.js → types.js} +6 -0
- package/src/contracts/coveredCall-durable.d.ts +2 -1
- package/src/contracts/coveredCall-durable.d.ts.map +1 -1
- package/src/contracts/coveredCall-durable.js +3 -2
- package/src/contracts/coveredCall.d.ts +5 -1
- package/src/contracts/coveredCall.d.ts.map +1 -1
- package/src/contracts/coveredCall.js +4 -0
- package/src/contracts/loan/addCollateral.d.ts +5 -0
- package/src/contracts/loan/addCollateral.d.ts.map +1 -1
- package/src/contracts/loan/addCollateral.js +5 -0
- package/src/contracts/loan/borrow.d.ts +9 -0
- package/src/contracts/loan/borrow.d.ts.map +1 -1
- package/src/contracts/loan/borrow.js +13 -4
- package/src/contracts/loan/close.d.ts +5 -0
- package/src/contracts/loan/close.d.ts.map +1 -1
- package/src/contracts/loan/close.js +7 -2
- package/src/contracts/loan/index.d.ts +8 -1
- package/src/contracts/loan/index.d.ts.map +1 -1
- package/src/contracts/loan/index.js +3 -0
- package/src/contracts/loan/lend.d.ts +5 -0
- package/src/contracts/loan/lend.d.ts.map +1 -1
- package/src/contracts/loan/lend.js +5 -0
- package/src/contracts/loan/liquidate.d.ts +2 -0
- package/src/contracts/loan/liquidate.d.ts.map +1 -1
- package/src/contracts/loan/liquidate.js +3 -1
- package/src/contracts/loan/scheduleLiquidation.d.ts +4 -0
- package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -1
- package/src/contracts/loan/scheduleLiquidation.js +8 -4
- package/src/contracts/loan/{types-ambient.d.ts → types.d.ts} +53 -38
- package/src/contracts/loan/types.d.ts.map +1 -0
- package/src/contracts/loan/{types-ambient.js → types.js} +42 -29
- package/src/contracts/loan/updateDebt.d.ts +3 -0
- package/src/contracts/loan/updateDebt.d.ts.map +1 -1
- package/src/contracts/loan/updateDebt.js +5 -4
- package/src/contracts/mintAndSellNFT.d.ts +4 -0
- package/src/contracts/mintAndSellNFT.d.ts.map +1 -1
- package/src/contracts/mintAndSellNFT.js +3 -1
- package/src/contracts/mintPayments.d.ts +12 -8
- package/src/contracts/mintPayments.d.ts.map +1 -1
- package/src/contracts/mintPayments.js +5 -1
- package/src/contracts/oracle.d.ts +7 -2
- package/src/contracts/oracle.d.ts.map +1 -1
- package/src/contracts/oracle.js +4 -1
- package/src/contracts/otcDesk.d.ts +8 -1
- package/src/contracts/otcDesk.d.ts.map +1 -1
- package/src/contracts/otcDesk.js +5 -2
- package/src/contracts/priceAggregator.d.ts +20 -8
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +11 -2
- package/src/contracts/priceAggregatorTypes.d.ts +18 -13
- package/src/contracts/priceAggregatorTypes.d.ts.map +1 -1
- package/src/contracts/priceAggregatorTypes.js +5 -1
- package/src/contracts/scaledPriceAuthority.d.ts +2 -0
- package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
- package/src/contracts/scaledPriceAuthority.js +5 -2
- package/src/contracts/sellItems.d.ts +11 -1
- package/src/contracts/sellItems.d.ts.map +1 -1
- package/src/contracts/sellItems.js +12 -5
- package/src/contracts/simpleExchange.d.ts +3 -3
- package/src/contracts/simpleExchange.js +3 -3
- package/src/contracts/{types-ambient.d.ts → types.d.ts} +23 -16
- package/src/contracts/types.d.ts.map +1 -0
- package/src/contracts/{types-ambient.js → types.js} +15 -8
- package/src/contracts/valueVow.contract.d.ts +2 -4
- package/src/contracts/valueVow.contract.d.ts.map +1 -1
- package/src/contracts/valueVow.contract.js +6 -5
- package/src/handleWarning.d.ts +1 -0
- package/src/handleWarning.d.ts.map +1 -1
- package/src/handleWarning.js +3 -1
- package/src/instanceRecordStorage.d.ts +1 -0
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +5 -2
- package/src/internal-types.d.ts +63 -46
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +11 -13
- package/src/issuerRecord.d.ts +10 -1
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerRecord.js +5 -5
- package/src/issuerStorage.d.ts +8 -0
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +12 -7
- package/src/makeHandle.d.ts +2 -0
- package/src/makeHandle.d.ts.map +1 -1
- package/src/makeHandle.js +5 -4
- package/src/typeGuards.d.ts +1045 -120
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +12 -10
- package/src/types.js +37 -0
- package/src/zoeService/createZCFVat.d.ts.map +1 -1
- package/src/zoeService/createZCFVat.js +0 -2
- package/src/zoeService/escrowStorage.d.ts +4 -0
- package/src/zoeService/escrowStorage.d.ts.map +1 -1
- package/src/zoeService/escrowStorage.js +9 -2
- package/src/zoeService/feeMint.d.ts +11 -3
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +5 -4
- package/src/zoeService/installationStorage.d.ts +4 -2
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +3 -2
- package/src/zoeService/instanceAdminStorage.d.ts +38 -2
- package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
- package/src/zoeService/instanceAdminStorage.js +7 -4
- package/src/zoeService/internal-types.d.ts +44 -20
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +15 -4
- package/src/zoeService/invitationQueries.d.ts +3 -3
- package/src/zoeService/invitationQueries.d.ts.map +1 -1
- package/src/zoeService/invitationQueries.js +4 -6
- package/src/zoeService/makeInvitation.d.ts +3 -2
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +3 -4
- package/src/zoeService/offer/burnInvitation.d.ts +6 -0
- package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
- package/src/zoeService/offer/burnInvitation.js +10 -3
- package/src/zoeService/offer/offer.d.ts.map +1 -1
- package/src/zoeService/offer/offer.js +3 -5
- package/src/zoeService/originalZoeSeat.d.ts +34 -23
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +12 -6
- package/src/zoeService/startInstance.d.ts +2 -0
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +127 -116
- package/src/zoeService/types.js +307 -0
- package/src/zoeService/utils.d.ts +2 -2
- package/src/zoeService/zoe.d.ts +4 -5
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +9 -14
- package/src/zoeService/zoeSeat.d.ts +27 -3
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +12 -7
- package/src/zoeService/zoeStorageManager.d.ts +47 -12
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +68 -56
- package/tools/fakePriceAuthority.d.ts +4 -1
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +5 -0
- package/tools/fakeVatAdmin.d.ts +20 -58
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +96 -53
- package/tools/manualPriceAuthority.d.ts +2 -0
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +1 -2
- package/tools/prepare-test-env-ava.d.ts +1 -1
- package/tools/prepare-test-env-ava.js +1 -6
- package/tools/prepare-test-env.js +0 -2
- package/tools/scriptedOracle.d.ts +12 -8
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/scriptedOracle.js +3 -1
- package/tools/scriptedPriceAuthority.d.ts +6 -1
- package/tools/scriptedPriceAuthority.d.ts.map +1 -1
- package/tools/scriptedPriceAuthority.js +4 -0
- package/tools/setup-zoe.d.ts +11 -7
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +22 -8
- package/tools/test-utils.d.ts +1 -1
- package/tools/testVatRoot.d.ts +7 -0
- package/tools/testVatRoot.d.ts.map +1 -0
- package/tools/testVatRoot.js +7 -0
- package/tools/types.d.ts +1 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +1 -0
- package/bundles/bundle-contractFacet-js-meta.json +0 -1070
- package/bundles/bundle-contractFacet.d.ts +0 -7
- package/bundles/bundle-contractFacet.d.ts.map +0 -1
- package/bundles/bundle-contractFacet.js +0 -1
- package/exported.js +0 -1
- package/src/contractFacet/types.ts +0 -249
- package/src/contractSupport/types-ambient.d.ts.map +0 -1
- package/src/contracts/callSpread/types-ambient.d.ts.map +0 -1
- package/src/contracts/exported.d.ts +0 -2
- package/src/contracts/exported.d.ts.map +0 -1
- package/src/contracts/exported.js +0 -4
- package/src/contracts/loan/types-ambient.d.ts.map +0 -1
- package/src/contracts/types-ambient.d.ts.map +0 -1
- package/src/types-ambient.d.ts +0 -1
- package/src/types-ambient.d.ts.map +0 -1
- package/src/types-ambient.js +0 -5
- package/src/types.ts +0 -37
- package/src/zoeService/types-ambient.d.ts +0 -1
- package/src/zoeService/types-ambient.d.ts.map +0 -1
- package/src/zoeService/types-ambient.js +0 -5
- package/src/zoeService/types.ts +0 -307
- package/src/zoeService/utils.test-d.d.ts +0 -2
- package/src/zoeService/utils.test-d.d.ts.map +0 -1
- package/src/zoeService/utils.test-d.ts +0 -35
package/contractFacet.js
CHANGED
package/package.json
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-other-dev-
|
|
3
|
+
"version": "0.26.3-other-dev-ecf44df.0.ecf44df",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^22.11 || ^24.14"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
14
|
-
"postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
|
|
11
|
+
"prepack": "yarn run -T prepack-package",
|
|
12
|
+
"postpack": "yarn run -T postpack-package",
|
|
15
13
|
"test": "ava --verbose",
|
|
16
14
|
"test:c8": "c8 --all ${C8_OPTIONS:-} ava",
|
|
17
|
-
"test:unit": "ava 'test/unitTests' -T
|
|
15
|
+
"test:unit": "ava 'test/unitTests' -T 2m --verbose",
|
|
18
16
|
"test:swingset": "ava 'test/swingsetTests' -T 10m --verbose",
|
|
19
17
|
"test:xs": "yarn test:xs-worker",
|
|
20
18
|
"test:xs-unit": "exit 0",
|
|
21
19
|
"test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests'",
|
|
22
|
-
"build-zcfBundle": "yarn build:bundles",
|
|
23
20
|
"lint-fix": "yarn lint:eslint --fix",
|
|
24
21
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
25
|
-
"lint:eslint": "
|
|
26
|
-
"lint:types": "yarn run -T
|
|
22
|
+
"lint:eslint": "node ../../scripts/eslint-repo.mjs .",
|
|
23
|
+
"lint:types": "yarn run -T tsgo --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo"
|
|
27
24
|
},
|
|
28
25
|
"repository": {
|
|
29
26
|
"type": "git",
|
|
@@ -43,36 +40,36 @@
|
|
|
43
40
|
},
|
|
44
41
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
42
|
"dependencies": {
|
|
46
|
-
"@agoric/base-zone": "0.1.1-other-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-other-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-other-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-other-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-other-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-other-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-other-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-other-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-other-dev-
|
|
55
|
-
"@agoric/vow": "0.1.1-other-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-other-dev-
|
|
57
|
-
"@endo/bundle-source": "^4.
|
|
58
|
-
"@endo/captp": "^4.
|
|
59
|
-
"@endo/common": "^1.
|
|
60
|
-
"@endo/errors": "^1.
|
|
61
|
-
"@endo/eventual-send": "^1.
|
|
62
|
-
"@endo/exo": "^1.
|
|
43
|
+
"@agoric/base-zone": "0.1.1-other-dev-ecf44df.0.ecf44df",
|
|
44
|
+
"@agoric/ertp": "0.16.3-other-dev-ecf44df.0.ecf44df",
|
|
45
|
+
"@agoric/internal": "0.3.3-other-dev-ecf44df.0.ecf44df",
|
|
46
|
+
"@agoric/notifier": "0.6.3-other-dev-ecf44df.0.ecf44df",
|
|
47
|
+
"@agoric/store": "0.9.3-other-dev-ecf44df.0.ecf44df",
|
|
48
|
+
"@agoric/swingset-liveslots": "0.10.3-other-dev-ecf44df.0.ecf44df",
|
|
49
|
+
"@agoric/swingset-vat": "0.32.3-other-dev-ecf44df.0.ecf44df",
|
|
50
|
+
"@agoric/time": "0.3.3-other-dev-ecf44df.0.ecf44df",
|
|
51
|
+
"@agoric/vat-data": "0.5.3-other-dev-ecf44df.0.ecf44df",
|
|
52
|
+
"@agoric/vow": "0.1.1-other-dev-ecf44df.0.ecf44df",
|
|
53
|
+
"@agoric/zone": "0.2.3-other-dev-ecf44df.0.ecf44df",
|
|
54
|
+
"@endo/bundle-source": "^4.3.2",
|
|
55
|
+
"@endo/captp": "^4.5.1",
|
|
56
|
+
"@endo/common": "^1.4.0",
|
|
57
|
+
"@endo/errors": "^1.3.1",
|
|
58
|
+
"@endo/eventual-send": "^1.5.0",
|
|
59
|
+
"@endo/exo": "^1.7.0",
|
|
63
60
|
"@endo/far": "^1.1.14",
|
|
64
|
-
"@endo/import-bundle": "^1.
|
|
65
|
-
"@endo/marshal": "^1.
|
|
66
|
-
"@endo/nat": "^5.
|
|
67
|
-
"@endo/pass-style": "^1.
|
|
68
|
-
"@endo/patterns": "^1.
|
|
69
|
-
"@endo/promise-kit": "^1.1
|
|
61
|
+
"@endo/import-bundle": "^1.7.0",
|
|
62
|
+
"@endo/marshal": "^1.10.0",
|
|
63
|
+
"@endo/nat": "^5.2.0",
|
|
64
|
+
"@endo/pass-style": "^1.8.1",
|
|
65
|
+
"@endo/patterns": "^1.9.1",
|
|
66
|
+
"@endo/promise-kit": "^1.2.1",
|
|
70
67
|
"yargs-parser": "^21.1.1"
|
|
71
68
|
},
|
|
72
69
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-other-dev-
|
|
74
|
-
"@endo/init": "^1.1.
|
|
75
|
-
"ava": "^
|
|
70
|
+
"@agoric/kmarshal": "0.1.1-other-dev-ecf44df.0.ecf44df",
|
|
71
|
+
"@endo/init": "^1.1.13",
|
|
72
|
+
"ava": "^8.0.1",
|
|
76
73
|
"c8": "^10.1.3",
|
|
77
74
|
"import-meta-resolve": "^4.1.0",
|
|
78
75
|
"tsd": "^0.33.0"
|
|
@@ -80,25 +77,16 @@
|
|
|
80
77
|
"files": [
|
|
81
78
|
"bundles/",
|
|
82
79
|
"src/",
|
|
80
|
+
"source-spec-registry.*",
|
|
83
81
|
"tools/",
|
|
84
82
|
"contractFacet.js",
|
|
85
|
-
"exported.js",
|
|
86
83
|
"NEWS.md"
|
|
87
84
|
],
|
|
88
|
-
"ava": {
|
|
89
|
-
"files": [
|
|
90
|
-
"test/**/*.test.*"
|
|
91
|
-
],
|
|
92
|
-
"require": [
|
|
93
|
-
"@endo/init/debug.js"
|
|
94
|
-
],
|
|
95
|
-
"timeout": "20m"
|
|
96
|
-
},
|
|
97
85
|
"publishConfig": {
|
|
98
86
|
"access": "public"
|
|
99
87
|
},
|
|
100
88
|
"typeCoverage": {
|
|
101
89
|
"atLeast": 84.74
|
|
102
90
|
},
|
|
103
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "ecf44df5eadcc7a1d68745f056fca19155fb5231"
|
|
104
92
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
|
|
3
|
+
/** @param {string} packagePath */
|
|
4
|
+
const resolveSourceSpec = packagePath =>
|
|
5
|
+
fileURLToPath(import.meta.resolve(packagePath));
|
|
6
|
+
|
|
7
|
+
export const zoeSourceSpecRegistry = {
|
|
8
|
+
zcf: {
|
|
9
|
+
bundleName: 'contractFacet',
|
|
10
|
+
packagePath: '@agoric/zoe/contractFacet.js',
|
|
11
|
+
sourceSpec: resolveSourceSpec('@agoric/zoe/contractFacet.js'),
|
|
12
|
+
},
|
|
13
|
+
automaticRefund: {
|
|
14
|
+
bundleName: 'automaticRefund',
|
|
15
|
+
packagePath: '@agoric/zoe/src/contracts/automaticRefund.js',
|
|
16
|
+
sourceSpec: resolveSourceSpec(
|
|
17
|
+
'@agoric/zoe/src/contracts/automaticRefund.js',
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @param {keyof typeof zoeSourceSpecRegistry} name */
|
|
23
|
+
export const getZoeSourceSpec = name => zoeSourceSpecRegistry[name];
|
package/src/cleanProposal.d.ts
CHANGED
|
@@ -3,9 +3,13 @@ export function assertKeywordName(keyword: any): void;
|
|
|
3
3
|
export function cleanKeywords(uncleanKeywordRecord: {
|
|
4
4
|
[name: string]: any;
|
|
5
5
|
}): string[];
|
|
6
|
-
export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any):
|
|
6
|
+
export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
};
|
|
7
9
|
export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: unknown, getAssetKindByBrand: any): AmountKeywordRecord;
|
|
8
10
|
export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
|
|
11
|
+
import type { AmountKeywordRecord } from '@agoric/zoe';
|
|
9
12
|
import type { Proposal } from '@agoric/zoe';
|
|
13
|
+
import type { GetAssetKindByBrand } from './internal-types.js';
|
|
10
14
|
import type { ProposalRecord } from '@agoric/zoe';
|
|
11
15
|
//# sourceMappingURL=cleanProposal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;AAkB/B,sDAYN;AAMM,oDAHI;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACnB,MAAM,EAAE,CAcpB;AAEM;;EAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAY/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B;yCA9JyE,aAAa;8BAAb,aAAa;yCACjD,qBAAqB;oCADe,aAAa"}
|
package/src/cleanProposal.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assert, q, Fail } from '@endo/errors';
|
|
2
1
|
import { AmountMath, getAssetKind } from '@agoric/ertp';
|
|
3
2
|
import { objectMap } from '@agoric/internal';
|
|
3
|
+
import { assertKey, assertPattern, isKey, mustMatch } from '@agoric/store';
|
|
4
|
+
import { assert, Fail, q } from '@endo/errors';
|
|
4
5
|
import { assertRecord } from '@endo/marshal';
|
|
5
|
-
import { assertKey, assertPattern, mustMatch, isKey } from '@agoric/store';
|
|
6
6
|
import { FullProposalShape } from './typeGuards.js';
|
|
7
7
|
|
|
8
8
|
const { ownKeys } = Reflect;
|
|
@@ -10,7 +10,8 @@ const { ownKeys } = Reflect;
|
|
|
10
10
|
export const MAX_KEYWORD_LENGTH = 100;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @import {ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
|
|
13
|
+
* @import {AmountKeywordRecord, ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
|
|
14
|
+
* @import {GetAssetKindByBrand} from './internal-types.js';
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const firstCapASCII = /^[A-Z][a-zA-Z0-9_$]*$/;
|
|
@@ -95,8 +96,7 @@ export const coerceAmountKeywordRecord = (
|
|
|
95
96
|
getAssetKindByBrand,
|
|
96
97
|
);
|
|
97
98
|
assertKey(result);
|
|
98
|
-
|
|
99
|
-
return result;
|
|
99
|
+
return /** @type {AmountKeywordRecord} */ (result);
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -4,4 +4,8 @@ export function subtractFromAllocation(allocation: Allocation, amountKeywordReco
|
|
|
4
4
|
* An operation such as add or subtract.
|
|
5
5
|
*/
|
|
6
6
|
export type Operation = (amount: Amount | undefined, diff: Amount | undefined, keyword: Keyword) => Amount;
|
|
7
|
+
import type { Allocation } from './types.js';
|
|
8
|
+
import type { AmountKeywordRecord } from '@agoric/zoe';
|
|
9
|
+
import type { Amount } from '@agoric/ertp';
|
|
10
|
+
import type { Keyword } from '@agoric/zoe';
|
|
7
11
|
//# sourceMappingURL=allocationMath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocationMath.d.ts","sourceRoot":"","sources":["allocationMath.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"allocationMath.d.ts","sourceRoot":"","sources":["allocationMath.js"],"names":[],"mappings":"AAuFO,4CAJI,UAAU,uBACV,mBAAmB,GACjB,mBAAmB,CAI/B;AAOM,mDAJI,UAAU,uBACV,mBAAmB,GACjB,mBAAmB,CAI/B;;;;iCApFU,MAAM,GAAG,SAAS,QAClB,MAAM,GAAG,SAAS,WAClB,OAAO,KACL,MAAM;gCAZU,YAAY;yCADM,aAAa;4BAEnC,cAAc;6BAFQ,aAAa"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { Fail, q } from '@endo/errors';
|
|
2
1
|
import { AmountMath } from '@agoric/ertp';
|
|
2
|
+
import { Fail, q } from '@endo/errors';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @import {AmountKeywordRecord, Keyword} from '@agoric/zoe';
|
|
6
|
+
* @import {Allocation} from './types.js';
|
|
7
|
+
* @import {Amount} from '@agoric/ertp';
|
|
8
|
+
*/
|
|
3
9
|
|
|
4
10
|
/**
|
|
5
11
|
* @callback Operation
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function makeBuildRootObject(makeZCFZygote: (powers: any, zoeService: ZoeService, invitationIssuer: Issuer<"set">, testJigSetter: ({ zcf }: {
|
|
2
|
+
zcf: ZCF;
|
|
3
|
+
}) => void, contractBundleCap: BundleCap, baggage: Baggage) => Promise<any>): (powers: any, vatParameters: {
|
|
4
|
+
contractBundleCap: BundleCap;
|
|
5
|
+
zoeService: ZoeService;
|
|
6
|
+
invitationIssuer: Issuer<"set">;
|
|
7
|
+
privateArgs?: any;
|
|
8
|
+
}, baggage: Baggage) => Promise<import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
|
|
9
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
10
|
+
import type { Issuer } from '@agoric/ertp';
|
|
11
|
+
import type { ZCF } from '@agoric/zoe';
|
|
12
|
+
import type { BundleCap } from '@agoric/swingset-vat';
|
|
13
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
14
|
+
//# sourceMappingURL=buildRootObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildRootObject.d.ts","sourceRoot":"","sources":["buildRootObject.js"],"names":[],"mappings":"AAqBO,mDAJI,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,OAAO,KAAK,CAAC,EAC3E,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,KAAK,IAAI,EAC9C,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,YAIvD,GAAG,iBACH;IACN,iBAAiB,EAAE,SAAS,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,OAAO,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,WACO,OAAO,mIAyDnB;gCAhFiC,aAAa;4BAGtB,cAAc;yBAHL,aAAa;+BAEnB,sBAAsB;6BADxB,kBAAkB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// @jessie-check
|
|
2
|
+
|
|
3
|
+
import { Fail } from '@endo/errors';
|
|
4
|
+
import { E } from '@endo/far';
|
|
5
|
+
import { Far } from '@endo/marshal';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @import {ZCF, ZoeService} from '@agoric/zoe';
|
|
9
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
10
|
+
* @import {BundleCap} from '@agoric/swingset-vat';
|
|
11
|
+
* @import {Issuer} from '@agoric/ertp';
|
|
12
|
+
* @import {StartZcf} from '../internal-types.js';
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Shared implementation for production and test contract-vat roots.
|
|
17
|
+
*
|
|
18
|
+
* @param {(powers: any, zoeService: ZoeService, invitationIssuer: Issuer<'set'>,
|
|
19
|
+
* testJigSetter: ({ zcf }: { zcf: ZCF }) => void,
|
|
20
|
+
* contractBundleCap: BundleCap, baggage: Baggage) => Promise<any>} makeZCFZygote
|
|
21
|
+
*/
|
|
22
|
+
export const makeBuildRootObject = makeZCFZygote => {
|
|
23
|
+
/**
|
|
24
|
+
* @param {any} powers
|
|
25
|
+
* @param {{
|
|
26
|
+
* contractBundleCap: BundleCap,
|
|
27
|
+
* zoeService: ZoeService,
|
|
28
|
+
* invitationIssuer: Issuer<'set'>,
|
|
29
|
+
* privateArgs?: any,
|
|
30
|
+
* }} vatParameters
|
|
31
|
+
* @param {Baggage} baggage
|
|
32
|
+
*/
|
|
33
|
+
const buildRootObject = async (powers, vatParameters, baggage) => {
|
|
34
|
+
const { testJigSetter } = powers;
|
|
35
|
+
const { contractBundleCap } = vatParameters;
|
|
36
|
+
contractBundleCap ||
|
|
37
|
+
Fail`expected vatParameters.contractBundleCap ${vatParameters}`;
|
|
38
|
+
let { zoeService, invitationIssuer } = vatParameters;
|
|
39
|
+
const firstTime = !baggage.has('DidStart');
|
|
40
|
+
if (firstTime) {
|
|
41
|
+
baggage.init('DidStart', 'DidStart');
|
|
42
|
+
baggage.init('zoeService', zoeService);
|
|
43
|
+
baggage.init('invitationIssuer', invitationIssuer);
|
|
44
|
+
} else {
|
|
45
|
+
!zoeService || Fail`On restart zoeService must not be in vatParameters`;
|
|
46
|
+
zoeService = baggage.get('zoeService');
|
|
47
|
+
|
|
48
|
+
!invitationIssuer ||
|
|
49
|
+
Fail`On restart invitationIssuer must not be in vatParameters`;
|
|
50
|
+
invitationIssuer = baggage.get('invitationIssuer');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const zcfZygote = await makeZCFZygote(
|
|
54
|
+
powers,
|
|
55
|
+
zoeService,
|
|
56
|
+
invitationIssuer,
|
|
57
|
+
testJigSetter,
|
|
58
|
+
contractBundleCap,
|
|
59
|
+
baggage,
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
if (!firstTime) {
|
|
63
|
+
return E.when(
|
|
64
|
+
E(zcfZygote).restartContract(vatParameters.privateArgs),
|
|
65
|
+
() => Far('upgraded contractRunner', {}),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return Far('contractRunner', {
|
|
70
|
+
/** @type {StartZcf} */
|
|
71
|
+
startZcf: (
|
|
72
|
+
zoeInstanceAdmin,
|
|
73
|
+
instanceRecordFromZoe,
|
|
74
|
+
issuerStorageFromZoe,
|
|
75
|
+
privateArgs = undefined,
|
|
76
|
+
) => {
|
|
77
|
+
return E(zcfZygote).startContract(
|
|
78
|
+
zoeInstanceAdmin,
|
|
79
|
+
instanceRecordFromZoe,
|
|
80
|
+
issuerStorageFromZoe,
|
|
81
|
+
privateArgs,
|
|
82
|
+
);
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return harden(buildRootObject);
|
|
88
|
+
};
|
|
89
|
+
harden(makeBuildRootObject);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function evalContractBundle(bundle: any, additionalEndowments?: {}):
|
|
1
|
+
export function evalContractBundle(bundle: any, additionalEndowments?: {}): any;
|
|
2
2
|
//# sourceMappingURL=evalContractCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"AAMA,gFA2BC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function makeMakeExiter(baggage: any): (proposal:
|
|
1
|
+
export function makeMakeExiter(baggage: any): (proposal: import("../types-index.js").ProposalRecord, zcfSeat: import("./types.js").ZCFSeat) => import("../internal-types.js").ExitObj;
|
|
2
2
|
//# sourceMappingURL=exit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AA4BO,sLAwGN"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { Fail, q } from '@endo/errors';
|
|
2
|
-
import { E } from '@endo/eventual-send';
|
|
3
|
-
import { prepareExoClass, provideDurableSetStore } from '@agoric/vat-data';
|
|
4
1
|
import { M, initEmpty } from '@agoric/store';
|
|
5
2
|
import { TimestampShape } from '@agoric/time';
|
|
3
|
+
import { prepareExoClass, provideDurableSetStore } from '@agoric/vat-data';
|
|
4
|
+
import { Fail, q } from '@endo/errors';
|
|
5
|
+
import { E } from '@endo/eventual-send';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
-
isOnDemandExitRule,
|
|
9
8
|
isAfterDeadlineExitRule,
|
|
9
|
+
isOnDemandExitRule,
|
|
10
10
|
isWaivedExitRule,
|
|
11
11
|
} from '../typeGuards.js';
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @import {MakeExitObj} from '../internal-types.js';
|
|
15
|
+
*/
|
|
16
|
+
|
|
13
17
|
const ExitObjectI = M.interface('ExitObject', { exit: M.call().returns() });
|
|
14
18
|
const WakerI = M.interface('Waker', {
|
|
15
19
|
wake: M.call(TimestampShape).returns(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function makeOfferHandlerStorage(zcfBaggage: any): {
|
|
2
|
-
storeOfferHandler: (offerHandler: any) =>
|
|
2
|
+
storeOfferHandler: (offerHandler: any) => import("@agoric/zoe").Handle<"Invitation">;
|
|
3
3
|
takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -7,6 +7,8 @@ export function makeOfferHandlerStorage(zcfBaggage: any): {
|
|
|
7
7
|
*/
|
|
8
8
|
export type Details = string | {};
|
|
9
9
|
export type PassableOfferHandler = RemotableBrand<any, any> & RemotableObject & OfferHandler;
|
|
10
|
+
import type { InvitationHandle } from '../types.js';
|
|
11
|
+
import type { OfferHandler } from '@agoric/zoe';
|
|
10
12
|
import type { RemotableBrand } from '@endo/eventual-send';
|
|
11
13
|
import type { RemotableObject } from '@endo/pass-style';
|
|
12
14
|
//# sourceMappingURL=offerHandlerStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerHandlerStorage.d.ts","sourceRoot":"","sources":["offerHandlerStorage.js"],"names":[],"mappings":"AAkCO;;yCAgCwB,gBAAgB,YAAY,OAAO,KAAK,YAAY;EAsBlF;;;;sBAlEY,MAAM,GAAG,EAAE;mCASX,2BAAiB,eAAe,GAAG,YAAY;
|
|
1
|
+
{"version":3,"file":"offerHandlerStorage.d.ts","sourceRoot":"","sources":["offerHandlerStorage.js"],"names":[],"mappings":"AAkCO;;yCAgCwB,gBAAgB,YAAY,OAAO,KAAK,YAAY;EAsBlF;;;;sBAlEY,MAAM,GAAG,EAAE;mCASX,2BAAiB,eAAe,GAAG,YAAY;sCArBzB,aAAa;kCADjB,aAAa;oCAiBX,qBAAqB;qCACpB,kBAAkB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// @jessie-check
|
|
2
|
-
|
|
3
1
|
import { makeScalarWeakMapStore } from '@agoric/store';
|
|
4
|
-
import { ToFarFunction } from '@endo/marshal';
|
|
5
2
|
import { canBeDurable, provideDurableWeakMapStore } from '@agoric/vat-data';
|
|
3
|
+
import { ToFarFunction } from '@endo/marshal';
|
|
6
4
|
|
|
7
5
|
import { defineDurableHandle } from '../makeHandle.js';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
|
|
11
9
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
10
|
+
* @import {OfferHandler} from '@agoric/zoe';
|
|
11
|
+
* @import {InvitationHandle} from '../types.js';
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -31,4 +31,6 @@ export function isOfferSafe(proposal: ProposalRecord, allocation: AmountKeywordR
|
|
|
31
31
|
* to be given to a user.
|
|
32
32
|
*/
|
|
33
33
|
export function satisfiesWant(proposal: ProposalRecord, allocation: AmountKeywordRecord): 0 | 1;
|
|
34
|
+
import type { ProposalRecord } from '@agoric/zoe';
|
|
35
|
+
import type { AmountKeywordRecord } from '@agoric/zoe';
|
|
34
36
|
//# sourceMappingURL=offerSafety.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerSafety.d.ts","sourceRoot":"","sources":["offerSafety.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offerSafety.d.ts","sourceRoot":"","sources":["offerSafety.js"],"names":[],"mappings":"AAmEA;;;;;;;;;;;;;;;;GAgBG;AACH,sCAVY,cAAc,cAMd,mBAAmB,WAS9B;AAzDD;;;;;;;;;;;;;GAaG;AACH,wCAVW,cAAc,cAMd,mBAAmB,SAKgB;oCA5CQ,aAAa;yCAAb,aAAa"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export function makeAllocationMap(transfers: Array<TransferPart>): [ZCFSeat, AmountKeywordRecord][];
|
|
2
2
|
export type TransactionList = Array<AmountKeywordRecord>;
|
|
3
|
+
import type { TransferPart } from '@agoric/zoe';
|
|
4
|
+
import type { ZCFSeat } from '@agoric/zoe';
|
|
5
|
+
import type { AmountKeywordRecord } from '@agoric/zoe';
|
|
3
6
|
//# sourceMappingURL=reallocate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reallocate.d.ts","sourceRoot":"","sources":["reallocate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reallocate.d.ts","sourceRoot":"","sources":["reallocate.js"],"names":[],"mappings":"AAqBO,6CAHI,KAAK,CAAC,YAAY,CAAC,GACjB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CA8E5C;8BAtFa,KAAK,CAAC,mBAAmB,CAAC;kCAHqB,aAAa;6BAAb,aAAa;yCAAb,aAAa"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Fail } from '@endo/errors';
|
|
2
1
|
import { makeScalarMapStore } from '@agoric/vat-data';
|
|
2
|
+
import { Fail } from '@endo/errors';
|
|
3
3
|
|
|
4
|
-
import { assertRightsConserved } from './rightsConservation.js';
|
|
5
4
|
import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
|
|
5
|
+
import { assertRightsConserved } from './rightsConservation.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
9
|
+
* @import {AmountKeywordRecord, TransferPart, ZCFSeat} from '@agoric/zoe';
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/** @typedef {Array<AmountKeywordRecord>} TransactionList */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAsFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB;4BA9FwB,cAAc"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { assert, Fail } from '@endo/errors';
|
|
2
|
-
import { makeScalarMapStore } from '@agoric/store';
|
|
3
1
|
import { AmountMath } from '@agoric/ertp';
|
|
2
|
+
import { makeScalarMapStore } from '@agoric/store';
|
|
3
|
+
import { assert, Fail } from '@endo/errors';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @import {MapStore} from '@agoric/store';
|
|
7
|
+
* @import {Amount} from '@agoric/ertp';
|
|
8
|
+
* @import {Brand} from '@agoric/ertp';
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -1,8 +1,48 @@
|
|
|
1
|
-
export const ZcfSeatShape: import("@endo/patterns").
|
|
1
|
+
export const ZcfSeatShape: import("@endo/patterns").MatcherOf<"remotable", any>;
|
|
2
2
|
export const ZcfMintI: import("@endo/patterns").InterfaceGuard<{
|
|
3
|
-
getIssuerRecord: import("@endo/patterns").MethodGuard
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
getIssuerRecord: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], (string & {
|
|
4
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
5
|
+
}) | (number & {
|
|
6
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
7
|
+
}) | (bigint & {
|
|
8
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
9
|
+
}) | (false & {
|
|
10
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
11
|
+
}) | (true & {
|
|
12
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
13
|
+
}) | (symbol & {
|
|
14
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
15
|
+
}) | (void & {
|
|
16
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
17
|
+
}) | (ArrayBuffer & {
|
|
18
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
19
|
+
}) | (import("@endo/eventual-send").RemotableBrand<any, any> & {
|
|
20
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
21
|
+
}) | (import("@endo/pass-style").RemotableObject<string> & {
|
|
22
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
23
|
+
}) | (import("@endo/pass-style").CopyArrayInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
24
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
25
|
+
}) | (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
26
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
27
|
+
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
28
|
+
"Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
|
|
29
|
+
}), import("@endo/patterns").SyncValueGuard>;
|
|
30
|
+
mintGains: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").MatcherOf<"recordOf", [import("@endo/patterns").MatcherOf<"string", string>, {
|
|
31
|
+
brand: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
32
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
33
|
+
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
34
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
35
|
+
});
|
|
36
|
+
value: import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"nat", bigint>, import("@endo/patterns").MatcherOf<"setOf", any>, import("@endo/patterns").MatcherOf<"arrayOf", import("@endo/patterns").MatcherOf<"key", any>>, import("@endo/patterns").MatcherOf<"bagOf", any>]>;
|
|
37
|
+
}]>], [import("@endo/patterns").MatcherOf<"remotable", any>], import("@endo/patterns").MatcherOf<"remotable", any>, import("@endo/patterns").SyncValueGuard>;
|
|
38
|
+
burnLosses: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").MatcherOf<"recordOf", [import("@endo/patterns").MatcherOf<"string", string>, {
|
|
39
|
+
brand: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
40
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
41
|
+
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
42
|
+
"Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
|
|
43
|
+
});
|
|
44
|
+
value: import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"nat", bigint>, import("@endo/patterns").MatcherOf<"setOf", any>, import("@endo/patterns").MatcherOf<"arrayOf", import("@endo/patterns").MatcherOf<"key", any>>, import("@endo/patterns").MatcherOf<"bagOf", any>]>;
|
|
45
|
+
}]>, import("@endo/patterns").MatcherOf<"remotable", any>], import("@endo/patterns").ArgGuard[], any, import("@endo/patterns").SyncValueGuard>;
|
|
6
46
|
}>;
|
|
7
47
|
export const ZcfI: import("@endo/patterns").InterfaceGuard<any>;
|
|
8
48
|
//# sourceMappingURL=typeGuards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,gFAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMG;AAEH,gEAWE"}
|