@agoric/ertp 0.16.3-dev-38b6b62.0 → 0.16.3-dev-50c9518.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-38b6b62.0+38b6b62",
3
+ "version": "0.16.3-dev-50c9518.0+50c9518",
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,11 +39,11 @@
39
39
  },
40
40
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
41
41
  "dependencies": {
42
- "@agoric/assert": "0.6.1-dev-38b6b62.0+38b6b62",
43
- "@agoric/notifier": "0.6.3-dev-38b6b62.0+38b6b62",
44
- "@agoric/store": "0.9.3-dev-38b6b62.0+38b6b62",
45
- "@agoric/vat-data": "0.5.3-dev-38b6b62.0+38b6b62",
46
- "@agoric/zone": "0.2.3-dev-38b6b62.0+38b6b62",
42
+ "@agoric/assert": "0.6.1-dev-50c9518.0+50c9518",
43
+ "@agoric/notifier": "0.6.3-dev-50c9518.0+50c9518",
44
+ "@agoric/store": "0.9.3-dev-50c9518.0+50c9518",
45
+ "@agoric/vat-data": "0.5.3-dev-50c9518.0+50c9518",
46
+ "@agoric/zone": "0.2.3-dev-50c9518.0+50c9518",
47
47
  "@endo/eventual-send": "^1.2.1",
48
48
  "@endo/far": "^1.1.1",
49
49
  "@endo/marshal": "^1.4.1",
@@ -52,7 +52,7 @@
52
52
  "@endo/promise-kit": "^1.1.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@agoric/swingset-vat": "0.32.3-dev-38b6b62.0+38b6b62",
55
+ "@agoric/swingset-vat": "0.32.3-dev-50c9518.0+50c9518",
56
56
  "@endo/bundle-source": "^3.2.2",
57
57
  "@fast-check/ava": "^1.1.5",
58
58
  "ava": "^5.3.0",
@@ -88,5 +88,5 @@
88
88
  "typeCoverage": {
89
89
  "atLeast": 90.62
90
90
  },
91
- "gitHead": "38b6b62535a9b618708e0af77ee8fff5adba661a"
91
+ "gitHead": "50c9518a689ad12d2ae331e158cf148b02bfdcb6"
92
92
  }
@@ -29,10 +29,10 @@ export namespace AmountMath {
29
29
  * }}
30
30
  */
31
31
  export const AssetKind: {
32
- NAT: 'nat';
33
- SET: 'set';
34
- COPY_SET: 'copySet';
35
- COPY_BAG: 'copyBag';
32
+ NAT: "nat";
33
+ SET: "set";
34
+ COPY_SET: "copySet";
35
+ COPY_BAG: "copyBag";
36
36
  };
37
37
  import type { AssetKind } from './types.js';
38
38
  /** @param {Amount} amount */
@@ -1 +1 @@
1
- {"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":"AAuHO,sCAFkB,CAAC,gDAIe;iCAjHmE,YAAY;iCAAZ,YAAY;;IAyMhH,0GAKL;IAUO,kGAQP;IASS,wGAAyD;;;;;IAwB9C,uFAOpB;IAQQ,4EAOR;;IAYQ,mIAGR;IAcI,iIAIJ;IAcS,sIAIT;IAUI,8GAMuC;IAUvC,8GAMuC;;AAtW9C;;;;;;;;;GASG;AACH,wBAPU;IACT,GAAO,EAAE,KAAK,CAAC;IACf,GAAO,EAAE,KAAK,CAAC;IACf,QAAY,EAAE,SAAS,CAAC;IACxB,QAAY,EAAE,SAAS,CAAC;CACrB,CAOD;+BAnByG,YAAY;AA8WxH,6BAA6B;AAC7B,mEAKC;AA9VD,mCAAmC;AACnC,2CADY,SAAS,QAIpB;2BA1B2G,YAAY;uCAAZ,YAAY;4BAAZ,YAAY;AAqKxH;;;;;;;;;;;;GAYG;AACH,uBAJkB,CAAC,kGAEN,OAAO,CAKnB;uCArL2G,YAAY"}
1
+ {"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":"AAuHO,sCAFkB,CAAC,6BAAD,CAAC,AADd,kBAK6B;iCAjHmE,YAAY;iCAAZ,YAAY;;IAyMhH,qBAJuB,CAAC,oFAS7B;IAUO,uBAHU,CAAC,0EAWlB;IASS,yBAHQ,CAAC,8EAGgD;;;SAOf,CAAC,6CAAD,CAAC;;IAiBhC,oCAHH,CAAC,kDAUlB;IAQQ,4EAOR;;IAYQ,wBAJS,CAAC,0GAOlB;IAcI,oBAJa,CAAC,4GAQlB;IAcS,yBAJQ,CAAC,4GAQlB;IAUI,oBAJa,CAAC,yFAUyB;IAUvC,oBAJa,CAAC,yFAUyB;;AAtW9C;;;;;;;;;GASG;AACH,wBAPU;IACT,GAAO,EAAE,KAAK,CAAC;IACf,GAAO,EAAE,KAAK,CAAC;IACf,QAAY,EAAE,SAAS,CAAC;IACxB,QAAY,EAAE,SAAS,CAAC;CACrB,CAOD;+BAnByG,YAAY;AA8WxH,6BAA6B;AAC7B,mEAKC;AA9VD,mCAAmC;AACnC,2CADY,SAAS,QAIpB;2BA1B2G,YAAY;uCAAZ,YAAY;4BAAZ,YAAY;AAqKxH;;;;;;;;;;;;GAYG;AACH,uBAJkB,CAAC,kGAEN,OAAO,CAKnB;uCArL2G,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"amountStore.d.ts","sourceRoot":"","sources":["amountStore.js"],"names":[],"mappings":"AAkBO,gCAFkB,CAAC,uCAFf,MAAM,OACN,MAAM,kBAiBhB;wBAvB4B,CAAC;;qCADM,IAAI;qCACJ,OAAO;;+BAPiE,YAAY;4BAAZ,YAAY"}
1
+ {"version":3,"file":"amountStore.d.ts","sourceRoot":"","sources":["amountStore.js"],"names":[],"mappings":"AAkBO,gCAFkB,CAAC,uCAFf,MAAM,OACN,MAAM,GACJ,WAAW,CAAC,CAAC,CAAC,CAgB1B;wBAvB4B,CAAC;;qCADM,IAAI;qCACJ,OAAO;;+BAPiE,YAAY;4BAAZ,YAAY"}
@@ -1,10 +1,10 @@
1
- export function upgradeIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import('@agoric/vat-data').Baggage, optShutdownWithFailure?: ShutdownWithFailure | undefined, recoverySetsOption?: RecoverySetsOption | undefined): IssuerKit<K>;
2
- export function hasIssuer(baggage: import('@agoric/vat-data').Baggage): boolean;
3
- export function makeDurableIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import('@agoric/vat-data').Baggage, name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: ShutdownWithFailure | undefined, { elementShape, recoverySetsOption }?: Partial<{
1
+ export function upgradeIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, optShutdownWithFailure?: ShutdownWithFailure | undefined, recoverySetsOption?: RecoverySetsOption | undefined): IssuerKit<K>;
2
+ export function hasIssuer(baggage: import("@agoric/vat-data").Baggage): boolean;
3
+ export function makeDurableIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: ShutdownWithFailure | undefined, { elementShape, recoverySetsOption }?: Partial<{
4
4
  elementShape: Pattern;
5
5
  recoverySetsOption: RecoverySetsOption;
6
6
  }> | undefined): IssuerKit<K>;
7
- export function prepareIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import('@agoric/vat-data').Baggage, name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: ShutdownWithFailure | undefined, options?: Partial<{
7
+ export function prepareIssuerKit<K extends import("./types.js").AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: ShutdownWithFailure | undefined, options?: Partial<{
8
8
  elementShape: Pattern;
9
9
  recoverySetsOption: RecoverySetsOption;
10
10
  }> | undefined): IssuerKit<K>;
package/src/payment.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export function preparePaymentKind<K extends AssetKind>(issuerZone: import('@agoric/zone').Zone, name: string, brand: Brand<K>, PaymentI: import('@endo/patterns').InterfaceGuard<any>): () => Payment<K>;
1
+ export function preparePaymentKind<K extends AssetKind>(issuerZone: import("@agoric/zone").Zone, name: string, brand: Brand<K>, PaymentI: import("@endo/patterns").InterfaceGuard<any>): () => Payment<K>;
2
2
  import type { AssetKind } from './types.js';
3
3
  import type { Brand } from './types.js';
4
4
  import type { Payment } from './types.js';
@@ -1,4 +1,4 @@
1
- export function preparePaymentLedger<K extends AssetKind>(issuerZone: import('@agoric/zone').Zone, name: string, assetKind: K, displayInfo: DisplayInfo<K>, elementShape: Pattern, recoverySetsState: RecoverySetsOption, optShutdownWithFailure?: ShutdownWithFailure | undefined): PaymentLedger<K>;
1
+ export function preparePaymentLedger<K extends AssetKind>(issuerZone: import("@agoric/zone").Zone, name: string, assetKind: K, displayInfo: DisplayInfo<K>, elementShape: Pattern, recoverySetsState: RecoverySetsOption, optShutdownWithFailure?: ShutdownWithFailure | undefined): PaymentLedger<K>;
2
2
  import type { AssetKind } from './types.js';
3
3
  import type { DisplayInfo } from './types.js';
4
4
  import type { RecoverySetsOption } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"paymentLedger.d.ts","sourceRoot":"","sources":["paymentLedger.js"],"names":[],"mappings":"AAmFO,qCAFoB,CAAC,gCAPjB,OAAO,cAAc,EAAE,IAAI,QAC3B,MAAM,2DAGN,OAAO,qHA6UjB;+BA9YwH,YAAY;iCAAZ,YAAY;wCAAZ,YAAY;yCAC/F,sBAAsB;mCAD6D,YAAY"}
1
+ {"version":3,"file":"paymentLedger.d.ts","sourceRoot":"","sources":["paymentLedger.js"],"names":[],"mappings":"AAmFO,qCAFoB,CAAC,gCAPjB,OAAO,cAAc,EAAE,IAAI,QAC3B,MAAM,aAMU,CAAC,AALhB,6CAED,OAAO,qHA6UjB;+BA9YwH,YAAY;iCAAZ,YAAY;wCAAZ,YAAY;yCAC/F,sBAAsB;mCAD6D,YAAY"}
package/src/purse.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export function preparePurseKind(issuerZone: import('@agoric/zone').Zone, name: string, assetKind: AssetKind, brand: Brand, PurseIKit: {
2
- purse: import('@endo/patterns').InterfaceGuard<any>;
3
- depositFacet: import('@endo/patterns').InterfaceGuard<any>;
1
+ export function preparePurseKind(issuerZone: import("@agoric/zone").Zone, name: string, assetKind: AssetKind, brand: Brand, PurseIKit: {
2
+ purse: import("@endo/patterns").InterfaceGuard<any>;
3
+ depositFacet: import("@endo/patterns").InterfaceGuard<any>;
4
4
  }, purseMethods: {
5
5
  depositInternal: any;
6
6
  withdrawInternal: any;
@@ -14,7 +14,7 @@ export namespace RatioShape {
14
14
  export { AmountShape as numerator };
15
15
  export { AmountShape as denominator };
16
16
  }
17
- export function isNatValue(value: AmountValue): value is import('./types.js').NatValue;
17
+ export function isNatValue(value: AmountValue): value is import("./types.js").NatValue;
18
18
  export function isCopySetValue(value: AmountValue): value is CopySet;
19
19
  export function isSetValue(value: AmountValue): value is SetValue;
20
20
  export function isCopyBagValue(value: AmountValue): value is CopyBag;
package/src/types.d.ts CHANGED
@@ -38,7 +38,7 @@ export type AmountValue = bigint | SetValue | CopySet | import("@endo/patterns")
38
38
  * See doc-comment
39
39
  * for `AmountValue`.
40
40
  */
41
- export type AssetKind = 'nat' | 'set' | 'copySet' | 'copyBag';
41
+ export type AssetKind = "nat" | "set" | "copySet" | "copyBag";
42
42
  export type AssetValueForKind<K extends AssetKind> = K extends "nat" ? bigint : K extends "set" ? SetValue : K extends "copySet" ? CopySet : K extends "copyBag" ? import("@endo/patterns").CopyBag<any> : never;
43
43
  export type AssetKindForValue<V extends AmountValue> = V extends bigint ? "nat" : V extends SetValue ? "set" : V extends CopySet ? "copySet" : V extends import("@endo/patterns").CopyBag<any> ? "copyBag" : never;
44
44
  export type DisplayInfo<K extends AssetKind = AssetKind> = {
@@ -220,7 +220,7 @@ export type Mint<K extends AssetKind = AssetKind> = {
220
220
  * transition is needed, it can likely be supported in a future upgrade. File an
221
221
  * issue on github and explain what you need and why.
222
222
  */
223
- export type RecoverySetsOption = 'hasRecoverySets' | 'noRecoverySets';
223
+ export type RecoverySetsOption = "hasRecoverySets" | "noRecoverySets";
224
224
  export type DepositFacetReceive = (payment: Payment, optAmountShape?: Pattern) => Amount;
225
225
  export type DepositFacet = {
226
226
  /**