@agoric/ertp 0.16.3-dev-5dc325b.0 → 0.16.3-getting-started-dev-26244e8.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +759 -0
  2. package/package.json +17 -24
  3. package/src/amountMath.d.ts +53 -0
  4. package/src/amountMath.d.ts.map +1 -0
  5. package/src/amountMath.js +63 -57
  6. package/src/displayInfo.d.ts +2 -0
  7. package/src/displayInfo.d.ts.map +1 -0
  8. package/src/index.d.ts +4 -0
  9. package/src/index.d.ts.map +1 -0
  10. package/src/issuerKit.d.ts +19 -0
  11. package/src/issuerKit.d.ts.map +1 -0
  12. package/src/issuerKit.js +59 -145
  13. package/src/legacy-payment-helpers.d.ts +5 -0
  14. package/src/legacy-payment-helpers.d.ts.map +1 -0
  15. package/src/legacy-payment-helpers.js +28 -23
  16. package/src/mathHelpers/copyBagMathHelpers.d.ts +5 -0
  17. package/src/mathHelpers/copyBagMathHelpers.d.ts.map +1 -0
  18. package/src/mathHelpers/copyBagMathHelpers.js +3 -1
  19. package/src/mathHelpers/copySetMathHelpers.d.ts +5 -0
  20. package/src/mathHelpers/copySetMathHelpers.d.ts.map +1 -0
  21. package/src/mathHelpers/copySetMathHelpers.js +3 -1
  22. package/src/mathHelpers/natMathHelpers.d.ts +14 -0
  23. package/src/mathHelpers/natMathHelpers.d.ts.map +1 -0
  24. package/src/mathHelpers/natMathHelpers.js +7 -6
  25. package/src/mathHelpers/setMathHelpers.d.ts +6 -0
  26. package/src/mathHelpers/setMathHelpers.d.ts.map +1 -0
  27. package/src/payment.d.ts +3 -0
  28. package/src/payment.d.ts.map +1 -0
  29. package/src/payment.js +0 -5
  30. package/src/paymentLedger.d.ts +3 -0
  31. package/src/paymentLedger.d.ts.map +1 -0
  32. package/src/paymentLedger.js +40 -38
  33. package/src/purse.d.ts +13 -0
  34. package/src/purse.d.ts.map +1 -0
  35. package/src/purse.js +0 -18
  36. package/src/transientNotifier.d.ts +5 -0
  37. package/src/transientNotifier.d.ts.map +1 -0
  38. package/src/typeGuards.d.ts +42 -0
  39. package/src/typeGuards.d.ts.map +1 -0
  40. package/src/typeGuards.js +43 -37
  41. package/src/types-ambient.d.ts +376 -0
  42. package/src/types-ambient.d.ts.map +1 -0
  43. package/src/types-ambient.js +314 -218
  44. package/src/types.d.ts +376 -0
  45. package/src/types.d.ts.map +1 -0
  46. package/src/types.js +314 -218
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/ertp",
3
- "version": "0.16.3-dev-5dc325b.0+5dc325b",
3
+ "version": "0.16.3-getting-started-dev-26244e8.0+26244e8",
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",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "scripts": {
11
11
  "build": "exit 0",
12
- "prepack": "echo \"export {}; \" | cat - src/types-ambient.js > src/types.js && tsc --build --clean tsconfig.build.json",
12
+ "prepack": "echo \"export {}; \" | cat - src/types-ambient.js > src/types.js && tsc --build jsconfig.build.json",
13
13
  "postpack": "git clean -f '*.d.ts*' src/types.js",
14
14
  "test": "ava",
15
15
  "test:c8": "c8 $C8_OPTIONS ava",
@@ -19,7 +19,7 @@
19
19
  "lint-fix": "yarn lint:eslint --fix",
20
20
  "lint": "run-s --continue-on-error lint:*",
21
21
  "lint:eslint": "eslint .",
22
- "lint:types": "tsc"
22
+ "lint:types": "tsc -p jsconfig.json"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -39,22 +39,21 @@
39
39
  },
40
40
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
41
41
  "dependencies": {
42
- "@agoric/assert": "0.6.1-dev-5dc325b.0+5dc325b",
43
- "@agoric/notifier": "0.6.3-dev-5dc325b.0+5dc325b",
44
- "@agoric/store": "0.9.3-dev-5dc325b.0+5dc325b",
45
- "@agoric/vat-data": "0.5.3-dev-5dc325b.0+5dc325b",
46
- "@endo/eventual-send": "^0.17.5",
47
- "@endo/far": "^0.2.21",
48
- "@endo/marshal": "^0.8.8",
49
- "@endo/nat": "^4.1.30",
50
- "@endo/patterns": "^0.2.5",
51
- "@endo/promise-kit": "^0.2.59"
42
+ "@agoric/assert": "0.6.1-getting-started-dev-26244e8.0+26244e8",
43
+ "@agoric/notifier": "0.6.3-getting-started-dev-26244e8.0+26244e8",
44
+ "@agoric/store": "0.9.3-getting-started-dev-26244e8.0+26244e8",
45
+ "@agoric/swingset-vat": "0.32.3-getting-started-dev-26244e8.0+26244e8",
46
+ "@agoric/vat-data": "0.5.3-getting-started-dev-26244e8.0+26244e8",
47
+ "@endo/eventual-send": "0.17.2",
48
+ "@endo/far": "0.2.18",
49
+ "@endo/marshal": "0.8.5",
50
+ "@endo/nat": "4.1.27",
51
+ "@endo/promise-kit": "0.2.56"
52
52
  },
53
53
  "devDependencies": {
54
- "@agoric/swingset-vat": "0.32.3-dev-5dc325b.0+5dc325b",
55
- "@endo/bundle-source": "^2.7.0",
56
- "@fast-check/ava": "^1.1.5",
57
- "ava": "^5.3.0",
54
+ "@endo/bundle-source": "2.5.2-upstream-rollup",
55
+ "@fast-check/ava": "^1.1.3",
56
+ "ava": "^5.2.0",
58
57
  "tsd": "^0.28.1"
59
58
  },
60
59
  "files": [
@@ -75,16 +74,10 @@
75
74
  "files": [
76
75
  "test/**/test-*.js"
77
76
  ],
78
- "require": [
79
- "@endo/init/debug.js"
80
- ],
81
77
  "timeout": "5m"
82
78
  },
83
79
  "publishConfig": {
84
80
  "access": "public"
85
81
  },
86
- "typeCoverage": {
87
- "atLeast": 90.37
88
- },
89
- "gitHead": "5dc325b8cc1d94f46ecc18a7c67a14989feade11"
82
+ "gitHead": "26244e821f1a83cd5868f0c7d54aa480c8c17e5e"
90
83
  }
@@ -0,0 +1,53 @@
1
+ export function assertValueGetHelpers<V extends AmountValue>(value: V): MathHelpers<V>;
2
+ export namespace AmountMath {
3
+ export function make<K extends AssetKind>(brand: Brand<K>, allegedValue: AssetValueForKind<K>): Amount<K>;
4
+ export function coerce<K extends AssetKind>(brand: Brand<K>, allegedAmount: Amount<K>): Amount<K>;
5
+ export function getValue<K extends AssetKind>(brand: Brand<K>, amount: Amount<K>): AssetValueForKind<K>;
6
+ export const makeEmpty: {
7
+ (brand: Brand<AssetKind>): Amount<"nat">;
8
+ <K extends AssetKind>(brand: Brand<AssetKind>, assetKind: K): Amount<K>;
9
+ };
10
+ export function makeEmptyFromAmount<K extends AssetKind>(amount: Amount<K>): Amount<K>;
11
+ export function isEmpty(amount: Amount<AssetKind>, brand?: Brand<AssetKind> | undefined): boolean;
12
+ export { isGTE };
13
+ export function isEqual<K extends AssetKind>(leftAmount: Amount<K>, rightAmount: Amount<K>, brand?: Brand<K> | undefined): boolean;
14
+ export function add<K extends AssetKind>(leftAmount: Amount<K>, rightAmount: Amount<K>, brand?: Brand<K> | undefined): Amount<K>;
15
+ export function subtract<K extends AssetKind>(leftAmount: Amount<K>, rightAmount: Amount<K>, brand?: Brand<K> | undefined): Amount<K>;
16
+ export function min<K extends AssetKind>(x: Amount<K>, y: Amount<K>, brand?: Brand<K> | undefined): Amount<K>;
17
+ export function max<K extends AssetKind>(x: Amount<K>, y: Amount<K>, brand?: Brand<K> | undefined): Amount<K>;
18
+ }
19
+ /**
20
+ * Constants for the kinds of assets we support.
21
+ *
22
+ * @type {{ NAT: 'nat', SET: 'set', COPY_SET: 'copySet', COPY_BAG: 'copyBag' }}
23
+ */
24
+ export const AssetKind: {
25
+ NAT: 'nat';
26
+ SET: 'set';
27
+ COPY_SET: 'copySet';
28
+ COPY_BAG: 'copyBag';
29
+ };
30
+ /**
31
+ * @param {Amount} amount
32
+ */
33
+ export function getAssetKind(amount: Amount): AssetKindForValue<V>;
34
+ /**
35
+ * @param {AssetKind} allegedAK
36
+ */
37
+ export function assertAssetKind(allegedAK: AssetKind): void;
38
+ /**
39
+ * Returns true if the leftAmount is greater than or equal to the
40
+ * rightAmount. The notion of "greater than or equal to" depends
41
+ * on the kind of amount, as defined by the MathHelpers. For example,
42
+ * whether rectangle A is greater than rectangle B depends on whether rectangle
43
+ * A includes rectangle B as defined by the logic in MathHelpers.
44
+ *
45
+ * @template {AssetKind} K
46
+ * @param {Amount<K>} leftAmount
47
+ * @param {Amount<K>} rightAmount
48
+ * @param {Brand<K>} [brand]
49
+ * @returns {boolean}
50
+ */
51
+ declare function isGTE<K extends AssetKind>(leftAmount: Amount<K>, rightAmount: Amount<K>, brand?: Brand<K> | undefined): boolean;
52
+ export {};
53
+ //# sourceMappingURL=amountMath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amountMath.d.ts","sourceRoot":"","sources":["amountMath.js"],"names":[],"mappings":"AAuHO,uFAEkC;;IAyFjC,0GAKL;IAUO,kGAQP;IASS,wGAAyD;;;;;IAwB9C,uFAOpB;IAQQ,kGAOR;;IAYQ,mIAGR;IAcI,iIAIJ;IAeS,sIAIT;IAUI,8GAMqC;IAUrC,8GAMqC;;AA1W5C;;;;GAIG;AACH,wBAFU;IAAE,GAAG,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAO3E;AAoWH;;GAEG;AACH,qCAFW,MAAM,wBAOhB;AAzWD;;GAEG;AACH,2CAFW,SAAS,QAKnB;AAgJD;;;;;;;;;;;;GAYG;AACH,0HAFa,OAAO,CAKnB"}
package/src/amountMath.js CHANGED
@@ -11,12 +11,7 @@ const { quote: q, Fail } = assert;
11
11
  /**
12
12
  * Constants for the kinds of assets we support.
13
13
  *
14
- * @type {{
15
- * NAT: 'nat';
16
- * SET: 'set';
17
- * COPY_SET: 'copySet';
18
- * COPY_BAG: 'copyBag';
19
- * }}
14
+ * @type {{ NAT: 'nat', SET: 'set', COPY_SET: 'copySet', COPY_BAG: 'copyBag' }}
20
15
  */
21
16
  const AssetKind = harden({
22
17
  NAT: 'nat',
@@ -26,7 +21,9 @@ const AssetKind = harden({
26
21
  });
27
22
  const assetKindNames = harden(Object.values(AssetKind).sort());
28
23
 
29
- /** @param {AssetKind} allegedAK */
24
+ /**
25
+ * @param {AssetKind} allegedAK
26
+ */
30
27
  const assertAssetKind = allegedAK => {
31
28
  assetKindNames.includes(allegedAK) ||
32
29
  Fail`The assetKind ${allegedAK} must be one of ${q(assetKindNames)}`;
@@ -34,37 +31,42 @@ const assertAssetKind = allegedAK => {
34
31
  harden(assertAssetKind);
35
32
 
36
33
  /**
37
- * Amounts describe digital assets. From an amount, you can learn the brand of
38
- * digital asset as well as "how much" or "how many". Amounts have two parts: a
39
- * brand (loosely speaking, the type of digital asset) and the value (the answer
40
- * to "how much"). For example, in the phrase "5 bucks", "bucks" takes the role
41
- * of the brand and the value is 5. Amounts can describe fungible and
42
- * non-fungible digital assets. Amounts are pass-by-copy and can be made by and
43
- * sent to anyone.
34
+ * Amounts describe digital assets. From an amount, you can learn the
35
+ * brand of digital asset as well as "how much" or "how many". Amounts
36
+ * have two parts: a brand (loosely speaking, the type of digital
37
+ * asset) and the value (the answer to "how much"). For example, in
38
+ * the phrase "5 bucks", "bucks" takes the role of the brand and the
39
+ * value is 5. Amounts can describe fungible and non-fungible digital
40
+ * assets. Amounts are pass-by-copy and can be made by and sent to
41
+ * anyone.
44
42
  *
45
- * The issuer is the authoritative source of the amount in payments and purses.
46
- * The issuer must be able to do things such as add digital assets to a purse
47
- * and withdraw digital assets from a purse. To do so, it must know how to add
48
- * and subtract digital assets. Rather than hard-coding a particular solution,
49
- * we chose to parameterize the issuer with a collection of polymorphic
50
- * functions, which we call `AmountMath`. These math functions include concepts
43
+ * The issuer is the authoritative source of the amount in payments
44
+ * and purses. The issuer must be able to do things such as add
45
+ * digital assets to a purse and withdraw digital assets from a purse.
46
+ * To do so, it must know how to add and subtract digital assets.
47
+ * Rather than hard-coding a particular solution, we chose to
48
+ * parameterize the issuer with a collection of polymorphic functions,
49
+ * which we call `AmountMath`. These math functions include concepts
51
50
  * like addition, subtraction, and greater than or equal to.
52
51
  *
53
- * We also want to make sure there is no confusion as to what kind of asset we
54
- * are using. Thus, AmountMath includes checks of the `brand`, the unique
55
- * identifier for the type of digital asset. If the wrong brand is used in
56
- * AmountMath, an error is thrown and the operation does not succeed.
52
+ * We also want to make sure there is no confusion as to what kind of
53
+ * asset we are using. Thus, AmountMath includes checks of the
54
+ * `brand`, the unique identifier for the type of digital asset. If
55
+ * the wrong brand is used in AmountMath, an error is thrown and the
56
+ * operation does not succeed.
57
57
  *
58
- * AmountMath uses mathHelpers to do most of the work, but then adds the brand
59
- * to the result. The function `value` gets the value from the amount by
60
- * removing the brand (amount -> value), and the function `make` adds the brand
61
- * to produce an amount (value -> amount). The function `coerce` takes an amount
62
- * and checks it, returning an amount (amount -> amount).
58
+ * AmountMath uses mathHelpers to do most of the work, but then adds
59
+ * the brand to the result. The function `value` gets the value from
60
+ * the amount by removing the brand (amount -> value), and the
61
+ * function `make` adds the brand to produce an amount (value ->
62
+ * amount). The function `coerce` takes an amount and checks it,
63
+ * returning an amount (amount -> amount).
63
64
  *
64
- * Each issuer of digital assets has an associated brand in a one-to-one
65
- * mapping. In untrusted contexts, such as in analyzing payments and amounts, we
66
- * can get the brand and find the issuer which matches the brand. The issuer and
67
- * the brand mutually validate each other.
65
+ * Each issuer of digital assets has an associated brand in a
66
+ * one-to-one mapping. In untrusted contexts, such as in analyzing
67
+ * payments and amounts, we can get the brand and find the issuer
68
+ * which matches the brand. The issuer and the brand mutually validate
69
+ * each other.
68
70
  */
69
71
 
70
72
  const helpers = {
@@ -135,7 +137,7 @@ const optionalBrandCheck = (allegedBrand, brand) => {
135
137
  * @param {Amount<K>} leftAmount
136
138
  * @param {Amount<K>} rightAmount
137
139
  * @param {Brand<K> | undefined} brand
138
- * @returns {MathHelpers<any>}
140
+ * @returns {MathHelpers<*>}
139
141
  */
140
142
  const checkLRAndGetHelpers = (leftAmount, rightAmount, brand = undefined) => {
141
143
  assertRecord(leftAmount, 'leftAmount');
@@ -170,11 +172,11 @@ const coerceLR = (h, leftAmount, rightAmount) => {
170
172
  };
171
173
 
172
174
  /**
173
- * Returns true if the leftAmount is greater than or equal to the rightAmount.
174
- * The notion of "greater than or equal to" depends on the kind of amount, as
175
- * defined by the MathHelpers. For example, whether rectangle A is greater than
176
- * rectangle B depends on whether rectangle A includes rectangle B as defined by
177
- * the logic in MathHelpers.
175
+ * Returns true if the leftAmount is greater than or equal to the
176
+ * rightAmount. The notion of "greater than or equal to" depends
177
+ * on the kind of amount, as defined by the MathHelpers. For example,
178
+ * whether rectangle A is greater than rectangle B depends on whether rectangle
179
+ * A includes rectangle B as defined by the logic in MathHelpers.
178
180
  *
179
181
  * @template {AssetKind} K
180
182
  * @param {Amount<K>} leftAmount
@@ -192,8 +194,9 @@ const isGTE = (leftAmount, rightAmount, brand = undefined) => {
192
194
  *
193
195
  * Amounts are the canonical description of tradable goods. They are manipulated
194
196
  * by issuers and mints, and represent the goods and currency carried by purses
195
- * and payments. They can be used to represent things like currency, stock, and
196
- * the abstract right to participate in a particular exchange.
197
+ * and
198
+ * payments. They can be used to represent things like currency, stock, and the
199
+ * abstract right to participate in a particular exchange.
197
200
  */
198
201
  const AmountMath = {
199
202
  /**
@@ -212,8 +215,8 @@ const AmountMath = {
212
215
  return harden({ brand, value });
213
216
  },
214
217
  /**
215
- * Make sure this amount is valid enough, and return a corresponding valid
216
- * amount if so.
218
+ * Make sure this amount is valid enough, and return a corresponding
219
+ * valid amount if so.
217
220
  *
218
221
  * @template {AssetKind} K
219
222
  * @param {Brand<K>} brand
@@ -239,8 +242,8 @@ const AmountMath = {
239
242
  */
240
243
  getValue: (brand, amount) => AmountMath.coerce(brand, amount).value,
241
244
  /**
242
- * Return the amount representing an empty amount. This is the identity
243
- * element for MathHelpers.add and MatHelpers.subtract.
245
+ * Return the amount representing an empty amount. This is the
246
+ * identity element for MathHelpers.add and MatHelpers.subtract.
244
247
  *
245
248
  * @type {{
246
249
  * (brand: Brand): Amount<'nat'>;
@@ -254,8 +257,8 @@ const AmountMath = {
254
257
  return harden({ brand, value });
255
258
  },
256
259
  /**
257
- * Return the amount representing an empty amount, using another amount as the
258
- * template for the brand and assetKind.
260
+ * Return the amount representing an empty amount, using another
261
+ * amount as the template for the brand and assetKind.
259
262
  *
260
263
  * @template {AssetKind} K
261
264
  * @param {Amount<K>} amount
@@ -286,8 +289,8 @@ const AmountMath = {
286
289
  },
287
290
  isGTE,
288
291
  /**
289
- * Returns true if the leftAmount equals the rightAmount. We assume that if
290
- * isGTE is true in both directions, isEqual is also true
292
+ * Returns true if the leftAmount equals the rightAmount. We assume
293
+ * that if isGTE is true in both directions, isEqual is also true
291
294
  *
292
295
  * @template {AssetKind} K
293
296
  * @param {Amount<K>} leftAmount
@@ -303,8 +306,8 @@ const AmountMath = {
303
306
  * Returns a new amount that is the union of both leftAmount and rightAmount.
304
307
  *
305
308
  * For fungible amount this means adding the values. For other kinds of
306
- * amount, it usually means including all of the elements from both left and
307
- * right.
309
+ * amount, it usually means including all of the elements from both
310
+ * left and right.
308
311
  *
309
312
  * @template {AssetKind} K
310
313
  * @param {Amount<K>} leftAmount
@@ -318,11 +321,12 @@ const AmountMath = {
318
321
  return harden({ brand: leftAmount.brand, value });
319
322
  },
320
323
  /**
321
- * Returns a new amount that is the leftAmount minus the rightAmount (i.e.
322
- * everything in the leftAmount that is not in the rightAmount). If leftAmount
323
- * doesn't include rightAmount (subtraction results in a negative), throw an
324
- * error. Because the left amount must include the right amount, this is NOT
325
- * equivalent to set subtraction.
324
+ * Returns a new amount that is the leftAmount minus the rightAmount
325
+ * (i.e. everything in the leftAmount that is not in the
326
+ * rightAmount). If leftAmount doesn't include rightAmount
327
+ * (subtraction results in a negative), throw an error. Because the
328
+ * left amount must include the right amount, this is NOT equivalent
329
+ * to set subtraction.
326
330
  *
327
331
  * @template {AssetKind} K
328
332
  * @param {Amount<K>} leftAmount
@@ -370,7 +374,9 @@ const AmountMath = {
370
374
  };
371
375
  harden(AmountMath);
372
376
 
373
- /** @param {Amount} amount */
377
+ /**
378
+ * @param {Amount} amount
379
+ */
374
380
  const getAssetKind = amount => {
375
381
  assertRecord(amount, 'amount');
376
382
  const { value } = amount;
@@ -0,0 +1,2 @@
1
+ export function coerceDisplayInfo(allegedDisplayInfo: AdditionalDisplayInfo, assetKind: AssetKind): DisplayInfo;
2
+ //# sourceMappingURL=displayInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayInfo.d.ts","sourceRoot":"","sources":["displayInfo.js"],"names":[],"mappings":"AAYO,sDAJI,qBAAqB,aACrB,SAAS,GACP,WAAW,CAiBvB"}
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./amountMath.js";
2
+ export * from "./issuerKit.js";
3
+ export * from "./typeGuards.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export function prepareIssuerKit<K extends AssetKind>(issuerBaggage: MapStore<string, unknown>, optShutdownWithFailure?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined): IssuerKit<K>;
2
+ export function hasIssuer(baggage: MapStore<string, unknown>): any;
3
+ export function makeDurableIssuerKit<K extends AssetKind>(issuerBaggage: MapStore<string, unknown>, name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, { elementShape }?: Partial<{
4
+ elementShape: Pattern;
5
+ }> | undefined): IssuerKit<K>;
6
+ export function makeIssuerKit<K extends AssetKind = "nat">(name: string, assetKind?: K | undefined, displayInfo?: AdditionalDisplayInfo | undefined, optShutdownWithFailure?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, { elementShape }?: Partial<{
7
+ elementShape: Pattern;
8
+ }> | undefined): IssuerKit<K>;
9
+ export type Baggage = import('@agoric/vat-data').Baggage;
10
+ export type IssuerRecord<K extends AssetKind> = {
11
+ name: string;
12
+ assetKind: K;
13
+ displayInfo: AdditionalDisplayInfo;
14
+ elementShape: Pattern;
15
+ };
16
+ export type IssuerOptionsRecord = Partial<{
17
+ elementShape: Pattern;
18
+ }>;
19
+ //# sourceMappingURL=issuerKit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuerKit.d.ts","sourceRoot":"","sources":["issuerKit.js"],"names":[],"mappings":"AA2FO,uMAMN;AASM,mEAAsD;AAmCtD,0GAbI,MAAM;kBAnBmB,OAAO;8BA4C1C;AA+BM,iEAbI,MAAM;kBA9DmB,OAAO;8BA0FxC;sBA3LW,OAAO,kBAAkB,EAAE,OAAO;;UAKlC,MAAM;eACN,CAAC;iBACD,qBAAqB;kBACrB,OAAO;;kCAyFR,QAAQ;IAAC,YAAY,EAAE,OAAO,CAAA;CAAC,CAAC"}