@agoric/zoe 0.27.0-upgrade-20-dev-ef71cfd.0 → 0.27.0-upgrade-21-dev-16519b2.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 +257 -252
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +22 -21
- package/src/contractFacet/vatRoot.d.ts +1 -1
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.d.ts +3 -1
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +5 -3
- package/src/contractFacet/zcfZygote.d.ts +2 -3
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +5 -5
- package/src/contractSupport/prepare-ownable.d.ts +1 -1
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.js +5 -1
- package/src/contracts/auction/index.d.ts +2 -2
- package/src/contracts/automaticRefund.d.ts +1 -1
- package/src/contracts/barterExchange.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +1 -1
- package/src/contracts/loan/liquidate.d.ts.map +1 -1
- package/src/contracts/loan/liquidate.js +5 -1
- package/src/contracts/mintPayments.d.ts +2 -2
- package/src/contracts/oracle.d.ts +2 -2
- package/src/contracts/otcDesk.d.ts +1 -1
- package/src/contracts/priceAggregator.d.ts +2 -2
- package/src/contracts/simpleExchange.d.ts +1 -1
- package/src/instanceRecordStorage.d.ts +3 -1
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +6 -1
- package/src/internal-types.d.ts +21 -16
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +15 -10
- package/src/types.d.ts +1 -1
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +1 -8
- package/src/zoeService/escrowStorage.d.ts.map +1 -1
- package/src/zoeService/escrowStorage.js +1 -2
- package/src/zoeService/feeMint.d.ts +6 -4
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +5 -3
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +1 -2
- package/src/zoeService/makeInvitation.d.ts +4 -2
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +6 -3
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +0 -1
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +2 -2
- package/src/zoeService/zoe.d.ts +8 -7
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +5 -5
- package/src/zoeService/zoeStorageManager.d.ts +1 -1
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +9 -1
- package/tools/fakeVatAdmin.d.ts +6 -6
- package/tools/scriptedOracle.d.ts +1 -1
- package/tools/setup-zoe.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.27.0-upgrade-
|
|
3
|
+
"version": "0.27.0-upgrade-21-dev-16519b2.0+16519b2",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.9 || ^22.11"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "yarn build:bundles",
|
|
12
12
|
"build:bundles": "node scripts/build-bundles.js",
|
|
13
|
-
"prepack": "tsc --build tsconfig.build.json",
|
|
13
|
+
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
14
14
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
15
15
|
"test": "ava --verbose",
|
|
16
16
|
"test:c8": "c8 --all $C8_OPTIONS ava",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests'",
|
|
22
22
|
"build-zcfBundle": "yarn build:bundles",
|
|
23
23
|
"lint-fix": "yarn lint:eslint --fix",
|
|
24
|
-
"lint": "run-s --continue-on-error lint:*",
|
|
25
|
-
"lint:eslint": "eslint .",
|
|
26
|
-
"lint:types": "tsc"
|
|
24
|
+
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
25
|
+
"lint:eslint": "yarn run -T eslint .",
|
|
26
|
+
"lint:types": "yarn run -T tsc"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/base-zone": "
|
|
47
|
-
"@agoric/ertp": "
|
|
48
|
-
"@agoric/internal": "
|
|
49
|
-
"@agoric/notifier": "
|
|
50
|
-
"@agoric/store": "
|
|
51
|
-
"@agoric/swingset-liveslots": "
|
|
52
|
-
"@agoric/swingset-vat": "
|
|
53
|
-
"@agoric/time": "
|
|
54
|
-
"@agoric/vat-data": "
|
|
55
|
-
"@agoric/vow": "
|
|
56
|
-
"@agoric/zone": "
|
|
46
|
+
"@agoric/base-zone": "workspace:*",
|
|
47
|
+
"@agoric/ertp": "workspace:*",
|
|
48
|
+
"@agoric/internal": "workspace:*",
|
|
49
|
+
"@agoric/notifier": "workspace:*",
|
|
50
|
+
"@agoric/store": "workspace:*",
|
|
51
|
+
"@agoric/swingset-liveslots": "workspace:*",
|
|
52
|
+
"@agoric/swingset-vat": "workspace:*",
|
|
53
|
+
"@agoric/time": "workspace:*",
|
|
54
|
+
"@agoric/vat-data": "workspace:*",
|
|
55
|
+
"@agoric/vow": "workspace:*",
|
|
56
|
+
"@agoric/zone": "workspace:*",
|
|
57
57
|
"@endo/bundle-source": "^4.0.0",
|
|
58
58
|
"@endo/captp": "^4.4.5",
|
|
59
59
|
"@endo/common": "^1.2.10",
|
|
@@ -70,10 +70,11 @@
|
|
|
70
70
|
"yargs-parser": "^21.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "
|
|
73
|
+
"@agoric/kmarshal": "workspace:*",
|
|
74
|
+
"@agoric/xsnap": "workspace:*",
|
|
74
75
|
"@endo/init": "^1.1.9",
|
|
75
76
|
"ava": "^5.3.0",
|
|
76
|
-
"c8": "^10.1.
|
|
77
|
+
"c8": "^10.1.3",
|
|
77
78
|
"import-meta-resolve": "^4.1.0",
|
|
78
79
|
"tsd": "^0.31.1"
|
|
79
80
|
},
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"access": "public"
|
|
99
100
|
},
|
|
100
101
|
"typeCoverage": {
|
|
101
|
-
"atLeast":
|
|
102
|
+
"atLeast": 84.69
|
|
102
103
|
},
|
|
103
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
|
|
104
105
|
}
|
|
@@ -15,6 +15,6 @@ export function buildRootObject(powers: VatPowers & {
|
|
|
15
15
|
zoeService: ZoeService;
|
|
16
16
|
invitationIssuer: Issuer<"set">;
|
|
17
17
|
privateArgs?: any;
|
|
18
|
-
}, baggage: import("@agoric/vat-data").Baggage): Promise<
|
|
18
|
+
}, baggage: import("@agoric/vat-data").Baggage): Promise<RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
|
|
19
19
|
import type { ZoeService } from '@agoric/zoe';
|
|
20
20
|
//# sourceMappingURL=vatRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,CAAE,EAAC,GAAG,EAAC,EAAE;QAAC,GAAG,EAAE,GAAG,CAAA;KAAC,KAAM,IAAI,CAAA;CAAE,iBAC5D;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,kBAAkB,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,CAAE,EAAC,GAAG,EAAC,EAAE;QAAC,GAAG,EAAE,GAAG,CAAA;KAAC,KAAM,IAAI,CAAA;CAAE,iBAC5D;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,kBAAkB,EAAE,OAAO,yGA8D5C;gCApE4B,aAAa"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function createSeatManager(zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure:
|
|
1
|
+
export function createSeatManager(zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: ShutdownWithFailure, zcfBaggage: Baggage): {
|
|
2
2
|
seatManager: ZcfSeatManager;
|
|
3
3
|
zcfMintReallocator: ZcfMintReallocator;
|
|
4
4
|
};
|
|
5
|
+
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
6
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
5
7
|
//# sourceMappingURL=zcfSeat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"AAuCO,oDANI,IAAI,CAAC,gBAAgB,CAAC,uBACtB,mBAAmB,uBACnB,mBAAmB,cACnB,OAAO,GACL;IAAE,WAAW,EAAE,cAAc,CAAC;IAAC,kBAAkB,EAAE,kBAAkB,CAAA;CAAE,CAuTnF;yCApUqC,sBAAsB;6BAClC,kBAAkB"}
|
|
@@ -22,7 +22,9 @@ import { TransferPartShape } from '../contractSupport/atomicTransfer.js';
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @import {WeakMapStore} from '@agoric/store';
|
|
25
|
-
* @import {
|
|
25
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
26
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
27
|
+
* @import {Allocation} from './types.js';
|
|
26
28
|
*/
|
|
27
29
|
|
|
28
30
|
/**
|
|
@@ -31,8 +33,8 @@ import { TransferPartShape } from '../contractSupport/atomicTransfer.js';
|
|
|
31
33
|
*
|
|
32
34
|
* @param {ERef<ZoeInstanceAdmin>} zoeInstanceAdmin
|
|
33
35
|
* @param {GetAssetKindByBrand} getAssetKindByBrand
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
36
|
+
* @param {ShutdownWithFailure} shutdownWithFailure
|
|
37
|
+
* @param {Baggage} zcfBaggage
|
|
36
38
|
* @returns {{ seatManager: ZcfSeatManager, zcfMintReallocator: ZcfMintReallocator }}
|
|
37
39
|
*/
|
|
38
40
|
export const createSeatManager = (
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export function makeZCFZygote(powers: VatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<"set">, testJigSetter: ({ zcf }: {
|
|
2
2
|
zcf: ZCF;
|
|
3
|
-
}) => void, contractBundleCap: BundleCap, zcfBaggage?:
|
|
3
|
+
}) => void, contractBundleCap: BundleCap, zcfBaggage?: Baggage): Promise<ZCFZygote>;
|
|
4
4
|
export type ZCFZygote = {
|
|
5
5
|
startContract: (instanceAdminFromZoe: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
|
|
6
6
|
restartContract: (privateArgs?: object) => void;
|
|
7
7
|
};
|
|
8
|
-
import type {
|
|
9
|
-
import type { ZCF } from '@agoric/zoe';
|
|
8
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
10
9
|
//# sourceMappingURL=zcfZygote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AA6DO,sCARI,SAAS,cACT,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,CAAE,EAAC,GAAG,EAAC,EAAE;IAAC,GAAG,EAAE,GAAG,CAAA;CAAC,KAAM,IAAI,qBAC7B,SAAS,eACT,OAAO,
|
|
1
|
+
{"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AA6DO,sCARI,SAAS,cACT,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,CAAE,EAAC,GAAG,EAAC,EAAE;IAAC,GAAG,EAAE,GAAG,CAAA;CAAC,KAAM,IAAI,qBAC7B,SAAS,eACT,OAAO,GACL,OAAO,CAAC,SAAS,CAAC,CAod9B;;mBAvea,CAAC,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,CAAC,EACpD,qBAAqB,EAAE,cAAc,EACrC,oBAAoB,EAAE,aAAa,EACnC,WAAW,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,qBAAqB,CAAC;qBACxB,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI;;6BAZlB,kBAAkB"}
|
|
@@ -29,11 +29,11 @@ import { HandleOfferI, InvitationHandleShape } from '../typeGuards.js';
|
|
|
29
29
|
import { prepareZcMint } from './zcfMint.js';
|
|
30
30
|
import { ZcfI } from './typeGuards.js';
|
|
31
31
|
|
|
32
|
-
/// <reference path="../internal-types.js" />
|
|
33
|
-
|
|
34
32
|
/**
|
|
33
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
34
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
35
35
|
* @import {IssuerOptionsRecord} from '@agoric/ertp';
|
|
36
|
-
* @import {
|
|
36
|
+
* @import {ZoeIssuerRecord, ZCFRegisterFeeMint, ContractStartFn, SetTestJig} from './types.js';
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -56,7 +56,7 @@ import { ZcfI } from './typeGuards.js';
|
|
|
56
56
|
* @param {Issuer<'set'>} invitationIssuer
|
|
57
57
|
* @param {( {zcf}: {zcf: ZCF} ) => void} testJigSetter
|
|
58
58
|
* @param {BundleCap} contractBundleCap
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {Baggage} zcfBaggage
|
|
60
60
|
* @returns {Promise<ZCFZygote>}
|
|
61
61
|
*/
|
|
62
62
|
export const makeZCFZygote = async (
|
|
@@ -88,7 +88,7 @@ export const makeZCFZygote = async (
|
|
|
88
88
|
instantiate: instantiateIssuerStorage,
|
|
89
89
|
} = provideIssuerStorage(zcfBaggage);
|
|
90
90
|
|
|
91
|
-
/** @type {
|
|
91
|
+
/** @type {ShutdownWithFailure} */
|
|
92
92
|
const shutdownWithFailure = reason => {
|
|
93
93
|
void E(zoeInstanceAdmin).failAllSeats(reason);
|
|
94
94
|
seatManager.dropAllReferences();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareOwnable<MN extends (string | symbol)[]>(zone: import("@agoric/base-zone").Zone, makeInvitation: ZCF["makeInvitation"], uKindName: string, uMethodNames: MN, options?: OwnableOptions): <U>(underlying: U) =>
|
|
1
|
+
export function prepareOwnable<MN extends (string | symbol)[]>(zone: import("@agoric/base-zone").Zone, makeInvitation: ZCF["makeInvitation"], uKindName: string, uMethodNames: MN, options?: OwnableOptions): <U>(underlying: U) => Partial<U> & {
|
|
2
2
|
makeTransferInvitation: () => Invitation<U>;
|
|
3
3
|
};
|
|
4
4
|
export type OwnableOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AA0CO,+BAlB4B,EAAE,SAAvB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAG,QACvB,OAAO,mBAAmB,EAAE,IAAI,kBAChC,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,gBAEN,EAAE,YAGF,cAAc,GACZ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AA0CO,+BAlB4B,EAAE,SAAvB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAG,QACvB,OAAO,mBAAmB,EAAE,IAAI,kBAChC,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,gBAEN,EAAE,YAGF,cAAc,GACZ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG;IAAC,sBAAsB,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,CAAA;CAAC,CA6D5F"}
|
|
@@ -38,7 +38,7 @@ const TransferProposalShape = M.splitRecord({
|
|
|
38
38
|
* The method names of the underlying exo class that should be represented
|
|
39
39
|
* by transparently-forwarding methods of the wrapping ownable object.
|
|
40
40
|
* @param {OwnableOptions} [options]
|
|
41
|
-
* @returns {<U>(underlying: U) =>
|
|
41
|
+
* @returns {<U>(underlying: U) => Partial<U> & {makeTransferInvitation: () => Invitation<U>}}
|
|
42
42
|
*/
|
|
43
43
|
export const prepareOwnable = (
|
|
44
44
|
zone,
|
|
@@ -94,6 +94,10 @@ export const prepareOwnable = (
|
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
const makeOwnable = underlying => makeRevocable(underlying);
|
|
97
|
+
// Using at-ts-ignore rather than at-ts-expect-error because the vscode
|
|
98
|
+
// ts server says it is an error but `yarn lint` says it is not.
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
100
|
+
// @ts-ignore Return type is more precise than revocable supports
|
|
97
101
|
return harden(makeOwnable);
|
|
98
102
|
};
|
|
99
103
|
harden(prepareOwnable);
|
|
@@ -37,7 +37,7 @@ export function start(zcf: ZCF<{
|
|
|
37
37
|
timeAuthority: import("@agoric/time").TimerService;
|
|
38
38
|
bids: string | any[];
|
|
39
39
|
};
|
|
40
|
-
} &
|
|
40
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
41
|
makeBidInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
42
42
|
getSessionDetails: () => {
|
|
43
43
|
auctionedAssets: any;
|
|
@@ -60,7 +60,7 @@ export function start(zcf: ZCF<{
|
|
|
60
60
|
timeAuthority: import("@agoric/time").TimerService;
|
|
61
61
|
bids: string | any[];
|
|
62
62
|
};
|
|
63
|
-
} &
|
|
63
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
getCurrentBids: () => any[] | "Bids are hidden for \"second price\" auctions";
|
|
65
65
|
getSessionDetails: () => {
|
|
66
66
|
auctionedAssets: any;
|
|
@@ -17,7 +17,7 @@ export function start(zcf: ZCF<{}>): {
|
|
|
17
17
|
publicFacet: {
|
|
18
18
|
getOffersCount: () => bigint;
|
|
19
19
|
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
20
|
-
} &
|
|
20
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
21
|
getOffersCount: () => bigint;
|
|
22
22
|
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
23
23
|
}>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
export function start(zcf: ZCF): {
|
|
16
16
|
publicFacet: {
|
|
17
17
|
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
18
|
-
} &
|
|
18
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
19
19
|
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
20
20
|
}>;
|
|
21
21
|
};
|
|
@@ -56,7 +56,7 @@ export function start(zcf: ZCF<{
|
|
|
56
56
|
longInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
57
57
|
shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
58
58
|
};
|
|
59
|
-
} &
|
|
59
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
60
60
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
61
61
|
longInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
62
62
|
shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liquidate.d.ts","sourceRoot":"","sources":["liquidate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"liquidate.d.ts","sourceRoot":"","sources":["liquidate.js"],"names":[],"mappings":"AASO,wIA6CN;AAeM,+BAJI,GAAG,UACH,sBAAsB,GACpB,OAAO,CAAC,IAAI,CAAC,CAiBzB"}
|
|
@@ -3,6 +3,10 @@ import { AmountMath } from '@agoric/ertp';
|
|
|
3
3
|
|
|
4
4
|
import { offerTo } from '../../contractSupport/zoeHelpers.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
8
|
+
*/
|
|
9
|
+
|
|
6
10
|
export const doLiquidation = async (
|
|
7
11
|
zcf,
|
|
8
12
|
collateralSeat,
|
|
@@ -37,7 +41,7 @@ export const doLiquidation = async (
|
|
|
37
41
|
zcf.shutdown('your loan had to be liquidated');
|
|
38
42
|
};
|
|
39
43
|
|
|
40
|
-
/** @type {
|
|
44
|
+
/** @type {ShutdownWithFailure} */
|
|
41
45
|
const closeWithFailure = err => {
|
|
42
46
|
lenderSeat.fail(err);
|
|
43
47
|
collateralSeat.fail(err);
|
|
@@ -17,13 +17,13 @@ export function start(zcf: ZCF): Promise<{
|
|
|
17
17
|
creatorFacet: {
|
|
18
18
|
makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
|
|
19
19
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
20
|
-
} &
|
|
20
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
21
|
makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
|
|
22
22
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
23
23
|
}>;
|
|
24
24
|
publicFacet: {
|
|
25
25
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
26
|
-
} &
|
|
26
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
27
27
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
28
28
|
}>;
|
|
29
29
|
}>;
|
|
@@ -12,7 +12,7 @@ export type OracleStart = typeof start;
|
|
|
12
12
|
export function start(zcf: ZCF): Promise<{
|
|
13
13
|
creatorFacet: {
|
|
14
14
|
initialize(privateParams: any): OracleCreatorFacet;
|
|
15
|
-
} &
|
|
15
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
initialize(privateParams: any): OracleCreatorFacet;
|
|
17
17
|
}>;
|
|
18
18
|
publicFacet: {
|
|
@@ -20,7 +20,7 @@ export function start(zcf: ZCF): Promise<{
|
|
|
20
20
|
query(query: OracleQuery): Promise<unknown>;
|
|
21
21
|
/** @param {OracleQuery} query */
|
|
22
22
|
makeQueryInvitation(query: OracleQuery): Promise<Invitation<unknown, never>>;
|
|
23
|
-
} &
|
|
23
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
24
|
/** @param {OracleQuery} query */
|
|
25
25
|
query(query: OracleQuery): Promise<unknown>;
|
|
26
26
|
/** @param {OracleQuery} query */
|
|
@@ -56,7 +56,7 @@ export function start(zcf: ZCF<Record<string, any>>): {
|
|
|
56
56
|
*/
|
|
57
57
|
makeRemoveInventoryInvitation: () => Promise<Payment>;
|
|
58
58
|
makeQuote: (price: AmountKeywordRecord, assets: AmountKeywordRecord, timeAuthority: import("@agoric/time").TimerService, deadline: any) => Promise<Payment>;
|
|
59
|
-
} &
|
|
59
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
60
60
|
/**
|
|
61
61
|
* The inventory can be added in bulk before any quotes are made
|
|
62
62
|
* or can be added immediately before a quote.
|
|
@@ -63,7 +63,7 @@ export function start(zcf: ZCF<{
|
|
|
63
63
|
* @returns {Promise<OracleAdmin<Price>>}
|
|
64
64
|
*/
|
|
65
65
|
initOracle: (oracleInstance?: Instance | string, query?: OracleQuery) => Promise<OracleAdmin<Price>>;
|
|
66
|
-
} &
|
|
66
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
67
67
|
/**
|
|
68
68
|
* An "oracle invitation" is an invitation to be able to submit data to
|
|
69
69
|
* include in the priceAggregator's results.
|
|
@@ -97,7 +97,7 @@ export function start(zcf: ZCF<{
|
|
|
97
97
|
getSubscriber: () => globalThis.StoredSubscriber<unknown>;
|
|
98
98
|
/** Diagnostic tool */
|
|
99
99
|
getRoundCompleteNotifier(): Promise<globalThis.Notifier<any>>;
|
|
100
|
-
} &
|
|
100
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
101
101
|
getPriceAuthority(): import("@agoric/zoe/tools/types.js").PriceAuthority;
|
|
102
102
|
getSubscriber: () => globalThis.StoredSubscriber<unknown>;
|
|
103
103
|
/** Diagnostic tool */
|
|
@@ -29,7 +29,7 @@ export function start(zcf: ZCF): {
|
|
|
29
29
|
buys: any;
|
|
30
30
|
sells: any;
|
|
31
31
|
}>;
|
|
32
|
-
} &
|
|
32
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
33
33
|
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
34
34
|
getNotifier: () => globalThis.Notifier<{
|
|
35
35
|
buys: any;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export function makeInstanceRecordStorage(baggage:
|
|
1
|
+
export function makeInstanceRecordStorage(baggage: Baggage): (ir: InstanceRecord) => InstanceState;
|
|
2
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
3
|
+
import type { InstanceRecord } from './zoeService/utils.js';
|
|
2
4
|
//# sourceMappingURL=instanceRecordStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AAkCO,mDAHI,OAAO,GACL,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD;6BAvGyB,kBAAkB;oCACX,uBAAuB"}
|
|
@@ -11,6 +11,11 @@ import {
|
|
|
11
11
|
TermsShape,
|
|
12
12
|
} from './typeGuards.js';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
16
|
+
* @import {InstanceRecord} from './zoeService/utils.js';
|
|
17
|
+
*/
|
|
18
|
+
|
|
14
19
|
const { ownKeys } = Reflect;
|
|
15
20
|
|
|
16
21
|
/**
|
|
@@ -24,7 +29,7 @@ const { ownKeys } = Reflect;
|
|
|
24
29
|
*/
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
|
-
* @param {
|
|
32
|
+
* @param {Baggage} baggage
|
|
28
33
|
* @returns {(ir: InstanceRecord) => InstanceState}
|
|
29
34
|
*/
|
|
30
35
|
export const makeInstanceRecordStorage = baggage => {
|
package/src/internal-types.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ type ZoeSeatAdminKit = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Make the Zoe seat admin, user seat and a notifier
|
|
24
24
|
*/
|
|
25
|
-
type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: ERef<unknown>, baggage:
|
|
25
|
+
type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: ERef<unknown>, baggage: Baggage) => ZoeSeatAdminKit;
|
|
26
26
|
type ZoeSeatAdminExit = (completion?: Completion) => void;
|
|
27
27
|
type ZoeSeatAdminMethods = {
|
|
28
28
|
replaceAllocation: (allocation: Allocation) => void;
|
|
@@ -31,12 +31,12 @@ type ZoeSeatAdminMethods = {
|
|
|
31
31
|
* called with the reason
|
|
32
32
|
* for calling fail on this seat, where reason is normally an instanceof Error.
|
|
33
33
|
*/
|
|
34
|
-
fail:
|
|
34
|
+
fail: ShutdownWithFailure;
|
|
35
35
|
getExitSubscriber: () => Subscriber<AmountKeywordRecord>;
|
|
36
36
|
};
|
|
37
|
-
type ZoeSeatAdmin =
|
|
37
|
+
type ZoeSeatAdmin = RemotableObject & ZoeSeatAdminMethods;
|
|
38
38
|
type HandleOfferResult = {
|
|
39
|
-
offerResultPromise: Promise<
|
|
39
|
+
offerResultPromise: Promise<Passable>;
|
|
40
40
|
exitObj: ExitObj;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
@@ -56,7 +56,7 @@ type InstanceAdmin = {
|
|
|
56
56
|
getOfferFilter: () => string[];
|
|
57
57
|
getInstallation: () => Installation;
|
|
58
58
|
exitAllSeats: (completion: Completion) => void;
|
|
59
|
-
failAllSeats:
|
|
59
|
+
failAllSeats: ShutdownWithFailure;
|
|
60
60
|
stopAcceptingOffers: () => void;
|
|
61
61
|
isBlocked: (string: string) => boolean;
|
|
62
62
|
initDelayedState: (handleOfferObj: HandleOfferObj, publicFacet: unknown) => void;
|
|
@@ -79,7 +79,7 @@ type ZoeInstanceAdmin = {
|
|
|
79
79
|
makeNoEscrowSeat: MakeNoEscrowSeat;
|
|
80
80
|
replaceAllocations: ReplaceAllocations;
|
|
81
81
|
exitAllSeats: (completion: Completion) => void;
|
|
82
|
-
failAllSeats:
|
|
82
|
+
failAllSeats: ShutdownWithFailure;
|
|
83
83
|
exitSeat: (seatHandle: SeatHandle, completion: Completion) => void;
|
|
84
84
|
failSeat: (seatHandle: SeatHandle, reason: Error) => void;
|
|
85
85
|
stopAcceptingOffers: () => void;
|
|
@@ -101,7 +101,7 @@ type SeatHandleAllocation = {
|
|
|
101
101
|
allocation: Allocation;
|
|
102
102
|
};
|
|
103
103
|
type ZoeMint<K extends AssetKind = globalThis.AssetKind> = {
|
|
104
|
-
getIssuerRecord: () =>
|
|
104
|
+
getIssuerRecord: () => 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
|
|
@@ -162,14 +162,19 @@ type InstanceState = {
|
|
|
162
162
|
getBrands: () => BrandKeywordRecord;
|
|
163
163
|
assertUniqueKeyword: (keyword: Keyword) => void;
|
|
164
164
|
};
|
|
165
|
-
import type {
|
|
166
|
-
import type {
|
|
167
|
-
import type { BrandKeywordRecord } from '@agoric/zoe';
|
|
168
|
-
import type { Completion } from '@agoric/zoe';
|
|
169
|
-
import type { ContractStartFn } from '@agoric/zoe';
|
|
170
|
-
import type { InvitationHandle } from '@agoric/zoe';
|
|
171
|
-
import type { PaymentPKeywordRecord } from '@agoric/zoe';
|
|
172
|
-
import type { UserSeat } from '@agoric/zoe';
|
|
173
|
-
import type { ZoeIssuerRecord } from '@agoric/zoe';
|
|
165
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
166
|
+
import type { Passable } from '@endo/pass-style';
|
|
174
167
|
import type { Pattern } from '@endo/patterns';
|
|
168
|
+
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
169
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
170
|
+
import type { IssuerOptionsRecord } from '@agoric/ertp';
|
|
171
|
+
import type { IssuerRecord } from '@agoric/ertp';
|
|
172
|
+
import type { Allocation } from './types-index.js';
|
|
173
|
+
import type { PaymentPKeywordRecord } from './types-index.js';
|
|
174
|
+
import type { UserSeat } from './types-index.js';
|
|
175
|
+
import type { Completion } from './types-index.js';
|
|
176
|
+
import type { ZoeIssuerRecord } from './types-index.js';
|
|
177
|
+
import type { InvitationHandle } from './types.js';
|
|
178
|
+
import type { BrandKeywordRecord } from './types.js';
|
|
179
|
+
import type { AnyTerms } from './types.js';
|
|
175
180
|
//# 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":"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"}
|
package/src/internal-types.js
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
/// <reference types="@agoric/ertp/exported" />
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @import {
|
|
5
|
+
* @import {RemotableObject, Passable} from '@endo/pass-style';
|
|
6
6
|
* @import {Pattern} from '@endo/patterns';
|
|
7
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
8
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
9
|
+
* @import {IssuerOptionsRecord, IssuerRecord} from '@agoric/ertp';
|
|
10
|
+
* @import {Allocation, PaymentPKeywordRecord, UserSeat, Completion, ZoeIssuerRecord} from './types-index.js';
|
|
11
|
+
* @import {InvitationHandle, BrandKeywordRecord, AnyTerms} from './types.js';
|
|
7
12
|
*/
|
|
8
13
|
|
|
9
14
|
/**
|
|
@@ -24,7 +29,7 @@
|
|
|
24
29
|
|
|
25
30
|
/**
|
|
26
31
|
* @typedef WithdrawFacet
|
|
27
|
-
* @property {(allocation:Allocation) => PaymentPKeywordRecord} withdrawPayments
|
|
32
|
+
* @property {(allocation: Allocation) => PaymentPKeywordRecord} withdrawPayments
|
|
28
33
|
*/
|
|
29
34
|
|
|
30
35
|
/**
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
* @param {WithdrawFacet} withdrawFacet
|
|
49
54
|
* @param {ERef<ExitObj>} exitObj
|
|
50
55
|
* @param {ERef<unknown>} [offerResult]
|
|
51
|
-
* @param {
|
|
56
|
+
* @param {Baggage} baggage
|
|
52
57
|
* @returns {ZoeSeatAdminKit}
|
|
53
58
|
*/
|
|
54
59
|
|
|
@@ -62,12 +67,12 @@
|
|
|
62
67
|
* @typedef ZoeSeatAdminMethods
|
|
63
68
|
* @property {(allocation: Allocation) => void} replaceAllocation
|
|
64
69
|
* @property {ZoeSeatAdminExit} exit
|
|
65
|
-
* @property {
|
|
70
|
+
* @property {ShutdownWithFailure} fail called with the reason
|
|
66
71
|
* for calling fail on this seat, where reason is normally an instanceof Error.
|
|
67
72
|
* @property {() => Subscriber<AmountKeywordRecord>} getExitSubscriber
|
|
68
73
|
*/
|
|
69
74
|
/**
|
|
70
|
-
* @typedef {
|
|
75
|
+
* @typedef {RemotableObject & ZoeSeatAdminMethods} ZoeSeatAdmin
|
|
71
76
|
*/
|
|
72
77
|
|
|
73
78
|
/**
|
|
@@ -76,7 +81,7 @@
|
|
|
76
81
|
|
|
77
82
|
/**
|
|
78
83
|
* @typedef {object} HandleOfferResult
|
|
79
|
-
* @property {Promise<
|
|
84
|
+
* @property {Promise<Passable>} offerResultPromise
|
|
80
85
|
* @property {ExitObj} exitObj
|
|
81
86
|
*/
|
|
82
87
|
|
|
@@ -101,7 +106,7 @@
|
|
|
101
106
|
* @property {() => string[]} getOfferFilter
|
|
102
107
|
* @property {() => Installation} getInstallation
|
|
103
108
|
* @property {(completion: Completion) => void} exitAllSeats
|
|
104
|
-
* @property {
|
|
109
|
+
* @property {ShutdownWithFailure} failAllSeats
|
|
105
110
|
* @property {() => void} stopAcceptingOffers
|
|
106
111
|
* @property {(string: string) => boolean} isBlocked
|
|
107
112
|
* @property {(handleOfferObj: HandleOfferObj, publicFacet: unknown) => void} initDelayedState
|
|
@@ -139,7 +144,7 @@
|
|
|
139
144
|
* @property {MakeNoEscrowSeat} makeNoEscrowSeat
|
|
140
145
|
* @property {ReplaceAllocations} replaceAllocations
|
|
141
146
|
* @property {(completion: Completion) => void} exitAllSeats
|
|
142
|
-
* @property {
|
|
147
|
+
* @property {ShutdownWithFailure} failAllSeats
|
|
143
148
|
* @property {(seatHandle: SeatHandle, completion: Completion) => void} exitSeat
|
|
144
149
|
* @property {(seatHandle: SeatHandle, reason: Error) => void} failSeat
|
|
145
150
|
* @property {() => void} stopAcceptingOffers
|
|
@@ -169,7 +174,7 @@
|
|
|
169
174
|
* @param {Keyword} keyword
|
|
170
175
|
* @param {AssetKind} [assetKind]
|
|
171
176
|
* @param {AdditionalDisplayInfo} [displayInfo]
|
|
172
|
-
* @param {
|
|
177
|
+
* @param {IssuerOptionsRecord} [options]
|
|
173
178
|
* @returns {ZoeMint}
|
|
174
179
|
*/
|
|
175
180
|
|
|
@@ -196,7 +201,7 @@
|
|
|
196
201
|
/**
|
|
197
202
|
* @template {AssetKind} [K=AssetKind]
|
|
198
203
|
* @typedef {object} ZoeMint
|
|
199
|
-
* @property {() =>
|
|
204
|
+
* @property {() => IssuerRecord<K>} getIssuerRecord
|
|
200
205
|
* @property {(totalToMint: Amount<K>) => void} mintAndEscrow
|
|
201
206
|
* @property {(totalToBurn: Amount<K>) => void} withdrawAndBurn
|
|
202
207
|
* Note that the burning is asynchronous, and so may not have happened by
|
package/src/types.d.ts
CHANGED
package/src/types.d.ts.map
CHANGED
|
@@ -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,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;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"}
|