@agoric/ertp 0.16.3-dev-5a127d4.0 → 0.16.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/ertp",
3
- "version": "0.16.3-dev-5a127d4.0+5a127d4",
3
+ "version": "0.16.3-dev-47bebb8.0+47bebb8",
4
4
  "description": "Electronic Rights Transfer Protocol (ERTP). A smart contract framework for exchanging electronic rights",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
41
41
  "dependencies": {
42
- "@agoric/notifier": "0.6.3-dev-5a127d4.0+5a127d4",
43
- "@agoric/store": "0.9.3-dev-5a127d4.0+5a127d4",
44
- "@agoric/vat-data": "0.5.3-dev-5a127d4.0+5a127d4",
45
- "@agoric/zone": "0.2.3-dev-5a127d4.0+5a127d4",
42
+ "@agoric/notifier": "0.6.3-dev-47bebb8.0+47bebb8",
43
+ "@agoric/store": "0.9.3-dev-47bebb8.0+47bebb8",
44
+ "@agoric/vat-data": "0.5.3-dev-47bebb8.0+47bebb8",
45
+ "@agoric/zone": "0.2.3-dev-47bebb8.0+47bebb8",
46
46
  "@endo/errors": "^1.2.7",
47
47
  "@endo/eventual-send": "^1.2.7",
48
48
  "@endo/far": "^1.1.8",
@@ -52,7 +52,7 @@
52
52
  "@endo/promise-kit": "^1.1.7"
53
53
  },
54
54
  "devDependencies": {
55
- "@agoric/swingset-vat": "0.32.3-dev-5a127d4.0+5a127d4",
55
+ "@agoric/swingset-vat": "0.32.3-dev-47bebb8.0+47bebb8",
56
56
  "@endo/bundle-source": "^3.4.2",
57
57
  "@fast-check/ava": "^1.1.5",
58
58
  "ava": "^5.3.0",
@@ -79,5 +79,5 @@
79
79
  "typeCoverage": {
80
80
  "atLeast": 91.76
81
81
  },
82
- "gitHead": "5a127d4ad8c3a884cd2a13d7c16d3e5b58711cbc"
82
+ "gitHead": "47bebb8357715f60a699a6f7627dac3d2cf26db7"
83
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,0DAA+C;AAC/C,2DAAiD;AACjD,4DAAmD;AACnD,0DAA+C;AAC/C,iEAA6D;AAC7D,6DAAqD;AACrD,yDAA6C;;;;;AAoE7C;;;;;;;;;;GAUG;AACH,kEAA8C;AAE9C,kCAAkC;AAClC,yBADW,aAAa,KAAK,CAAC,CAI3B;AAQI,kCAHI,WAAW,GACT,KAAK,IAAI,OAAO,YAAY,EAAE,QAAQ,CAEa;AASzD,sCAHI,WAAW,GACT,KAAK,IAAI,OAAO,CAE2C;AAYjE,kCAHI,WAAW,GACT,KAAK,IAAI,QAAQ,CAEkC;AASzD,sCAHI,WAAW,GACT,KAAK,IAAI,OAAO,CAE2C;AAIxE,8CAA+C;AAE/C,8DAAuE;AAEvE,gEAaE;;;;;;;;AAYF;;;;;GAKG;AAOI,kDAJI,OAAO,mBACP,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoEjB;AAlLD,iEAKE;2BAvEmC,YAAY;kCAClB,kBAAkB;iCADZ,YAAY"}
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,0DAA+C;AAC/C,2DAAiD;AACjD,4DAAmD;AACnD,0DAA+C;AAC/C,iEAA6D;AAC7D,6DAAqD;AACrD,yDAA6C;;;;;AAkE7C;;;;;;;;;;GAUG;AACH,kEAA8C;AAE9C,kCAAkC;AAClC,yBADW,aAAa,KAAK,CAAC,CACiD;AASxE,kCAHI,WAAW,GACT,KAAK,IAAI,OAAO,YAAY,EAAE,QAAQ,CAEa;AASzD,sCAHI,WAAW,GACT,KAAK,IAAI,OAAO,CAE2C;AAYjE,kCAHI,WAAW,GACT,KAAK,IAAI,QAAQ,CAEkC;AASzD,sCAHI,WAAW,GACT,KAAK,IAAI,OAAO,CAE2C;AAIxE,8CAA+C;AAE/C,8DAAuE;AAEvE,gEAaE;;;;;;;;AAaF;;;;;GAKG;AAOI,kDAJI,OAAO,mBACP,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEjB;AAhLD,iEAKE;2BAvEmC,YAAY;kCAClB,kBAAkB;iCADZ,YAAY"}
package/src/typeGuards.js CHANGED
@@ -75,10 +75,8 @@ const AmountValueShape = M.or(
75
75
  CopyBagValueShape,
76
76
  );
77
77
 
78
- export const AmountShape = harden({
79
- brand: BrandShape,
80
- value: AmountValueShape,
81
- });
78
+ export const AmountShape = { brand: BrandShape, value: AmountValueShape };
79
+ harden(AmountShape);
82
80
 
83
81
  /**
84
82
  * To be used to guard an amount pattern argument, i.e., an argument which is a
@@ -94,10 +92,8 @@ export const AmountShape = harden({
94
92
  export const AmountPatternShape = M.pattern();
95
93
 
96
94
  /** @type {TypedPattern<Ratio>} */
97
- export const RatioShape = harden({
98
- numerator: AmountShape,
99
- denominator: AmountShape,
100
- });
95
+ export const RatioShape = { numerator: AmountShape, denominator: AmountShape };
96
+ harden(RatioShape);
101
97
 
102
98
  /**
103
99
  * Returns true if value is a Nat bigint.
@@ -158,13 +154,14 @@ export const DisplayInfoShape = M.splitRecord(
158
154
  },
159
155
  );
160
156
 
161
- export const IssuerKitShape = harden({
157
+ export const IssuerKitShape = {
162
158
  brand: BrandShape,
163
159
  mint: MintShape,
164
160
  mintRecoveryPurse: PurseShape,
165
161
  issuer: IssuerShape,
166
162
  displayInfo: DisplayInfoShape,
167
- });
163
+ };
164
+ harden(IssuerKitShape);
168
165
 
169
166
  // //////////////////////// Interfaces /////////////////////////////////////////
170
167
 
@@ -235,10 +232,11 @@ export const makeIssuerInterfaces = (
235
232
  receive: getInterfaceGuardPayload(PurseI).methodGuards.deposit,
236
233
  });
237
234
 
238
- const PurseIKit = harden({
235
+ const PurseIKit = {
239
236
  purse: PurseI,
240
237
  depositFacet: DepositFacetI,
241
- });
238
+ };
239
+ harden(PurseIKit);
242
240
 
243
241
  return harden({
244
242
  IssuerI,