@agoric/ertp 0.16.3-dev-34b85df.0 → 0.16.3-dev-3d98aac.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 +2 -1
- package/src/amountMath.d.ts.map +1 -1
- package/src/amountMath.js +5 -3
- package/src/issuerKit.d.ts +4 -2
- package/src/issuerKit.d.ts.map +1 -1
- package/src/issuerKit.js +4 -2
- 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 +1 -1
- package/src/paymentLedger.d.ts +1 -0
- package/src/paymentLedger.d.ts.map +1 -1
- package/src/paymentLedger.js +1 -0
- package/src/typeGuards.d.ts +4 -0
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +1 -0
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-3d98aac.0+3d98aac",
|
|
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-
|
|
43
|
-
"@agoric/store": "0.9.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/zone": "0.2.3-dev-
|
|
42
|
+
"@agoric/notifier": "0.6.3-dev-3d98aac.0+3d98aac",
|
|
43
|
+
"@agoric/store": "0.9.3-dev-3d98aac.0+3d98aac",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-3d98aac.0+3d98aac",
|
|
45
|
+
"@agoric/zone": "0.2.3-dev-3d98aac.0+3d98aac",
|
|
46
46
|
"@endo/errors": "^1.2.9",
|
|
47
47
|
"@endo/eventual-send": "^1.3.0",
|
|
48
48
|
"@endo/far": "^1.1.10",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@endo/promise-kit": "^1.1.9"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-3d98aac.0+3d98aac",
|
|
56
56
|
"@endo/bundle-source": "^3.5.1",
|
|
57
57
|
"@fast-check/ava": "^1.1.5",
|
|
58
58
|
"ava": "^5.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"typeCoverage": {
|
|
80
|
-
"atLeast": 91.
|
|
80
|
+
"atLeast": 91.88
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "3d98aacc1e35f9e3cc96378fb266f59ae9486997"
|
|
83
83
|
}
|
package/src/amountMath.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export namespace AssetKind {
|
|
|
9
9
|
let COPY_BAG: "copyBag";
|
|
10
10
|
}
|
|
11
11
|
export function assertAssetKind(allegedAK: AssetKind): void;
|
|
12
|
-
export function assertValueGetHelpers<V>(value: V): MathHelpers<V>;
|
|
12
|
+
export function assertValueGetHelpers<V extends AmountValue>(value: V): MathHelpers<V>;
|
|
13
13
|
export namespace AmountMath {
|
|
14
14
|
export function make<B extends Brand, V extends NatValue | CopySet | CopyBag | SetValue>(brand: B, allegedValue: V): B extends Brand<"nat"> ? NatAmount : V extends NatValue ? NatAmount : V extends CopySet ? CopySetAmount<V["payload"][0]> : V extends CopyBag ? CopyBagAmount<V["payload"][0][0]> : V extends SetValue ? SetAmount<V[0]> : never;
|
|
15
15
|
export function coerce<A extends Amount>(brand: Brand, allegedAmount: A): A;
|
|
@@ -28,6 +28,7 @@ export namespace AmountMath {
|
|
|
28
28
|
export function max<A extends Amount>(x: A, y: A, brand?: Brand): A;
|
|
29
29
|
}
|
|
30
30
|
export function getAssetKind(amount: Amount): "copySet" | "set" | "nat" | "copyBag";
|
|
31
|
+
import type { AmountValue } from './types.js';
|
|
31
32
|
import type { MathHelpers } from './types.js';
|
|
32
33
|
import type { Brand } from './types.js';
|
|
33
34
|
import type { NatValue } from './types.js';
|
package/src/amountMath.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":";;;wBAkBU,CAAC,OAAO,SAAS,EAAE,MAAM,OAAO,SAAS,CAAC;;;;;;;AAY7C,2CADK,SAAS,QAIpB;AA8EM,
|
|
1
|
+
{"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":";;;wBAkBU,CAAC,OAAO,SAAS,EAAE,MAAM,OAAO,SAAS,CAAC;;;;;;;AAY7C,2CADK,SAAS,QAIpB;AA8EM,sCAJoB,CAAC,SAAf,WAAa,SACf,CAAC,GACC,YAAY,CAAC,CAAC,CAIc;;IAwGjC,qBAhBe,CAAC,SAAT,KAAO,EACmC,CAAC,SAA1C,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAS,SAC3C,CAAC,gBACD,CAAC,GACC,CAAC,SAAS,MAAM,KAAK,CAAC,GAC1B,SAAS,GACT,CAAC,SAAS,QAAQ,GAChB,SAAS,GACT,CAAC,SAAS,OAAO,GACf,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9B,CAAC,SAAS,OAAO,GACf,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACjC,CAAC,SAAS,QAAQ,GAChB,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GACf,KAAK,CAQrB;IAUO,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AAO,CAAC,CAAC,UACT,MAAM,CAAC,CAAC,GACN,OAAO,CAKnB"}
|
package/src/amountMath.js
CHANGED
|
@@ -9,7 +9,7 @@ import { copyBagMathHelpers } from './mathHelpers/copyBagMathHelpers.js';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @import {CopyBag, CopySet} from '@endo/patterns';
|
|
12
|
-
* @import {Amount, AssetValueForKind, Brand, CopyBagAmount, CopySetAmount, MathHelpers, NatAmount, NatValue, SetAmount, SetValue} from './types.js';
|
|
12
|
+
* @import {Amount, AmountValue, AssetValueForKind, Brand, CopyBagAmount, CopySetAmount, MathHelpers, NatAmount, NatValue, SetAmount, SetValue} from './types.js';
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
// NB: AssetKind is both a constant for enumerated values and a type for those values.
|
|
@@ -105,7 +105,7 @@ const assertValueGetAssetKind = value => {
|
|
|
105
105
|
*
|
|
106
106
|
* Made available only for testing, but it is harmless for other uses.
|
|
107
107
|
*
|
|
108
|
-
* @template V
|
|
108
|
+
* @template {AmountValue} V
|
|
109
109
|
* @param {V} value
|
|
110
110
|
* @returns {MathHelpers<V>}
|
|
111
111
|
*/
|
|
@@ -113,7 +113,9 @@ export const assertValueGetHelpers = value =>
|
|
|
113
113
|
// @ts-expect-error cast
|
|
114
114
|
helpers[assertValueGetAssetKind(value)];
|
|
115
115
|
|
|
116
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* @type {(allegedBrand: Brand<any>, brand?: Brand<any>) => void}
|
|
118
|
+
*/
|
|
117
119
|
const optionalBrandCheck = (allegedBrand, brand) => {
|
|
118
120
|
if (brand !== undefined) {
|
|
119
121
|
assertRemotable(brand, 'brand');
|
package/src/issuerKit.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function upgradeIssuerKit<K extends AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, optShutdownWithFailure?: ShutdownWithFailure, recoverySetsOption?: RecoverySetsOption): IssuerKit<K>;
|
|
2
2
|
export function hasIssuer(baggage: import("@agoric/vat-data").Baggage): boolean;
|
|
3
3
|
export function makeDurableIssuerKit<K extends AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, name: string, assetKind?: K, displayInfo?: AdditionalDisplayInfo, optShutdownWithFailure?: ShutdownWithFailure, { elementShape, recoverySetsOption }?: IssuerOptionsRecord): IssuerKit<K>;
|
|
4
|
-
export function prepareIssuerKit<O extends IssuerOptionsRecord, K extends AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, name: string, assetKind?: K, displayInfo?: AdditionalDisplayInfo, optShutdownWithFailure?: ShutdownWithFailure, options?: O): O["elementShape"] extends TypedPattern<infer T> ? IssuerKit<K, T> : IssuerKit<K>;
|
|
5
|
-
export function makeIssuerKit<K extends AssetKind = "nat", O extends IssuerOptionsRecord = {}>(name: string, assetKind?: K, displayInfo?: AdditionalDisplayInfo, optShutdownWithFailure?: ShutdownWithFailure, { elementShape, recoverySetsOption }?: O): O["elementShape"] extends TypedPattern<infer T> ? IssuerKit<K, T> : IssuerKit<K>;
|
|
4
|
+
export function prepareIssuerKit<O extends IssuerOptionsRecord, K extends AssetKind>(issuerBaggage: import("@agoric/vat-data").Baggage, name: string, assetKind?: K, displayInfo?: AdditionalDisplayInfo, optShutdownWithFailure?: ShutdownWithFailure, options?: O): O["elementShape"] extends TypedPattern<infer T extends Key> ? IssuerKit<K, T> : IssuerKit<K>;
|
|
5
|
+
export function makeIssuerKit<K extends AssetKind = "nat", O extends IssuerOptionsRecord = {}>(name: string, assetKind?: K, displayInfo?: AdditionalDisplayInfo, optShutdownWithFailure?: ShutdownWithFailure, { elementShape, recoverySetsOption }?: O): O["elementShape"] extends TypedPattern<infer T extends Key> ? IssuerKit<K, T> : IssuerKit<K>;
|
|
6
6
|
export type IssuerRecord<K extends AssetKind> = {
|
|
7
7
|
name: string;
|
|
8
8
|
assetKind: K;
|
|
@@ -32,5 +32,7 @@ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
|
32
32
|
import type { RecoverySetsOption } from './types.js';
|
|
33
33
|
import type { IssuerKit } from './types.js';
|
|
34
34
|
import type { AdditionalDisplayInfo } from './types.js';
|
|
35
|
+
import type { Key } from '@endo/patterns';
|
|
35
36
|
import type { TypedPattern } from '@agoric/internal';
|
|
37
|
+
import type { Pattern } from '@endo/patterns';
|
|
36
38
|
//# sourceMappingURL=issuerKit.d.ts.map
|
package/src/issuerKit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerKit.d.ts","sourceRoot":"","sources":["issuerKit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"issuerKit.d.ts","sourceRoot":"","sources":["issuerKit.js"],"names":[],"mappings":"AAiHO,iCAbkB,CAAC,SAAZ,SAAU,iBACb,OAAO,kBAAkB,EAAE,OAAO,2BAClC,mBAAmB,uBAOnB,kBAAkB,GAEhB,UAAU,CAAC,CAAC,CA4BxB;AAQM,mCAFI,OAAO,kBAAkB,EAAE,OAAO,WAEgB;AAoDtD,qCA1BkB,CAAC,SAAZ,SAAU,iBAYb,OAAO,kBAAkB,EAAE,OAAO,QAClC,MAAM,cACN,CAAC,gBACD,qBAAqB,2BACrB,mBAAmB,yCAOnB,mBAAmB,GACjB,UAAU,CAAC,CAAC,CA2BxB;AAoCM,iCA7B4B,CAAC,SAAtB,mBAAoB,EACT,CAAC,SAAZ,SAAU,iBAYb,OAAO,kBAAkB,EAAE,OAAO,QAClC,MAAM,cACN,CAAC,gBACD,qBAAqB,2BACrB,mBAAmB,YAOnB,CAAC,GACC,CAAC,CAAC,cAAc,CAAC,SAAS,aAAa,MAAM,CAAC,SAAS,GAAG,CAAC,GAC/D,UAAU,CAAC,EAAE,CAAC,CAAC,GACf,UAAU,CAAC,CAAC,CAyCpB;AAqCM,8BAzBmB,CAAC,SAAb,SAAU,UACY,CAAC,SAAvB,mBAAoB,aACvB,MAAM,cAMN,CAAC,gBAGD,qBAAqB,2BAErB,mBAAmB,yCAOnB,CAAC,GACC,CAAC,CAAC,cAAc,CAAC,SAAS,aAAa,MAAM,CAAC,SAAS,GAAG,CAAC,GAC/D,UAAU,CAAC,EAAE,CAAC,CAAC,GACf,UAAU,CAAC,CAAC,CAmBlB;yBA7UsB,CAAC,SAAZ,SAAU;UAEV,MAAM;eACN,CAAC;iBACD,qBAAqB;kBACrB,OAAO;;;;;;;;;;;;;;;;kCA0IR,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;0BA/JsC,iBAAiB;yCAMtB,sBAAsB;wCAD0B,YAAY;+BAAZ,YAAY;2CAAZ,YAAY;yBAGtC,gBAAgB;kCAD7C,kBAAkB;6BAEvB,gBAAgB"}
|
package/src/issuerKit.js
CHANGED
|
@@ -13,6 +13,8 @@ import { preparePaymentLedger } from './paymentLedger.js';
|
|
|
13
13
|
* @import {AdditionalDisplayInfo, RecoverySetsOption, IssuerKit, PaymentLedger} from './types.js';
|
|
14
14
|
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
15
15
|
* @import {TypedPattern} from '@agoric/internal';
|
|
16
|
+
* @import {CopyTaggedInterface, Key, RemotableObject} from '@endo/patterns';
|
|
17
|
+
* @import {Pattern} from '@endo/patterns';
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
20
|
/**
|
|
@@ -252,7 +254,7 @@ harden(makeDurableIssuerKit);
|
|
|
252
254
|
* anything else is corrupted by that corrupted state. See
|
|
253
255
|
* https://github.com/Agoric/agoric-sdk/issues/3434
|
|
254
256
|
* @param {O} [options]
|
|
255
|
-
* @returns {O['elementShape'] extends TypedPattern<infer T>
|
|
257
|
+
* @returns {O['elementShape'] extends TypedPattern<infer T extends Key>
|
|
256
258
|
* ? IssuerKit<K, T>
|
|
257
259
|
* : IssuerKit<K>}
|
|
258
260
|
*/
|
|
@@ -328,7 +330,7 @@ harden(prepareIssuerKit);
|
|
|
328
330
|
* anything else is corrupted by that corrupted state. See
|
|
329
331
|
* https://github.com/Agoric/agoric-sdk/issues/3434
|
|
330
332
|
* @param {O} [options]
|
|
331
|
-
* @returns {O['elementShape'] extends TypedPattern<infer T>
|
|
333
|
+
* @returns {O['elementShape'] extends TypedPattern<infer T extends Key>
|
|
332
334
|
* ? IssuerKit<K, T>
|
|
333
335
|
* : IssuerKit<K>}
|
|
334
336
|
*/
|
|
@@ -7,5 +7,6 @@ import type { Key } from '@endo/patterns';
|
|
|
7
7
|
import type { Purse } from './types.js';
|
|
8
8
|
import type { ERef } from '@endo/far';
|
|
9
9
|
import type { Payment } from './types.js';
|
|
10
|
+
import type { Pattern } from '@endo/patterns';
|
|
10
11
|
import type { Amount } from './types.js';
|
|
11
12
|
//# 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":"AAmCO,sBAPkB,CAAC,SAAb,SAAW,EACL,CAAC,SAAP,GAAK,iBACP,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,eACjB,KAAK,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,mBACnB,OAAO,GACL,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAWlC;AAkBM,wBAPkB,CAAC,SAAb,SAAW,EACL,CAAC,SAAP,GAAK,iBACP,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,iBACjB,KAAK,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mBACrB,OAAO,GACL,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CA8BlC;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,CAA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K,YAAY"}
|
package/src/paymentLedger.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
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): PaymentLedger<K>;
|
|
2
2
|
import type { AssetKind } from './types.js';
|
|
3
3
|
import type { DisplayInfo } from './types.js';
|
|
4
|
+
import type { Pattern } from '@endo/patterns';
|
|
4
5
|
import type { RecoverySetsOption } from './types.js';
|
|
5
6
|
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
6
7
|
import type { PaymentLedger } from './types.js';
|
|
@@ -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":"AAsFO,qCAVkB,CAAC,SAAb,SAAW,cACb,OAAO,cAAc,EAAE,IAAI,QAC3B,MAAM,aACN,CAAC,eACD,YAAY,CAAC,CAAC,gBACd,OAAO,qBACP,kBAAkB,2BAClB,mBAAmB,GACjB,cAAc,CAAC,CAAC,CAyT5B;+BA9XwH,YAAY;iCAAZ,YAAY;6BADtG,gBAAgB;wCAC0E,YAAY;yCAC/F,sBAAsB;mCAD6D,YAAY"}
|
package/src/paymentLedger.js
CHANGED
|
@@ -12,6 +12,7 @@ import { preparePurseKind } from './purse.js';
|
|
|
12
12
|
import { BrandI, makeIssuerInterfaces } from './typeGuards.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
+
* @import {Key, Pattern} from '@endo/patterns';
|
|
15
16
|
* @import {Amount, AssetKind, DisplayInfo, PaymentLedger, Payment, Brand, RecoverySetsOption, Purse, Issuer, Mint} from './types.js'
|
|
16
17
|
* @import {ShutdownWithFailure} from '@agoric/swingset-vat'
|
|
17
18
|
* @import {TypedPattern} from '@agoric/internal';
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {AmountValue, Ratio} from './types.js'
|
|
3
3
|
* @import {TypedPattern} from '@agoric/internal'
|
|
4
|
+
* @import {CopyBag, CopySet, Pattern} from '@endo/patterns';
|
|
4
5
|
*/
|
|
5
6
|
export const BrandShape: import("@endo/patterns").Matcher;
|
|
6
7
|
export const IssuerShape: import("@endo/patterns").Matcher;
|
|
@@ -85,5 +86,8 @@ declare const AmountValueShape: import("@endo/patterns").Matcher;
|
|
|
85
86
|
import type { Ratio } from './types.js';
|
|
86
87
|
import type { TypedPattern } from '@agoric/internal';
|
|
87
88
|
import type { AmountValue } from './types.js';
|
|
89
|
+
import type { CopySet } from '@endo/patterns';
|
|
90
|
+
import type { CopyBag } from '@endo/patterns';
|
|
91
|
+
import type { Pattern } from '@endo/patterns';
|
|
88
92
|
export {};
|
|
89
93
|
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;GAIG;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,0CAA2C,GAAG,CAAC;AAE/C,8DAAuE;AAEvE,gEAaE;;;;;;;;AAaF;;;;;GAKG;AAOI,kDAJI,OAAO,mBACP,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEjB;AAhLD,iEAKE;2BAxEmC,YAAY;kCAClB,kBAAkB;iCADZ,YAAY;6BAEL,gBAAgB;6BAAhB,gBAAgB;6BAAhB,gBAAgB"}
|
package/src/typeGuards.js
CHANGED
|
@@ -4,6 +4,7 @@ import { M, matches, getInterfaceGuardPayload } from '@endo/patterns';
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {AmountValue, Ratio} from './types.js'
|
|
6
6
|
* @import {TypedPattern} from '@agoric/internal'
|
|
7
|
+
* @import {CopyBag, CopySet, Pattern} from '@endo/patterns';
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
export const BrandShape = M.remotable('Brand');
|