@agoric/smart-wallet 0.5.4-dev-fbd8633.0 → 0.5.4-dev-e456308.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/package.json +14 -14
- package/src/invitations.d.ts +1 -1
- package/src/invitations.d.ts.map +1 -1
- package/src/invitations.js +3 -0
- package/src/offers.d.ts.map +1 -1
- package/src/offers.js +3 -0
- package/src/proposals/upgrade-wallet-factory2-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-wallet-factory2-proposal.js +3 -0
- package/src/smartWallet.d.ts +5 -5
- package/src/smartWallet.d.ts.map +1 -1
- package/src/smartWallet.js +3 -0
- package/src/types.d.ts +1 -0
- package/src/utils.d.ts.map +1 -1
- package/src/utils.js +4 -0
- package/src/walletFactory.d.ts +5 -23
- package/src/walletFactory.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/smart-wallet",
|
|
3
|
-
"version": "0.5.4-dev-
|
|
3
|
+
"version": "0.5.4-dev-e456308.0+e456308",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"lint:eslint": "eslint ."
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
20
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
21
|
-
"@agoric/zone": "0.2.3-dev-
|
|
19
|
+
"@agoric/cosmic-proto": "0.4.1-dev-e456308.0+e456308",
|
|
20
|
+
"@agoric/swingset-vat": "0.32.3-dev-e456308.0+e456308",
|
|
21
|
+
"@agoric/zone": "0.2.3-dev-e456308.0+e456308",
|
|
22
22
|
"@endo/bundle-source": "^3.2.2",
|
|
23
23
|
"@endo/captp": "^4.1.1",
|
|
24
24
|
"@endo/init": "^1.1.1",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"import-meta-resolve": "^2.2.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@agoric/assert": "0.6.1-dev-
|
|
30
|
-
"@agoric/casting": "0.4.3-dev-
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
34
|
-
"@agoric/store": "0.9.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vats": "0.15.2-dev-
|
|
37
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
29
|
+
"@agoric/assert": "0.6.1-dev-e456308.0+e456308",
|
|
30
|
+
"@agoric/casting": "0.4.3-dev-e456308.0+e456308",
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-e456308.0+e456308",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-e456308.0+e456308",
|
|
33
|
+
"@agoric/notifier": "0.6.3-dev-e456308.0+e456308",
|
|
34
|
+
"@agoric/store": "0.9.3-dev-e456308.0+e456308",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-e456308.0+e456308",
|
|
36
|
+
"@agoric/vats": "0.15.2-dev-e456308.0+e456308",
|
|
37
|
+
"@agoric/zoe": "0.26.3-dev-e456308.0+e456308",
|
|
38
38
|
"@endo/eventual-send": "^1.2.1",
|
|
39
39
|
"@endo/far": "^1.1.1",
|
|
40
40
|
"@endo/marshal": "^1.4.1",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"typeCoverage": {
|
|
71
71
|
"atLeast": 93.99
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e4563081e57304520ee75f85aff490fcdb640c20"
|
|
74
74
|
}
|
package/src/invitations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<"set">, invitationsPurse: Purse<"set">, getInvitationContinuation: (fromOfferId: string) => import("./types.js").InvitationMakers): (spec: InvitationSpec) => ERef<Invitation
|
|
1
|
+
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<"set">, invitationsPurse: Purse<"set">, getInvitationContinuation: (fromOfferId: string) => import("./types.js").InvitationMakers): (spec: InvitationSpec) => ERef<Invitation>;
|
|
2
2
|
/**
|
|
3
3
|
* Specify how to produce an invitation. See each type in the union for details.
|
|
4
4
|
*/
|
package/src/invitations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AAkEO,2CANI,IAAI,CAAC,UAAU,CAAC,eAChB,IAAI,CAAC,OAAO,cAAc,EAAE,OAAO,CAAC,mBACpC,KAAK,CAAC,KAAK,CAAC,oBACZ,KAAK,CAAC,KAAK,CAAC,6BACZ,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,YAAY,EAAE,gBAAgB,UAsFrD,cAAc,KAAK,IAAI,CAAC,UAAU,CAAC,CAgBtD;;;;6BAvJY,4BAA4B,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,wBAAwB;;;;;;;2CAKtG;IACZ,MAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAU,EAAE,KAAK,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CACzD;;;;qCAMS;IACZ,MAAQ,EAAE,UAAU,CAAC;IACrB,QAAU,EAAE,QAAQ,CAAC;IACrB,qBAAuB,EAAE,MAAM,CAAC;IAChC,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;;;;;kCAGS;IACZ,MAAQ,EAAE,OAAO,CAAC;IAClB,QAAU,EAAE,QAAQ,CAAC;IACrB,WAAa,EAAE,MAAM,CAAC;CACnB;;;;uCAIS;IACZ,MAAQ,EAAE,YAAY,CAAC;IACvB,aAAe,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC/C,mBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;oCAKS,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC"}
|
package/src/invitations.js
CHANGED
|
@@ -4,6 +4,9 @@ import { InvitationHandleShape } from '@agoric/zoe/src/typeGuards.js';
|
|
|
4
4
|
import { E } from '@endo/far';
|
|
5
5
|
import { shape } from './typeGuards.js';
|
|
6
6
|
|
|
7
|
+
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
|
|
8
|
+
import '@agoric/zoe/exported.js';
|
|
9
|
+
|
|
7
10
|
const { Fail } = assert;
|
|
8
11
|
|
|
9
12
|
// A safety limit
|
package/src/offers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;;;;;;;GAOG;AAEH,kEAAkE;AAClE,+CAAgD;sBAbnC,MAAM,GAAG,MAAM;wBAIf;IACZ,EAAM,EAAE,OAAO,CAAC;IAChB,cAAkB,EAAE,OAAO,kBAAkB,EAAE,cAAc,CAAC;IAC9D,QAAY,EAAE,QAAQ,CAAC;IACvB,SAAa,CAAC,EAAE,OAAO,CAAA;CACpB;0BAOS,SAAS,GAAG;IACxB,KAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,kBAAkB,CAAC;IAC/C,OAAS,CAAC,EAAE,mBAAmB,CAAC;CAC7B"}
|
package/src/offers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-wallet-factory2-proposal.d.ts","sourceRoot":"","sources":["upgrade-wallet-factory2-proposal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upgrade-wallet-factory2-proposal.d.ts","sourceRoot":"","sources":["upgrade-wallet-factory2-proposal.js"],"names":[],"mappings":"AAYO,qKAJI,eAAe,GAAG,mBAAmB;IAEA,OAAO,EAA5C;QAAE,SAAS,EAAE,YAAY,CAAA;KAAE;kBAoCrC;AAEM;;;;;;;;;;;;;;;;EAYL"}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { E } from '@endo/far';
|
|
3
3
|
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
|
|
4
4
|
|
|
5
|
+
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
|
|
6
|
+
import '@agoric/vats/src/core/types-ambient.js';
|
|
7
|
+
|
|
5
8
|
/**
|
|
6
9
|
* @param {BootstrapPowers & ChainBootstrapSpace} powers
|
|
7
10
|
* @param {object} options
|
package/src/smartWallet.d.ts
CHANGED
|
@@ -41,18 +41,18 @@ export function prepareSmartWallet(baggage: import("@agoric/vat-data").Baggage,
|
|
|
41
41
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
42
42
|
}>;
|
|
43
43
|
/** @deprecated use getPublicTopics */
|
|
44
|
-
getCurrentSubscriber(): Subscriber<CurrentWalletRecord>;
|
|
44
|
+
getCurrentSubscriber(): globalThis.Subscriber<CurrentWalletRecord>;
|
|
45
45
|
/** @deprecated use getPublicTopics */
|
|
46
|
-
getUpdatesSubscriber(): Subscriber<UpdateRecord>;
|
|
46
|
+
getUpdatesSubscriber(): globalThis.Subscriber<UpdateRecord>;
|
|
47
47
|
getPublicTopics(): {
|
|
48
48
|
current: {
|
|
49
49
|
description: string;
|
|
50
|
-
subscriber: Subscriber<CurrentWalletRecord>;
|
|
50
|
+
subscriber: globalThis.Subscriber<CurrentWalletRecord>;
|
|
51
51
|
storagePath: Promise<string>;
|
|
52
52
|
};
|
|
53
53
|
updates: {
|
|
54
54
|
description: string;
|
|
55
|
-
subscriber: Subscriber<UpdateRecord>;
|
|
55
|
+
subscriber: globalThis.Subscriber<UpdateRecord>;
|
|
56
56
|
storagePath: Promise<string>;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -76,7 +76,7 @@ export type ExecutorPowers = {
|
|
|
76
76
|
error: (...args: any[]) => void;
|
|
77
77
|
};
|
|
78
78
|
makeOfferWatcher: import("./offerWatcher.js").MakeOfferWatcher;
|
|
79
|
-
invitationFromSpec: ERef<Invitation
|
|
79
|
+
invitationFromSpec: ERef<Invitation>;
|
|
80
80
|
};
|
|
81
81
|
export type ExecuteOfferAction = {
|
|
82
82
|
method: "executeOffer";
|
package/src/smartWallet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"AAoOA,kDAAmD;AAiB5C,4CAHI,OAAO,kBAAkB,EAAE,OAAO,UAClC,YAAY,6BA87BV,IAAI,CAAC,YAAY,EAAE,oBAAoB,GAAG,mBAAmB,CAAC,GAAG;IAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;CAAC;IAvH5G;;;;;;OAMG;sCAHQ,OAAO,eAAe,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,mCAE5C,OAAO,CAAC,IAAI,CAAC;;QA1Q1B;;;;;;;;WAQG;yBAHQ,OAAO,GACL,OAAO,CAAC,MAAM,CAAC;;;QAyH5B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AG,CAAC;CAC7B;;;;;;;oBAES,cAAc,GAAG,YAAY;6BAM7B,QAAQ,CAAC,YAAY,GAAG;IACpC,aAAiB,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,uBAA2B,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACrF,4BAAgC,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3E,qBAAyB,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,aAAiB,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,iBAAqB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvG,kBAAsB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/G,UAAc,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC,CAAC;IACrE,cAAkB,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,iBAAqB,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE,CAAC;0BAEQ,eAAe,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE;2BAClC,EACT;0BAwgCU,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC"}
|
package/src/smartWallet.js
CHANGED
|
@@ -42,6 +42,9 @@ import { shape } from './typeGuards.js';
|
|
|
42
42
|
import { objectMapStoragePath } from './utils.js';
|
|
43
43
|
import { prepareOfferWatcher, watchOfferOutcomes } from './offerWatcher.js';
|
|
44
44
|
|
|
45
|
+
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
|
|
46
|
+
import '@agoric/zoe/exported.js';
|
|
47
|
+
|
|
45
48
|
const { Fail, quote: q } = assert;
|
|
46
49
|
|
|
47
50
|
const trace = makeTracer('SmrtWlt');
|
package/src/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { ERef } from '@endo/far';
|
|
|
9
9
|
import type { CapData } from '@endo/marshal';
|
|
10
10
|
import type { agoric } from '@agoric/cosmic-proto';
|
|
11
11
|
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
12
|
+
import type { StoredFacet } from '@agoric/internal/src/lib-chainStorage.js';
|
|
12
13
|
import type { OfferSpec } from './offers.js';
|
|
13
14
|
|
|
14
15
|
declare const CapDataShape: unique symbol;
|
package/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAQA,sDAAuD;AAKhD;;;wBASsD,OAAO,aAAa,EAAE,OAAO;yBAAe,MAAM;sBAAY,QAAQ;;;;;2BAIrH,OAAO,kBAAkB,EAAE,YAAY,GAAG,EAAE;EA8DzD;AAaM,yCAHI,IAAI,CAAC,UAAU,CAAC,OAAO,kBAAkB,EAAE,YAAY,CAAC,CAAC;;oBA5EP,OAAO,aAAa,EAAE,OAAO;qBAAe,MAAM;kBAAY,QAAQ;;;;EAwFlI;AAMM,wCAHI,OAAO,iBAAiB,EAAE,QAAQ,CAAC,GAAG,CAAC,iBAYjD;AAQM,2KAFM,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAW/C;mCArDa,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,OAAO,CAAC"}
|
package/src/utils.js
CHANGED
|
@@ -2,6 +2,10 @@ import { deeplyFulfilledObject, objectMap, makeTracer } from '@agoric/internal';
|
|
|
2
2
|
import { observeIteration, subscribeEach } from '@agoric/notifier';
|
|
3
3
|
import { E } from '@endo/far';
|
|
4
4
|
|
|
5
|
+
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
|
|
6
|
+
import '@agoric/internal/exported.js';
|
|
7
|
+
import '@agoric/notifier/exported.js';
|
|
8
|
+
|
|
5
9
|
export const NO_SMART_WALLET_ERROR = 'no smart wallet';
|
|
6
10
|
|
|
7
11
|
const trace = makeTracer('WUTIL', false);
|
package/src/walletFactory.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export function makeAssetRegistry(assetPublisher: AssetPublisher): {
|
|
|
24
24
|
};
|
|
25
25
|
export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
26
26
|
storageNode: ERef<StorageNode>;
|
|
27
|
-
walletBridgeManager?: ERef<import("@agoric/vats").ScopedBridgeManager
|
|
28
|
-
walletReviver?: ERef<WalletReviver
|
|
27
|
+
walletBridgeManager?: ERef<import("@agoric/vats").ScopedBridgeManager>;
|
|
28
|
+
walletReviver?: ERef<WalletReviver>;
|
|
29
29
|
}, baggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
30
30
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
31
31
|
/**
|
|
@@ -36,30 +36,12 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
|
36
36
|
* along with a flag to distinguish between looking up an existing wallet
|
|
37
37
|
* and creating a new one.
|
|
38
38
|
*/
|
|
39
|
-
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<[wallet: import("./smartWallet.js").SmartWallet, isNew: boolean]>;
|
|
39
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats/src/types.js").NameAdmin>): Promise<[wallet: import("./smartWallet.js").SmartWallet, isNew: boolean]>;
|
|
40
40
|
}>;
|
|
41
41
|
}>;
|
|
42
42
|
export type SmartWalletContractTerms = {
|
|
43
|
-
agoricNames: ERef<NameHub>;
|
|
44
|
-
board: ERef<import("@
|
|
45
|
-
getId(value: any): string;
|
|
46
|
-
getValue(id: BoardId): any;
|
|
47
|
-
lookup(...path: string[]): Promise<any>;
|
|
48
|
-
has(val: any): boolean;
|
|
49
|
-
ids(): string[];
|
|
50
|
-
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
51
|
-
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
52
|
-
fromCapData(data: any): any;
|
|
53
|
-
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
54
|
-
unserialize(data: any): any;
|
|
55
|
-
}>;
|
|
56
|
-
getReadonlyMarshaller(): import("@endo/exo").Guarded<{
|
|
57
|
-
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
58
|
-
fromCapData(data: any): any;
|
|
59
|
-
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
60
|
-
unserialize(data: any): any;
|
|
61
|
-
}>;
|
|
62
|
-
}>>;
|
|
43
|
+
agoricNames: globalThis.ERef<NameHub>;
|
|
44
|
+
board: ERef<import("@agoric/vats").Board>;
|
|
63
45
|
assetPublisher: AssetPublisher;
|
|
64
46
|
};
|
|
65
47
|
export type AssetPublisher = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,uBACtC,IAAI,CAAC,OA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