@agoric/ertp 0.16.3-dev-0705f2c.0 → 0.16.3-dev-a9680dd.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 +8 -8
- package/src/amountMath.d.ts +4 -0
- package/src/amountMath.d.ts.map +1 -1
- package/src/amountMath.js +1 -2
- package/src/displayInfo.js +1 -1
- package/src/issuerKit.js +1 -1
- package/src/legacy-payment-helpers.d.ts.map +1 -1
- package/src/legacy-payment-helpers.js +2 -3
- package/src/mathHelpers/natMathHelpers.d.ts.map +1 -1
- package/src/mathHelpers/natMathHelpers.js +1 -1
- package/src/paymentLedger.d.ts.map +1 -1
- package/src/paymentLedger.js +2 -3
- package/src/purse.d.ts.map +1 -1
- package/src/purse.js +1 -2
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-a9680dd.0+a9680dd",
|
|
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/
|
|
43
|
-
"@agoric/
|
|
44
|
-
"@agoric/
|
|
45
|
-
"@agoric/
|
|
46
|
-
"@
|
|
42
|
+
"@agoric/notifier": "0.6.3-dev-a9680dd.0+a9680dd",
|
|
43
|
+
"@agoric/store": "0.9.3-dev-a9680dd.0+a9680dd",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-a9680dd.0+a9680dd",
|
|
45
|
+
"@agoric/zone": "0.2.3-dev-a9680dd.0+a9680dd",
|
|
46
|
+
"@endo/errors": "^1.2.2",
|
|
47
47
|
"@endo/eventual-send": "^1.2.2",
|
|
48
48
|
"@endo/far": "^1.1.2",
|
|
49
49
|
"@endo/marshal": "^1.5.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@endo/promise-kit": "^1.1.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-a9680dd.0+a9680dd",
|
|
56
56
|
"@endo/bundle-source": "^3.2.3",
|
|
57
57
|
"@fast-check/ava": "^1.1.5",
|
|
58
58
|
"ava": "^5.3.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"typeCoverage": {
|
|
89
89
|
"atLeast": 91.22
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "a9680dd04485e4a63c4fcd588ec38d2558243877"
|
|
92
92
|
}
|
package/src/amountMath.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export namespace AmountMath {
|
|
|
17
17
|
export function min<A extends Amount>(x: A, y: A, brand?: Brand | undefined): A;
|
|
18
18
|
export function max<A extends Amount>(x: A, y: A, brand?: Brand | undefined): A;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @import {CopyBag, CopySet} from '@endo/patterns';
|
|
22
|
+
* @import {Amount, AssetKind, AmountValue, AssetKindForValue, AssetValueForKind, Brand, CopyBagAmount, CopySetAmount, MathHelpers, NatAmount, NatValue, SetAmount, SetValue} from './types.js';
|
|
23
|
+
*/
|
|
20
24
|
/**
|
|
21
25
|
* Constants for the kinds of assets we support.
|
|
22
26
|
*
|
package/src/amountMath.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":"AAkHO,sCAJM,CAAC,SACH,C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AAC,GAAG,CAAC,GAAG,KAAK,CAOnC;IAUI,oBANiB,CAAC,SAAV,MAAQ,KACV,CAAC,KACD,CAAC,8BAEC,CAAC,CAQ8B;IAUvC,oBANiB,CAAC,SAAV,MAAQ,KACV,CAAC,KACD,CAAC,8BAEC,CAAC,CAQ8B;;AAvX9C;;;GAGG;AAEH;;;;;;;;;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;+BAlBgL,YAAY;AAyX/L,6BAA6B;AAC7B,qCADY,MAAM,yCAKjB;AAzWD,mCAAmC;AACnC,2CADY,SAAS,QAIpB;2BAzBkL,YAAY;8BAAZ,YAAY;6BAD5J,gBAAgB;6BAAhB,gBAAgB;8BACgI,YAAY;+BAAZ,YAAY;mCAAZ,YAAY;mCAAZ,YAAY;+BAAZ,YAAY;4BAAZ,YAAY;AA6J/L;;;;;;;;;;;;GAYG;AACH,uBANyB,CAAC,SAAZ,SAAU,cACb,OAAO,CAAC,CAAC,eACT,OAAO,CAAC,CAAC,iCAEP,OAAO,CAKnB"}
|
package/src/amountMath.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q, Fail } from '@endo/errors';
|
|
1
2
|
import { passStyleOf, assertRemotable, assertRecord } from '@endo/marshal';
|
|
2
3
|
|
|
3
4
|
import { M, matches } from '@agoric/store';
|
|
@@ -11,8 +12,6 @@ import { copyBagMathHelpers } from './mathHelpers/copyBagMathHelpers.js';
|
|
|
11
12
|
* @import {Amount, AssetKind, AmountValue, AssetKindForValue, AssetValueForKind, Brand, CopyBagAmount, CopySetAmount, MathHelpers, NatAmount, NatValue, SetAmount, SetValue} from './types.js';
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
|
-
const { quote: q, Fail } = assert;
|
|
15
|
-
|
|
16
15
|
/**
|
|
17
16
|
* Constants for the kinds of assets we support.
|
|
18
17
|
*
|
package/src/displayInfo.js
CHANGED
package/src/issuerKit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import { assert, Fail } from '@
|
|
3
|
+
import { assert, Fail } from '@endo/errors';
|
|
4
4
|
import { assertPattern } from '@agoric/store';
|
|
5
5
|
import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
6
6
|
import { makeDurableZone } from '@agoric/zone/durable.js';
|
|
@@ -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":"AAiCO,sBANgB,CAAC,SAAX,OAAS,iBACX,KAAK,KAAK,CAAC,eACX,KAAK,CAAC,CAAC,mBACP,OAAO,GACL,OAAO,CAAC,CAAC,CAAC,CAYtB;AAiBM,wBANkB,CAAC,SAAb,SAAW,iBACb,KAAK,MAAM,CAAC,CAAC,CAAC,iBACd,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,mBAClB,OAAO,GACL,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CA0B/B;AAgBM,sBANkB,CAAC,SAAb,SAAW,iBACb,KAAK,MAAM,CAAC,CAAC,CAAC,eACd,KAAK,QAAQ,CAAC,CAAC,CAAC,kBAChB,OAAO,CAAC,CAAC,GACP,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAYjC;AAgBM,0BANkB,CAAC,SAAb,SAAW,iBACb,KAAK,MAAM,CAAC,CAAC,CAAC,eACd,KAAK,QAAQ,CAAC,CAAC,CAAC,WAChB,OAAO,CAAC,CAAC,EAAE,GACT,OAAO,CAAC,OAAO,EAAE,CAAC,CAoB9B;6BAvI0F,YAAY;2BAAZ,YAAY;0BADhF,WAAW;+BACyD,YAAY;4BAAZ,YAAY"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Fail } from '@endo/errors';
|
|
4
4
|
import { E } from '@endo/far';
|
|
5
|
+
import { mustMatch } from '@agoric/store';
|
|
5
6
|
import { AmountMath } from './amountMath.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -9,8 +10,6 @@ import { AmountMath } from './amountMath.js';
|
|
|
9
10
|
* @import {Amount, AssetKind, AmountValue, AssetKindForValue, Payment, Brand, Purse} from './types.js'
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
|
-
const { Fail } = assert;
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
14
|
* @file This file contains safer helper function alternatives to the similarly
|
|
16
15
|
* named methods on issuer. These are parameterized by a purse used for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"natMathHelpers.d.ts","sourceRoot":"","sources":["natMathHelpers.js"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,6BAFU,YAAY,QAAQ,CAAC,CAgB5B;
|
|
1
|
+
{"version":3,"file":"natMathHelpers.d.ts","sourceRoot":"","sources":["natMathHelpers.js"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,6BAFU,YAAY,QAAQ,CAAC,CAgB5B;8BA7BsC,aAAa;iCAAb,aAAa"}
|
|
@@ -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":"AAoFO,qCAVkB,CAAC,SAAb,SAAW,cACb,OAAO,cAAc,EAAE,IAAI,QAC3B,MAAM,aACN,CAAC,eACD,YAAY,CAAC,CAAC,gBACd,OAAO,qBACP,kBAAkB,6DAEhB,cAAc,CAAC,CAAC,CAyT5B;+BA5XwH,YAAY;iCAAZ,YAAY;wCAAZ,YAAY;yCAC/F,sBAAsB;mCAD6D,YAAY"}
|
package/src/paymentLedger.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/// <reference types="@agoric/store/exported.js" />
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define */
|
|
6
|
+
import { X, q, Fail, annotateError } from '@endo/errors';
|
|
6
7
|
import { isPromise } from '@endo/promise-kit';
|
|
7
8
|
import { mustMatch, M, keyEQ } from '@agoric/store';
|
|
8
9
|
import { AmountMath } from './amountMath.js';
|
|
@@ -17,8 +18,6 @@ import { BrandI, makeIssuerInterfaces } from './typeGuards.js';
|
|
|
17
18
|
* @import {Key} from '@endo/patterns';
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
|
-
const { details: X, quote: q, Fail } = assert;
|
|
21
|
-
|
|
22
21
|
/**
|
|
23
22
|
* @param {Brand} brand
|
|
24
23
|
* @param {AssetKind} assetKind
|
|
@@ -133,7 +132,7 @@ export const preparePaymentLedger = (
|
|
|
133
132
|
try {
|
|
134
133
|
optShutdownWithFailure(reason);
|
|
135
134
|
} catch (errInShutdown) {
|
|
136
|
-
|
|
135
|
+
annotateError(errInShutdown, X`Caused by: ${reason}`);
|
|
137
136
|
throw errInShutdown;
|
|
138
137
|
}
|
|
139
138
|
}
|
package/src/purse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purse.d.ts","sourceRoot":"","sources":["purse.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"purse.d.ts","sourceRoot":"","sources":["purse.js"],"names":[],"mappings":"AA2BO,6CAfI,OAAO,cAAc,EAAE,IAAI,QAC3B,MAAM,aACN,SAAS,SACT,KAAK,aACL;IACV,KAAS,EAAE,OAAO,gBAAgB,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IACxD,YAAgB,EAAE,OAAO,gBAAgB,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;CAC5D,gBACO;IACV,eAAmB,EAAE,GAAG,CAAC;IACzB,gBAAoB,EAAE,GAAG,CAAC;CACvB,qBACO,kBAAkB,uBAClB,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;;;;;;;;;;;GA4JlD;+BA/KwG,YAAY;2BAAZ,YAAY;wCAAZ,YAAY;6BAAZ,YAAY"}
|
package/src/purse.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fail } from '@endo/errors';
|
|
1
2
|
import { M, makeCopySet } from '@agoric/store';
|
|
2
3
|
import { AmountMath } from './amountMath.js';
|
|
3
4
|
import { makeTransientNotifierKit } from './transientNotifier.js';
|
|
@@ -5,8 +6,6 @@ import { makeAmountStore } from './amountStore.js';
|
|
|
5
6
|
|
|
6
7
|
/** @import {Amount, AssetKind, AmountValue, AssetKindForValue, RecoverySetsOption, Brand, Payment} from './types.js' */
|
|
7
8
|
|
|
8
|
-
const { Fail } = assert;
|
|
9
|
-
|
|
10
9
|
const EMPTY_COPY_SET = makeCopySet([]);
|
|
11
10
|
|
|
12
11
|
// TODO Type InterfaceGuard better than InterfaceGuard<any>
|