@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-7902326.0+7902326",
|
|
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/base-zone": "0.1.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
55
|
-
"@agoric/vow": "0.1.1-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/base-zone": "0.1.1-dev-7902326.0+7902326",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-7902326.0+7902326",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-7902326.0+7902326",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-7902326.0+7902326",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-7902326.0+7902326",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-7902326.0+7902326",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-7902326.0+7902326",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-7902326.0+7902326",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-7902326.0+7902326",
|
|
55
|
+
"@agoric/vow": "0.1.1-dev-7902326.0+7902326",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-7902326.0+7902326",
|
|
57
57
|
"@endo/bundle-source": "^3.5.1",
|
|
58
58
|
"@endo/captp": "^4.4.4",
|
|
59
59
|
"@endo/common": "^1.2.9",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yargs-parser": "^21.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
73
|
+
"@agoric/kmarshal": "0.1.1-dev-7902326.0+7902326",
|
|
74
74
|
"@endo/init": "^1.1.8",
|
|
75
75
|
"ava": "^5.3.0",
|
|
76
76
|
"c8": "^10.1.2",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
100
|
"typeCoverage": {
|
|
101
|
-
"atLeast": 85.
|
|
101
|
+
"atLeast": 85.15
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "79023263a7209a3e1f02a0a2446d533289261598"
|
|
104
104
|
}
|
package/src/cleanProposal.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any
|
|
|
7
7
|
export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: unknown, getAssetKindByBrand: any): AmountKeywordRecord;
|
|
8
8
|
export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
|
|
9
9
|
import type { Proposal } from '@agoric/zoe';
|
|
10
|
+
import type { ProposalRecord } from '@agoric/zoe';
|
|
10
11
|
//# sourceMappingURL=cleanProposal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;AAiB/B,sDAYN;AAMM,oDAHI;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACnB,MAAM,EAAE,CAcpB;AAEM,mJAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAa/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B;8BA9JoD,aAAa;oCAAb,aAAa"}
|
package/src/cleanProposal.js
CHANGED
|
@@ -5,14 +5,12 @@ import { assertRecord } from '@endo/marshal';
|
|
|
5
5
|
import { assertKey, assertPattern, mustMatch, isKey } from '@agoric/store';
|
|
6
6
|
import { FullProposalShape } from './typeGuards.js';
|
|
7
7
|
|
|
8
|
-
import './internal-types.js';
|
|
9
|
-
|
|
10
8
|
const { ownKeys } = Reflect;
|
|
11
9
|
|
|
12
10
|
export const MAX_KEYWORD_LENGTH = 100;
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
|
-
* @import {ExitRule, Proposal} from '@agoric/zoe';
|
|
13
|
+
* @import {ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
|
|
16
14
|
*/
|
|
17
15
|
|
|
18
16
|
const firstCapASCII = /^[A-Z][a-zA-Z0-9_$]*$/;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function makeOfferHandlerStorage(zcfBaggage: any): {
|
|
2
|
-
storeOfferHandler: (offerHandler: any) => Handle<"Invitation">;
|
|
2
|
+
storeOfferHandler: (offerHandler: any) => globalThis.Handle<"Invitation">;
|
|
3
3
|
takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAoFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB"}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ERef } from '@endo/far';
|
|
3
|
-
import type { Pattern } from '@endo/patterns';
|
|
4
|
-
import type { AdditionalDisplayInfo, Amount, AssetKind, Brand, Issuer, Payment } from '@agoric/ertp';
|
|
1
|
+
import type { AdditionalDisplayInfo, Amount, AnyAmount, AssetKind, Brand, DisplayInfo, Issuer, Payment } from '@agoric/ertp';
|
|
5
2
|
import type { Subscriber } from '@agoric/notifier';
|
|
6
|
-
import type {
|
|
3
|
+
import type { ERef } from '@endo/far';
|
|
4
|
+
import type { Passable } from '@endo/pass-style';
|
|
5
|
+
import type { Key, Pattern } from '@endo/patterns';
|
|
6
|
+
import type { AmountKeywordRecord, ExitRule, FeeMintAccess, Instance, InvitationDetails, Keyword, ProposalRecord, StandardTerms, UserSeat, ZoeService } from '../types-index.js';
|
|
7
|
+
import type { ContractStartFunction } from '../zoeService/utils.js';
|
|
7
8
|
/**
|
|
8
9
|
* Any passable non-thenable. Often an explanatory string.
|
|
9
10
|
*/
|
|
10
11
|
export type Completion = Passable;
|
|
11
12
|
export type ZCFMakeEmptySeatKit = (exit?: ExitRule | undefined) => ZcfSeatKit;
|
|
12
13
|
export type InvitationAmount = Amount<'set', InvitationDetails>;
|
|
14
|
+
export type ZoeIssuerRecord<K extends AssetKind = AssetKind, M extends Key = Key> = {
|
|
15
|
+
brand: Brand<K>;
|
|
16
|
+
issuer: Issuer<K, M>;
|
|
17
|
+
assetKind: K;
|
|
18
|
+
displayInfo?: DisplayInfo<K>;
|
|
19
|
+
};
|
|
20
|
+
export type Allocation = Record<Keyword, AnyAmount>;
|
|
13
21
|
/**
|
|
14
22
|
* Zoe Contract Facet
|
|
15
23
|
*
|
|
@@ -37,7 +45,7 @@ export type ZCF<CT = Record<string, unknown>> = {
|
|
|
37
45
|
* @returns the AmountMath and brand synchronously accessible after
|
|
38
46
|
* saving
|
|
39
47
|
*/
|
|
40
|
-
saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ?
|
|
48
|
+
saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>;
|
|
41
49
|
/**
|
|
42
50
|
* Make a credible Zoe invitation for a particular smart contract
|
|
43
51
|
* indicated by the `instance` in the details of the invitation. Zoe
|
|
@@ -89,7 +97,7 @@ export type ZCFRegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMin
|
|
|
89
97
|
*/
|
|
90
98
|
export type SetTestJig = (testFn?: () => Record<string, unknown>) => void;
|
|
91
99
|
export type ZCFMint<K extends AssetKind = AssetKind> = {
|
|
92
|
-
getIssuerRecord: () =>
|
|
100
|
+
getIssuerRecord: () => ZoeIssuerRecord<K>;
|
|
93
101
|
/**
|
|
94
102
|
* All the amounts in gains must be of this ZCFMint's brand.
|
|
95
103
|
* The gains' keywords are in the namespace of that seat.
|
|
@@ -139,7 +147,7 @@ export type HandleOffer<OR, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
|
|
|
139
147
|
export type OfferHandler<OR = unknown, OA = never> = HandleOffer<OR, OA> | {
|
|
140
148
|
handle: HandleOffer<OR, OA>;
|
|
141
149
|
};
|
|
142
|
-
export type ContractMeta<SF extends
|
|
150
|
+
export type ContractMeta<SF extends ContractStartFunction = ContractStartFunction> = {
|
|
143
151
|
customTermsShape?: Record<Parameters<SF>[0] extends ZCF<infer CT> ? keyof CT : never, Pattern>;
|
|
144
152
|
privateArgsShape?: {
|
|
145
153
|
[K in keyof Parameters<SF>[1]]: Pattern;
|
|
@@ -162,8 +170,10 @@ export type ContractStartFnResult<PF, CF> = {
|
|
|
162
170
|
creatorFacet?: CF;
|
|
163
171
|
creatorInvitation?: Promise<Invitation<any, any>> | undefined;
|
|
164
172
|
};
|
|
165
|
-
|
|
166
|
-
|
|
173
|
+
/**
|
|
174
|
+
* @deprecated use the parameterized version
|
|
175
|
+
*/
|
|
176
|
+
export type AdminFacet = import('../zoeService/utils.js').AdminFacet<any>;
|
|
167
177
|
declare const OfferReturn: unique symbol;
|
|
168
178
|
declare const OfferArgs: unique symbol;
|
|
169
179
|
export type Invitation<R = unknown, A = undefined> = Payment<'set', InvitationDetails> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA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,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,wBAAwB,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;AAE1E,OAAO,CAAC,MAAM,WAAW,EAAE,OAAO,MAAM,CAAC;AACzC,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,MAAM,CAAC;AACvC,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,SAAS,IAAI,OAAO,CAC1D,KAAK,EACL,iBAAiB,CAClB,GAAG;IAEF,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;CACjB,CAAC"}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import type { Passable } from '@endo/pass-style';
|
|
2
|
-
import type { ERef } from '@endo/far';
|
|
3
|
-
import type { Pattern } from '@endo/patterns';
|
|
4
1
|
import type {
|
|
5
2
|
AdditionalDisplayInfo,
|
|
6
3
|
Amount,
|
|
4
|
+
AnyAmount,
|
|
7
5
|
AssetKind,
|
|
8
6
|
Brand,
|
|
7
|
+
DisplayInfo,
|
|
9
8
|
Issuer,
|
|
10
9
|
Payment,
|
|
11
10
|
} from '@agoric/ertp';
|
|
12
11
|
import type { Subscriber } from '@agoric/notifier';
|
|
12
|
+
import type { ERef } from '@endo/far';
|
|
13
|
+
import type { Passable } from '@endo/pass-style';
|
|
14
|
+
import type { Key, Pattern } from '@endo/patterns';
|
|
13
15
|
import type {
|
|
14
16
|
AmountKeywordRecord,
|
|
15
17
|
ExitRule,
|
|
16
18
|
FeeMintAccess,
|
|
17
19
|
Instance,
|
|
18
20
|
InvitationDetails,
|
|
21
|
+
Keyword,
|
|
19
22
|
ProposalRecord,
|
|
23
|
+
StandardTerms,
|
|
20
24
|
UserSeat,
|
|
21
25
|
ZoeService,
|
|
22
26
|
} from '../types-index.js';
|
|
27
|
+
import type { ContractStartFunction } from '../zoeService/utils.js';
|
|
23
28
|
|
|
24
29
|
/**
|
|
25
30
|
* Any passable non-thenable. Often an explanatory string.
|
|
@@ -29,6 +34,17 @@ export type ZCFMakeEmptySeatKit = (exit?: ExitRule | undefined) => ZcfSeatKit;
|
|
|
29
34
|
|
|
30
35
|
export type InvitationAmount = Amount<'set', InvitationDetails>;
|
|
31
36
|
|
|
37
|
+
export type ZoeIssuerRecord<
|
|
38
|
+
K extends AssetKind = AssetKind,
|
|
39
|
+
M extends Key = Key,
|
|
40
|
+
> = {
|
|
41
|
+
brand: Brand<K>;
|
|
42
|
+
issuer: Issuer<K, M>;
|
|
43
|
+
assetKind: K;
|
|
44
|
+
displayInfo?: DisplayInfo<K>;
|
|
45
|
+
};
|
|
46
|
+
export type Allocation = Record<Keyword, AnyAmount>;
|
|
47
|
+
|
|
32
48
|
/**
|
|
33
49
|
* Zoe Contract Facet
|
|
34
50
|
*
|
|
@@ -59,7 +75,9 @@ export type ZCF<CT = Record<string, unknown>> = {
|
|
|
59
75
|
saveIssuer: <I extends Issuer>(
|
|
60
76
|
issuerP: ERef<I>,
|
|
61
77
|
keyword: Keyword,
|
|
62
|
-
) => Promise<
|
|
78
|
+
) => Promise<
|
|
79
|
+
I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never
|
|
80
|
+
>;
|
|
63
81
|
|
|
64
82
|
/**
|
|
65
83
|
* Make a credible Zoe invitation for a particular smart contract
|
|
@@ -127,7 +145,7 @@ export type ZCFRegisterFeeMint = (
|
|
|
127
145
|
*/
|
|
128
146
|
export type SetTestJig = (testFn?: () => Record<string, unknown>) => void;
|
|
129
147
|
export type ZCFMint<K extends AssetKind = AssetKind> = {
|
|
130
|
-
getIssuerRecord: () =>
|
|
148
|
+
getIssuerRecord: () => ZoeIssuerRecord<K>;
|
|
131
149
|
/**
|
|
132
150
|
* All the amounts in gains must be of this ZCFMint's brand.
|
|
133
151
|
* The gains' keywords are in the namespace of that seat.
|
|
@@ -184,7 +202,7 @@ export type OfferHandler<OR = unknown, OA = never> =
|
|
|
184
202
|
};
|
|
185
203
|
export type ContractMeta<
|
|
186
204
|
SF extends // import inline to maintain ambient mode
|
|
187
|
-
|
|
205
|
+
ContractStartFunction = ContractStartFunction,
|
|
188
206
|
> = {
|
|
189
207
|
customTermsShape?: Record<
|
|
190
208
|
Parameters<SF>[0] extends ZCF<infer CT> ? keyof CT : never,
|
|
@@ -214,10 +232,10 @@ export type ContractStartFnResult<PF, CF> = {
|
|
|
214
232
|
creatorInvitation?: Promise<Invitation<any, any>> | undefined;
|
|
215
233
|
};
|
|
216
234
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
export type AdminFacet = import('../zoeService/utils').AdminFacet<any>;
|
|
235
|
+
/**
|
|
236
|
+
* @deprecated use the parameterized version
|
|
237
|
+
*/
|
|
238
|
+
export type AdminFacet = import('../zoeService/utils.js').AdminFacet<any>;
|
|
221
239
|
|
|
222
240
|
declare const OfferReturn: unique symbol;
|
|
223
241
|
declare const OfferArgs: unique symbol;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord:
|
|
1
|
+
export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord: ZoeIssuerRecord): Amount;
|
|
2
2
|
export function prepareZcMint(zcfBaggage: import("@agoric/vat-data").Baggage, recordIssuer: {
|
|
3
|
-
(keyword: string, issuerRecord:
|
|
3
|
+
(keyword: string, issuerRecord: ZoeIssuerRecord): void;
|
|
4
4
|
}, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
|
|
5
5
|
zcfSeat: any;
|
|
6
6
|
userSeat: Promise<UserSeat>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAmBO,4CAJI,mBAAmB,gBACnB,eAAe,GACb,MAAM,CAYlB;AASM,0CANI,OAAO,kBAAkB,EAAE,OAAO,gBAClC;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,IAAI,CAAA;CAAE,uBAC1D,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IA0Gb,SAJH,MAIU,EAAE,UAHZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAGK,KAFlB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAWjC;6BA5I8G,aAAa"}
|
|
@@ -6,8 +6,6 @@ import { prepareExoClass } from '@agoric/vat-data';
|
|
|
6
6
|
import { coerceAmountKeywordRecord } from '../cleanProposal.js';
|
|
7
7
|
import { assertFullIssuerRecord, makeIssuerRecord } from '../issuerRecord.js';
|
|
8
8
|
import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
|
|
9
|
-
|
|
10
|
-
import '../internal-types.js';
|
|
11
9
|
import { ZcfMintI } from './typeGuards.js';
|
|
12
10
|
|
|
13
11
|
/**
|
|
@@ -16,7 +14,7 @@ import { ZcfMintI } from './typeGuards.js';
|
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
16
|
* @param {AmountKeywordRecord} amr
|
|
19
|
-
* @param {
|
|
17
|
+
* @param {ZoeIssuerRecord} issuerRecord
|
|
20
18
|
* @returns {Amount}
|
|
21
19
|
*/
|
|
22
20
|
export const sumAmountKeywordRecord = (amr, issuerRecord) => {
|
|
@@ -33,7 +31,7 @@ export const sumAmountKeywordRecord = (amr, issuerRecord) => {
|
|
|
33
31
|
|
|
34
32
|
/**
|
|
35
33
|
* @param {import('@agoric/vat-data').Baggage} zcfBaggage
|
|
36
|
-
* @param {{ (keyword: string, issuerRecord:
|
|
34
|
+
* @param {{ (keyword: string, issuerRecord: ZoeIssuerRecord): void }} recordIssuer
|
|
37
35
|
* @param {GetAssetKindByBrand} getAssetKindByBrand
|
|
38
36
|
* @param {(exit?: undefined) => { zcfSeat: any; userSeat: Promise<UserSeat> }} makeEmptySeatKit
|
|
39
37
|
* @param {ZcfMintReallocator} reallocator
|
|
@@ -53,7 +51,7 @@ export const prepareZcMint = (
|
|
|
53
51
|
* @template {AssetKind} [K=AssetKind]
|
|
54
52
|
* @param {string} keyword
|
|
55
53
|
* @param {ZoeMint<K>} zoeMint
|
|
56
|
-
* @param {Required<
|
|
54
|
+
* @param {Required<ZoeIssuerRecord<K>>} issuerRecord
|
|
57
55
|
*/
|
|
58
56
|
(keyword, zoeMint, issuerRecord) => {
|
|
59
57
|
const {
|
|
@@ -104,7 +104,7 @@ export const makeZCFZygote = async (
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* @param {string} keyword
|
|
107
|
-
* @param {
|
|
107
|
+
* @param {ZoeIssuerRecord} issuerRecord
|
|
108
108
|
*/
|
|
109
109
|
const recordIssuer = (keyword, issuerRecord) => {
|
|
110
110
|
getInstanceRecHolder().addIssuer(keyword, issuerRecord);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"AA+BO,oDAPI,KAAK,kBACL,cAAc,aACd,IAAI,CAAC,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,WACnC,MAAM,KAAK,CAAC,YACZ,MAAM,KAAK,CAAC,GACV,cAAc,CAyF1B;oCAvG4F,4BAA4B;sCAA5B,4BAA4B;0BAFnF,cAAc;2BAAd,cAAc"}
|
|
@@ -12,6 +12,7 @@ import { mintQuote } from './priceAuthorityTransform.js';
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @import {Amount, Brand, Mint} from '@agoric/ertp';
|
|
15
|
+
* @import {Notifier} from '@agoric/notifier';
|
|
15
16
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
16
17
|
*/
|
|
17
18
|
|
|
@@ -34,4 +34,6 @@ export function parseRatio(numeric: ParsableNumber, numeratorBrand: Brand, denom
|
|
|
34
34
|
export function assertParsableNumber(specimen: unknown): asserts specimen is ParsableNumber;
|
|
35
35
|
export function ratioToNumber(ratio: Ratio): number;
|
|
36
36
|
export type ParsableNumber = bigint | number | string;
|
|
37
|
+
import type { Brand } from '@agoric/ertp';
|
|
38
|
+
import type { Amount } from '@agoric/ertp';
|
|
37
39
|
//# sourceMappingURL=ratio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ratio.d.ts","sourceRoot":"","sources":["ratio.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ratio.d.ts","sourceRoot":"","sources":["ratio.js"],"names":[],"mappings":"AA4CO,gDAcN;AASM,qCANI,MAAM,kBACN,KAAK,gBACL,MAAM,qBACN,KAAK,GACH,KAAK,CAejB;AAOM,sDAJI,MAAM,qBACN,MAAM,GACJ,KAAK,CAYjB;AA2BD,0BAA0B;AAC1B,8BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,6BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,yBADW,WAAW,CAGpB;AA2BF;;;GAGG;AACH,4BAFU,WAAW,CAInB;AAEF;;;GAGG;AACH,2BAFU,WAAW,CAInB;AAEF;;;GAGG;AACH,uBAFU,WAAW,CAInB;AAMK,mCAHI,KAAK,GACH,KAAK,CAWjB;AAOM,gCAJI,KAAK,SACL,KAAK,GACH,KAAK,CAwBjB;AAOM,qCAJI,KAAK,SACL,KAAK,GACH,KAAK,CAmBjB;AAOM,qCAJI,KAAK,SACL,KAAK,GACH,KAAK,CA8BjB;AAQM,gCAHI,KAAK,GACH,KAAK,CAcjB;AAOM,+BAJI,KAAK,SACL,KAAK,GACH,OAAO,CAkBnB;AASM,iCAJI,KAAK,SACL,KAAK,GACH,OAAO,CAOnB;AAUM,gCAJI,KAAK,UACL,MAAM,GACJ,KAAK,CAiBjB;AAaM,oCALI,cAAc,kBACd,KAAK,qBACL,KAAK,GACH,KAAK,CAmBjB;AAMM,+CAHI,OAAO,GACL,QAAQ,QAAQ,IAAI,cAAc,CAK9C;AAQM,qCAHI,KAAK,GACH,MAAM,CAMlB;6BAhDa,MAAM,GAAG,MAAM,GAAG,MAAM;2BA7WkB,cAAc;4BAAd,cAAc"}
|
|
@@ -6,6 +6,10 @@ import { isNat } from '@endo/nat';
|
|
|
6
6
|
|
|
7
7
|
import { natSafeMath } from './safeMath.js';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @import {Amount, Brand, Issuer, Payment, Purse} from '@agoric/ertp';
|
|
11
|
+
*/
|
|
12
|
+
|
|
9
13
|
const { multiply, floorDivide, ceilDivide, bankersDivide, add, subtract } =
|
|
10
14
|
natSafeMath;
|
|
11
15
|
|
|
@@ -15,7 +15,7 @@ export function assertNatAssetKind(zcf: any, brand: any): void;
|
|
|
15
15
|
export const depositToSeatSuccessMsg: "Deposit and reallocation successful.";
|
|
16
16
|
export function depositToSeat(zcf: ZCF, recipientSeat: ZCFSeat, amounts: AmountKeywordRecord, payments: PaymentPKeywordRecord): Promise<string>;
|
|
17
17
|
export function withdrawFromSeat(zcf: ZCF, seat: ZCFSeat, amounts: AmountKeywordRecord): Promise<PaymentPKeywordRecord>;
|
|
18
|
-
export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(
|
|
18
|
+
export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(ZoeIssuerRecord<any, import("@endo/patterns").Key> | undefined)[]>;
|
|
19
19
|
/** @type {MapKeywords} */
|
|
20
20
|
export const mapKeywords: MapKeywords;
|
|
21
21
|
export function offerTo<Args extends unknown, Result extends unknown>(zcf: ZCF, invitation: ERef<Invitation<Result, Args>>, keywordMapping: KeywordKeywordRecord | undefined, proposal: Proposal, fromSeat: ZCFSeat, toSeat?: ZCFSeat, offerArgs?: Args): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA;;;GAGG;AAEH,iIAAkI;AAI3H,oEAON;AAuBM,oCALI,GAAG,QACH,cAAc,UACd,mBAAmB,GACjB,CAAC,GAAC,CAAC,CAOf;AAED,mBAAmB;AACnB,mBADW,IAAI,CAkBb;AAEF,wBAAwB;AACxB,wBADW,SAAS,CAqBlB;AAiBK,uCAHI,OAAO,iBACP,OAAO,QAIgD;AAsB3D,0CAHI,OAAO,YACP,cAAc,QA8BxB;AAGM,+DAGN;AAED,6EAA8E;AAavE,mCANI,GAAG,iBACH,OAAO,WACP,mBAAmB,YACnB,qBAAqB,GACnB,OAAO,CAAC,MAAM,CAAC,CA8B3B;AAYM,sCALI,GAAG,QACH,OAAO,WACP,mBAAmB,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAQ1C;AAWM,oCAJI,GAAG,wBACH,mBAAmB
|
|
1
|
+
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA;;;GAGG;AAEH,iIAAkI;AAI3H,oEAON;AAuBM,oCALI,GAAG,QACH,cAAc,UACd,mBAAmB,GACjB,CAAC,GAAC,CAAC,CAOf;AAED,mBAAmB;AACnB,mBADW,IAAI,CAkBb;AAEF,wBAAwB;AACxB,wBADW,SAAS,CAqBlB;AAiBK,uCAHI,OAAO,iBACP,OAAO,QAIgD;AAsB3D,0CAHI,OAAO,YACP,cAAc,QA8BxB;AAGM,+DAGN;AAED,6EAA8E;AAavE,mCANI,GAAG,iBACH,OAAO,WACP,mBAAmB,YACnB,qBAAqB,GACnB,OAAO,CAAC,MAAM,CAAC,CA8B3B;AAYM,sCALI,GAAG,QACH,OAAO,WACP,mBAAmB,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAQ1C;AAWM,oCAJI,GAAG,wBACH,mBAAmB,+EAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,wBAHe,IAAI,kBACJ,MAAM,uBA/BjB,GAAG,cAGH,IAAI,CAAC,WAAW,MAAM,EAAE,IAAI,CAAC,CAAC,kBAG9B,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO,WAGP,OAAO,cAIP,IAAI,GAGF,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAAC,CAAC,CA+D1G;;iBAxVa,MAAM,cAAc;0BACpB,MAAM,UAAU;;;;;;;6BAnBqC,aAAa;6BADtD,gBAAgB;yBACyB,aAAa;gCAAb,aAAa;8BAAb,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA6BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA6BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD"}
|
|
@@ -47,8 +47,10 @@ export const makeInstanceRecordStorage = baggage => {
|
|
|
47
47
|
baggage,
|
|
48
48
|
'InstanceRecord',
|
|
49
49
|
InstanceRecordI,
|
|
50
|
-
|
|
50
|
+
/** @type {(ir: InstanceRecord) => {instanceRecord: InstanceRecord}} */
|
|
51
|
+
ir => harden({ instanceRecord: ir }),
|
|
51
52
|
{
|
|
53
|
+
/** @type {(keyword: Keyword, issuerRecord: ZoeIssuerRecord) => void} */
|
|
52
54
|
addIssuer(keyword, issuerRecord) {
|
|
53
55
|
const { state } = this;
|
|
54
56
|
!ownKeys(issuerRecord).includes(keyword) ||
|
package/src/internal-types.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ type HandleOfferObj = {
|
|
|
73
73
|
type ZoeInstanceAdminMakeInvitation = (invitationHandle: InvitationHandle, description: string, customDetails?: Record<string, any> | undefined, proposalShape?: Pattern) => Invitation;
|
|
74
74
|
type ZoeInstanceAdmin = {
|
|
75
75
|
makeInvitation: ZoeInstanceAdminMakeInvitation;
|
|
76
|
-
saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ?
|
|
76
|
+
saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>;
|
|
77
77
|
makeZoeMint: MakeZoeMint;
|
|
78
78
|
registerFeeMint: RegisterFeeMint;
|
|
79
79
|
makeNoEscrowSeat: MakeNoEscrowSeat;
|
|
@@ -101,7 +101,7 @@ type SeatHandleAllocation = {
|
|
|
101
101
|
allocation: Allocation;
|
|
102
102
|
};
|
|
103
103
|
type ZoeMint<K extends AssetKind = globalThis.AssetKind> = {
|
|
104
|
-
getIssuerRecord: () => IssuerRecord<K>;
|
|
104
|
+
getIssuerRecord: () => import("@agoric/ertp").IssuerRecord<K>;
|
|
105
105
|
mintAndEscrow: (totalToMint: Amount<K>) => void;
|
|
106
106
|
/**
|
|
107
107
|
* Note that the burning is asynchronous, and so may not have happened by
|
|
@@ -134,7 +134,7 @@ type SeatHandle = Handle<"Seat">;
|
|
|
134
134
|
* To be deleted when brands have a property for assetKind
|
|
135
135
|
*/
|
|
136
136
|
type GetAssetKindByBrand = (brand: Brand) => AssetKind;
|
|
137
|
-
type IssuerRecords = Array<
|
|
137
|
+
type IssuerRecords = Array<ZoeIssuerRecord>;
|
|
138
138
|
type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
|
|
139
139
|
/**
|
|
140
140
|
* Drops all of the references in the seat-related weakStores by
|
|
@@ -152,7 +152,7 @@ type ZcfMintReallocator = {
|
|
|
152
152
|
* Add an issuer and its keyword to the instanceRecord for the
|
|
153
153
|
* contract instance
|
|
154
154
|
*/
|
|
155
|
-
type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord:
|
|
155
|
+
type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: ZoeIssuerRecord) => void;
|
|
156
156
|
type InstanceState = {
|
|
157
157
|
addIssuer: InstanceStateAddIssuer;
|
|
158
158
|
getInstanceRecord: () => InstanceRecord;
|
|
@@ -162,9 +162,14 @@ type InstanceState = {
|
|
|
162
162
|
getBrands: () => BrandKeywordRecord;
|
|
163
163
|
assertUniqueKeyword: (keyword: Keyword) => void;
|
|
164
164
|
};
|
|
165
|
+
import type { Allocation } from '@agoric/zoe';
|
|
166
|
+
import type { AnyTerms } from '@agoric/zoe';
|
|
167
|
+
import type { BrandKeywordRecord } from '@agoric/zoe';
|
|
165
168
|
import type { Completion } from '@agoric/zoe';
|
|
166
169
|
import type { ContractStartFn } from '@agoric/zoe';
|
|
170
|
+
import type { InvitationHandle } from '@agoric/zoe';
|
|
167
171
|
import type { PaymentPKeywordRecord } from '@agoric/zoe';
|
|
168
172
|
import type { UserSeat } from '@agoric/zoe';
|
|
173
|
+
import type { ZoeIssuerRecord } from '@agoric/zoe';
|
|
169
174
|
import type { Pattern } from '@endo/patterns';
|
|
170
175
|
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";cAUc,cAAc;uBACd,UAAU;gBACV,UAAU;gBACV,MAAM;;;;;qCA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a;qCAAb,aAAa;sCAAb,aAAa;2CAAb,aAAa;8BAAb,aAAa;qCAAb,aAAa;6BAC/I,gBAAgB"}
|
package/src/internal-types.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="@agoric/ertp/exported" />
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @import {Completion, ContractStartFn, PaymentPKeywordRecord, UserSeat} from '@agoric/zoe';
|
|
5
|
+
* @import {Allocation, AnyTerms, BrandKeywordRecord, Completion, ContractStartFn, InvitationHandle, PaymentPKeywordRecord, UserSeat, ZoeIssuerRecord} from '@agoric/zoe';
|
|
6
6
|
* @import {Pattern} from '@endo/patterns';
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
* @property {ZoeInstanceAdminMakeInvitation} makeInvitation
|
|
134
134
|
* @property {<I extends Issuer>(issuerP: ERef<I>,
|
|
135
135
|
* keyword: Keyword
|
|
136
|
-
* ) => Promise<I extends Issuer<infer K, infer M> ?
|
|
136
|
+
* ) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>} saveIssuer
|
|
137
137
|
* @property {MakeZoeMint} makeZoeMint
|
|
138
138
|
* @property {RegisterFeeMint} registerFeeMint
|
|
139
139
|
* @property {MakeNoEscrowSeat} makeNoEscrowSeat
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
/**
|
|
197
197
|
* @template {AssetKind} [K=AssetKind]
|
|
198
198
|
* @typedef {object} ZoeMint
|
|
199
|
-
* @property {() => IssuerRecord<K>} getIssuerRecord
|
|
199
|
+
* @property {() => import('@agoric/ertp').IssuerRecord<K>} getIssuerRecord
|
|
200
200
|
* @property {(totalToMint: Amount<K>) => void} mintAndEscrow
|
|
201
201
|
* @property {(totalToBurn: Amount<K>) => void} withdrawAndBurn
|
|
202
202
|
* Note that the burning is asynchronous, and so may not have happened by
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
*/
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
|
-
* @typedef {Array<
|
|
264
|
+
* @typedef {Array<ZoeIssuerRecord>} IssuerRecords
|
|
265
265
|
*/
|
|
266
266
|
|
|
267
267
|
/**
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
* contract instance
|
|
297
297
|
*
|
|
298
298
|
* @param {Keyword} keyword
|
|
299
|
-
* @param {
|
|
299
|
+
* @param {ZoeIssuerRecord} issuerRecord
|
|
300
300
|
* @returns {void}
|
|
301
301
|
*/
|
|
302
302
|
|
package/src/issuerRecord.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>):
|
|
2
|
-
export function assertFullIssuerRecord(issuerRecord: IssuerRecord): asserts issuerRecord is Required<IssuerRecord>;
|
|
1
|
+
export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): ZoeIssuerRecord<K>;
|
|
2
|
+
export function assertFullIssuerRecord(issuerRecord: IssuerRecord<any>): asserts issuerRecord is Required<IssuerRecord>;
|
|
3
|
+
import type { IssuerRecord } from '@agoric/ertp';
|
|
3
4
|
//# sourceMappingURL=issuerRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAiBO,iCANkB,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,UACR,MAAM,CAAC,CAAC,CAAC,eACT,WAAW,CAAC,CAAC,CAAC,GACZ,gBAAgB,CAAC,CAAC,CAQ3B;AAMG,qDAHI,aAAa,GAAG,CAAC,GACf,QAAQ,YAAY,IAAI,QAAQ,CAAC,YAAY,CAAC,CAM1D;kCA7B8B,cAAc"}
|
package/src/issuerRecord.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
import { Fail } from '@endo/errors';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @import {IssuerRecord} from '@agoric/ertp';
|
|
6
|
+
*/
|
|
7
|
+
|
|
4
8
|
/**
|
|
5
9
|
* Put together information about the issuer in a standard format that
|
|
6
10
|
* is synchronously accessible.
|
|
@@ -9,7 +13,7 @@ import { Fail } from '@endo/errors';
|
|
|
9
13
|
* @param {Brand<K>} brand
|
|
10
14
|
* @param {Issuer<K>} issuer
|
|
11
15
|
* @param {DisplayInfo<K>} displayInfo
|
|
12
|
-
* @returns {
|
|
16
|
+
* @returns {ZoeIssuerRecord<K>}
|
|
13
17
|
*/
|
|
14
18
|
export const makeIssuerRecord = (brand, issuer, displayInfo) =>
|
|
15
19
|
harden({
|
|
@@ -20,7 +24,7 @@ export const makeIssuerRecord = (brand, issuer, displayInfo) =>
|
|
|
20
24
|
});
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
|
-
* @param {IssuerRecord} issuerRecord
|
|
27
|
+
* @param {IssuerRecord<any>} issuerRecord
|
|
24
28
|
* @returns {asserts issuerRecord is Required<IssuerRecord>}
|
|
25
29
|
*/
|
|
26
30
|
export const assertFullIssuerRecord = issuerRecord => {
|
package/src/issuerStorage.d.ts
CHANGED
|
@@ -3,12 +3,13 @@ export function provideIssuerStorage(zcfBaggage: import("@agoric/vat-data").Bagg
|
|
|
3
3
|
issuers: IssuerKeywordRecord;
|
|
4
4
|
brands: BrandKeywordRecord;
|
|
5
5
|
}>;
|
|
6
|
-
storeIssuer: (issuerP: ERef<Issuer>) => Promise<
|
|
7
|
-
storeIssuerRecord: (issuerRecord:
|
|
6
|
+
storeIssuer: (issuerP: ERef<Issuer>) => Promise<ZoeIssuerRecord>;
|
|
7
|
+
storeIssuerRecord: (issuerRecord: ZoeIssuerRecord) => ZoeIssuerRecord;
|
|
8
8
|
getAssetKindByBrand: GetAssetKindByBrand;
|
|
9
9
|
getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
|
|
10
10
|
getIssuerForBrand: <K extends AssetKind>(brand: Brand<K>) => Issuer<K>;
|
|
11
11
|
getIssuerRecords: (issuers: Issuer[]) => IssuerRecords;
|
|
12
12
|
instantiate: (issuerRecords?: any[]) => void;
|
|
13
13
|
};
|
|
14
|
+
import type { ZoeIssuerRecord } from '@agoric/zoe';
|
|
14
15
|
//# sourceMappingURL=issuerStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAoBO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7B,MAAM,EAAE,kBAAkB,CAAA;KAAE,CAAC;2BAnDzC,IAAI,CAAC,MAAM,CAAC,KACV,OAAO,CAAE,eAAe,CAAC;sCAzB3B,eAAe,KACb,eAAe;;wBAyFH,CAAC,SAAZ,SAAU,UACb,MAAM,CAAC,CAAC,CAAC,KACP,KAAK,CAAC,CAAC,CAAC;wBASI,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,KACN,MAAM,CAAC,CAAC,CAAC;gCASX,MAAM,EAAE,KACN,aAAa;;EA2B3B;qCAjMiC,aAAa"}
|