@agoric/zoe 0.26.3-dev-19c6d7f.0 → 0.26.3-dev-7902326.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/bundles/bundle-contractFacet-js-meta.json +217 -222
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +15 -15
- package/src/cleanProposal.d.ts +1 -0
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +1 -3
- package/src/contractFacet/offerHandlerStorage.d.ts +1 -1
- package/src/contractFacet/rightsConservation.d.ts.map +1 -1
- package/src/contractFacet/rightsConservation.js +0 -1
- package/src/contractFacet/types.d.ts +20 -10
- package/src/contractFacet/types.d.ts.map +1 -1
- package/src/contractFacet/types.ts +28 -10
- package/src/contractFacet/zcfMint.d.ts +2 -2
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +3 -5
- package/src/contractFacet/zcfZygote.js +1 -1
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +1 -0
- package/src/contractSupport/ratio.d.ts +2 -0
- package/src/contractSupport/ratio.d.ts.map +1 -1
- package/src/contractSupport/ratio.js +4 -0
- package/src/contractSupport/zoeHelpers.d.ts +1 -1
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +3 -1
- package/src/internal-types.d.ts +9 -4
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +5 -5
- package/src/issuerRecord.d.ts +3 -2
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerRecord.js +6 -2
- package/src/issuerStorage.d.ts +3 -2
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +6 -5
- package/src/typeGuards.d.ts +4 -2
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +2 -1
- package/src/types-ambient.d.ts +0 -40
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +4 -42
- package/src/types-index.d.ts +1 -0
- package/src/types.d.ts +29 -0
- package/src/types.d.ts.map +1 -0
- package/src/types.ts +44 -0
- package/src/zoeService/internal-types.d.ts +2 -0
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +2 -1
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +0 -2
- package/src/zoeService/types.d.ts +2 -1
- package/src/zoeService/types.d.ts.map +1 -1
- package/src/zoeService/types.ts +8 -2
- package/src/zoeService/utils.d.ts +12 -1
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +1 -2
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +0 -2
- package/tools/manualPriceAuthority.d.ts +4 -1
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +1 -0
- package/tools/setup-zoe.d.ts +1 -0
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +1 -1
- package/tools/types.d.ts +1 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +1 -0
package/src/issuerStorage.js
CHANGED
|
@@ -10,6 +10,7 @@ const STORAGE_INSTANTIATED_KEY = 'IssuerStorageInstantiated';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
|
|
13
|
+
* @import {ZoeIssuerRecord} from '@agoric/zoe';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -18,12 +19,12 @@ const STORAGE_INSTANTIATED_KEY = 'IssuerStorageInstantiated';
|
|
|
18
19
|
* @param {import('@agoric/vat-data').Baggage} zcfBaggage
|
|
19
20
|
*/
|
|
20
21
|
export const provideIssuerStorage = zcfBaggage => {
|
|
21
|
-
/** @type {WeakMapStore<Brand,
|
|
22
|
+
/** @type {WeakMapStore<Brand, ZoeIssuerRecord>} */
|
|
22
23
|
const brandToIssuerRecord = provideDurableWeakMapStore(
|
|
23
24
|
zcfBaggage,
|
|
24
25
|
'brandToIssuerRecord',
|
|
25
26
|
);
|
|
26
|
-
/** @type {WeakMapStore<Issuer,
|
|
27
|
+
/** @type {WeakMapStore<Issuer, ZoeIssuerRecord>} */
|
|
27
28
|
const issuerToIssuerRecord = provideDurableWeakMapStore(
|
|
28
29
|
zcfBaggage,
|
|
29
30
|
'issuerToIssuerRecord',
|
|
@@ -62,8 +63,8 @@ export const provideIssuerStorage = zcfBaggage => {
|
|
|
62
63
|
* to add the issuer again in ZCF.
|
|
63
64
|
*
|
|
64
65
|
*
|
|
65
|
-
* @param {
|
|
66
|
-
* @returns {
|
|
66
|
+
* @param {ZoeIssuerRecord} issuerRecord
|
|
67
|
+
* @returns {ZoeIssuerRecord}
|
|
67
68
|
*/
|
|
68
69
|
const storeIssuerRecord = issuerRecord => {
|
|
69
70
|
assertInstantiated();
|
|
@@ -87,7 +88,7 @@ export const provideIssuerStorage = zcfBaggage => {
|
|
|
87
88
|
* Otherwise, make and save the issuerRecord.
|
|
88
89
|
*
|
|
89
90
|
* @param {ERef<Issuer>} issuerP
|
|
90
|
-
* @returns {Promise<
|
|
91
|
+
* @returns {Promise< ZoeIssuerRecord>}
|
|
91
92
|
*/
|
|
92
93
|
const storeIssuer = async issuerP => {
|
|
93
94
|
assertInstantiated();
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {TypedPattern} from '@agoric/internal';
|
|
3
|
-
* @import {AfterDeadlineExitRule} from '@agoric/zoe';
|
|
3
|
+
* @import {AfterDeadlineExitRule, ZoeIssuerRecord} from '@agoric/zoe';
|
|
4
4
|
*/
|
|
5
5
|
export const KeywordShape: import("@endo/patterns").Matcher;
|
|
6
6
|
/** @type {TypedPattern<InvitationHandle>} */
|
|
@@ -17,7 +17,8 @@ export const PaymentPKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
|
17
17
|
export const IssuerKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
18
18
|
export const IssuerPKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
19
19
|
export const BrandKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
20
|
-
|
|
20
|
+
/** @type {TypedPattern<ZoeIssuerRecord>} */
|
|
21
|
+
export const IssuerRecordShape: TypedPattern<ZoeIssuerRecord>;
|
|
21
22
|
export namespace TermsShape {
|
|
22
23
|
export { IssuerKeywordRecordShape as issuers };
|
|
23
24
|
export { BrandKeywordRecordShape as brands };
|
|
@@ -170,6 +171,7 @@ export namespace PriceQuoteShape {
|
|
|
170
171
|
export let quotePayment: Pattern;
|
|
171
172
|
}
|
|
172
173
|
import type { TypedPattern } from '@agoric/internal';
|
|
174
|
+
import type { ZoeIssuerRecord } from '@agoric/zoe';
|
|
173
175
|
import type { AfterDeadlineExitRule } from '@agoric/zoe';
|
|
174
176
|
import { AmountShape } from '@agoric/ertp';
|
|
175
177
|
//# 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":"AAeA;;;GAGG;AAGH,4DAAuC;AAEvC,6CAA6C;AAC7C,oCADW,aAAa,gBAAgB,CAAC,CAC4B;AACrE,uCAAuC;AACvC,8BADW,aAAa,UAAU,CAAC,CACsB;AACzD,mEAAiE;AACjE,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CACwB;AAC7D,yDAA6C;AAE7C,wEAA8E;AAC9E,+EAGE;AACF,0EAGE;AACF,wEAA8E;AAC9E,yEAGE;AACF,uEAA4E;AAE5E,
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAeA;;;GAGG;AAGH,4DAAuC;AAEvC,6CAA6C;AAC7C,oCADW,aAAa,gBAAgB,CAAC,CAC4B;AACrE,uCAAuC;AACvC,8BADW,aAAa,UAAU,CAAC,CACsB;AACzD,mEAAiE;AACjE,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CACwB;AAC7D,yDAA6C;AAE7C,wEAA8E;AAC9E,+EAGE;AACF,0EAGE;AACF,wEAA8E;AAC9E,yEAGE;AACF,uEAA4E;AAE5E,4CAA4C;AAC5C,gCADW,aAAa,eAAe,CAAC,CAQtC;;;;;;;;;;AAeF,kEAAiD;AAE1C,6EAA4D;AACnE,0DAAmD;;;;;;AA4BnD,2BAA2B;AAC3B,6DAAsE;AAEtE,kEAIG;AAEI,uDAGN;AAOM,uCAHI,OAAO,eAAe,EAAE,QAAQ,GAC9B,IAAI,IAAI,cAAc,CAKlC;AAOM,8CAHI,OAAO,eAAe,EAAE,QAAQ,GAC9B,IAAI,IAAI,qBAAqB,CAKzC;AAGD,sEAAsE;AACtE,qCADW,aAAa,OAAO,eAAe,EAAE,iBAAiB,CAAC,CAM/D;AAEH;;GAEG;AAEH,0EAGG;AAEH,4DAAmD;AACnD;;;;GAIG;AAEH,kEAA+D;AAE/D;;GAEG;AAEH,+DAAsD;AACtD,kEAA+D;AAC/D;;;;;;;;;;;;;;;;;GAkCG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,8DAAuD;AACvD,2DAGE;AAEF,0EAQE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DF;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;GAKG;AAEH,6DASE;AAEF;;GAKG;;;;;kCA/X4B,kBAAkB;qCACQ,aAAa;2CAAb,aAAa;4BAP/D,cAAc"}
|
package/src/typeGuards.js
CHANGED
|
@@ -15,7 +15,7 @@ import { TimestampShape } from '@agoric/time';
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @import {TypedPattern} from '@agoric/internal';
|
|
18
|
-
* @import {AfterDeadlineExitRule} from '@agoric/zoe';
|
|
18
|
+
* @import {AfterDeadlineExitRule, ZoeIssuerRecord} from '@agoric/zoe';
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
// keywords have an initial cap
|
|
@@ -46,6 +46,7 @@ export const IssuerPKeywordRecordShape = M.recordOf(
|
|
|
46
46
|
);
|
|
47
47
|
export const BrandKeywordRecordShape = M.recordOf(KeywordShape, BrandShape);
|
|
48
48
|
|
|
49
|
+
/** @type {TypedPattern<ZoeIssuerRecord>} */
|
|
49
50
|
export const IssuerRecordShape = M.splitRecord(
|
|
50
51
|
{
|
|
51
52
|
brand: BrandShape,
|
package/src/types-ambient.d.ts
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alias for RemotableObject
|
|
3
|
-
*/
|
|
4
|
-
type Handle<H extends string> = import("@endo/marshal").RemotableObject<H>;
|
|
5
|
-
type Keyword = string;
|
|
6
|
-
/**
|
|
7
|
-
* - an opaque handle for an invitation
|
|
8
|
-
*/
|
|
9
|
-
type InvitationHandle = Handle<"Invitation">;
|
|
10
|
-
type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
|
|
11
|
-
type IssuerPKeywordRecord = Record<Keyword, import("@endo/far").ERef<Issuer<any>>>;
|
|
12
|
-
type BrandKeywordRecord = Record<Keyword, Brand<any>>;
|
|
13
|
-
type StandardTerms = {
|
|
14
|
-
/**
|
|
15
|
-
* - record with
|
|
16
|
-
* keywords keys, issuer values
|
|
17
|
-
*/
|
|
18
|
-
issuers: IssuerKeywordRecord;
|
|
19
|
-
/**
|
|
20
|
-
* - record with keywords
|
|
21
|
-
* keys, brand values
|
|
22
|
-
*/
|
|
23
|
-
brands: BrandKeywordRecord;
|
|
24
|
-
};
|
|
25
|
-
type AnyTerms = StandardTerms & Record<string, any>;
|
|
26
|
-
type InstanceRecord = {
|
|
27
|
-
installation: import("./zoeService/utils.js").Installation<any>;
|
|
28
|
-
instance: import("./zoeService/utils.js").Instance<any>;
|
|
29
|
-
/**
|
|
30
|
-
* - contract parameters
|
|
31
|
-
*/
|
|
32
|
-
terms: AnyTerms;
|
|
33
|
-
};
|
|
34
|
-
type IssuerRecord<K extends AssetKind = globalThis.AssetKind, M extends import("@endo/patterns").Key = import("@endo/patterns").Key> = {
|
|
35
|
-
brand: Brand<K>;
|
|
36
|
-
issuer: Issuer<K, M>;
|
|
37
|
-
assetKind: K;
|
|
38
|
-
displayInfo?: globalThis.DisplayInfo<K> | undefined;
|
|
39
|
-
};
|
|
40
|
-
type Allocation = Record<Keyword, import("@agoric/ertp/src/types.js").AnyAmount>;
|
|
41
1
|
//# sourceMappingURL=types-ambient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":""}
|
package/src/types-ambient.js
CHANGED
|
@@ -1,43 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file @deprecated */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @typedef {string} Keyword
|
|
10
|
-
* @typedef {Handle<'Invitation'>} InvitationHandle - an opaque handle for an invitation
|
|
11
|
-
* @typedef {Record<Keyword, Issuer<any>>} IssuerKeywordRecord
|
|
12
|
-
* @typedef {Record<Keyword, import('@endo/far').ERef<Issuer<any>>>} IssuerPKeywordRecord
|
|
13
|
-
* @typedef {Record<Keyword, Brand<any>>} BrandKeywordRecord
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @typedef {object} StandardTerms
|
|
18
|
-
* @property {IssuerKeywordRecord} issuers - record with
|
|
19
|
-
* keywords keys, issuer values
|
|
20
|
-
* @property {BrandKeywordRecord} brands - record with keywords
|
|
21
|
-
* keys, brand values
|
|
22
|
-
*
|
|
23
|
-
* @typedef {StandardTerms & Record<string, any>} AnyTerms
|
|
24
|
-
*
|
|
25
|
-
* @typedef {object} InstanceRecord
|
|
26
|
-
* @property {import('./zoeService/utils.js').Installation<any>} installation
|
|
27
|
-
* @property {import('./zoeService/utils.js').Instance<any>} instance
|
|
28
|
-
* @property {AnyTerms} terms - contract parameters
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @template {AssetKind} [K=AssetKind]
|
|
33
|
-
* @template {import('@endo/patterns').Key} [M=import('@endo/patterns').Key] member kind, for Amounts that have member values
|
|
34
|
-
* @typedef {object} IssuerRecord
|
|
35
|
-
* @property {Brand<K>} brand
|
|
36
|
-
* @property {Issuer<K, M>} issuer
|
|
37
|
-
* @property {K} assetKind
|
|
38
|
-
* @property {DisplayInfo<K>} [displayInfo]
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @typedef {Record<Keyword, import('@agoric/ertp/src/types.js').AnyAmount>} Allocation
|
|
43
|
-
*/
|
|
3
|
+
console.error(
|
|
4
|
+
'NOTICE: src/types-ambient.js no longer provides types; use explicit imports or the top level `/exported.js`',
|
|
5
|
+
);
|
package/src/types-index.d.ts
CHANGED
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Issuer, Brand } from '@agoric/ertp';
|
|
2
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
3
|
+
/**
|
|
4
|
+
* Alias for RemotableObject
|
|
5
|
+
*/
|
|
6
|
+
export type Handle<H extends string> = RemotableObject<H>;
|
|
7
|
+
/** Must start with a capital letter. */
|
|
8
|
+
export type Keyword = string;
|
|
9
|
+
/**
|
|
10
|
+
* - an opaque handle for an invitation
|
|
11
|
+
*/
|
|
12
|
+
export type InvitationHandle = Handle<'Invitation'>;
|
|
13
|
+
export type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
|
|
14
|
+
export type IssuerPKeywordRecord = Record<Keyword, import('@endo/far').ERef<Issuer<any>>>;
|
|
15
|
+
export type BrandKeywordRecord = Record<Keyword, Brand<any>>;
|
|
16
|
+
export type StandardTerms = {
|
|
17
|
+
/**
|
|
18
|
+
* - record with
|
|
19
|
+
* keywords keys, issuer values
|
|
20
|
+
*/
|
|
21
|
+
issuers: IssuerKeywordRecord;
|
|
22
|
+
/**
|
|
23
|
+
* - record with keywords
|
|
24
|
+
* keys, brand values
|
|
25
|
+
*/
|
|
26
|
+
brands: BrandKeywordRecord;
|
|
27
|
+
};
|
|
28
|
+
export type AnyTerms = StandardTerms & Record<string, any>;
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EAIN,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD;;GAEG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;AAK1D,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AACpD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,OAAO,EACP,OAAO,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CACtC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,OAAO,EAAE,mBAAmB,CAAC;IAC7B;;;OAGG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Issuer,
|
|
3
|
+
Brand,
|
|
4
|
+
AssetKind,
|
|
5
|
+
DisplayInfo,
|
|
6
|
+
AnyAmount,
|
|
7
|
+
} from '@agoric/ertp';
|
|
8
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
9
|
+
import type { Key } from '@endo/patterns';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Alias for RemotableObject
|
|
13
|
+
*/
|
|
14
|
+
export type Handle<H extends string> = RemotableObject<H>;
|
|
15
|
+
|
|
16
|
+
// Typing this as Capitalize<string> would be more accurate but requires
|
|
17
|
+
// frequent casting. Revisit once .ts syntax is more common. Even then,
|
|
18
|
+
// may not be worth the effort since Zoe 2 probably will not have keywords.
|
|
19
|
+
/** Must start with a capital letter. */
|
|
20
|
+
export type Keyword = string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* - an opaque handle for an invitation
|
|
24
|
+
*/
|
|
25
|
+
export type InvitationHandle = Handle<'Invitation'>;
|
|
26
|
+
export type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
|
|
27
|
+
export type IssuerPKeywordRecord = Record<
|
|
28
|
+
Keyword,
|
|
29
|
+
import('@endo/far').ERef<Issuer<any>>
|
|
30
|
+
>;
|
|
31
|
+
export type BrandKeywordRecord = Record<Keyword, Brand<any>>;
|
|
32
|
+
export type StandardTerms = {
|
|
33
|
+
/**
|
|
34
|
+
* - record with
|
|
35
|
+
* keywords keys, issuer values
|
|
36
|
+
*/
|
|
37
|
+
issuers: IssuerKeywordRecord;
|
|
38
|
+
/**
|
|
39
|
+
* - record with keywords
|
|
40
|
+
* keys, brand values
|
|
41
|
+
*/
|
|
42
|
+
brands: BrandKeywordRecord;
|
|
43
|
+
};
|
|
44
|
+
export type AnyTerms = StandardTerms & Record<string, any>;
|
|
@@ -92,4 +92,6 @@ import type { GetBundleIDFromInstallation } from './types.js';
|
|
|
92
92
|
import type { GetIssuers } from './types.js';
|
|
93
93
|
import type { InstallBundle } from './types.js';
|
|
94
94
|
import type { InstallBundleID } from './types.js';
|
|
95
|
+
import type { SourceBundle } from './types.js';
|
|
96
|
+
import type { InstanceRecord } from './utils.js';
|
|
95
97
|
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";;;4BAYW,MAAM,SACN,KAAK,KACH,IAAI,CAAC,IAAI,CAAC;;;;;;;;kCAWZ,MAAM,SACN,KAAK,KACH,KAAK;;;;;;;kCAUP,cAAc,YACd,qBAAqB,KACnB,OAAO,CAAC,UAAU,CAAC;oCAKrB,QAAQ,iBACR,aAAa,KACX,IAAI;mCAKN,QAAQ,KACN,aAAa;sCAKf,QAAQ,KACN,IAAI;;;;;0CASN,IAAI,CAAC,YAAY,CAAC,KAChB,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAC,YAAY,CAAA;CAC1B,CAAC;8BAMQ,aAAa;;cAKZ,MAAM,QAAQ;gBACd,MAAM,mBAAmB;eACzB,MAAM,kBAAkB;gBACxB,GAAG,CAAC,YAAY,CAAC;iBACjB,WAAW;qBACX,eAAe;uBACf,MAAM,cAAc;sBACpB,gBAAgB;uBAChB,iBAAiB;yBACjB,mBAAmB;oBACnB,8BAA8B;yBAC9B,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stallBundleID} from './types.js';
|
|
5
|
+
* @import {FeeMintAccess, GetBrands, GetBundleIDFromInstallation, GetIssuers, InstallBundle, InstallBundleID, SourceBundle} from './types.js';
|
|
6
|
+
* @import {InstanceRecord} from './utils.js';
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAkCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAqW9C;+BA7WgD,sBAAsB;6BAF7C,kBAAkB"}
|
|
@@ -3,7 +3,8 @@ import type { Subscriber } from '@agoric/notifier';
|
|
|
3
3
|
import type { ERef, EReturn } from '@endo/eventual-send';
|
|
4
4
|
import type { Bundle, BundleID } from '@agoric/swingset-vat';
|
|
5
5
|
import type { ContractStartFunction, StartParams } from './utils.js';
|
|
6
|
-
|
|
6
|
+
import type { Keyword, InvitationHandle, BrandKeywordRecord, Handle, IssuerKeywordRecord } from '../types.js';
|
|
7
|
+
import type { Allocation } from '../types-index.js';
|
|
7
8
|
/** @see {@link https://github.com/sindresorhus/type-fest/blob/main/source/is-any.d.ts} */
|
|
8
9
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
9
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,EACR,MAAM,cAAc,CAAC;AAC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14 @@ import type { Subscriber } from '@agoric/notifier';
|
|
|
10
10
|
import type { ERef, EReturn } from '@endo/eventual-send';
|
|
11
11
|
import type { Bundle, BundleID } from '@agoric/swingset-vat';
|
|
12
12
|
import type { ContractStartFunction, StartParams } from './utils.js';
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import type {
|
|
14
|
+
Keyword,
|
|
15
|
+
InvitationHandle,
|
|
16
|
+
BrandKeywordRecord,
|
|
17
|
+
Handle,
|
|
18
|
+
IssuerKeywordRecord,
|
|
19
|
+
} from '../types.js';
|
|
20
|
+
import type { Allocation } from '../types-index.js';
|
|
15
21
|
|
|
16
22
|
/** @see {@link https://github.com/sindresorhus/type-fest/blob/main/source/is-any.d.ts} */
|
|
17
23
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
@@ -4,7 +4,7 @@ import type { Baggage } from '@agoric/swingset-liveslots';
|
|
|
4
4
|
import type { VatUpgradeResults } from '@agoric/swingset-vat';
|
|
5
5
|
import type { RemotableObject } from '@endo/marshal';
|
|
6
6
|
import type { FarRef } from '@endo/far';
|
|
7
|
-
import type { ZCF } from '../types-index.js';
|
|
7
|
+
import type { AnyTerms, Handle, Keyword, ZCF } from '../types-index.js';
|
|
8
8
|
|
|
9
9
|
// XXX https://github.com/Agoric/agoric-sdk/issues/4565
|
|
10
10
|
type SourceBundle = Record<string, any>;
|
|
@@ -63,6 +63,8 @@ type ZcfOf<SF extends ContractStartFunction> = Parameters<SF>[0] extends ZCF
|
|
|
63
63
|
: ZCF<any>;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
+
* @deprecated use the SF to pass the type
|
|
67
|
+
*
|
|
66
68
|
* Convenience record for contract start function, merging its result with params.
|
|
67
69
|
*/
|
|
68
70
|
export type ContractOf<S extends (...args: any) => any> = StartParams<S> &
|
|
@@ -122,3 +124,12 @@ export type GetTerms = <SF>(instance: Instance<SF>) => Promise<
|
|
|
122
124
|
: // XXX returning `any` in this case
|
|
123
125
|
any
|
|
124
126
|
>;
|
|
127
|
+
|
|
128
|
+
export type InstanceRecord = {
|
|
129
|
+
installation: Installation<any>;
|
|
130
|
+
instance: Instance<any>;
|
|
131
|
+
/**
|
|
132
|
+
* - contract parameters
|
|
133
|
+
*/
|
|
134
|
+
terms: AnyTerms;
|
|
135
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAkDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBA0WhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa,YACb,IAAI,CAAC,OAAO,CAAC,2BACb,OAAO;;;;;;;;;;;;;;;;QA3IZ,wCAAwC;8DAA5B,iBAAiB;;;;EAoKpC"}
|
|
@@ -7,8 +7,7 @@ import { makePromiseKit } from '@endo/promise-kit';
|
|
|
7
7
|
import { NonNullish } from '@agoric/internal';
|
|
8
8
|
|
|
9
9
|
import { satisfiesWant } from '../contractFacet/offerSafety.js';
|
|
10
|
-
|
|
11
|
-
import '../internal-types.js';
|
|
10
|
+
|
|
12
11
|
import {
|
|
13
12
|
declareOldZoeSeatAdminKind,
|
|
14
13
|
OriginalZoeSeatIKit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAyDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;kBAPO,CAAC;qBAClB,CAAC;oBAA0B,CAAC;;;;;;;GAibnC;6BApcyB,kBAAkB"}
|
|
@@ -21,8 +21,6 @@ import { prepareInvitationKit } from './makeInvitation.js';
|
|
|
21
21
|
import { makeInstanceAdminStorage } from './instanceAdminStorage.js';
|
|
22
22
|
import { makeInstallationStorage } from './installationStorage.js';
|
|
23
23
|
|
|
24
|
-
/// <reference path="./types.js" />
|
|
25
|
-
import './internal-types.js';
|
|
26
24
|
import {
|
|
27
25
|
InstanceStorageManagerIKit,
|
|
28
26
|
ZoeMintI,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import {Amount, Brand, Issuer, IssuerKit, Payment, Purse} from '@agoric/ertp';
|
|
2
3
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
3
4
|
*/
|
|
4
5
|
/**
|
|
@@ -15,12 +16,14 @@ export function makeManualPriceAuthority(options: {
|
|
|
15
16
|
actualBrandOut: Brand<"nat">;
|
|
16
17
|
initialPrice: Ratio;
|
|
17
18
|
timer: import("@agoric/time").TimerService;
|
|
18
|
-
quoteIssuerKit?:
|
|
19
|
+
quoteIssuerKit?: IssuerKit<"set", PriceDescription> | undefined;
|
|
19
20
|
}): PriceAuthority & {
|
|
20
21
|
setPrice: (Ratio: any) => void;
|
|
21
22
|
disable: () => void;
|
|
22
23
|
};
|
|
23
24
|
export type ManualPriceAuthority = ReturnType<typeof makeManualPriceAuthority>;
|
|
25
|
+
import type { Brand } from '@agoric/ertp';
|
|
24
26
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
27
|
+
import type { IssuerKit } from '@agoric/ertp';
|
|
25
28
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
26
29
|
//# sourceMappingURL=manualPriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAaA
|
|
1
|
+
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAaA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,kDAPG;IAA8B,aAAa,EAAnC,MAAM,KAAK,CAAC;IACU,cAAc,EAApC,MAAM,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACU,cAAc;CACnE,GAAU,cAAc,GAAG;IAAE,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA8E/E;mCACa,UAAU,CAAC,OAAO,wBAAwB,CAAC;2BA1FU,cAAc;sCACY,4BAA4B;+BADtD,cAAc;oCACY,4BAA4B"}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from '../src/contractSupport/index.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
+
* @import {Amount, Brand, Issuer, IssuerKit, Payment, Purse} from '@agoric/ertp';
|
|
15
16
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
16
17
|
*/
|
|
17
18
|
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -32,4 +32,5 @@ export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConf
|
|
|
32
32
|
} | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
import type { FeeIssuerConfig } from '../src/types-index.js';
|
|
35
|
+
import type { Installation } from '../src/types-index.js';
|
|
35
36
|
//# sourceMappingURL=setup-zoe.d.ts.map
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAcO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC;
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAcO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC;qCAzE+C,uBAAuB;kCAAvB,uBAAuB"}
|
package/tools/setup-zoe.js
CHANGED
|
@@ -6,7 +6,7 @@ import { makeDurableZoeKit } from '../src/zoeService/zoe.js';
|
|
|
6
6
|
import fakeVatAdmin, { makeFakeVatAdmin } from './fakeVatAdmin.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @import {FeeIssuerConfig} from '../src/types-index.js';
|
|
9
|
+
* @import {FeeIssuerConfig, Installation} from '../src/types-index.js';
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
package/tools/types.d.ts
CHANGED
|
@@ -143,4 +143,5 @@ import type { Amount } from '@agoric/ertp';
|
|
|
143
143
|
import type { Payment } from '@agoric/ertp';
|
|
144
144
|
import type { Brand } from '@agoric/ertp';
|
|
145
145
|
import type { Issuer } from '@agoric/ertp';
|
|
146
|
+
import type { Notifier } from '@agoric/notifier';
|
|
146
147
|
//# sourceMappingURL=types.d.ts.map
|
package/tools/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|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