@agoric/zoe 0.26.3-dev-16095c5.0 → 0.26.3-dev-980ff41.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.js CHANGED
@@ -1,11 +1 @@
1
- // @jessie-check
2
-
3
- import './src/contractFacet/types-ambient.js';
4
- import './src/zoeService/types-ambient.js';
5
- import './src/contractSupport/types-ambient.js';
6
- import './src/contracts/exported.js';
7
- import './src/types-ambient.js';
8
- import '@agoric/notifier/exported.js';
9
- import '@agoric/ertp/exported.js';
10
- import '@agoric/store/exported.js';
11
- import '@agoric/swingset-vat/exported.js';
1
+ // Dummy file for .d.ts twin to declare ambients
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-dev-16095c5.0+16095c5",
3
+ "version": "0.26.3-dev-980ff41.0+980ff41",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/assert": "0.6.1-dev-16095c5.0+16095c5",
47
- "@agoric/base-zone": "0.1.1-dev-16095c5.0+16095c5",
48
- "@agoric/ertp": "0.16.3-dev-16095c5.0+16095c5",
49
- "@agoric/internal": "0.3.3-dev-16095c5.0+16095c5",
50
- "@agoric/notifier": "0.6.3-dev-16095c5.0+16095c5",
51
- "@agoric/store": "0.9.3-dev-16095c5.0+16095c5",
52
- "@agoric/swingset-liveslots": "0.10.3-dev-16095c5.0+16095c5",
53
- "@agoric/swingset-vat": "0.32.3-dev-16095c5.0+16095c5",
54
- "@agoric/time": "0.3.3-dev-16095c5.0+16095c5",
55
- "@agoric/vat-data": "0.5.3-dev-16095c5.0+16095c5",
56
- "@agoric/zone": "0.2.3-dev-16095c5.0+16095c5",
46
+ "@agoric/assert": "0.6.1-dev-980ff41.0+980ff41",
47
+ "@agoric/base-zone": "0.1.1-dev-980ff41.0+980ff41",
48
+ "@agoric/ertp": "0.16.3-dev-980ff41.0+980ff41",
49
+ "@agoric/internal": "0.3.3-dev-980ff41.0+980ff41",
50
+ "@agoric/notifier": "0.6.3-dev-980ff41.0+980ff41",
51
+ "@agoric/store": "0.9.3-dev-980ff41.0+980ff41",
52
+ "@agoric/swingset-liveslots": "0.10.3-dev-980ff41.0+980ff41",
53
+ "@agoric/swingset-vat": "0.32.3-dev-980ff41.0+980ff41",
54
+ "@agoric/time": "0.3.3-dev-980ff41.0+980ff41",
55
+ "@agoric/vat-data": "0.5.3-dev-980ff41.0+980ff41",
56
+ "@agoric/zone": "0.2.3-dev-980ff41.0+980ff41",
57
57
  "@endo/bundle-source": "^3.2.3",
58
58
  "@endo/captp": "^4.2.0",
59
59
  "@endo/common": "^1.2.2",
@@ -68,7 +68,7 @@
68
68
  "yargs-parser": "^21.1.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@agoric/kmarshal": "0.1.1-dev-16095c5.0+16095c5",
71
+ "@agoric/kmarshal": "0.1.1-dev-980ff41.0+980ff41",
72
72
  "@endo/init": "^1.1.2",
73
73
  "ava": "^5.3.0",
74
74
  "c8": "^9.1.0",
@@ -142,5 +142,5 @@
142
142
  "typeCoverage": {
143
143
  "atLeast": 84.92
144
144
  },
145
- "gitHead": "16095c5076043133aff0f25721131be2ca1ef5af"
145
+ "gitHead": "980ff41770a66215cd87f9ce6f12151fc4396fd6"
146
146
  }
@@ -1,9 +1,9 @@
1
1
  export function getPriceDescription(quote: PriceQuote): PriceDescription;
2
- export function getAmountIn(quote: PriceQuote): import("@agoric/ertp/exported.js").NatAmount;
3
- export function getAmountOut(quote: PriceQuote): import("@agoric/ertp/exported.js").NatAmount;
2
+ export function getAmountIn(quote: PriceQuote): import("@agoric/ertp/src/types.js").NatAmount;
3
+ export function getAmountOut(quote: PriceQuote): import("@agoric/ertp/src/types.js").NatAmount;
4
4
  /** @type {(quote: PriceQuote) => import('@agoric/time').Timestamp} */
5
5
  export const getTimestamp: (quote: PriceQuote) => import("@agoric/time").Timestamp;
6
- export function unitAmount(brand: Brand<"nat">): Promise<import("@agoric/ertp/exported.js").NatAmount>;
6
+ export function unitAmount(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
7
7
  import type { PriceQuote } from '@agoric/zoe/tools/types.js';
8
8
  import type { PriceDescription } from '@agoric/zoe/tools/types.js';
9
9
  //# sourceMappingURL=priceQuote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAqBO,yEAIN;AAGM,6FAAgE;AAEhE,8FAAkE;AACzE,sEAAsE;AACtE,kDADkC,OAAO,cAAc,EAAE,SAAS,CACQ;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,yDAMvB;gCAjC4F,4BAA4B;sCAA5B,4BAA4B"}
1
+ {"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAqBO,yEAIN;AAGM,8FAAgE;AAEhE,+FAAkE;AACzE,sEAAsE;AACtE,kDADkC,OAAO,cAAc,EAAE,SAAS,CACQ;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,0DAMvB;gCAjC4F,4BAA4B;sCAA5B,4BAA4B"}
@@ -9,7 +9,7 @@ export type PriceAggregatorContract = {
9
9
  POLL_INTERVAL: bigint;
10
10
  brandIn: globalThis.Brand<"nat">;
11
11
  brandOut: globalThis.Brand<"nat">;
12
- unitAmountIn: import("@agoric/ertp/exported.js").NatAmount;
12
+ unitAmountIn: import("@agoric/ertp/src/types.js").NatAmount;
13
13
  };
14
14
  privateArgs: {
15
15
  marshaller: {
@@ -92,7 +92,7 @@ type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) =
92
92
  type WrapIssuerKitWithZoeMint = (keyword: Keyword, localIssuerKit: IssuerKit) => any;
93
93
  type MakeZoeMint = (keyword: Keyword, assetKind?: globalThis.AssetKind | undefined, displayInfo?: globalThis.AdditionalDisplayInfo | undefined, options?: Partial<{
94
94
  elementShape: globalThis.Pattern;
95
- recoverySetsOption: import("@agoric/ertp/exported.js").RecoverySetsOption;
95
+ recoverySetsOption: import("@agoric/ertp/src/types.js").RecoverySetsOption;
96
96
  }> | undefined) => ZoeMint;
97
97
  type MakeNoEscrowSeat = (initialAllocation: Allocation, proposal: ProposalRecord, exitObj: ExitObj, seatHandle: SeatHandle) => UserSeat;
98
98
  type ReplaceAllocations = (seatHandleAllocations: SeatHandleAllocation[]) => any;
@@ -8,7 +8,7 @@ type Keyword = string;
8
8
  */
9
9
  type InvitationHandle = Handle<"Invitation">;
10
10
  type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
11
- type IssuerPKeywordRecord = Record<Keyword, ERef<Issuer<any>>>;
11
+ type IssuerPKeywordRecord = Record<Keyword, import("@endo/far").ERef<Issuer<any>>>;
12
12
  type BrandKeywordRecord = Record<Keyword, Brand<any>>;
13
13
  type StandardTerms = {
14
14
  /**
@@ -24,7 +24,7 @@ type StandardTerms = {
24
24
  };
25
25
  type AnyTerms = StandardTerms & Record<string, any>;
26
26
  type InstanceRecord = {
27
- installation: Installation;
27
+ installation: import("./zoeService/utils.js").Installation<any>;
28
28
  instance: import("./zoeService/utils.js").Instance<any>;
29
29
  /**
30
30
  * - contract parameters
@@ -37,5 +37,5 @@ type IssuerRecord<K extends globalThis.AssetKind = globalThis.AssetKind, M exten
37
37
  assetKind: K;
38
38
  displayInfo?: globalThis.DisplayInfo<K> | undefined;
39
39
  };
40
- type Allocation<K extends globalThis.AssetKind = globalThis.AssetKind, M extends import("@endo/patterns").Key = import("@endo/patterns").Key> = AmountKeywordRecord;
40
+ type Allocation = Record<Keyword, import("@agoric/ertp/src/types.js").AnyAmount>;
41
41
  //# sourceMappingURL=types-ambient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;YAMqD,CAAC,mBAAzC,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;eAI1C,MAAM;;;;wBACN,MAAM,CAAC,YAAY,CAAC;2BACpB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;4BAC5B,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;0BAClC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;;;;;;aAK1B,mBAAmB;;;;;YAEnB,kBAAkB;;gBAGnB,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;kBAGlC,YAAY;cACZ,OAAO,uBAAuB,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;WAC7C,QAAQ;;kBASR,CAAC,sDADS,CAAC;WADX,KAAK,CAEL,CAAC,AAFM,CAAC;YACR,MAAM,CACN,CAAC,AADO,EAAE,CAAC,CAAC;eACZ,CAAC;;;gJAGF,mBAAmB"}
1
+ {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;YAIqD,CAAC,mBAAzC,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;eAI1C,MAAM;;;;wBACN,MAAM,CAAC,YAAY,CAAC;2BACpB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;4BAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;0BACtD,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;;;;;;aAK1B,mBAAmB;;;;;YAEnB,kBAAkB;;gBAGnB,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;kBAGlC,OAAO,uBAAuB,EAAE,YAAY,CAAC,GAAG,CAAC;cACjD,OAAO,uBAAuB,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;WAC7C,QAAQ;;kBASR,CAAC,sDADS,CAAC;WADX,KAAK,CAEL,CAAC,AAFM,CAAC;YACR,MAAM,CACN,CAAC,AADO,EAAE,CAAC,CAAC;eACZ,CAAC;;;kBAKF,MAAM,CAAC,OAAO,EAAE,OAAO,2BAA2B,EAAE,SAAS,CAAC"}
@@ -1,7 +1,5 @@
1
1
  // @jessie-check
2
2
 
3
- /// <reference types="ses" />
4
-
5
3
  /**
6
4
  * @template {string} H - the name of the handle
7
5
  * @typedef {import("@endo/marshal").RemotableObject<H>} Handle Alias for RemotableObject
@@ -11,7 +9,7 @@
11
9
  * @typedef {string} Keyword
12
10
  * @typedef {Handle<'Invitation'>} InvitationHandle - an opaque handle for an invitation
13
11
  * @typedef {Record<Keyword, Issuer<any>>} IssuerKeywordRecord
14
- * @typedef {Record<Keyword, ERef<Issuer<any>>>} IssuerPKeywordRecord
12
+ * @typedef {Record<Keyword, import('@endo/far').ERef<Issuer<any>>>} IssuerPKeywordRecord
15
13
  * @typedef {Record<Keyword, Brand<any>>} BrandKeywordRecord
16
14
  */
17
15
 
@@ -25,7 +23,7 @@
25
23
  * @typedef {StandardTerms & Record<string, any>} AnyTerms
26
24
  *
27
25
  * @typedef {object} InstanceRecord
28
- * @property {Installation} installation
26
+ * @property {import('./zoeService/utils.js').Installation<any>} installation
29
27
  * @property {import("./zoeService/utils.js").Instance<any>} instance
30
28
  * @property {AnyTerms} terms - contract parameters
31
29
  */
@@ -38,6 +36,8 @@
38
36
  * @property {Issuer<K, M>} issuer
39
37
  * @property {K} assetKind
40
38
  * @property {DisplayInfo<K>} [displayInfo]
41
- *
42
- * @typedef {AmountKeywordRecord} Allocation
39
+ */
40
+
41
+ /**
42
+ * @typedef {Record<Keyword, import('@agoric/ertp/src/types.js').AnyAmount>} Allocation
43
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAgBO,6DA0DN"}
1
+ {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAcO,6DA0DN"}
@@ -8,8 +8,6 @@ import { cleanProposal } from '../../cleanProposal.js';
8
8
  import { burnInvitation } from './burnInvitation.js';
9
9
  import { makeInvitationQueryFns } from '../invitationQueries.js';
10
10
 
11
- import '@agoric/ertp/exported.js';
12
- import '@agoric/store/exported.js';
13
11
  import '../internal-types.js';
14
12
 
15
13
  const { quote: q, Fail } = assert;
@@ -161,7 +161,7 @@ type ProposalRecord = {
161
161
  * { Asset: AmountMath.make(assetBrand, 5n), Price:
162
162
  * AmountMath.make(priceBrand, 9n) }
163
163
  */
164
- type AmountKeywordRecord = Record<Keyword, import("@agoric/ertp/exported.js").AnyAmount>;
164
+ type AmountKeywordRecord = Record<Keyword, import("@agoric/ertp/src/types.js").AnyAmount>;
165
165
  type Waker = {
166
166
  wake: () => void;
167
167
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;yBAmBc,mBAAmB;aASnB,aAAa;qBACb,eAAe;mBACf,OAAO,YAAY,EAAE,aAAa;WAClC,KAAK;oBACL,OAAO,YAAY,EAAE,cAAc;gBACnC,UAAU;eACV,SAAS;cACT,OAAO,YAAY,EAAE,QAAQ;oBAC7B,cAAc;gCACd,0BAA0B;iBAC1B,WAAW;qBACX,eAAe;;;;;0BACf,oBAAoB;kBAGpB,YAAY;sBACZ,gBAAgB;iCAChB,2BAA2B;mCAC3B,CAAC,gBAAgB,EAAE,gBAAgB,KAAK,OAAO,GAAG,SAAS;;iCAK5D,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;0BAKzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;8BAKtB;IACZ,eAAmB,EAAE,eAAe,CAA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AAS,CAAA;KAAC;;;;;;;;;;gBAIzF,gBAAgB,GAAG,cAAc,GAAG,qBAAqB;gBAWzD,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC;;eAItB,OAAO,sBAAsB,EAAE,SAAS;;UAAY,MAAM;;;;;;;oBAItE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;6BAKnB,MAAM,CAAC,OAAO,EAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;4BAClC,MAAM,CAAC,OAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;;kBAK3B,YAAY;cACZ,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC;YAClC,gBAAgB;iBAChB,MAAM;;;kBAM2B,EAAE,UAApC,OAAO,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;uBAKE,CAAC,8BAAxC,OAAO,YAAY,EAAE,iBAAiB,CAAC,CAAC,CAAC;;UAKxC,MAAM;eACN,SAAS;iBACT,WAAW;;;uBAKX,QAAQ;;qBAIT,MAAM,CAAC,eAAe,CAAC"}
@@ -232,7 +232,7 @@
232
232
  */
233
233
 
234
234
  /**
235
- * @typedef {Record<Keyword, import('@agoric/ertp/exported.js').AnyAmount>} AmountKeywordRecord
235
+ * @typedef {Record<Keyword, import('@agoric/ertp/src/types.js').AnyAmount>} AmountKeywordRecord
236
236
  *
237
237
  * The keys are keywords, and the values are amounts. For example:
238
238
  * { Asset: AmountMath.make(assetBrand, 5n), Price:
@@ -2,7 +2,7 @@
2
2
  import '../types-ambient.js';
3
3
  import '../contractFacet/types-ambient.js';
4
4
 
5
- import type { Issuer } from '@agoric/ertp/exported.js';
5
+ import type { Issuer } from '@agoric/ertp/src/types.js';
6
6
  import type { TagContainer } from '@agoric/internal/src/tagged.js';
7
7
  import type { Baggage } from '@agoric/swingset-liveslots';
8
8
  import type { VatUpgradeResults } from '@agoric/swingset-vat';
@@ -21,7 +21,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
21
21
  getInstanceAdmin(instance: any): any;
22
22
  getProposalShapeForInvitation: (invitationHandle: any) => any;
23
23
  getInvitationIssuer: () => globalThis.Issuer<"set", InvitationDetails>;
24
- depositPayments(proposal: any, payments: any): Promise<AmountKeywordRecord>;
24
+ depositPayments(proposal: any, payments: any): Promise<Allocation>;
25
25
  };
26
26
  startInstanceAccess: {
27
27
  makeZoeInstanceStorageManager: MakeZoeInstanceStorageManager;
@@ -25,7 +25,7 @@ export type FakePriceAuthorityOptions = {
25
25
  timer: import("@agoric/time").TimerService;
26
26
  quoteInterval?: import("@agoric/time").RelativeTime | undefined;
27
27
  quoteMint?: globalThis.ERef<globalThis.Mint<"set">> | undefined;
28
- unitAmountIn?: import("@agoric/ertp/exported.js").NatAmount | undefined;
28
+ unitAmountIn?: import("@agoric/ertp/src/types.js").NatAmount | undefined;
29
29
  };
30
30
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
31
31
  //# sourceMappingURL=fakePriceAuthority.d.ts.map
@@ -15,6 +15,7 @@ export function setUpZoeForTest<T extends unknown = unknown>({ setJig, feeIssuer
15
15
  }): Promise<{
16
16
  zoe: ZoeService;
17
17
  feeMintAccessP: FeeMintAccess;
18
+ bundleAndInstall: (path: string) => Promise<Installation>;
18
19
  vatAdminSvc: VatAdminSvc;
19
20
  vatAdminState: {
20
21
  getExitMessage: () => any;
@@ -1 +1 @@
1
- {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AASO;;;;;;;EAKN;AAKM,kFACoC;AAYpC,gCALU,CAAC;IAAoB,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;;;;;;;;;;;;;;;;;;GA+BzC"}
1
+ {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO;;;;;;;EAKN;AAKM,kFACoC;AAYpC,gCALU,CAAC;IAAoB,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;;;;6BA2B7B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC"}
@@ -1,6 +1,7 @@
1
- import { makeLoopback } from '@endo/captp';
1
+ import { E, makeLoopback } from '@endo/captp';
2
2
 
3
3
  import { makeScalarBigMapStore } from '@agoric/vat-data';
4
+ import bundleSource from '@endo/bundle-source';
4
5
  import { makeDurableZoeKit } from '../src/zoeService/zoe.js';
5
6
  import fakeVatAdmin, { makeFakeVatAdmin } from './fakeVatAdmin.js';
6
7
 
@@ -53,9 +54,23 @@ export const setUpZoeForTest = async ({
53
54
  zoeBaggage: makeScalarBigMapStore('zoe baggage', { durable: true }),
54
55
  }),
55
56
  );
57
+
58
+ /**
59
+ * @param {string} path
60
+ * @returns {Promise<Installation>}
61
+ */
62
+ const bundleAndInstall = async path => {
63
+ const bundle = await bundleSource(path);
64
+ const id = `b1-${path}`;
65
+ assert(vatAdminState, 'installBundle called before vatAdminState defined');
66
+ vatAdminState.installBundle(id, bundle);
67
+ return E(zoeService).installBundleID(id);
68
+ };
69
+
56
70
  return {
57
71
  zoe: zoeService,
58
72
  feeMintAccessP: feeMintAccess,
73
+ bundleAndInstall,
59
74
  vatAdminSvc,
60
75
  vatAdminState,
61
76
  };
@@ -0,0 +1,18 @@
1
+ export function withAmountUtils(kit: Pick<IssuerKit<"nat">, "brand" | "issuer" | "mint">): {
2
+ /** @param {NatValue} v */
3
+ make: (v: NatValue) => import("@agoric/ertp/src/types.js").NatAmount;
4
+ makeEmpty: () => import("@agoric/ertp/src/types.js").NatAmount;
5
+ /**
6
+ * @param {NatValue} n
7
+ * @param {NatValue} [d]
8
+ */
9
+ makeRatio: (n: NatValue, d?: bigint | undefined) => Ratio;
10
+ /** @param {number} n */
11
+ units: (n: number) => import("@agoric/ertp/src/types.js").NatAmount;
12
+ brand: globalThis.Brand<"nat">;
13
+ issuer: globalThis.Issuer<"nat", import("@endo/patterns").Key>;
14
+ mint: globalThis.Mint<"nat", import("@endo/patterns").Key>;
15
+ };
16
+ export { makeFakeStorageKit } from "@agoric/internal/src/storage-test-utils.js";
17
+ export type AmountUtils = ReturnType<typeof withAmountUtils>;
18
+ //# sourceMappingURL=test-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["test-utils.js"],"names":[],"mappings":"AAIO,qCADK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAK3D,0BAA0B;cAAd,QAAQ;;IAGpB;;;OAGG;mBAFQ,QAAQ;IAInB,wBAAwB;eAAZ,MAAM;;;;EAIrB;;0BACa,UAAU,CAAC,OAAO,eAAe,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { AmountMath } from '@agoric/ertp';
2
+ import { makeRatio } from '../src/contractSupport/ratio.js';
3
+
4
+ /** @param {Pick<IssuerKit<'nat'>, 'brand' | 'issuer' | 'mint'>} kit */
5
+ export const withAmountUtils = kit => {
6
+ const decimalPlaces = kit.issuer.getDisplayInfo?.()?.decimalPlaces ?? 6;
7
+ return {
8
+ ...kit,
9
+ /** @param {NatValue} v */
10
+ make: v => AmountMath.make(kit.brand, v),
11
+ makeEmpty: () => AmountMath.makeEmpty(kit.brand),
12
+ /**
13
+ * @param {NatValue} n
14
+ * @param {NatValue} [d]
15
+ */
16
+ makeRatio: (n, d) => makeRatio(n, kit.brand, d),
17
+ /** @param {number} n */
18
+ units: n =>
19
+ AmountMath.make(kit.brand, BigInt(Math.round(n * 10 ** decimalPlaces))),
20
+ };
21
+ };
22
+ /** @typedef {ReturnType<typeof withAmountUtils>} AmountUtils */
23
+
24
+ export { makeFakeStorageKit } from '@agoric/internal/src/storage-test-utils.js';