@agoric/zoe 0.26.3-dev-2561fb9.0 → 0.26.3-dev-47bebb8.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-2561fb9.0+2561fb9",
3
+ "version": "0.26.3-dev-47bebb8.0+47bebb8",
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/base-zone": "0.1.1-dev-2561fb9.0+2561fb9",
47
- "@agoric/ertp": "0.16.3-dev-2561fb9.0+2561fb9",
48
- "@agoric/internal": "0.3.3-dev-2561fb9.0+2561fb9",
49
- "@agoric/notifier": "0.6.3-dev-2561fb9.0+2561fb9",
50
- "@agoric/store": "0.9.3-dev-2561fb9.0+2561fb9",
51
- "@agoric/swingset-liveslots": "0.10.3-dev-2561fb9.0+2561fb9",
52
- "@agoric/swingset-vat": "0.32.3-dev-2561fb9.0+2561fb9",
53
- "@agoric/time": "0.3.3-dev-2561fb9.0+2561fb9",
54
- "@agoric/vat-data": "0.5.3-dev-2561fb9.0+2561fb9",
55
- "@agoric/vow": "0.1.1-dev-2561fb9.0+2561fb9",
56
- "@agoric/zone": "0.2.3-dev-2561fb9.0+2561fb9",
46
+ "@agoric/base-zone": "0.1.1-dev-47bebb8.0+47bebb8",
47
+ "@agoric/ertp": "0.16.3-dev-47bebb8.0+47bebb8",
48
+ "@agoric/internal": "0.3.3-dev-47bebb8.0+47bebb8",
49
+ "@agoric/notifier": "0.6.3-dev-47bebb8.0+47bebb8",
50
+ "@agoric/store": "0.9.3-dev-47bebb8.0+47bebb8",
51
+ "@agoric/swingset-liveslots": "0.10.3-dev-47bebb8.0+47bebb8",
52
+ "@agoric/swingset-vat": "0.32.3-dev-47bebb8.0+47bebb8",
53
+ "@agoric/time": "0.3.3-dev-47bebb8.0+47bebb8",
54
+ "@agoric/vat-data": "0.5.3-dev-47bebb8.0+47bebb8",
55
+ "@agoric/vow": "0.1.1-dev-47bebb8.0+47bebb8",
56
+ "@agoric/zone": "0.2.3-dev-47bebb8.0+47bebb8",
57
57
  "@endo/bundle-source": "^3.4.2",
58
58
  "@endo/captp": "^4.4.2",
59
59
  "@endo/common": "^1.2.7",
@@ -70,7 +70,7 @@
70
70
  "yargs-parser": "^21.1.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@agoric/kmarshal": "0.1.1-dev-2561fb9.0+2561fb9",
73
+ "@agoric/kmarshal": "0.1.1-dev-47bebb8.0+47bebb8",
74
74
  "@endo/init": "^1.1.6",
75
75
  "ava": "^5.3.0",
76
76
  "c8": "^9.1.0",
@@ -100,5 +100,5 @@
100
100
  "typeCoverage": {
101
101
  "atLeast": 85
102
102
  },
103
- "gitHead": "2561fb9a628b7e65b9bc831af7a9ec62b473267d"
103
+ "gitHead": "47bebb8357715f60a699a6f7627dac3d2cf26db7"
104
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAeA;;GAEG;AAGH,4DAAuC;AAEvC,6CAA6C;AAC7C,oCADW,aAAa,gBAAgB,CAAC,CAC4B;AACrE,uCAAuC;AACvC,8BADW,aAAa,UAAU,CAAC,CACsB;AACzD,mEAAiE;AACjE,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CACwB;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;AAE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D;AAC/D;;;;;;;;;;;;;;;;;GAkCG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,8DAAuD;AACvD,2DAGE;AAEF,0EAQE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DF;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;GAKG;AAEH,6DASE;AAEF;;GAKG;;;;;kCA5X4B,kBAAkB;4BAN1C,cAAc"}
package/src/typeGuards.js CHANGED
@@ -54,16 +54,18 @@ export const IssuerRecordShape = M.splitRecord(
54
54
  { displayInfo: DisplayInfoShape },
55
55
  );
56
56
 
57
- export const TermsShape = harden({
57
+ export const TermsShape = {
58
58
  issuers: IssuerKeywordRecordShape,
59
59
  brands: BrandKeywordRecordShape,
60
- });
60
+ };
61
+ harden(TermsShape);
61
62
 
62
- export const InstanceRecordShape = harden({
63
+ export const InstanceRecordShape = {
63
64
  installation: InstallationShape,
64
65
  instance: InstanceHandleShape,
65
66
  terms: M.splitRecord(TermsShape),
66
- });
67
+ };
68
+ harden(InstanceRecordShape);
67
69
 
68
70
  export const HandleI = M.interface('Handle', {});
69
71
 
@@ -75,7 +77,7 @@ export const TimerShape = makeHandleShape('timer');
75
77
  *
76
78
  * @see {ProposalRecord} type
77
79
  */
78
- export const FullProposalShape = harden({
80
+ export const FullProposalShape = {
79
81
  want: AmountPatternKeywordRecordShape,
80
82
  give: AmountKeywordRecordShape,
81
83
  // To accept only one, we could use M.or rather than M.splitRecord,
@@ -93,7 +95,9 @@ export const FullProposalShape = harden({
93
95
  },
94
96
  {},
95
97
  ),
96
- });
98
+ };
99
+ harden(FullProposalShape);
100
+
97
101
  /** @see {Proposal} type */
98
102
  export const ProposalShape = M.splitRecord({}, FullProposalShape, {});
99
103
 
@@ -107,6 +111,7 @@ export const isOnDemandExitRule = exit => {
107
111
  const [exitKey] = Object.keys(exit);
108
112
  return exitKey === 'onDemand';
109
113
  };
114
+ harden(isOnDemandExitRule);
110
115
 
111
116
  /**
112
117
  * @param {ExitRule} exit
@@ -116,6 +121,7 @@ export const isWaivedExitRule = exit => {
116
121
  const [exitKey] = Object.keys(exit);
117
122
  return exitKey === 'waived';
118
123
  };
124
+ harden(isWaivedExitRule);
119
125
 
120
126
  /**
121
127
  * @param {ExitRule} exit
@@ -125,6 +131,7 @@ export const isAfterDeadlineExitRule = exit => {
125
131
  const [exitKey] = Object.keys(exit);
126
132
  return exitKey === 'afterDeadline';
127
133
  };
134
+ harden(isAfterDeadlineExitRule);
128
135
 
129
136
  export const InvitationElementShape = M.splitRecord({
130
137
  description: M.string(),
@@ -137,12 +144,10 @@ export const OfferHandlerI = M.interface('OfferHandler', {
137
144
  handle: M.call(SeatShape).optional(M.any()).returns(M.any()),
138
145
  });
139
146
 
140
- export const SeatHandleAllocationsShape = M.arrayOf(
141
- harden({
142
- seatHandle: SeatShape,
143
- allocation: AmountKeywordRecordShape,
144
- }),
145
- );
147
+ export const SeatHandleAllocationsShape = M.arrayOf({
148
+ seatHandle: SeatShape,
149
+ allocation: AmountKeywordRecordShape,
150
+ });
146
151
 
147
152
  export const ZoeMintShape = M.remotable('ZoeMint');
148
153
  export const ZoeMintI = M.interface('ZoeMint', {
@@ -180,7 +185,7 @@ export const InstanceAdminI = M.interface('InstanceAdmin', {
180
185
  .optional(
181
186
  AssetKindShape,
182
187
  DisplayInfoShape,
183
- M.splitRecord(harden({}), harden({ elementShape: M.pattern() })),
188
+ M.splitRecord({}, { elementShape: M.pattern() }),
184
189
  )
185
190
  .returns(M.remotable('zoeMint')),
186
191
  registerFeeMint: M.call(KeywordShape, FeeMintAccessShape).returns(
@@ -195,7 +200,7 @@ export const InstanceAdminI = M.interface('InstanceAdmin', {
195
200
  repairContractCompletionWatcher: M.call().returns(),
196
201
  });
197
202
 
198
- export const InstanceStorageManagerIKit = harden({
203
+ export const InstanceStorageManagerIKit = {
199
204
  instanceStorageManager: M.interface('InstanceStorageManager', {
200
205
  getTerms: M.call().returns(M.splitRecord(TermsShape)),
201
206
  getIssuers: M.call().returns(IssuerKeywordRecordShape),
@@ -208,7 +213,7 @@ export const InstanceStorageManagerIKit = harden({
208
213
  .optional(
209
214
  AssetKindShape,
210
215
  DisplayInfoShape,
211
- M.splitRecord(harden({}), harden({ elementShape: M.pattern() })),
216
+ M.splitRecord({}, { elementShape: M.pattern() }),
212
217
  )
213
218
  .returns(M.eref(ZoeMintShape)),
214
219
  registerFeeMint: M.call(KeywordShape, FeeMintAccessShape).returns(
@@ -240,7 +245,8 @@ export const InstanceStorageManagerIKit = harden({
240
245
  M.remotable('adminNode'),
241
246
  ).returns(ZoeMintShape),
242
247
  }),
243
- });
248
+ };
249
+ harden(InstanceStorageManagerIKit);
244
250
 
245
251
  export const BundleCapShape = M.remotable('bundleCap');
246
252
  export const BundleShape = M.and(
@@ -249,18 +255,16 @@ export const BundleShape = M.and(
249
255
  );
250
256
 
251
257
  export const UnwrappedInstallationShape = M.splitRecord(
252
- harden({
253
- installation: InstallationShape,
254
- }),
255
- harden({
258
+ { installation: InstallationShape },
259
+ {
256
260
  bundle: M.recordOf(M.string(), M.string({ stringLengthLimit: Infinity })),
257
261
  bundleCap: BundleCapShape,
258
262
  bundleID: M.string(),
259
- }),
260
- harden({}),
263
+ },
264
+ {},
261
265
  );
262
266
 
263
- export const ZoeStorageManagerIKit = harden({
267
+ export const ZoeStorageManagerIKit = {
264
268
  zoeServiceDataAccess: M.interface('ZoeService dataAccess', {
265
269
  getTerms: M.call(InstanceHandleShape).returns(M.splitRecord(TermsShape)),
266
270
  getIssuers: M.call(InstanceHandleShape).returns(IssuerKeywordRecordShape),
@@ -317,7 +321,8 @@ export const ZoeStorageManagerIKit = harden({
317
321
  invitationIssuerAccess: M.interface('ZoeStorage invitationIssuer', {
318
322
  getInvitationIssuer: M.call().returns(IssuerShape),
319
323
  }),
320
- });
324
+ };
325
+ harden(ZoeStorageManagerIKit);
321
326
 
322
327
  export const ZoeServiceI = M.interface('ZoeService', {
323
328
  install: M.call(M.any()).optional(M.string()).returns(M.promise()),
@@ -391,7 +396,8 @@ export const HandleOfferI = M.interface('HandleOffer', {
391
396
  }),
392
397
  });
393
398
 
394
- export const PriceQuoteShape = harden({
399
+ export const PriceQuoteShape = {
395
400
  quoteAmount: AmountShape,
396
401
  quotePayment: M.eref(PaymentShape),
397
- });
402
+ };
403
+ harden(PriceQuoteShape);