@agoric/vats 0.15.2-dev-727e4af.0 → 0.15.2-dev-96c9ff5.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 +27 -27
- package/src/centralSupply.d.ts +1 -1
- package/src/core/basic-behaviors.d.ts +1 -34
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/basic-behaviors.js +3 -0
- package/src/core/boot-chain.d.ts +25 -25
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/boot-sim.d.ts +1 -1
- package/src/core/boot-solo.d.ts +1 -1
- package/src/core/demoIssuers.d.ts +2 -2
- package/src/core/lib-boot.d.ts +1 -1
- package/src/core/startWalletFactory.d.ts +1 -1
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/startWalletFactory.js +2 -0
- package/src/core/utils.d.ts +12 -45
- package/src/core/utils.d.ts.map +1 -1
- package/src/core/utils.js +1 -0
- package/src/ibc.d.ts +5 -25
- package/src/ibc.d.ts.map +1 -1
- package/src/ibc.js +5 -1
- package/src/lib-board.d.ts +12 -8
- package/src/lib-board.d.ts.map +1 -1
- package/src/lib-board.js +11 -7
- package/src/localchain.d.ts +2 -2
- package/src/mintHolder.d.ts +2 -2
- package/src/nameHub.js +2 -2
- package/src/proposals/localchain-test.js +1 -1
- package/src/proposals/upgrade-zoe-proposal.d.ts +12 -12
- package/src/proposals/upgrade-zoe-proposal.d.ts.map +1 -1
- package/src/proposals/zcf-proposal.d.ts +12 -12
- package/src/proposals/zcf-proposal.d.ts.map +1 -1
- package/src/repl.d.ts +3 -3
- package/src/types.d.ts +10 -8
- package/src/vat-agoricNames.d.ts +3 -3
- package/src/vat-bank.d.ts +33 -442
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bank.js +19 -7
- package/src/vat-board.d.ts +7 -7
- package/src/vat-board.d.ts.map +1 -1
- package/src/vat-bridge.d.ts +1 -1
- package/src/vat-bridge.d.ts.map +1 -1
- package/src/vat-ibc.d.ts +1 -1
- package/src/vat-localchain.d.ts +3 -3
- package/src/vat-mints.d.ts +15 -15
- package/src/vat-network.d.ts +1 -1
- package/src/vat-priceAuthority.d.ts +1 -1
- package/src/vat-provisioning.d.ts +3 -3
- package/src/vat-zoe.d.ts +1 -1
- package/src/virtual-purse.d.ts +1 -111
- package/src/virtual-purse.d.ts.map +1 -1
- package/src/virtual-purse.js +1 -0
- package/tools/bank-utils.js +1 -1
- package/tools/board-utils.d.ts +3 -3
- package/tools/board-utils.d.ts.map +1 -1
- package/tools/boot-test-utils.d.ts +4 -74
- package/tools/boot-test-utils.d.ts.map +1 -1
- package/tools/boot-test-utils.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-96c9ff5.0+96c9ff5",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
27
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
28
|
-
"@agoric/governance": "0.10.4-dev-
|
|
29
|
-
"@agoric/internal": "0.3.3-dev-
|
|
30
|
-
"@agoric/network": "0.1.1-dev-
|
|
31
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
32
|
-
"@agoric/store": "0.9.3-dev-
|
|
33
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
34
|
-
"@agoric/time": "0.3.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vow": "0.1.1-dev-
|
|
37
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
38
|
-
"@agoric/zone": "0.2.3-dev-
|
|
39
|
-
"@endo/base64": "^1.0.
|
|
40
|
-
"@endo/far": "^1.1.
|
|
41
|
-
"@endo/import-bundle": "^1.1.
|
|
42
|
-
"@endo/marshal": "^1.
|
|
43
|
-
"@endo/nat": "^5.0.
|
|
44
|
-
"@endo/patterns": "^1.
|
|
45
|
-
"@endo/promise-kit": "^1.1.
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-96c9ff5.0+96c9ff5",
|
|
26
|
+
"@agoric/cosmic-proto": "0.4.1-dev-96c9ff5.0+96c9ff5",
|
|
27
|
+
"@agoric/ertp": "0.16.3-dev-96c9ff5.0+96c9ff5",
|
|
28
|
+
"@agoric/governance": "0.10.4-dev-96c9ff5.0+96c9ff5",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-96c9ff5.0+96c9ff5",
|
|
30
|
+
"@agoric/network": "0.1.1-dev-96c9ff5.0+96c9ff5",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-96c9ff5.0+96c9ff5",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-96c9ff5.0+96c9ff5",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-96c9ff5.0+96c9ff5",
|
|
34
|
+
"@agoric/time": "0.3.3-dev-96c9ff5.0+96c9ff5",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-96c9ff5.0+96c9ff5",
|
|
36
|
+
"@agoric/vow": "0.1.1-dev-96c9ff5.0+96c9ff5",
|
|
37
|
+
"@agoric/zoe": "0.26.3-dev-96c9ff5.0+96c9ff5",
|
|
38
|
+
"@agoric/zone": "0.2.3-dev-96c9ff5.0+96c9ff5",
|
|
39
|
+
"@endo/base64": "^1.0.5",
|
|
40
|
+
"@endo/far": "^1.1.2",
|
|
41
|
+
"@endo/import-bundle": "^1.1.2",
|
|
42
|
+
"@endo/marshal": "^1.5.0",
|
|
43
|
+
"@endo/nat": "^5.0.7",
|
|
44
|
+
"@endo/patterns": "^1.4.0",
|
|
45
|
+
"@endo/promise-kit": "^1.1.2",
|
|
46
46
|
"import-meta-resolve": "^2.2.1",
|
|
47
47
|
"jessie.js": "^0.3.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
51
|
-
"@endo/bundle-source": "^3.2.
|
|
52
|
-
"@endo/init": "^1.1.
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-96c9ff5.0+96c9ff5",
|
|
51
|
+
"@endo/bundle-source": "^3.2.3",
|
|
52
|
+
"@endo/init": "^1.1.2",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^9.1.0"
|
|
55
55
|
},
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"workerThreads": false
|
|
79
79
|
},
|
|
80
80
|
"typeCoverage": {
|
|
81
|
-
"atLeast": 91.
|
|
81
|
+
"atLeast": 91.33
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "96c9ff577fe14cebeb5a38543ba7f8598ffcd0c7"
|
|
84
84
|
}
|
package/src/centralSupply.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export function start(zcf: ZCF<{
|
|
|
5
5
|
}): Promise<{
|
|
6
6
|
creatorFacet: {
|
|
7
7
|
getBootstrapPayment: () => globalThis.Payment<any>;
|
|
8
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
8
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
9
9
|
getBootstrapPayment: () => globalThis.Payment<any>;
|
|
10
10
|
}>;
|
|
11
11
|
}>;
|
|
@@ -44,40 +44,7 @@ export function addBankAssets({ consume: { agoricNamesAdmin, initialSupply, brid
|
|
|
44
44
|
}): Promise<void>;
|
|
45
45
|
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
46
46
|
export const BASIC_BOOTSTRAP_PERMITS: import("./lib-boot.js").BootstrapManifest;
|
|
47
|
-
export type VatStore =
|
|
48
|
-
/**
|
|
49
|
-
* Check if a key exists. The key can be any
|
|
50
|
-
* JavaScript value, though the answer will always be false for keys that
|
|
51
|
-
* cannot be found in this map
|
|
52
|
-
*/
|
|
53
|
-
has: (key: string) => boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Return a value for the key. Throws if not
|
|
56
|
-
* found.
|
|
57
|
-
*/
|
|
58
|
-
get: (key: string) => CreateVatResults;
|
|
59
|
-
/**
|
|
60
|
-
* Initialize the key only if it
|
|
61
|
-
* doesn't already exist. The key must be one allowed by this store. For
|
|
62
|
-
* example a scalar store only allows primitives and remotables.
|
|
63
|
-
*/
|
|
64
|
-
init: (key: string, value: CreateVatResults) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Set the key. Throws if not found.
|
|
67
|
-
*/
|
|
68
|
-
set: (key: string, value: CreateVatResults) => void;
|
|
69
|
-
/**
|
|
70
|
-
* Remove the key. Throws if not found.
|
|
71
|
-
*/
|
|
72
|
-
delete: (key: string) => void;
|
|
73
|
-
addAll: (entries: import("@endo/patterns").CopyMap<string, CreateVatResults> | Iterable<[string, CreateVatResults]>) => void;
|
|
74
|
-
keys: (keyPatt?: any, valuePatt?: any) => Iterable<string>;
|
|
75
|
-
values: (keyPatt?: any, valuePatt?: any) => Iterable<CreateVatResults>;
|
|
76
|
-
entries: (keyPatt?: any, valuePatt?: any) => Iterable<[string, CreateVatResults]>;
|
|
77
|
-
snapshot: (keyPatt?: any, valuePatt?: any) => import("@endo/patterns").CopyMap<string, CreateVatResults>;
|
|
78
|
-
getSize: (keyPatt?: any, valuePatt?: any) => number;
|
|
79
|
-
clear: (keyPatt?: any, valuePatt?: any) => void;
|
|
80
|
-
};
|
|
47
|
+
export type VatStore = import("@endo/pass-style").RemotableObject & import("@agoric/store").MapStoreMethods<string, CreateVatResults>;
|
|
81
48
|
export type ZoeVat = ERef<ReturnType<typeof import("../vat-zoe.js").buildRootObject>>;
|
|
82
49
|
export type PriceAuthorityVat = ERef<ReturnType<typeof import("../vat-priceAuthority.js").buildRootObject>>;
|
|
83
50
|
declare namespace bootMsgEx {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-behaviors.d.ts","sourceRoot":"","sources":["basic-behaviors.js"],"names":[],"mappings":"AAwDO,mIANI,eAAe,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"basic-behaviors.d.ts","sourceRoot":"","sources":["basic-behaviors.js"],"names":[],"mappings":"AAwDO,mIANI,eAAe,GAAG,EAAE,iBAiE9B;AAIM,gDADK,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,iBAW/C;AAGM,0FADK,cAAc,GAAG;IAAE,IAAI,EAAE,OAAO,cAAc,EAAE,IAAI,CAAA;CAAE,iBAiCjE;AAqGM,uMAPI,cAAc,GAAG;IAC3B,IAAQ,EAAE,OAAO,cAAc,EAAE,IAAI,CAAC;IACtC,OAAW,EAAE;QACb,6BAAmC,EAAE,OAAO,wDAAwD,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC,+BAA+B,CAAC,CAAC;KACpK,CAAC;CACH,iBA6DH;AAUM,gOANI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;KAAE,CAAC;CACvD,iBA2BH;AAYM,gGARI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAA;KAAE,CAAC;CAClE,iBAoBH;AAQM,mHAFI,eAAe,GAAG,cAAc,iBAe1C;AAIM,gIADK,eAAe,GAAG,cAAc,iBAW3C;AASM,qHAJI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAA;KAAE,CAAC;CACzD,iBAWH;AAcM,+JAFI,eAAe,iBAwBzB;AAQM,kGAFI,cAAc,iBA6BxB;AAIM,uHADK,cAAc,iBAkCzB;AAIM,oIADK,cAAc,iBAiBzB;AASM,0MAJI,eAAe,GAAG;IAC5B,aAAiB,EAAE;QAAE,IAAI,EAAE;YAAE,OAAO,CAAC,EAAE,OAAO,SAAS,CAAA;SAAE,CAAA;KAAE,CAAC;CACzD,iBAmCH;AAUM,kTAJI,cAAc,GAAG;IAC3B,OAAW,EAAE;QAAE,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;KAAE,CAAC;CACxD,iBAoFH;AAGD,wDAAwD;AACxD,sCADW,OAAO,eAAe,EAAE,iBAAiB,CA0IlD;;qBA3fW,IAAI,CAAC,UAAU,gDAAyC,CAAC;gCAiCzD,IAAI,CAChB,UAAc,2DAAoD,CAC/D;;;;;;;;;;;;;sCA5T+B,sBAAsB"}
|
|
@@ -63,6 +63,7 @@ export const makeVatsFromBundles = async ({
|
|
|
63
63
|
// NOTE: we rely on multiple createVatAdminService calls
|
|
64
64
|
// to return cooperating services.
|
|
65
65
|
const svc = E(vats.vatAdmin).createVatAdminService(devices.vatAdmin);
|
|
66
|
+
// @ts-expect-error XXX
|
|
66
67
|
vatAdminSvc.resolve(svc);
|
|
67
68
|
|
|
68
69
|
const durableStore = await vatStore;
|
|
@@ -77,6 +78,7 @@ export const makeVatsFromBundles = async ({
|
|
|
77
78
|
if (bundleName) {
|
|
78
79
|
console.info(`createVatByName(${bundleName})`);
|
|
79
80
|
/** @type {Promise<CreateVatResults>} */
|
|
81
|
+
// @ts-expect-error XXX
|
|
80
82
|
const vatInfo = E(svc).createVatByName(bundleName, {
|
|
81
83
|
...defaultVatCreationOptions,
|
|
82
84
|
name: vatName,
|
|
@@ -87,6 +89,7 @@ export const makeVatsFromBundles = async ({
|
|
|
87
89
|
assert(bundleID);
|
|
88
90
|
const bcap = await E(svc).getBundleCap(bundleID);
|
|
89
91
|
/** @type {Promise<CreateVatResults>} */
|
|
92
|
+
// @ts-expect-error XXX
|
|
90
93
|
const vatInfo = E(svc).createVat(bcap, {
|
|
91
94
|
...defaultVatCreationOptions,
|
|
92
95
|
name: vatName,
|
package/src/core/boot-chain.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export function buildRootObject(vatPowers: TerminationVatPowers & {
|
|
|
12
12
|
resetItem: (name: any) => void;
|
|
13
13
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
14
14
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
15
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
15
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
17
17
|
consumeItem: (name: any) => Promise<unknown>;
|
|
18
18
|
produceItem: (name: any, resolution: any) => void;
|
|
@@ -188,34 +188,34 @@ declare namespace modules {
|
|
|
188
188
|
(...data: any[]): void;
|
|
189
189
|
(message?: any, ...optionalParams: any[]): void;
|
|
190
190
|
} | undefined, reserved?: Record<string, Record<string, unknown>>) => Promise<{
|
|
191
|
-
agoricNames: import("../types.js").NameHub
|
|
191
|
+
agoricNames: import("../types.js").NameHub<any>;
|
|
192
192
|
agoricNamesAdmin: import("../types.js").NameAdmin;
|
|
193
193
|
spaces: WellKnownSpaces;
|
|
194
194
|
}>;
|
|
195
195
|
makeMyAddressNameAdminKit: (address: string) => {
|
|
196
|
-
nameHub: import("../types.js").NameHub
|
|
196
|
+
nameHub: import("../types.js").NameHub<any>;
|
|
197
197
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
198
198
|
};
|
|
199
199
|
makeVatSpace: (svc: ERef<ReturnType<Awaited<VatAdminVat>["createVatAdminService"]>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined) => {
|
|
200
200
|
space: {
|
|
201
201
|
consume: {
|
|
202
202
|
agoricNames: Promise<{
|
|
203
|
-
getNameHub: () => import("../types.js").NameHub
|
|
203
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
204
204
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
205
205
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
206
206
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
207
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
208
|
-
getNameHub: () => import("../types.js").NameHub
|
|
207
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
208
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
209
209
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
210
210
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
211
211
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
212
212
|
}>>;
|
|
213
213
|
board: Promise<{
|
|
214
214
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
215
|
-
getId(value:
|
|
216
|
-
getValue(id: BoardId):
|
|
215
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
216
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
217
217
|
lookup(...path: string[]): Promise<any>;
|
|
218
|
-
has(val:
|
|
218
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
219
219
|
ids(): string[];
|
|
220
220
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
221
221
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -232,12 +232,12 @@ declare namespace modules {
|
|
|
232
232
|
}>;
|
|
233
233
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
234
234
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
235
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
235
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
236
236
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
237
|
-
getId(value:
|
|
238
|
-
getValue(id: BoardId):
|
|
237
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
238
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
239
239
|
lookup(...path: string[]): Promise<any>;
|
|
240
|
-
has(val:
|
|
240
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
241
241
|
ids(): string[];
|
|
242
242
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
243
243
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -365,34 +365,34 @@ declare namespace modules {
|
|
|
365
365
|
(...data: any[]): void;
|
|
366
366
|
(message?: any, ...optionalParams: any[]): void;
|
|
367
367
|
} | undefined, reserved?: Record<string, Record<string, unknown>>) => Promise<{
|
|
368
|
-
agoricNames: import("../types.js").NameHub
|
|
368
|
+
agoricNames: import("../types.js").NameHub<any>;
|
|
369
369
|
agoricNamesAdmin: import("../types.js").NameAdmin;
|
|
370
370
|
spaces: WellKnownSpaces;
|
|
371
371
|
}>;
|
|
372
372
|
makeMyAddressNameAdminKit: (address: string) => {
|
|
373
|
-
nameHub: import("../types.js").NameHub
|
|
373
|
+
nameHub: import("../types.js").NameHub<any>;
|
|
374
374
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
375
375
|
};
|
|
376
376
|
makeVatSpace: (svc: ERef<ReturnType<Awaited<VatAdminVat>["createVatAdminService"]>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined) => {
|
|
377
377
|
space: {
|
|
378
378
|
consume: {
|
|
379
379
|
agoricNames: Promise<{
|
|
380
|
-
getNameHub: () => import("../types.js").NameHub
|
|
380
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
381
381
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
382
382
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
383
383
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
384
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
385
|
-
getNameHub: () => import("../types.js").NameHub
|
|
384
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
385
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
386
386
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
387
387
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
388
388
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
389
389
|
}>>;
|
|
390
390
|
board: Promise<{
|
|
391
391
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
392
|
-
getId(value:
|
|
393
|
-
getValue(id: BoardId):
|
|
392
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
393
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
394
394
|
lookup(...path: string[]): Promise<any>;
|
|
395
|
-
has(val:
|
|
395
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
396
396
|
ids(): string[];
|
|
397
397
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
398
398
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -409,12 +409,12 @@ declare namespace modules {
|
|
|
409
409
|
}>;
|
|
410
410
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
411
411
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
412
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
412
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
413
413
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
414
|
-
getId(value:
|
|
415
|
-
getValue(id: BoardId):
|
|
414
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
415
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
416
416
|
lookup(...path: string[]): Promise<any>;
|
|
417
|
-
has(val:
|
|
417
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
418
418
|
ids(): string[];
|
|
419
419
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
420
420
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"AAmBA,iDAAiD;AAEjD,iEAAiD;AAc1C;OARC,MAAM;YACD,CAAC,GAAG,KAAA,KAAK,IAAI;kBAEf;IACV,qBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC,WACO,OAAO,kBAAkB,EAAE,OAAO;sB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;;;;;;;;;;;;;;;;;;0HAAN,MAAM;wHAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;4SAAy0Z,cAAc,GAAE;YAAE,SAAc;gBAAE,iBAAiB,KAAM,UAAU,OAAO,CAAC,CAAC,CAAA;aAAE,CAAC;SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAr8c,GAAG;;;;YAAyiE,SAAS;YAA0C,SAAS;YAA0D,QAAQ;YAA6E,UAAU;;2EAAk2B,SAAS;;;;sEAAspB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8GAAzuE,MAAM;4GAAN,MAAM;;;;;;;;;;;;;;;;;;;;;8GAAN,MAAM;4GAAN,MAAM;;;;;;;;oCA/Cr/G,sBAAsB"}
|
package/src/core/boot-sim.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function buildRootObject(vatPowers: TerminationVatPowers & {
|
|
|
13
13
|
resetItem: (name: any) => void;
|
|
14
14
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
15
15
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
16
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
17
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
18
18
|
consumeItem: (name: any) => Promise<unknown>;
|
|
19
19
|
produceItem: (name: any, resolution: any) => void;
|
package/src/core/boot-solo.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export function buildRootObject(vatPowers: TerminationVatPowers & {
|
|
|
12
12
|
resetItem: (name: any) => void;
|
|
13
13
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
14
14
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
15
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
15
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
17
17
|
consumeItem: (name: any) => Promise<unknown>;
|
|
18
18
|
produceItem: (name: any, resolution: any) => void;
|
|
@@ -56,7 +56,7 @@ export function splitAllCentralPayments(bootstrapPayment: Payment, balances: Rec
|
|
|
56
56
|
}): Promise<{
|
|
57
57
|
[k: string]: {
|
|
58
58
|
payment: globalThis.Payment;
|
|
59
|
-
amount:
|
|
59
|
+
amount: import("@agoric/ertp/exported.js").NatAmount;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
|
62
62
|
export function poolRates(issuerName: string, record: (typeof AMMDemoState)["ATOM"], kits: Record<string, {
|
|
@@ -67,7 +67,7 @@ export function poolRates(issuerName: string, record: (typeof AMMDemoState)["ATO
|
|
|
67
67
|
brand: Brand<"nat">;
|
|
68
68
|
}): {
|
|
69
69
|
rates: {
|
|
70
|
-
debtLimit:
|
|
70
|
+
debtLimit: import("@agoric/ertp/exported.js").NatAmount;
|
|
71
71
|
initialPrice: Ratio;
|
|
72
72
|
initialMargin: Ratio;
|
|
73
73
|
liquidationMargin: Ratio;
|
package/src/core/lib-boot.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export function makeBootstrap(vatPowers: import("@agoric/swingset-vat").VatPower
|
|
|
18
18
|
* @param {MapStore<K, V>} store
|
|
19
19
|
*/
|
|
20
20
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
21
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
22
22
|
/**
|
|
23
23
|
* Bootstrap vats and devices.
|
|
24
24
|
*
|
|
@@ -225,7 +225,7 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
repairWalletForIncarnation2(key: object): void;
|
|
228
|
-
}
|
|
228
|
+
}>> & import("@endo/marshal").RemotableObject, isNew: boolean]>;
|
|
229
229
|
}>;
|
|
230
230
|
}>>>;
|
|
231
231
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO,qnBArBI,eAAe,GACzB,qBAAyB,GACzB,cAAkB,CAAC;IACnB,6BAAmC,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IACnH,cAAoB,EAAE;QACtB,YAAoB,EAAE,OAAO,CAC7B,UAAoB,CACpB,oEAAyE,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAC1B,UAAkB,EAAE,UAAU,CAAC;KACxB,CAAC;IACR,mBAAyB,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC;IACrE,4BAAkC,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC;CACzE,CAAC;cAEQ;QACd,sBAA4B,CAAC,EAAE,MAAM,CAAC;KACjC;
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO,qnBArBI,eAAe,GACzB,qBAAyB,GACzB,cAAkB,CAAC;IACnB,6BAAmC,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IACnH,cAAoB,EAAE;QACtB,YAAoB,EAAE,OAAO,CAC7B,UAAoB,CACpB,oEAAyE,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAC1B,UAAkB,EAAE,UAAU,CAAC;KACxB,CAAC;IACR,mBAAyB,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC;IACrE,4BAAkC,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC;CACzE,CAAC;cAEQ;QACd,sBAA4B,CAAC,EAAE,MAAM,CAAC;KACjC;8BAqLL;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAnSY,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;uBAftC,gCAAgC;AASvD;;;;;;;GAOG;AAEH,2CARW,IAAI,CAAC,UAAU,CAAC,QAChB,YAAY,CACtB,OAAW,2CAA2C,EAAE,KAAK,CAC1D,kFAyGyD,IAAI,wBAC9D,CAAC,eAEF;IACA,aAAe,KAAM,WAAW,CAAC,CAAC;IAAC,mBAEjC,CAAF,EAAE,KAAK,OACH,gBAAa,EAAE,mBAAmB,CAAC,CAAC;IAAA,aAAoB,CAAA,EAAC,KAAO,aAAY,CAAC,CAAC;CACnF,WAGE,OACC,kBAAc,EAAE,OAChB;;kDAgLqd,KAAK,OAAO,gBAA8B,EAAE,IAAI,CAAC,uBAAwB,KAAK,OAAO,aAA2B,EAAE,SAAS,CAAC;8CAA202B,OAAO,eAAe,EAAE,OAAO,CAAC,SAAQ,IAAK,CAAC;;iCAA//R,OAAO;;;wCAAy1I,SAAS;sCAA+tH,OAAO;;;;;;;;;;;;;;;;;;sEAA05B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;sEAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;sEAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;KAjSz33B"}
|
|
@@ -154,10 +154,12 @@ export const startWalletFactory = async (
|
|
|
154
154
|
slotToBoardRemote,
|
|
155
155
|
);
|
|
156
156
|
|
|
157
|
+
/** @type {() => any} */
|
|
157
158
|
const reviveOldMetrics = () => {
|
|
158
159
|
if (!dataReviver.has(OLD_POOL_METRICS_STORAGE_PATH)) {
|
|
159
160
|
return undefined;
|
|
160
161
|
}
|
|
162
|
+
/** @type {any} */
|
|
161
163
|
const oldPoolMetrics = dataReviver.getItem(OLD_POOL_METRICS_STORAGE_PATH);
|
|
162
164
|
const newBrandFromOldSlotID = makeMap([
|
|
163
165
|
[oldPoolMetrics.totalMintedProvided.brand.getBoardId(), feeBrand],
|
package/src/core/utils.d.ts
CHANGED
|
@@ -40,29 +40,29 @@ export function makeAgoricNamesAccess(log?: {
|
|
|
40
40
|
spaces: WellKnownSpaces;
|
|
41
41
|
}>;
|
|
42
42
|
export function makeMyAddressNameAdminKit(address: string): {
|
|
43
|
-
nameHub: import("../types.js").NameHub
|
|
43
|
+
nameHub: import("../types.js").NameHub<any>;
|
|
44
44
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
45
45
|
};
|
|
46
46
|
export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVatAdminService"]>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined): {
|
|
47
47
|
space: {
|
|
48
48
|
consume: {
|
|
49
49
|
agoricNames: Promise<{
|
|
50
|
-
getNameHub: () => import("../types.js").NameHub
|
|
50
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
51
51
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
52
52
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
53
53
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
54
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
|
-
getNameHub: () => import("../types.js").NameHub
|
|
54
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
|
+
getNameHub: () => import("../types.js").NameHub<any>;
|
|
56
56
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
57
57
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
58
58
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
59
59
|
}>>;
|
|
60
60
|
board: Promise<{
|
|
61
61
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
62
|
-
getId(value:
|
|
63
|
-
getValue(id: BoardId):
|
|
62
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
63
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
64
64
|
lookup(...path: string[]): Promise<any>;
|
|
65
|
-
has(val:
|
|
65
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
66
66
|
ids(): string[];
|
|
67
67
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
68
68
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -79,12 +79,12 @@ export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVa
|
|
|
79
79
|
}>;
|
|
80
80
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
81
81
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
82
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
82
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
83
83
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
84
|
-
getId(value:
|
|
85
|
-
getValue(id: BoardId):
|
|
84
|
+
getId(value: import("@endo/pass-style").PassableCap): string;
|
|
85
|
+
getValue(id: BoardId): import("@endo/pass-style").PassableCap;
|
|
86
86
|
lookup(...path: string[]): Promise<any>;
|
|
87
|
-
has(val:
|
|
87
|
+
has(val: import("@endo/pass-style").PassableCap): boolean;
|
|
88
88
|
ids(): string[];
|
|
89
89
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
90
90
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -106,39 +106,6 @@ export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVa
|
|
|
106
106
|
};
|
|
107
107
|
durableStore: globalThis.MapStore<any, any>;
|
|
108
108
|
};
|
|
109
|
-
export type VatStore =
|
|
110
|
-
/**
|
|
111
|
-
* Check if a key exists. The key can be any
|
|
112
|
-
* JavaScript value, though the answer will always be false for keys that
|
|
113
|
-
* cannot be found in this map
|
|
114
|
-
*/
|
|
115
|
-
has: (key: string) => boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Return a value for the key. Throws if not
|
|
118
|
-
* found.
|
|
119
|
-
*/
|
|
120
|
-
get: (key: string) => CreateVatResults;
|
|
121
|
-
/**
|
|
122
|
-
* Initialize the key only if it
|
|
123
|
-
* doesn't already exist. The key must be one allowed by this store. For
|
|
124
|
-
* example a scalar store only allows primitives and remotables.
|
|
125
|
-
*/
|
|
126
|
-
init: (key: string, value: CreateVatResults) => void;
|
|
127
|
-
/**
|
|
128
|
-
* Set the key. Throws if not found.
|
|
129
|
-
*/
|
|
130
|
-
set: (key: string, value: CreateVatResults) => void;
|
|
131
|
-
/**
|
|
132
|
-
* Remove the key. Throws if not found.
|
|
133
|
-
*/
|
|
134
|
-
delete: (key: string) => void;
|
|
135
|
-
addAll: (entries: import("@endo/patterns").CopyMap<string, CreateVatResults> | Iterable<[string, CreateVatResults]>) => void;
|
|
136
|
-
keys: (keyPatt?: any, valuePatt?: any) => Iterable<string>;
|
|
137
|
-
values: (keyPatt?: any, valuePatt?: any) => Iterable<CreateVatResults>;
|
|
138
|
-
entries: (keyPatt?: any, valuePatt?: any) => Iterable<[string, CreateVatResults]>;
|
|
139
|
-
snapshot: (keyPatt?: any, valuePatt?: any) => import("@endo/patterns").CopyMap<string, CreateVatResults>;
|
|
140
|
-
getSize: (keyPatt?: any, valuePatt?: any) => number;
|
|
141
|
-
clear: (keyPatt?: any, valuePatt?: any) => void;
|
|
142
|
-
};
|
|
109
|
+
export type VatStore = import("@endo/pass-style").RemotableObject & import("@agoric/store").MapStoreMethods<string, CreateVatResults>;
|
|
143
110
|
import type { CreateVatResults } from '@agoric/swingset-vat';
|
|
144
111
|
//# sourceMappingURL=utils.d.ts.map
|
package/src/core/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,kCAJU,GACJ,CAAC,IAAI,MAAM,aAAa,GAAG,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,GAAE,GACjE,CA+DD;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAKxB;AAQK,gCAHI,MAAM,8BACN;IAAE,IAAI,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAK5D;AAQM,yCAJI,CAAC,CAAC,GAAG,IAAI,KAAA,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,WACrC,OAAO,KACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,oCAkCjB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM;IALkB,SAAS,EAAvB,OAAO;IACuB,SAAS,EAAvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACuB,QAAQ,EAAtD,M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AO,CAAC,KAAK,OAAO;mBAwBpE;AASM,sDAHI,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,CAAC;cA2K0k/qC,KAAM;uCAzErm/qC,KAAM;4CAzEhC;AAOM,iDAJI,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,CAAC;;;uEAsB/C;AAoBM;;;0BAXI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAKrC,OAAO,CAAC;IACpB,WAAe,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC/C,gBAAoB,EAAE,OAAO,aAAa,EAAE,SAAS,CAAC;IACtD,MAAU,EAAE,eAAe,CAAC;CACzB,CAAC,CAsBJ;AAMM,mDAFI,MAAM;;;EAgBhB;AAYM,kCATI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAC/D,OAAO,mBACG,GAAG,KAAK,IAAI;;;;;;+CAnRF,KAAK,WACnC,CAAC,YAA2B,KACzB,QAAG,CAAC,SACJ,QAAM;kEAoBW,WAAW;;;;;;;;;;iCAuML,OAAO;;;;;;;;;;;;;;;;;4DAlHf,WAAW,GAAE,QAAU,OAAM,WAAW,EAAE,MAAM,CAAC,WACnE,CAAC,CAAC;oGAD0D,MAAM;;;;;;;;;;;;;;;;;;;;;sGAAN,MAAM;oGAAN,MAAM;;;;;EA8NlE;;sCArDkC,sBAAsB"}
|
package/src/core/utils.js
CHANGED
|
@@ -362,6 +362,7 @@ export const makeVatSpace = (
|
|
|
362
362
|
{
|
|
363
363
|
get: (_target, name, _rx) => {
|
|
364
364
|
assert.typeof(name, 'string');
|
|
365
|
+
// @ts-expect-error XXX
|
|
365
366
|
return provideAsync(name, createVatByName).then(vat => {
|
|
366
367
|
if (!durableStore.has(name)) {
|
|
367
368
|
durableStore.init(name, vat);
|
package/src/ibc.d.ts
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
export function prepareIBCConnectionHandler(zone: Zone):
|
|
2
|
-
protocolUtils: any;
|
|
3
|
-
channelKeyToConnP: globalThis.MapStore<string, Remote<Connection, {}>>;
|
|
4
|
-
channelKeyToSeqAck: globalThis.MapStore<string, globalThis.MapStore<number, VowKit<string>>>;
|
|
5
|
-
}, args_1: {
|
|
6
|
-
channelID: `channel-${number}`;
|
|
7
|
-
portID: string;
|
|
8
|
-
rChannelID: `channel-${number}`;
|
|
9
|
-
rPortID: string;
|
|
10
|
-
order: "ORDERED" | "UNORDERED";
|
|
11
|
-
}) => import("@endo/exo").Guarded<{
|
|
12
|
-
/** @type {Required<ConnectionHandler>['onOpen']} */
|
|
13
|
-
onOpen(connection: Remote<Connection>, localAddr: Endpoint, remoteAddr: Endpoint, c: Remote<ConnectionHandler>): PromiseVow<void>;
|
|
14
|
-
/** @type {Required<ConnectionHandler>['onReceive']} */
|
|
15
|
-
onReceive(connection: Remote<Connection>, ack: Bytes, c: Remote<ConnectionHandler>, opts?: Record<string, any>): PromiseVow<string>;
|
|
16
|
-
/** @type {Required<ConnectionHandler>['onClose']} */
|
|
17
|
-
onClose(connection: Remote<Connection>, reason?: CloseReason, c?: Remote<ConnectionHandler> | undefined): PromiseVow<void>;
|
|
18
|
-
}>;
|
|
1
|
+
export function prepareIBCConnectionHandler(zone: Zone): any;
|
|
19
2
|
export function prepareIBCProtocol(zone: Zone, powers: {
|
|
20
3
|
when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
21
4
|
watch: <T_1 = unknown, TResult1_1 = T_1, TResult2_1 = T_1, C = unknown>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<TResult1_1 | TResult2_1>;
|
|
@@ -36,7 +19,10 @@ export function prepareIBCProtocol(zone: Zone, powers: {
|
|
|
36
19
|
* counterparty: { port_id: string };
|
|
37
20
|
* }} Outbound
|
|
38
21
|
*/
|
|
39
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* @param {Zone} zone
|
|
24
|
+
* @returns {any}
|
|
25
|
+
*/
|
|
40
26
|
makeVowKit: <T_2>() => VowKit<T_2>;
|
|
41
27
|
allVows: (vows: any) => import("@agoric/vow").Vow<any>;
|
|
42
28
|
}): (ibcdev: {
|
|
@@ -64,13 +50,7 @@ export type Outbound = Omit<ConnectingInfo, "counterparty" | "channelID" | "coun
|
|
|
64
50
|
};
|
|
65
51
|
};
|
|
66
52
|
import type { Zone } from '@agoric/base-zone';
|
|
67
|
-
import type { Connection } from '@agoric/network';
|
|
68
|
-
import type { Remote } from '@agoric/vow';
|
|
69
53
|
import type { VowKit } from '@agoric/vow';
|
|
70
|
-
import type { Endpoint } from '@agoric/network';
|
|
71
|
-
import type { ConnectionHandler } from '@agoric/network';
|
|
72
|
-
import type { PromiseVow } from '@agoric/vow';
|
|
73
|
-
import type { Bytes } from '@agoric/network';
|
|
74
54
|
import type { ProtocolHandler } from '@agoric/network';
|
|
75
55
|
import type { BridgeHandler } from './types.js';
|
|
76
56
|
import type { ScopedBridgeManager } from './types.js';
|
package/src/ibc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"AAqDO,yDAFM,GAAG,CAmHf;AAMM;uFA3Jc,CAAC;;IAWtB;;;;;OAKG;IAEH,uDAAuD;IAEvD;;;;;;;;;OASG;IAGH;;;OAGG;;;;cA+Ha,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC;;;;EAunB7D;AAIM;IAOD;;;OAGG;qBAFQ,MAAM,OACN,GAAG;GAYnB;;;;;;;gBAxxBgB,UAAU;kBACR;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;0BAbf,mBAAmB;4BAC0B,aAAa;qCAH+B,iBAAiB;mCACyE,YAAY;yCAAZ,YAAY;wCAZjL,iBAAiB;iCAcc,aAAa;oCAFyH,YAAY"}
|
package/src/ibc.js
CHANGED
|
@@ -46,7 +46,11 @@ const DEFAULT_PACKET_TIMEOUT_NS = 60n * 60n * 1_000_000_000n;
|
|
|
46
46
|
* }} Outbound
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
// FIXME(TS9006) remove 'any'
|
|
50
|
+
/**
|
|
51
|
+
* @param {Zone} zone
|
|
52
|
+
* @returns {any}
|
|
53
|
+
*/
|
|
50
54
|
export const prepareIBCConnectionHandler = zone => {
|
|
51
55
|
/**
|
|
52
56
|
* @param {IBCChannelID} channelID
|