@agoric/ertp 0.16.3-dev-d15cb41.0 → 0.16.3-dev-e456308.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/exported.d.ts +3 -5
- package/exported.js +1 -0
- package/package.json +8 -8
- package/src/legacy-payment-helpers.d.ts +1 -0
- package/src/legacy-payment-helpers.d.ts.map +1 -1
- package/src/legacy-payment-helpers.js +4 -1
- package/src/paymentLedger.d.ts.map +1 -1
- package/src/paymentLedger.js +2 -0
- package/src/purse.d.ts +1 -1
- package/src/transientNotifier.d.ts +1 -1
- package/src/transientNotifier.d.ts.map +1 -1
- package/src/transientNotifier.js +4 -1
- package/src/types.d.ts +2 -0
- package/src/types.d.ts.map +1 -1
- package/src/types.js +3 -2
package/exported.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
/** @file Ambient exports until https://github.com/Agoric/agoric-sdk/issues/6512 */
|
|
2
|
+
/** @see {@link /docs/typescript.md} */
|
|
1
3
|
/* eslint-disable -- doesn't understand .d.ts */
|
|
2
4
|
|
|
5
|
+
// XXX also explicit exports because `@agoric/ertp` top level confuses the type and value of `AssetKind`
|
|
3
6
|
export * from './src/types.js';
|
|
4
7
|
|
|
5
|
-
// XXX re-export types into global namespace, for consumers that expect these to
|
|
6
|
-
// be ambient. Why the _ prefix? Because without it TS gets confused between the
|
|
7
|
-
// import and export symbols. h/t https://stackoverflow.com/a/66588974
|
|
8
|
-
// Note one big downside vs ambients is that these types will appear to be on `globalThis`.
|
|
9
|
-
// UNTIL https://github.com/Agoric/agoric-sdk/issues/6512
|
|
10
8
|
import {
|
|
11
9
|
Amount as _Amount,
|
|
12
10
|
Brand as _Brand,
|
package/exported.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/ertp",
|
|
3
|
-
"version": "0.16.3-dev-
|
|
3
|
+
"version": "0.16.3-dev-e456308.0+e456308",
|
|
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-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
-
"@agoric/zone": "0.2.3-dev-
|
|
42
|
+
"@agoric/assert": "0.6.1-dev-e456308.0+e456308",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-e456308.0+e456308",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-e456308.0+e456308",
|
|
45
|
+
"@agoric/vat-data": "0.5.3-dev-e456308.0+e456308",
|
|
46
|
+
"@agoric/zone": "0.2.3-dev-e456308.0+e456308",
|
|
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-
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-e456308.0+e456308",
|
|
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": "
|
|
91
|
+
"gitHead": "e4563081e57304520ee75f85aff490fcdb640c20"
|
|
92
92
|
}
|
|
@@ -4,6 +4,7 @@ export function split<K extends AssetKind>(recoveryPurse: ERef<Purse<K>>, srcPay
|
|
|
4
4
|
export function splitMany<K extends AssetKind>(recoveryPurse: ERef<Purse<K>>, srcPaymentP: ERef<Payment<K>>, amounts: Amount<K>[]): Promise<Payment[]>;
|
|
5
5
|
import type { AssetKind } from './types.js';
|
|
6
6
|
import type { Purse } from './types.js';
|
|
7
|
+
import type { ERef } from '@endo/far';
|
|
7
8
|
import type { Payment } from './types.js';
|
|
8
9
|
import type { Amount } from './types.js';
|
|
9
10
|
//# sourceMappingURL=legacy-payment-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-payment-helpers.d.ts","sourceRoot":"","sources":["legacy-payment-helpers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legacy-payment-helpers.d.ts","sourceRoot":"","sources":["legacy-payment-helpers.js"],"names":[],"mappings":"AAkCO,sBAFsB,CAAC,mGADnB,OAAO,uBAYjB;AAiBM,wBAFsB,CAAC,uGADnB,OAAO,uBA2BjB;AAgBM,sBAFsB,CAAC,oIAY7B;AAgBM,0BAHW,CAAC,4HAqBlB;+BAxI0F,YAAY;2BAAZ,YAAY;0BADhF,WAAW;6BACyD,YAAY;4BAAZ,YAAY"}
|
|
@@ -4,7 +4,10 @@ import { mustMatch } from '@agoric/store';
|
|
|
4
4
|
import { E } from '@endo/far';
|
|
5
5
|
import { AmountMath } from './amountMath.js';
|
|
6
6
|
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @import {ERef} from '@endo/far');
|
|
9
|
+
* @import {Amount, AssetKind, AmountValue, AssetKindForValue, Payment, Brand, Purse} from './types.js'
|
|
10
|
+
*/
|
|
8
11
|
|
|
9
12
|
const { Fail } = assert;
|
|
10
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentLedger.d.ts","sourceRoot":"","sources":["paymentLedger.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paymentLedger.d.ts","sourceRoot":"","sources":["paymentLedger.js"],"names":[],"mappings":"AAqFO,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/paymentLedger.js
CHANGED
|
@@ -7,7 +7,9 @@ import { AmountMath } from './amountMath.js';
|
|
|
7
7
|
import { preparePaymentKind } from './payment.js';
|
|
8
8
|
import { preparePurseKind } from './purse.js';
|
|
9
9
|
|
|
10
|
+
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
|
|
10
11
|
import '@agoric/store/exported.js';
|
|
12
|
+
|
|
11
13
|
import { BrandI, makeIssuerInterfaces } from './typeGuards.js';
|
|
12
14
|
|
|
13
15
|
/**
|
package/src/purse.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export function preparePurseKind(issuerZone: import("@agoric/zone").Zone, name:
|
|
|
8
8
|
deposit(srcPayment: any, optAmountShape?: undefined): any;
|
|
9
9
|
withdraw(amount: any): any;
|
|
10
10
|
getCurrentAmount(): Amount<AssetKind>;
|
|
11
|
-
getCurrentAmountNotifier(): Notifier<any>;
|
|
11
|
+
getCurrentAmountNotifier(): import("@agoric/notifier").Notifier<any>;
|
|
12
12
|
getAllegedBrand(): Brand;
|
|
13
13
|
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
14
14
|
receive(...args: any[]): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transientNotifier.d.ts","sourceRoot":"","sources":["transientNotifier.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transientNotifier.d.ts","sourceRoot":"","sources":["transientNotifier.js"],"names":[],"mappings":"AAaO;;;EAoBN"}
|
package/src/transientNotifier.js
CHANGED
|
@@ -4,7 +4,10 @@ import { makeScalarBigWeakMapStore } from '@agoric/vat-data';
|
|
|
4
4
|
import { provideLazy } from '@agoric/store';
|
|
5
5
|
import { makeNotifierKit } from '@agoric/notifier';
|
|
6
6
|
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @import {Purse} from './types.js';
|
|
9
|
+
* @import {LatestTopic, NotifierRecord} from '@agoric/notifier');
|
|
10
|
+
*/
|
|
8
11
|
|
|
9
12
|
// Note: Virtual for high cardinality, but *not* durable, and so
|
|
10
13
|
// broken across an upgrade.
|
package/src/types.d.ts
CHANGED
|
@@ -379,4 +379,6 @@ export type MathHelpers<V extends AmountValue> = {
|
|
|
379
379
|
export type NatValue = bigint;
|
|
380
380
|
export type SetValue = any[];
|
|
381
381
|
import type { CopySet } from '@endo/patterns';
|
|
382
|
+
import type { ERef } from '@endo/far';
|
|
383
|
+
import type { LatestTopic } from '@agoric/notifier';
|
|
382
384
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;;mBAuBgC,CAAC;WADnB,KAAK,CACa,CAAC,AADZ,CAAC;WACR,iBAAiB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2BrB,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS;8BAYvC,CAAC;8BAaD,CAAC;wBAiBE,CAAC;;;;;;;;;;;;;;;;;eAAD,CAAC;;;;;;;;;;;;;kBAkBiB,CAAC;;;;4DAHc,OAAO,CAAC,OAAO,CAAC;oBAEjD,MAAM,MAAM;;;;;oBACZ,MAAM,WAAW,CAAC,CAAC,CAAC;oBAEpB,MAAM,OAAO;;;;;;;kEAUd,OAAO,CAAC,OAAO,CAAC;;;;;;;;8BAUD,CAAC,6DAAhB,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AAY,CAmBC,CAAC,AAnBA,CAAC;;;;;qBAKf,MAAM,YAAY;;;;;cAElB,CAAC,MAAM,EAAE,MAAM,CAYF,CAAC,AAZG,CAAC,KAAK,OAAO,CAYjB,CAAC,AAZkB,CAAC;;;;;;;;;;;;;;;;;;;;;;gBAYjC,MAAM,MAAM,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;oBAwBH,CAAC;;;;;;;qBAAb,MAAM,KAAK,CAAC,CAAC,CAAC;;;;;;;;;;;;;;wBA+BS,CAAC;;;;;cAXxB,CAAC,YAAY,EAWU,CAAC,AAXR,KAWO,CAAC,AAXF;;;;;iBAEtB,MASuB,CAAC,AATjB;;;;;eAEP,CAAC,KAAK,EAOiB,CAAC,AAPf,KAAK,OAAO;;;;;aAErB,CAAC,IAAI,EAKkB,CAAC,AALhB,EAAE,KAAK,EAKQ,CAAC,AALN,KAAK,OAAO;;;;eAE9B,CAAC,IAAI,EAGkB,CAAC,AAHhB,EAAE,KAAK,EAGQ,CAAC,AAHN,KAAK,OAAO;;;;;WAC9B,CAAC,IAAI,EAEkB,CAAC,AAFhB,EAAE,KAAK,EAEQ,CAAC,AAFN,KAEK,CAAC,AAFA;;;;;;gBAExB,CAAC,IAAI,EAAkB,CAAC,AAAhB,EAAE,KAAK,EAAQ,CAAC,AAAN,KAAK,CAAC;;uBAKxB,MAAM;;6BAtWW,gBAAgB;0BADxB,WAAW;iCAEY,kBAAkB"}
|
package/src/types.js
CHANGED
|
@@ -5,8 +5,9 @@ export {};
|
|
|
5
5
|
|
|
6
6
|
/// <reference types="ses"/>
|
|
7
7
|
/**
|
|
8
|
-
* @import {
|
|
9
|
-
* @import {CopySet, Key} from '@endo/patterns')
|
|
8
|
+
* @import {ERef} from '@endo/far');
|
|
9
|
+
* @import {CopySet, Key} from '@endo/patterns');
|
|
10
|
+
* @import {LatestTopic, NotifierRecord} from '@agoric/notifier');
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
/**
|