@agoric/zoe 0.26.3-dev-bf9f03b.0 → 0.26.3-dev-62c73f5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-dev-bf9f03b.0+bf9f03b",
3
+ "version": "0.26.3-dev-62c73f5.0+62c73f5",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/assert": "0.6.1-dev-bf9f03b.0+bf9f03b",
47
- "@agoric/base-zone": "0.1.1-dev-bf9f03b.0+bf9f03b",
48
- "@agoric/ertp": "0.16.3-dev-bf9f03b.0+bf9f03b",
49
- "@agoric/internal": "0.3.3-dev-bf9f03b.0+bf9f03b",
50
- "@agoric/notifier": "0.6.3-dev-bf9f03b.0+bf9f03b",
51
- "@agoric/store": "0.9.3-dev-bf9f03b.0+bf9f03b",
52
- "@agoric/swingset-liveslots": "0.10.3-dev-bf9f03b.0+bf9f03b",
53
- "@agoric/swingset-vat": "0.32.3-dev-bf9f03b.0+bf9f03b",
54
- "@agoric/time": "0.3.3-dev-bf9f03b.0+bf9f03b",
55
- "@agoric/vat-data": "0.5.3-dev-bf9f03b.0+bf9f03b",
56
- "@agoric/zone": "0.2.3-dev-bf9f03b.0+bf9f03b",
46
+ "@agoric/assert": "0.6.1-dev-62c73f5.0+62c73f5",
47
+ "@agoric/base-zone": "0.1.1-dev-62c73f5.0+62c73f5",
48
+ "@agoric/ertp": "0.16.3-dev-62c73f5.0+62c73f5",
49
+ "@agoric/internal": "0.3.3-dev-62c73f5.0+62c73f5",
50
+ "@agoric/notifier": "0.6.3-dev-62c73f5.0+62c73f5",
51
+ "@agoric/store": "0.9.3-dev-62c73f5.0+62c73f5",
52
+ "@agoric/swingset-liveslots": "0.10.3-dev-62c73f5.0+62c73f5",
53
+ "@agoric/swingset-vat": "0.32.3-dev-62c73f5.0+62c73f5",
54
+ "@agoric/time": "0.3.3-dev-62c73f5.0+62c73f5",
55
+ "@agoric/vat-data": "0.5.3-dev-62c73f5.0+62c73f5",
56
+ "@agoric/zone": "0.2.3-dev-62c73f5.0+62c73f5",
57
57
  "@endo/bundle-source": "^3.2.3",
58
58
  "@endo/captp": "^4.2.0",
59
59
  "@endo/common": "^1.2.2",
@@ -63,12 +63,13 @@
63
63
  "@endo/import-bundle": "^1.1.2",
64
64
  "@endo/marshal": "^1.5.0",
65
65
  "@endo/nat": "^5.0.7",
66
+ "@endo/pass-style": "^1.4.0",
66
67
  "@endo/patterns": "^1.4.0",
67
68
  "@endo/promise-kit": "^1.1.2",
68
69
  "yargs-parser": "^21.1.1"
69
70
  },
70
71
  "devDependencies": {
71
- "@agoric/kmarshal": "0.1.1-dev-bf9f03b.0+bf9f03b",
72
+ "@agoric/kmarshal": "0.1.1-dev-62c73f5.0+62c73f5",
72
73
  "@endo/init": "^1.1.2",
73
74
  "ava": "^5.3.0",
74
75
  "c8": "^9.1.0",
@@ -141,5 +142,5 @@
141
142
  "typeCoverage": {
142
143
  "atLeast": 84.92
143
144
  },
144
- "gitHead": "bf9f03bb9d6697086cdb6fbb6871d1744fb33e42"
145
+ "gitHead": "62c73f5befa179579864c1586ec2dd5be080ba0b"
145
146
  }
@@ -0,0 +1,8 @@
1
+ export const ZcfSeatShape: import("@endo/patterns").Matcher;
2
+ export const ZcfMintI: import("@endo/patterns").InterfaceGuard<{
3
+ getIssuerRecord: import("@endo/patterns").MethodGuard;
4
+ mintGains: import("@endo/patterns").MethodGuard;
5
+ burnLosses: import("@endo/patterns").MethodGuard;
6
+ }>;
7
+ export const ZcfI: import("@endo/patterns").InterfaceGuard<any>;
8
+ //# sourceMappingURL=typeGuards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,4DAAmD;AAEnD;;;;GAMG;AAEH,gEAWE"}
@@ -0,0 +1,25 @@
1
+ import { M } from '@endo/patterns';
2
+ import { AmountKeywordRecordShape, IssuerRecordShape } from '../typeGuards.js';
3
+
4
+ export const ZcfSeatShape = M.remotable('zcfSeat');
5
+
6
+ export const ZcfMintI = M.interface('ZcfMint', {
7
+ getIssuerRecord: M.call().returns(IssuerRecordShape),
8
+ mintGains: M.call(AmountKeywordRecordShape)
9
+ .optional(ZcfSeatShape)
10
+ .returns(ZcfSeatShape),
11
+ burnLosses: M.call(AmountKeywordRecordShape, ZcfSeatShape).returns(),
12
+ });
13
+
14
+ export const ZcfI = M.interface(
15
+ 'ZCF',
16
+ {
17
+ makeInvitation: M.call(M.raw(), M.string())
18
+ .optional(M.record(), M.pattern())
19
+ .returns(M.promise()),
20
+ setTestJig: M.call().optional(M.raw()).returns(),
21
+ },
22
+ {
23
+ defaultGuards: 'passable',
24
+ },
25
+ );
@@ -8,7 +8,7 @@ import { assertFullIssuerRecord, makeIssuerRecord } from '../issuerRecord.js';
8
8
  import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
9
9
 
10
10
  import '../internal-types.js';
11
- import { ZcfMintI } from '../typeGuards.js';
11
+ import { ZcfMintI } from './typeGuards.js';
12
12
  import './internal-types.js';
13
13
  import './types-ambient.js';
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AAiDO,wEAPI,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,aAAa,uCAEb,OAAO,kBAAkB,EAAE,OAAO,GAChC,OAAO,CAAC,SAAS,CAAC,CAkd9B"}
1
+ {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AAkDO,wEAPI,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,aAAa,uCAEb,OAAO,kBAAkB,EAAE,OAAO,GAChC,OAAO,CAAC,SAAS,CAAC,CA8c9B"}
@@ -10,7 +10,7 @@ import {
10
10
  provideDurableMapStore,
11
11
  } from '@agoric/vat-data';
12
12
  import { E } from '@endo/eventual-send';
13
- import { passStyleOf, Remotable } from '@endo/marshal';
13
+ import { passStyleOf } from '@endo/pass-style';
14
14
  import { makePromiseKit } from '@endo/promise-kit';
15
15
 
16
16
  import { objectMap } from '@agoric/internal';
@@ -26,6 +26,7 @@ import { createSeatManager } from './zcfSeat.js';
26
26
 
27
27
  import { HandleOfferI, InvitationHandleShape } from '../typeGuards.js';
28
28
  import { prepareZcMint } from './zcfMint.js';
29
+ import { ZcfI } from './typeGuards.js';
29
30
 
30
31
  /// <reference path="../internal-types.js" />
31
32
  /// <reference path="./internal-types.js" />
@@ -281,11 +282,7 @@ export const makeZCFZygote = async (
281
282
  ['canBeUpgraded', 'canUpgrade'].includes(meta.upgradability);
282
283
 
283
284
  /** @type {ZCF} */
284
- // Using Remotable rather than Far because there are too many complications
285
- // imposing checking wrappers: makeInvitation() and setJig() want to
286
- // accept raw functions. assert cannot be a valid passable! (It's a function
287
- // and has members.)
288
- const zcf = Remotable('Alleged: zcf', undefined, {
285
+ const zcf = prepareExo(zcfBaggage, 'zcf', ZcfI, {
289
286
  atomicRearrange: transfers => seatManager.atomicRearrange(transfers),
290
287
  reallocate: (...seats) => seatManager.reallocate(...seats),
291
288
  assertUniqueKeyword: kwd => getInstanceRecHolder().assertUniqueKeyword(kwd),
@@ -45,11 +45,6 @@ export const ZoeMintI: import("@endo/patterns").InterfaceGuard<{
45
45
  mintAndEscrow: import("@endo/patterns").MethodGuard;
46
46
  withdrawAndBurn: import("@endo/patterns").MethodGuard;
47
47
  }>;
48
- export const ZcfMintI: import("@endo/patterns").InterfaceGuard<{
49
- getIssuerRecord: import("@endo/patterns").MethodGuard;
50
- mintGains: import("@endo/patterns").MethodGuard;
51
- burnLosses: import("@endo/patterns").MethodGuard;
52
- }>;
53
48
  export const FeeMintAccessShape: import("@endo/patterns").Matcher;
54
49
  export const ExitObjectI: import("@endo/patterns").InterfaceGuard<{
55
50
  exit: import("@endo/patterns").MethodGuard;
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAgBA,4DAAuC;AAEvC,qEAAqE;AACrE,+DAAyD;AACzD,mEAAiE;AACjE,iEAA6D;AAC7D,yDAA6C;AAE7C,wEAA8E;AAC9E,+EAGE;AACF,0EAGE;AACF,wEAA8E;AAC9E,yEAGE;AACF,uEAA4E;AAE5E,iEAOE;;;;;;;;;;AAaF,kEAAiD;AAE1C,6EAA4D;AACnE,0DAAmD;;;;;;AA0BnD,2BAA2B;AAC3B,6DAAsE;AAEtE,kEAIG;AAEI,uDAGN;AAMM,uCAHI,QAAQ,GACN,IAAI,IAAI,cAAc,CAKlC;AAMM,8CAHI,QAAQ,GACN,IAAI,IAAI,qBAAqB,CAKzC;AAED,sEAKG;AAEH;;GAEG;AAEH,0EAKE;AAEF,4DAAmD;AACnD;;;;GAIG;AAEH;;;;GASG;AAEH,kEAA+D;AAE/D;;GAEG;AAEH,+DAAsD;AACtD,kEAA+D;AAC/D;;;;;;;;;;;;;;;;;GAkCG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDH,8DAAuD;AACvD,2DAGE;AAEF,0EAUE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DF;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;GAIG;AAEH,6DASE;AAEF;;GAKG;;;;;4BAjYI,cAAc"}
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAgBA,4DAAuC;AAEvC,qEAAqE;AACrE,+DAAyD;AACzD,mEAAiE;AACjE,iEAA6D;AAC7D,yDAA6C;AAE7C,wEAA8E;AAC9E,+EAGE;AACF,0EAGE;AACF,wEAA8E;AAC9E,yEAGE;AACF,uEAA4E;AAE5E,iEAOE;;;;;;;;;;AAaF,kEAAiD;AAE1C,6EAA4D;AACnE,0DAAmD;;;;;;AA0BnD,2BAA2B;AAC3B,6DAAsE;AAEtE,kEAIG;AAEI,uDAGN;AAMM,uCAHI,QAAQ,GACN,IAAI,IAAI,cAAc,CAKlC;AAMM,8CAHI,QAAQ,GACN,IAAI,IAAI,qBAAqB,CAKzC;AAED,sEAKG;AAEH;;GAEG;AAEH,0EAKE;AAEF,4DAAmD;AACnD;;;;GAIG;AAEH,kEAA+D;AAE/D;;GAEG;AAEH,+DAAsD;AACtD,kEAA+D;AAC/D;;;;;;;;;;;;;;;;;GAkCG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDH,8DAAuD;AACvD,2DAGE;AAEF,0EAUE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DF;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;GAIG;AAEH,6DASE;AAEF;;GAKG;;;;;4BAtXI,cAAc"}
package/src/typeGuards.js CHANGED
@@ -144,17 +144,6 @@ export const ZoeMintI = M.interface('ZoeMint', {
144
144
  withdrawAndBurn: M.call(AmountShape).returns(),
145
145
  });
146
146
 
147
- export const ZcfMintI = M.interface('ZcfMint', {
148
- getIssuerRecord: M.call().returns(IssuerRecordShape),
149
- mintGains: M.call(AmountKeywordRecordShape)
150
- .optional(M.remotable('zcfSeat'))
151
- .returns(M.remotable('zcfSeat')),
152
- burnLosses: M.call(
153
- AmountKeywordRecordShape,
154
- M.remotable('zcfSeat'),
155
- ).returns(),
156
- });
157
-
158
147
  export const FeeMintAccessShape = M.remotable('FeeMintAccess');
159
148
 
160
149
  export const ExitObjectI = M.interface('Exit Object', {