@agoric/vats 0.15.2-dev-de2008a.0 → 0.15.2-dev-9d7a377.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 +16 -16
- package/src/bridge.d.ts +1 -1
- package/src/core/basic-behaviors.d.ts +65 -80
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/boot-chain.d.ts +92 -1038
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/boot-sim.d.ts +2 -2
- package/src/core/boot-sim.d.ts.map +1 -1
- package/src/core/boot-solo.d.ts +2 -2
- package/src/core/boot-solo.d.ts.map +1 -1
- package/src/core/chain-behaviors.d.ts +21 -46
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/client-behaviors.d.ts +2 -2
- package/src/core/demoIssuers.d.ts +2 -2
- package/src/core/lib-boot.d.ts +4 -4
- package/src/core/lib-boot.d.ts.map +1 -1
- package/src/core/promise-space.d.ts +2 -2
- package/src/core/promise-space.d.ts.map +1 -1
- package/src/core/sim-behaviors.d.ts +1 -1
- package/src/core/startWalletFactory.d.ts +21 -21
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/utils.d.ts +11 -61
- package/src/core/utils.d.ts.map +1 -1
- package/src/ibc.d.ts +15 -16
- package/src/ibc.d.ts.map +1 -1
- package/src/lib-board.d.ts +2 -2
- package/src/lib-board.d.ts.map +1 -1
- package/src/localchain.d.ts +11 -11
- package/src/localchain.d.ts.map +1 -1
- package/src/mintHolder.d.ts.map +1 -1
- package/src/nameHub.d.ts +3 -3
- package/src/priceAuthorityRegistry.d.ts +1 -1
- package/src/proposals/localchain-proposal.d.ts +12 -24
- package/src/proposals/localchain-proposal.d.ts.map +1 -1
- package/src/proposals/localchain-test.d.ts +1 -1
- package/src/proposals/namesByAddress-fix-proposal.d.ts +1 -1
- package/src/proposals/network-proposal.d.ts +1 -1
- package/src/proposals/restart-vats-proposal.d.ts +1 -1
- package/src/proposals/upgrade-zoe-proposal.d.ts +37 -67
- package/src/proposals/upgrade-zoe-proposal.d.ts.map +1 -1
- package/src/proposals/zcf-proposal.d.ts +37 -67
- package/src/proposals/zcf-proposal.d.ts.map +1 -1
- package/src/vat-agoricNames.d.ts +1 -1
- package/src/vat-bank.d.ts +133 -9
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-board.d.ts +7 -7
- package/src/vat-board.d.ts.map +1 -1
- package/src/vat-bridge.d.ts +4 -4
- package/src/vat-bridge.d.ts.map +1 -1
- package/src/vat-ibc.d.ts +14 -14
- package/src/vat-ibc.d.ts.map +1 -1
- package/src/vat-localchain.d.ts +8 -20
- package/src/vat-localchain.d.ts.map +1 -1
- package/src/vat-network.d.ts +12 -12
- package/src/vat-network.d.ts.map +1 -1
- package/src/vat-priceAuthority.d.ts +1 -1
- package/src/vat-provisioning.d.ts +1 -1
- package/src/virtual-purse.d.ts +1 -1
- package/tools/bank-utils.d.ts +2 -2
- package/tools/board-utils.d.ts +5 -5
- package/tools/board-utils.d.ts.map +1 -1
- package/tools/ibc-utils.d.ts +3 -3
|
@@ -29,7 +29,7 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
29
29
|
noProvisioner: ({ produce: { provisioning } }: BootstrapPowers) => Promise<void>;
|
|
30
30
|
bridgeProvisioner: ({ consume: { provisioning: provisioningP, provisionBridgeManager: provisionBridgeManagerP, provisionWalletBridgeManager: provisionWalletBridgeManagerP, }, }: BootstrapPowers) => Promise<void>;
|
|
31
31
|
setupClientManager: ({ produce: { client, clientCreator: clientCreatorP } }: BootstrapSpace, { template, }?: {
|
|
32
|
-
template?: Record<string, unknown
|
|
32
|
+
template?: Record<string, unknown>;
|
|
33
33
|
}) => Promise<void>;
|
|
34
34
|
startTimerService: ({ devices: { timer: timerDevice }, vats: { timer: timerVat }, consume: { client }, produce: { chainTimerService: produceTimer }, brand: { produce: { timer }, }, }: BootstrapPowers) => Promise<void>;
|
|
35
35
|
makeBridgeManager: ({ consume: { loadCriticalVat }, devices: { bridge }, produce: { bridgeManager: bridgeManagerP, provisionBridgeManager, provisionWalletBridgeManager, walletBridgeManager, }, }: BootDevices<ChainDevices> & WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
|
|
@@ -62,44 +62,24 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
62
62
|
loadCriticalVat: ERef<VatLoader<ChainStorageVat>>;
|
|
63
63
|
};
|
|
64
64
|
}) => Promise<void>;
|
|
65
|
-
publishAgoricNamesToChainStorage: ({ consume: { chainStorage: rootP }, namedVat: { consume: { agoricNames, board: vatBoard }, }, }:
|
|
66
|
-
vatAdminSvc: VatAdminSvc;
|
|
67
|
-
}, {}, {
|
|
68
|
-
loadVat: VatLoader<unknown>;
|
|
69
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
70
|
-
}> & any & NamedVatPowers) => Promise<void>;
|
|
65
|
+
publishAgoricNamesToChainStorage: ({ consume: { chainStorage: rootP }, namedVat: { consume: { agoricNames, board: vatBoard }, }, }: BootstrapPowers & NamedVatPowers) => Promise<void>;
|
|
71
66
|
publishAgoricNames: ({ consume: { agoricNamesAdmin, board, chainStorage: rootP } }: BootstrapPowers, { options: { agoricNamesOptions } }?: {
|
|
72
67
|
options?: {
|
|
73
68
|
agoricNamesOptions?: {
|
|
74
|
-
topLevel?: string[]
|
|
75
|
-
}
|
|
76
|
-
}
|
|
69
|
+
topLevel?: string[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
77
72
|
}) => Promise<void>;
|
|
78
73
|
connectChainFaucet: ({ consume: { client } }: BootstrapPowers) => Promise<void>;
|
|
79
|
-
makeVatsFromBundles: ({ vats, devices, consume: { vatStore }, produce: { vatAdminSvc, loadVat, loadCriticalVat }, }:
|
|
80
|
-
vatAdminSvc: VatAdminSvc;
|
|
81
|
-
}, {}, {
|
|
82
|
-
loadVat: VatLoader<unknown>;
|
|
83
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
84
|
-
}> & any) => Promise<void>;
|
|
74
|
+
makeVatsFromBundles: ({ vats, devices, consume: { vatStore }, produce: { vatAdminSvc, loadVat, loadCriticalVat }, }: BootstrapPowers & {}) => Promise<void>;
|
|
85
75
|
produceDiagnostics: ({ produce }: Pick<ChainBootstrapSpace, "produce">) => Promise<void>;
|
|
86
|
-
produceStartUpgradable: ({ zone, consume: { diagnostics, zoe }, produce, }:
|
|
87
|
-
|
|
88
|
-
}, {}, {
|
|
89
|
-
loadVat: VatLoader<unknown>;
|
|
90
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
91
|
-
}> & {
|
|
92
|
-
zone: import("@agoric/base-zone").Zone;
|
|
76
|
+
produceStartUpgradable: ({ zone, consume: { diagnostics, zoe }, produce, }: BootstrapSpace & {
|
|
77
|
+
zone: import("@agoric/zone").Zone;
|
|
93
78
|
}) => Promise<void>;
|
|
94
|
-
produceStartGovernedUpgradable: ({ zone, consume: { chainTimerService, diagnostics, economicCommitteeCreatorFacet, zoe, }, produce, installation: { consume: { contractGovernor }, }, }:
|
|
95
|
-
|
|
96
|
-
}, {}, {
|
|
97
|
-
loadVat: VatLoader<unknown>;
|
|
98
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
99
|
-
}> & {
|
|
100
|
-
zone: import("@agoric/base-zone").Zone;
|
|
79
|
+
produceStartGovernedUpgradable: ({ zone, consume: { chainTimerService, diagnostics, economicCommitteeCreatorFacet, zoe, }, produce, installation: { consume: { contractGovernor }, }, }: BootstrapSpace & {
|
|
80
|
+
zone: import("@agoric/zone").Zone;
|
|
101
81
|
consume: {
|
|
102
|
-
economicCommitteeCreatorFacet:
|
|
82
|
+
economicCommitteeCreatorFacet: import("@agoric/inter-protocol/src/proposals/econ-behaviors.js").EconomyBootstrapPowers["consume"]["economicCommitteeCreatorFacet"];
|
|
103
83
|
};
|
|
104
84
|
}) => Promise<void>;
|
|
105
85
|
buildZoe: ({ consume: { vatAdminSvc, loadCriticalVat, client }, produce: { zoe, feeMintAccess }, brand: { produce: { Invitation: invitationBrand }, }, issuer: { produce: { Invitation: invitationIssuer }, }, }: WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
|
|
@@ -109,7 +89,7 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
109
89
|
loadCriticalVat: VatLoader<unknown>;
|
|
110
90
|
}> & any & {
|
|
111
91
|
consume: {
|
|
112
|
-
loadCriticalVat: ERef<VatLoader<import("../core/basic-behaviors").ZoeVat>>;
|
|
92
|
+
loadCriticalVat: ERef<VatLoader<import("../core/basic-behaviors.js").ZoeVat>>;
|
|
113
93
|
};
|
|
114
94
|
}) => Promise<void>;
|
|
115
95
|
startPriceAuthorityRegistry: ({ consume: { loadCriticalVat, client }, produce, }: WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
|
|
@@ -119,21 +99,11 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
119
99
|
loadCriticalVat: VatLoader<unknown>;
|
|
120
100
|
}> & any & {
|
|
121
101
|
consume: {
|
|
122
|
-
loadCriticalVat: ERef<VatLoader<import("../core/basic-behaviors").PriceAuthorityVat>>;
|
|
102
|
+
loadCriticalVat: ERef<VatLoader<import("../core/basic-behaviors.js").PriceAuthorityVat>>;
|
|
123
103
|
};
|
|
124
104
|
}) => Promise<void>;
|
|
125
|
-
makeOracleBrands: ({ namedVat: { consume: { agoricNames }, }, oracleBrand: { produce: { USD }, }, }:
|
|
126
|
-
|
|
127
|
-
}, {}, {
|
|
128
|
-
loadVat: VatLoader<unknown>;
|
|
129
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
130
|
-
}> & any & NamedVatPowers) => Promise<void>;
|
|
131
|
-
produceBoard: ({ consume: { client }, produce: { board: pBoard }, namedVat: { consume: { board: vatBoard }, }, }: WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
|
|
132
|
-
vatAdminSvc: VatAdminSvc;
|
|
133
|
-
}, {}, {
|
|
134
|
-
loadVat: VatLoader<unknown>;
|
|
135
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
136
|
-
}> & any & NamedVatPowers) => Promise<void>;
|
|
105
|
+
makeOracleBrands: ({ namedVat: { consume: { agoricNames }, }, oracleBrand: { produce: { USD }, }, }: BootstrapPowers & NamedVatPowers) => Promise<void>;
|
|
106
|
+
produceBoard: ({ consume: { client }, produce: { board: pBoard }, namedVat: { consume: { board: vatBoard }, }, }: BootstrapPowers & NamedVatPowers) => Promise<void>;
|
|
137
107
|
makeBoard: ({ consume: { loadCriticalVat, client }, produce: { board: { resolve: resolveBoard }, }, }: WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
|
|
138
108
|
vatAdminSvc: VatAdminSvc;
|
|
139
109
|
}, {}, {
|
|
@@ -241,20 +211,20 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
241
211
|
comms: CommsVatRoot;
|
|
242
212
|
};
|
|
243
213
|
}) => Promise<void>;
|
|
244
|
-
callProperties: (builders: ((...args: any
|
|
245
|
-
extract: (template:
|
|
246
|
-
extractPowers: (permit:
|
|
214
|
+
callProperties: (builders: ((...args: any) => Record<string, unknown>)[], ...args: unknown[]) => Record<string, unknown>;
|
|
215
|
+
extract: (template: true | string | Record<string, any>, specimen: unknown, path?: string[] | undefined) => any;
|
|
216
|
+
extractPowers: (permit: true | string | Record<string, any>, allPowers: unknown) => any;
|
|
247
217
|
runModuleBehaviors: ({ allPowers, behaviors, manifest, makeConfig, }: {
|
|
248
218
|
allPowers: unknown;
|
|
249
219
|
behaviors: Record<string, unknown>;
|
|
250
220
|
manifest: Record<string, Record<string, unknown>>;
|
|
251
221
|
makeConfig: (name: string, permit: Record<string, unknown>) => unknown;
|
|
252
222
|
}) => Promise<any[]>;
|
|
253
|
-
makePromiseSpaceForNameHub: (nameAdmin: ERef<import("../types").NameAdmin>, log?: {
|
|
223
|
+
makePromiseSpaceForNameHub: (nameAdmin: ERef<import("../types.js").NameAdmin>, log?: {
|
|
254
224
|
(...data: any[]): void;
|
|
255
225
|
(message?: any, ...optionalParams: any[]): void;
|
|
256
226
|
} | undefined) => PromiseSpaceOf<any, {}, {}>;
|
|
257
|
-
makeWellKnownSpaces: (parentAdmin: ERef<import("../types").NameAdmin>, log?: {
|
|
227
|
+
makeWellKnownSpaces: (parentAdmin: ERef<import("../types.js").NameAdmin>, log?: {
|
|
258
228
|
(...data: any[]): void;
|
|
259
229
|
(message?: any, ...optionalParams: any[]): void;
|
|
260
230
|
} | undefined, kinds?: string[] | undefined) => Promise<WellKnownSpaces>;
|
|
@@ -262,13 +232,13 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
262
232
|
(...data: any[]): void;
|
|
263
233
|
(message?: any, ...optionalParams: any[]): void;
|
|
264
234
|
} | undefined, reserved?: Record<string, Record<string, unknown>>) => Promise<{
|
|
265
|
-
agoricNames: import("../types").NameHub;
|
|
266
|
-
agoricNamesAdmin: import("../types").NameAdmin;
|
|
235
|
+
agoricNames: import("../types.js").NameHub;
|
|
236
|
+
agoricNamesAdmin: import("../types.js").NameAdmin;
|
|
267
237
|
spaces: WellKnownSpaces;
|
|
268
238
|
}>;
|
|
269
239
|
makeMyAddressNameAdminKit: (address: string) => {
|
|
270
|
-
nameHub: import("../types").NameHub;
|
|
271
|
-
myAddressNameAdmin: import("../types").MyAddressNameAdmin;
|
|
240
|
+
nameHub: import("../types.js").NameHub;
|
|
241
|
+
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
272
242
|
};
|
|
273
243
|
makeVatSpace: (svc: ERef<import("@endo/exo").Guarded<{
|
|
274
244
|
waitForBundleCap(bundleID: any): any;
|
|
@@ -338,20 +308,20 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
338
308
|
space: {
|
|
339
309
|
consume: {
|
|
340
310
|
agoricNames: Promise<{
|
|
341
|
-
getNameHub: () => import("../types").NameHub;
|
|
342
|
-
getNameHubKit: () => import("../types").NameHubKit;
|
|
311
|
+
getNameHub: () => import("../types.js").NameHub;
|
|
312
|
+
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
343
313
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
344
|
-
provideInertBrand: (keyword: string, displayInfo:
|
|
314
|
+
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
345
315
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
346
|
-
getNameHub: () => import("../types").NameHub;
|
|
347
|
-
getNameHubKit: () => import("../types").NameHubKit;
|
|
316
|
+
getNameHub: () => import("../types.js").NameHub;
|
|
317
|
+
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
348
318
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
349
|
-
provideInertBrand: (keyword: string, displayInfo:
|
|
319
|
+
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
350
320
|
}>>;
|
|
351
321
|
board: Promise<{
|
|
352
322
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
353
323
|
getId(value: any): string;
|
|
354
|
-
getValue(id:
|
|
324
|
+
getValue(id: BoardId): any;
|
|
355
325
|
lookup(...path: string[]): Promise<any>;
|
|
356
326
|
has(val: any): boolean;
|
|
357
327
|
ids(): string[];
|
|
@@ -368,12 +338,12 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
368
338
|
unserialize(data: any): any;
|
|
369
339
|
}>;
|
|
370
340
|
}>;
|
|
371
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode |
|
|
372
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode |
|
|
341
|
+
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>;
|
|
342
|
+
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>;
|
|
373
343
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
374
344
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
375
345
|
getId(value: any): string;
|
|
376
|
-
getValue(id:
|
|
346
|
+
getValue(id: BoardId): any;
|
|
377
347
|
lookup(...path: string[]): Promise<any>;
|
|
378
348
|
has(val: any): boolean;
|
|
379
349
|
ids(): string[];
|
|
@@ -390,8 +360,8 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
390
360
|
unserialize(data: any): any;
|
|
391
361
|
}>;
|
|
392
362
|
}>;
|
|
393
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode |
|
|
394
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode |
|
|
363
|
+
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>;
|
|
364
|
+
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>;
|
|
395
365
|
}>>;
|
|
396
366
|
};
|
|
397
367
|
};
|
|
@@ -402,7 +372,7 @@ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
402
372
|
} & {
|
|
403
373
|
consume: {
|
|
404
374
|
vatAdminSvc: VatAdminSvc;
|
|
405
|
-
vatStore: MapStore<string, import(
|
|
375
|
+
vatStore: MapStore<string, import("@agoric/swingset-vat").CreateVatResults>;
|
|
406
376
|
};
|
|
407
377
|
}, options: {
|
|
408
378
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcf-proposal.d.ts","sourceRoot":"","sources":["zcf-proposal.js"],"names":[],"mappings":"AAgBO
|
|
1
|
+
{"version":3,"file":"zcf-proposal.d.ts","sourceRoot":"","sources":["zcf-proposal.js"],"names":[],"mappings":"AAgBO;;;;;;;;;;;;;;;;;wCAyBD,eACG;;;;;;;;;;;2DAQi9F,eAAe;8LAA8J,eAAe;yFAA4hE,cAAc,kBAAoB;gBAAC,QAAS,CAAC,EAAC,uBAAwB,CAAA;aAAE;oMAAskF,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gJAA+8H,eAAe,GAAE,cAAe;gGAA6hB,eAAe,wCAAoB;gBAAC,OAAa,CAAC,EAAC;oBAAE,kBAA0B,CAAC,EAAC;wBAAE,QAAkB,CAAC,EAAC,QAAS,CAAC;qBAAS,CAAC;iBAAO,CAAC;aAAK;0DAA8xC,eAAe;iIAAjgb,eAAe,KAAK;8CAAqnE,KAAK,mBAAmB,EAAC,SAAU,CAAC;wFAAwb,cAAc,GAAE;gBAAE,MAAM,OAAQ,cAAc,EAAE,IAAI,CAAA;aAAE;qMAA68G,cAAc,GAAE;gBAAE,MAAW,OAAQ,cAAc,EAAE,IAAI,CAAC;gBAAA,SAAc;oBAAE,+BAAsC,OAAQ,wDAAwD,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC,+BAA+B,CAAC,CAAC;iBAAO,CAAC;aAAK;;;;;;;;;;;;;;;;;;;;;iHAAozG,eAAe,GAAE,cAAe;8HAA+V,eAAe,GAAE,cAAe;;;;;;;;;;;6JAAktC,eAAe;gGAAigC,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buildRootObject(_vatPowers: unknown, _vatParameters: unknown, baggage: import("@agoric/vat-data").Baggage): {
|
|
2
2
|
getNameHub: () => import("./types.js").NameHub;
|
|
3
3
|
getNameHubKit: () => import("./types.js").NameHubKit;
|
|
4
4
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
package/src/vat-bank.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
7
7
|
* update facet of a NameAdmin; see addAsset() for detail.
|
|
8
8
|
*/
|
|
9
9
|
makeBankManager(bankBridgeManagerP?: ERef<import("./types.js").ScopedBridgeManager | undefined>, nameAdminP?: ERef<{
|
|
10
|
-
update: import(
|
|
10
|
+
update: import("./types.js").NameAdmin["update"];
|
|
11
11
|
}> | undefined): Promise<import("@endo/exo").Guarded<{
|
|
12
12
|
/**
|
|
13
13
|
* Returns assets as they are added to the bank.
|
|
@@ -76,7 +76,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
76
76
|
* update facet of a NameAdmin; see addAsset() for detail.
|
|
77
77
|
*/
|
|
78
78
|
makeBankManager(bankBridgeManagerP?: ERef<import("./types.js").ScopedBridgeManager | undefined>, nameAdminP?: ERef<{
|
|
79
|
-
update: import(
|
|
79
|
+
update: import("./types.js").NameAdmin["update"];
|
|
80
80
|
}> | undefined): Promise<import("@endo/exo").Guarded<{
|
|
81
81
|
/**
|
|
82
82
|
* Returns assets as they are added to the bank.
|
|
@@ -94,6 +94,14 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
94
94
|
* >}
|
|
95
95
|
*/
|
|
96
96
|
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<{
|
|
97
|
+
/**
|
|
98
|
+
* Deposit all the contents of payment
|
|
99
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
100
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
101
|
+
* payment, throw an error.
|
|
102
|
+
*
|
|
103
|
+
* If payment is a promise, throw an error.
|
|
104
|
+
*/
|
|
97
105
|
/**
|
|
98
106
|
* Deposit all the contents of payment
|
|
99
107
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -167,7 +175,7 @@ export type VirtualPurse = Awaited<ReturnType<ReturnType<typeof prepareVirtualPu
|
|
|
167
175
|
export type BalanceUpdater = {
|
|
168
176
|
update: (value: string, nonce?: string) => void;
|
|
169
177
|
};
|
|
170
|
-
export type BridgeChannel = Pick<import(
|
|
178
|
+
export type BridgeChannel = Pick<import("./types.js").ScopedBridgeManager, "fromBridge" | "toBridge">;
|
|
171
179
|
export type AssetIssuerKit<K extends globalThis.AssetKind = globalThis.AssetKind> = {
|
|
172
180
|
mint?: ERef<globalThis.Mint<K>> | undefined;
|
|
173
181
|
issuer: ERef<globalThis.Issuer<K>>;
|
|
@@ -185,7 +193,7 @@ export type AssetDescriptor = {
|
|
|
185
193
|
proposedName: string;
|
|
186
194
|
};
|
|
187
195
|
export type AssetInfo = AssetDescriptor & {
|
|
188
|
-
issuer: Issuer<
|
|
196
|
+
issuer: Issuer<"nat">;
|
|
189
197
|
displayInfo: DisplayInfo;
|
|
190
198
|
};
|
|
191
199
|
export type Bank = {
|
|
@@ -210,13 +218,13 @@ import { prepareVirtualPurse } from './virtual-purse.js';
|
|
|
210
218
|
* @param {ReturnType<prepareRewardPurseController>} makers.makeRewardPurseController
|
|
211
219
|
* @param {ReturnType<prepareVirtualPurse>} makers.makeVirtualPurse
|
|
212
220
|
*/
|
|
213
|
-
declare function prepareBankManager(zone: import(
|
|
214
|
-
provideAssetSubscription: ReturnType<(zone: import(
|
|
221
|
+
declare function prepareBankManager(zone: import("@agoric/zone").Zone, { provideAssetSubscription, makeBank, makePublishKit, makeRewardPurseController, makeVirtualPurse, }: {
|
|
222
|
+
provideAssetSubscription: ReturnType<(zone: import("@agoric/zone").Zone) => (brandToAssetDescriptor?: any, assetSubscriber?: any) => import("@endo/exo").Guarded<{
|
|
215
223
|
subscribeAfter(publishCount?: bigint): any;
|
|
216
224
|
[Symbol.asyncIterator](): ForkableAsyncIterableIterator<any, any, undefined>;
|
|
217
225
|
}>>;
|
|
218
|
-
makeBank: ReturnType<(zone: import(
|
|
219
|
-
provideAssetSubscription: ReturnType<(zone: import(
|
|
226
|
+
makeBank: ReturnType<(zone: import("@agoric/zone").Zone, { provideAssetSubscription, makePublishKit, makeVirtualPurse }: {
|
|
227
|
+
provideAssetSubscription: ReturnType<(zone: import("@agoric/zone").Zone) => (brandToAssetDescriptor?: any, assetSubscriber?: any) => import("@endo/exo").Guarded<{
|
|
220
228
|
subscribeAfter(publishCount?: bigint): any;
|
|
221
229
|
[Symbol.asyncIterator](): ForkableAsyncIterableIterator<any, any, undefined>;
|
|
222
230
|
}>>;
|
|
@@ -291,6 +299,14 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
291
299
|
* `receive` method deposits to the current Purse.
|
|
292
300
|
*/
|
|
293
301
|
getDepositFacet: () => ERef<{
|
|
302
|
+
/**
|
|
303
|
+
* Deposit all the contents of payment
|
|
304
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
305
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
306
|
+
* payment, throw an error.
|
|
307
|
+
*
|
|
308
|
+
* If payment is a promise, throw an error.
|
|
309
|
+
*/
|
|
294
310
|
/**
|
|
295
311
|
* Deposit all the contents of payment
|
|
296
312
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -438,11 +454,18 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
438
454
|
* be treated with suspicion and verified elsewhere.
|
|
439
455
|
*/
|
|
440
456
|
getAllegedBrand: () => ERef<{
|
|
457
|
+
/**
|
|
458
|
+
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
459
|
+
*/
|
|
441
460
|
/**
|
|
442
461
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
443
462
|
*/
|
|
444
463
|
isMyIssuer: (allegedIssuer: ERef<globalThis.Issuer>) => ERef<boolean>;
|
|
445
464
|
getAllegedName: () => ERef<string>;
|
|
465
|
+
/**
|
|
466
|
+
* Give information to UI on how
|
|
467
|
+
* to display the amount.
|
|
468
|
+
*/
|
|
446
469
|
/**
|
|
447
470
|
* Give information to UI on how
|
|
448
471
|
* to display the amount.
|
|
@@ -488,7 +511,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
488
511
|
getUpdateSince(updateCount: any): any;
|
|
489
512
|
};
|
|
490
513
|
}>>;
|
|
491
|
-
makeRewardPurseController: ReturnType<(zone: import(
|
|
514
|
+
makeRewardPurseController: ReturnType<(zone: import("@agoric/zone").Zone) => (bankChannel: BridgeChannel, denom: string, brand: globalThis.Brand) => import("@endo/exo").Guarded<{
|
|
492
515
|
getBalances(b: any): Notifier<any>;
|
|
493
516
|
pullAmount(_amount: any): Promise<never>;
|
|
494
517
|
pushAmount(amount: any): Promise<void>;
|
|
@@ -499,16 +522,27 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
499
522
|
mint?: ERef<globalThis.Mint> | undefined;
|
|
500
523
|
escrowPurse?: ERef<globalThis.Purse> | undefined;
|
|
501
524
|
}) => Promise<{
|
|
525
|
+
/**
|
|
526
|
+
* Get the alleged Brand for this
|
|
527
|
+
* Purse
|
|
528
|
+
*/
|
|
502
529
|
/**
|
|
503
530
|
* Get the alleged Brand for this
|
|
504
531
|
* Purse
|
|
505
532
|
*/
|
|
506
533
|
getAllegedBrand: () => ERef<{
|
|
534
|
+
/**
|
|
535
|
+
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
536
|
+
*/
|
|
507
537
|
/**
|
|
508
538
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
509
539
|
*/
|
|
510
540
|
isMyIssuer: (allegedIssuer: ERef<globalThis.Issuer>) => ERef<boolean>;
|
|
511
541
|
getAllegedName: () => ERef<string>;
|
|
542
|
+
/**
|
|
543
|
+
* Give information to UI on how
|
|
544
|
+
* to display the amount.
|
|
545
|
+
*/
|
|
512
546
|
/**
|
|
513
547
|
* Give information to UI on how
|
|
514
548
|
* to display the amount.
|
|
@@ -516,16 +550,34 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
516
550
|
getDisplayInfo: () => ERef<globalThis.DisplayInfo<globalThis.AssetKind>>;
|
|
517
551
|
getAmountShape: () => any;
|
|
518
552
|
}>;
|
|
553
|
+
/**
|
|
554
|
+
* Get the amount contained in this
|
|
555
|
+
* purse.
|
|
556
|
+
*/
|
|
519
557
|
/**
|
|
520
558
|
* Get the amount contained in this
|
|
521
559
|
* purse.
|
|
522
560
|
*/
|
|
523
561
|
getCurrentAmount: () => ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
562
|
+
/**
|
|
563
|
+
* Get a lossy
|
|
564
|
+
* notifier for changes to this purse's balance.
|
|
565
|
+
*/
|
|
524
566
|
/**
|
|
525
567
|
* Get a lossy
|
|
526
568
|
* notifier for changes to this purse's balance.
|
|
527
569
|
*/
|
|
528
570
|
getCurrentAmountNotifier: () => ERef<{
|
|
571
|
+
/**
|
|
572
|
+
* Returns a promise for an update record as of an update count.
|
|
573
|
+
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
574
|
+
* the promise promptly resolves to the current record.
|
|
575
|
+
* Otherwise, after the next state change, the promise resolves to the resulting record.
|
|
576
|
+
* This is an attenuated form of `subscribeAfter` whose return value stands alone and
|
|
577
|
+
* does not allow consumers to pin a chain of historical PublicationRecords.
|
|
578
|
+
* Used to make lossy ("latest") iterators.
|
|
579
|
+
* NOTE: Use of `number` as an `updateCount` is deprecated.
|
|
580
|
+
*/
|
|
529
581
|
/**
|
|
530
582
|
* Returns a promise for an update record as of an update count.
|
|
531
583
|
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
@@ -538,6 +590,13 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
538
590
|
*/
|
|
539
591
|
getUpdateSince: (updateCount?: number | bigint | undefined) => ERef<UpdateRecord<globalThis.Amount<globalThis.AssetKind>>>;
|
|
540
592
|
}>;
|
|
593
|
+
/**
|
|
594
|
+
* Deposit all the contents of payment into
|
|
595
|
+
* this purse, returning the amount. If the optional argument `optAmount` does
|
|
596
|
+
* not equal the amount of digital assets in the payment, throw an error.
|
|
597
|
+
*
|
|
598
|
+
* If payment is a promise, throw an error.
|
|
599
|
+
*/
|
|
541
600
|
/**
|
|
542
601
|
* Deposit all the contents of payment into
|
|
543
602
|
* this purse, returning the amount. If the optional argument `optAmount` does
|
|
@@ -546,11 +605,39 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
546
605
|
* If payment is a promise, throw an error.
|
|
547
606
|
*/
|
|
548
607
|
deposit: (args_0: globalThis.Payment<globalThis.AssetKind>, args_1?: any) => ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
608
|
+
/**
|
|
609
|
+
* Return an object whose
|
|
610
|
+
* `receive` method deposits to the current Purse.
|
|
611
|
+
*/
|
|
549
612
|
/**
|
|
550
613
|
* Return an object whose
|
|
551
614
|
* `receive` method deposits to the current Purse.
|
|
552
615
|
*/
|
|
553
616
|
getDepositFacet: () => ERef<{
|
|
617
|
+
/**
|
|
618
|
+
* Deposit all the contents of payment
|
|
619
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
620
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
621
|
+
* payment, throw an error.
|
|
622
|
+
*
|
|
623
|
+
* If payment is a promise, throw an error.
|
|
624
|
+
*/
|
|
625
|
+
/**
|
|
626
|
+
* Deposit all the contents of payment
|
|
627
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
628
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
629
|
+
* payment, throw an error.
|
|
630
|
+
*
|
|
631
|
+
* If payment is a promise, throw an error.
|
|
632
|
+
*/
|
|
633
|
+
/**
|
|
634
|
+
* Deposit all the contents of payment
|
|
635
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
636
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
637
|
+
* payment, throw an error.
|
|
638
|
+
*
|
|
639
|
+
* If payment is a promise, throw an error.
|
|
640
|
+
*/
|
|
554
641
|
/**
|
|
555
642
|
* Deposit all the contents of payment
|
|
556
643
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -561,11 +648,21 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
561
648
|
*/
|
|
562
649
|
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
563
650
|
}>;
|
|
651
|
+
/**
|
|
652
|
+
* Withdraw amount from
|
|
653
|
+
* this purse into a new Payment.
|
|
654
|
+
*/
|
|
564
655
|
/**
|
|
565
656
|
* Withdraw amount from
|
|
566
657
|
* this purse into a new Payment.
|
|
567
658
|
*/
|
|
568
659
|
withdraw: (amount: globalThis.Amount<globalThis.AssetKind>) => ERef<{
|
|
660
|
+
/**
|
|
661
|
+
* Get the allegedBrand, indicating
|
|
662
|
+
* the type of digital asset this payment purports to be, and which issuer to
|
|
663
|
+
* use. Because payments are not trusted, any method calls on payments should
|
|
664
|
+
* be treated with suspicion and verified elsewhere.
|
|
665
|
+
*/
|
|
569
666
|
/**
|
|
570
667
|
* Get the allegedBrand, indicating
|
|
571
668
|
* the type of digital asset this payment purports to be, and which issuer to
|
|
@@ -573,11 +670,18 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
573
670
|
* be treated with suspicion and verified elsewhere.
|
|
574
671
|
*/
|
|
575
672
|
getAllegedBrand: () => ERef<{
|
|
673
|
+
/**
|
|
674
|
+
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
675
|
+
*/
|
|
576
676
|
/**
|
|
577
677
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
578
678
|
*/
|
|
579
679
|
isMyIssuer: (allegedIssuer: ERef<globalThis.Issuer>) => ERef<boolean>;
|
|
580
680
|
getAllegedName: () => ERef<string>;
|
|
681
|
+
/**
|
|
682
|
+
* Give information to UI on how
|
|
683
|
+
* to display the amount.
|
|
684
|
+
*/
|
|
581
685
|
/**
|
|
582
686
|
* Give information to UI on how
|
|
583
687
|
* to display the amount.
|
|
@@ -586,6 +690,18 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
586
690
|
getAmountShape: () => any;
|
|
587
691
|
}>;
|
|
588
692
|
}>;
|
|
693
|
+
/**
|
|
694
|
+
* The set of payments
|
|
695
|
+
* withdrawn from this purse that are still live. These are the payments that
|
|
696
|
+
* can still be recovered in emergencies by, for example, depositing into this
|
|
697
|
+
* purse. Such a deposit action is like canceling an outstanding check because
|
|
698
|
+
* you're tired of waiting for it. Once your cancellation is acknowledged, you
|
|
699
|
+
* can spend the assets at stake on other things. Afterwards, if the recipient
|
|
700
|
+
* of the original check finally gets around to depositing it, their deposit
|
|
701
|
+
* fails.
|
|
702
|
+
*
|
|
703
|
+
* Returns an empty set if this issuer does not support recovery sets.
|
|
704
|
+
*/
|
|
589
705
|
/**
|
|
590
706
|
* The set of payments
|
|
591
707
|
* withdrawn from this purse that are still live. These are the payments that
|
|
@@ -599,6 +715,14 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
599
715
|
* Returns an empty set if this issuer does not support recovery sets.
|
|
600
716
|
*/
|
|
601
717
|
getRecoverySet: () => ERef<import("@endo/patterns").CopySet<globalThis.Payment<globalThis.AssetKind>>>;
|
|
718
|
+
/**
|
|
719
|
+
* For use in emergencies, such as coming
|
|
720
|
+
* back from a traumatic crash and upgrade. This deposits all the payments in
|
|
721
|
+
* this purse's recovery set into the purse itself, returning the total amount
|
|
722
|
+
* of assets recovered.
|
|
723
|
+
*
|
|
724
|
+
* Returns an empty amount if this issuer does not support recovery sets.
|
|
725
|
+
*/
|
|
602
726
|
/**
|
|
603
727
|
* For use in emergencies, such as coming
|
|
604
728
|
* back from a traumatic crash and upgrade. This deposits all the payments in
|
package/src/vat-bank.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-bank.d.ts","sourceRoot":"","sources":["vat-bank.js"],"names":[],"mappings":"AA60BA;IASI;;;;;;OAMG;;gBAFuB,OAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC;;QArPhE;;;;WAIG;gCADU,iBAAiB,CAAC,eAAe,CAAC;QAS/C;;;;;;;;WAQG;gDAPQ,MAAM,UACN,cAAc;;;;;;;;;;;QAuBzB;;;;;;WAMG;4CAHQ,MAAM,GACJ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;QAenC;;;;;;;;;;;;WAYG;wBALQ,MAAM,cACN,MAAM,gBACN,MAAM;;;QA4EjB;;;;;WAKG;mCAFQ,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC;;;IAgG5B;;;;;;OAMG;;gBAFuB,OAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC;;QArPhE;;;;WAIG;gCADU,iBAAiB,CAAC,eAAe,CAAC;QAS/C;;;;;;;;WAQG;gDAPQ,MAAM,UACN,cAAc
|
|
1
|
+
{"version":3,"file":"vat-bank.d.ts","sourceRoot":"","sources":["vat-bank.js"],"names":[],"mappings":"AA60BA;IASI;;;;;;OAMG;;gBAFuB,OAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC;;QArPhE;;;;WAIG;gCADU,iBAAiB,CAAC,eAAe,CAAC;QAS/C;;;;;;;;WAQG;gDAPQ,MAAM,UACN,cAAc;;;;;;;;;;;QAuBzB;;;;;;WAMG;4CAHQ,MAAM,GACJ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;QAenC;;;;;;;;;;;;WAYG;wBALQ,MAAM,cACN,MAAM,gBACN,MAAM;;;QA4EjB;;;;;WAKG;mCAFQ,MAAM,GACJ,OAAO,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwOS;;;2BAoB3B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;;;IAwC3D;;;;OAIG;4BADU,iBAAiB,CAAC,eAAe,CAAC;IAS/C;;;;;;;;OAQG;4CAPQ,MAAM,UACN,cAAc;;;;;;;;;;;IAuBzB;;;;;;OAMG;wCAHQ,MAAM,GACJ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAenC;;;;;;;;;;;;OAYG;oBALQ,MAAM,cACN,MAAM,gBACN,MAAM;;;IA4EjB;;;;;OAKG;+BAFQ,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC;GAiC/B;4CAnvBwC,oBAAoB"}
|
package/src/vat-board.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @param {unknown} _vatParameters
|
|
4
4
|
* @param {import('@agoric/vat-data').Baggage} baggage
|
|
5
5
|
*/
|
|
6
|
-
export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, baggage: import(
|
|
6
|
+
export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, baggage: import("@agoric/vat-data").Baggage): {
|
|
7
7
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
8
8
|
getId(value: any): string;
|
|
9
|
-
getValue(id:
|
|
9
|
+
getValue(id: BoardId): any;
|
|
10
10
|
lookup(...path: string[]): Promise<any>;
|
|
11
11
|
has(val: any): boolean;
|
|
12
12
|
ids(): string[];
|
|
@@ -23,12 +23,12 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
23
23
|
unserialize(data: any): any;
|
|
24
24
|
}>;
|
|
25
25
|
}>;
|
|
26
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode |
|
|
27
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode |
|
|
26
|
+
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>;
|
|
27
|
+
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>;
|
|
28
28
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
29
29
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
30
30
|
getId(value: any): string;
|
|
31
|
-
getValue(id:
|
|
31
|
+
getValue(id: BoardId): any;
|
|
32
32
|
lookup(...path: string[]): Promise<any>;
|
|
33
33
|
has(val: any): boolean;
|
|
34
34
|
ids(): string[];
|
|
@@ -45,7 +45,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
45
45
|
unserialize(data: any): any;
|
|
46
46
|
}>;
|
|
47
47
|
}>;
|
|
48
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode |
|
|
49
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode |
|
|
48
|
+
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>;
|
|
49
|
+
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>;
|
|
50
50
|
}>;
|
|
51
51
|
//# sourceMappingURL=vat-board.d.ts.map
|
package/src/vat-board.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-board.d.ts","sourceRoot":"","sources":["vat-board.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"vat-board.d.ts","sourceRoot":"","sources":["vat-board.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;;;qBA4Bk3N,OAAO;;;;;;;;;;;;;;;;;gDAApzG,WAAW,GAAE,QAAS,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;wFAApB,MAAM;;;;;;;;;;;;;;;;;;;;;0FAAN,MAAM;wFAAN,MAAM;GADjqH"}
|
package/src/vat-bridge.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export function buildRootObject(vatPowers: any, _args: any, baggage: any): {
|
|
|
3
3
|
getPath(): string;
|
|
4
4
|
getStoreKey(): Promise<import("@agoric/internal/src/lib-chainStorage.js").VStorageKey>;
|
|
5
5
|
makeChildNode(name: string, childNodeOptions?: {
|
|
6
|
-
sequence?: boolean
|
|
7
|
-
}
|
|
6
|
+
sequence?: boolean;
|
|
7
|
+
}): import("@agoric/internal/src/lib-chainStorage.js").StorageNode;
|
|
8
8
|
setValue(value: string): Promise<void>;
|
|
9
9
|
}>>;
|
|
10
10
|
provideManagerForBridge: (bridgeDevice: BridgeDevice) => import("./types.js").BridgeManager;
|
|
@@ -13,8 +13,8 @@ export function buildRootObject(vatPowers: any, _args: any, baggage: any): {
|
|
|
13
13
|
getPath(): string;
|
|
14
14
|
getStoreKey(): Promise<import("@agoric/internal/src/lib-chainStorage.js").VStorageKey>;
|
|
15
15
|
makeChildNode(name: string, childNodeOptions?: {
|
|
16
|
-
sequence?: boolean
|
|
17
|
-
}
|
|
16
|
+
sequence?: boolean;
|
|
17
|
+
}): import("@agoric/internal/src/lib-chainStorage.js").StorageNode;
|
|
18
18
|
setValue(value: string): Promise<void>;
|
|
19
19
|
}>>;
|
|
20
20
|
provideManagerForBridge: (bridgeDevice: BridgeDevice) => import("./types.js").BridgeManager;
|
package/src/vat-bridge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-bridge.d.ts","sourceRoot":"","sources":["vat-bridge.js"],"names":[],"mappings":"AAOA;mHAgBa,MAAM,YACN,MAAM
|
|
1
|
+
{"version":3,"file":"vat-bridge.d.ts","sourceRoot":"","sources":["vat-bridge.js"],"names":[],"mappings":"AAOA;mHAgBa,MAAM,YACN,MAAM;;;uDA0B2hJ;YAAE,QAAQ,CAAC,UAAS;SAAC;;;4CAArjB,YAAY;;mHA3B7gI,MAAM,YACN,MAAM;;;;oBA0BqiJ,CAAC;;;;;GADxjJ"}
|