@agoric/vats 0.15.2-dev-b5a2ed1.0 → 0.15.2-dev-3da32ff.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.
@@ -1,505 +0,0 @@
1
- /**
2
- * This type conflicts with packages/SwingSet/src/vats/plugin-manager.js
3
- */
4
- type Device<T> = 'Device' & {
5
- __deviceType__: T;
6
- };
7
- /**
8
- * (approximately)
9
- */
10
- type DProxy = <T>(target: Device<T>) => T;
11
- /**
12
- * SwingSet types
13
- */
14
- type BridgeDevice = Device<ReturnType<typeof import('@agoric/swingset-vat/src/devices/bridge/device-bridge.js').buildRootDeviceNode>>;
15
- /**
16
- * SwingSet types
17
- */
18
- type CommandDevice = Device<ReturnType<typeof import('@agoric/swingset-vat/src/devices/command/device-command.js').buildRootDeviceNode>>;
19
- /**
20
- * SwingSet types
21
- */
22
- type MailboxDevice = Device<ReturnType<typeof import('@agoric/swingset-vat/src/devices/mailbox/device-mailbox.js').buildRootDeviceNode>>;
23
- /**
24
- * SwingSet types
25
- */
26
- type PluginDevice = Device<ReturnType<typeof import('@agoric/swingset-vat/src/devices/plugin/device-plugin.js').buildRootDeviceNode>>;
27
- /**
28
- * SwingSet types
29
- */
30
- type TimerDevice = Device<ReturnType<typeof import('@agoric/swingset-vat/src/devices/timer/device-timer.js').buildRootDeviceNode>>;
31
- /**
32
- * SwingSet types
33
- */
34
- type VatAdminDevice = Device<import('@agoric/swingset-vat/src/devices/vat-admin/device-vat-admin.js').VatAdminRootDeviceNode>;
35
- /**
36
- * SwingSet types
37
- */
38
- type VattpVat = ERef<ReturnType<typeof import('@agoric/swingset-vat/src/vats/vattp/vat-vattp.js').buildRootObject>>;
39
- /**
40
- * SwingSet types
41
- */
42
- type VatAdminVat = ERef<ReturnType<typeof import('@agoric/swingset-vat/src/vats/vat-admin/vat-vat-admin.js').buildRootObject>>;
43
- /**
44
- * See deliverToController in packages/SwingSet/src/vats/comms/controller.js
45
- */
46
- type TimerVat = ERef<ReturnType<typeof import('@agoric/swingset-vat/src/vats/timer/vat-timer.js').buildRootObject>>;
47
- /**
48
- * SwingSet types
49
- */
50
- type CommsVatRoot = {
51
- addRemote: (name: string, tx: unknown, rx: unknown) => void;
52
- addEgress: (addr: string, ix: number, provider: unknown) => void;
53
- addIngress: (remoteID: string, remoteRefID: number, label?: string) => Promise<any>;
54
- } | PromiseLike<{
55
- addRemote: (name: string, tx: unknown, rx: unknown) => void;
56
- addEgress: (addr: string, ix: number, provider: unknown) => void;
57
- addIngress: (remoteID: string, remoteRefID: number, label?: string) => Promise<any>;
58
- }>;
59
- /**
60
- * SwingSet types
61
- */
62
- type SwingsetVats = {
63
- comms: CommsVatRoot;
64
- timer: TimerVat;
65
- vatAdmin: VatAdminVat;
66
- vattp: VattpVat;
67
- };
68
- /**
69
- * SwingSet types
70
- */
71
- type ChainStorageVatParams = {
72
- vatParameters: {
73
- chainStorageEntries?: [k: string, v: string][];
74
- };
75
- };
76
- type SoloDevices = {
77
- vatAdmin: VatAdminDevice;
78
- mailbox: MailboxDevice;
79
- command: CommandDevice;
80
- timer: TimerDevice;
81
- plugin: PluginDevice;
82
- };
83
- type ChainDevices = {
84
- vatAdmin: VatAdminDevice;
85
- mailbox: MailboxDevice;
86
- timer: TimerDevice;
87
- bridge?: BridgeDevice;
88
- };
89
- type ClientProvider = {
90
- getChainBundle: () => unknown;
91
- getChainConfigNotifier: () => Notifier<unknown>;
92
- };
93
- /**
94
- * <T>
95
- */
96
- type Producer<T> = {
97
- resolve: (v: ERef<T>) => void;
98
- reject: (r: unknown) => void;
99
- reset: (reason?: unknown) => void;
100
- };
101
- type VatSourceRef = {
102
- bundleName?: string;
103
- bundleID?: string;
104
- };
105
- /**
106
- * <T>
107
- */
108
- type VatLoader<T> = (name: string, sourceRef?: VatSourceRef) => T;
109
- /**
110
- * tool to put properties onto the `home` object of the client
111
- */
112
- type ClientManager = {
113
- assignBundle: (ps: PropertyMaker[]) => void;
114
- };
115
- /**
116
- * callback to assign a property onto the `home` object of the client
117
- */
118
- type PropertyMaker = (addr: string, flags: string[]) => Record<string, unknown>;
119
- type PromiseSpaceOf<B, C = {}, P = {}> = {
120
- consume: { [K in keyof (B & C)]: Promise<(B & C)[K]>; };
121
- produce: { [K_1 in keyof (B & P)]: Producer<(B & P)[K_1]>; };
122
- };
123
- type CreateUserBundle = (nickname: string, clientAddress: string, powerFlags: string[]) => Promise<Record<string, Promise<any>>>;
124
- type ClientFacet = {
125
- /**
126
- * Required for
127
- * ag-solo, but deprecated in favour of getConfiguration NOTE: we use `any`
128
- * rather than `unknown` because each client that wants to call a method such
129
- * as `E(userBundle.bank).deposit(payment)` has to cast userBundle.bank;
130
- * ideally, the cast is to some useful type. But unknown can't be cast
131
- * directly to some other type; it has to be cast to any first.
132
- */
133
- getChainBundle: () => ERef<Record<string, any>>;
134
- getConfiguration: () => AsyncIterable<Configuration, Configuration>;
135
- };
136
- type Configuration = {
137
- clientAddress: string;
138
- clientHome: Record<string, any>;
139
- };
140
- type ClientCreator = {
141
- /**
142
- * Required for vat-provisioning,
143
- * but deprecated in favor of {@link createClient }.
144
- */
145
- createUserBundle: CreateUserBundle;
146
- createClientFacet: (nickname: string, clientAddress: string, powerFlags: string[]) => Promise<ClientFacet>;
147
- };
148
- type TokenKeyword = import('@agoric/internal/src/tokens.js').TokenKeyword;
149
- type WellKnownName = {
150
- issuer: TokenKeyword | 'Invitation' | 'AUSD';
151
- installation: 'centralSupply' | 'mintHolder' | 'walletFactory' | 'provisionPool' | 'auctioneer' | 'feeDistributor' | 'contractGovernor' | 'committee' | 'noActionElectorate' | 'binaryVoteCounter' | 'VaultFactory' | 'liquidate' | 'Pegasus' | 'reserve' | 'psm' | 'econCommitteeCharter' | 'priceAggregator';
152
- instance: 'economicCommittee' | 'feeDistributor' | 'auctioneer' | 'VaultFactory' | 'VaultFactoryGovernor' | 'econCommitteeCharter' | 'walletFactory' | 'provisionPool' | 'reserve' | 'reserveGovernor' | 'Pegasus';
153
- oracleBrand: 'USD';
154
- uiConfig: 'VaultFactory';
155
- };
156
- type WellKnownSpaces = {
157
- issuer: {
158
- produce: Record<WellKnownName['issuer'], Producer<Issuer>>;
159
- consume: Record<WellKnownName['issuer'], Promise<Issuer>> & {
160
- BLD: Promise<Issuer<'nat'>>;
161
- IST: Promise<Issuer<'nat'>>;
162
- };
163
- };
164
- brand: {
165
- produce: Record<WellKnownName['issuer'], Producer<Brand>> & {
166
- timer: Producer<import('@agoric/time').TimerBrand>;
167
- };
168
- consume: Record<WellKnownName['issuer'], Promise<Brand>> & {
169
- BLD: Promise<Brand<'nat'>>;
170
- IST: Promise<Brand<'nat'>>;
171
- timer: Producer<import('@agoric/time').TimerBrand>;
172
- };
173
- };
174
- oracleBrand: {
175
- produce: Record<WellKnownName['oracleBrand'], Producer<Brand>>;
176
- consume: Record<WellKnownName['oracleBrand'], Promise<Brand>>;
177
- };
178
- installation: {
179
- produce: Record<WellKnownName['installation'], Producer<Installation>>;
180
- consume: Record<WellKnownName['installation'], Promise<Installation<unknown>>> & {
181
- auctioneer: Promise<Installation<(zcf: ZCF<GovernanceTerms<{
182
- Electorate: "invitation";
183
- StartFrequency: "relativeTime";
184
- ClockStep: "relativeTime";
185
- StartingRate: "nat";
186
- LowestRate: "nat";
187
- DiscountStep: "nat";
188
- AuctionStartDelay: "relativeTime";
189
- PriceLockPeriod: "relativeTime";
190
- }> & {
191
- timerService: import("@agoric/time/src/types").TimerService;
192
- reservePublicFacet: GovernedPublicFacet<{
193
- makeAddCollateralInvitation(): Promise<Invitation<R, A>>;
194
- getPublicTopics(): {
195
- metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("@agoric/inter-protocol/src/reserve/assetReserveKit.js").MetricsNotification>;
196
- };
197
- }>;
198
- priceAuthority: PriceAuthority;
199
- }>, privateArgs: {
200
- initialPoserInvitation: Invitation<R, A>;
201
- storageNode: StorageNode;
202
- marshaller: Marshaller<unknown>;
203
- }, baggage: any) => Promise<{
204
- publicFacet: GovernedPublicFacet<{
205
- getElectorate: () => Amount<"set">;
206
- getStartFrequency: () => import("@agoric/time/src/types").RelativeTime;
207
- getClockStep: () => import("@agoric/time/src/types").RelativeTime;
208
- getStartingRate: () => bigint;
209
- getLowestRate: () => bigint;
210
- getDiscountStep: () => bigint;
211
- getAuctionStartDelay: () => import("@agoric/time/src/types").RelativeTime;
212
- getPriceLockPeriod: () => import("@agoric/time/src/types").RelativeTime;
213
- makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<R, A>>;
214
- getSchedules(): {
215
- liveAuctionSchedule: import("@agoric/inter-protocol/src/auction/scheduler.js").Schedule | null;
216
- nextAuctionSchedule: import("@agoric/inter-protocol/src/auction/scheduler.js").Schedule | null;
217
- };
218
- getScheduleUpdates(): Subscriber<import("@agoric/inter-protocol/src/auction/scheduler.js").ScheduleNotification>;
219
- getBookDataUpdates(brand: any): Subscriber<import("@agoric/inter-protocol/src/auction/auctionBook.js").BookDataNotification>;
220
- getPublicTopics(brand: any): {
221
- bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("@agoric/inter-protocol/src/auction/auctionBook.js").BookDataNotification>;
222
- } | {
223
- schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("@agoric/inter-protocol/src/auction/scheduler.js").ScheduleNotification>;
224
- };
225
- makeDepositInvitation: () => Promise<Invitation<R, A>>;
226
- }>;
227
- creatorFacet: GovernedCreatorFacet<{
228
- addBrand(issuer: Issuer<AssetKind>, kwd: string): Promise<void>;
229
- getSchedule(): Promise<import("@agoric/inter-protocol/src/auction/scheduler.js").FullSchedule>;
230
- } & import("@endo/eventual-send").RemotableBrand<{}, {
231
- addBrand(issuer: Issuer<AssetKind>, kwd: string): Promise<void>;
232
- getSchedule(): Promise<import("@agoric/inter-protocol/src/auction/scheduler.js").FullSchedule>;
233
- }>>;
234
- }>>>;
235
- centralSupply: Promise<Installation<(zcf: ZCF<{
236
- bootstrapPaymentValue: bigint;
237
- }>, { feeMintAccess }: {
238
- feeMintAccess: FeeMintAccess;
239
- }) => Promise<{
240
- creatorFacet: {
241
- getBootstrapPayment: () => Payment<any>;
242
- } & import("@endo/eventual-send").RemotableBrand<{}, {
243
- getBootstrapPayment: () => Payment<any>;
244
- }>;
245
- }>>>;
246
- committee: Promise<Installation<typeof import("@agoric/governance/src/committee.js")['start']>>;
247
- contractGovernor: Promise<Installation<typeof import("@agoric/governance/src/contractGovernor.js")['start']>>;
248
- econCommitteeCharter: Promise<Installation<typeof import("@agoric/inter-protocol/src/econCommitteeCharter.js")['start']>>;
249
- feeDistributor: Promise<Installation<(zcf: ZCF<{
250
- keywordShares: Record<string, bigint>;
251
- timerService: ERef<import("@agoric/time/src/types").TimerService>;
252
- collectionInterval: import("@agoric/time/src/types").RelativeTime;
253
- }>) => Promise<{
254
- creatorFacet: {
255
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("@agoric/inter-protocol/src/feeDistributor.js").CollectibleContractFacet>) => {
256
- collectFees: () => Promise<Payment<any>>;
257
- } & import("@endo/eventual-send").RemotableBrand<{}, {
258
- collectFees: () => Promise<Payment<any>>;
259
- }>;
260
- startPeriodicCollection: (debugName: string, collectorP: ERef<import("@agoric/inter-protocol/src/feeDistributor.js").FeeCollector>) => Promise<import("@agoric/inter-protocol/src/feeDistributor.js").PeriodicFeeCollector>;
261
- makeDepositFacetDestination: (depositFacet: {
262
- /**
263
- * Deposit all the contents of payment
264
- * into the purse that made this facet, returning the amount. If the optional
265
- * argument `optAmount` does not equal the amount of digital assets in the
266
- * payment, throw an error.
267
- *
268
- * If payment is a promise, throw an error.
269
- */
270
- receive: (args_0: Payment<AssetKind>, args_1?: any) => import("@endo/eventual-send").ERef<Amount<AssetKind>>;
271
- }) => {
272
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
273
- } & import("@endo/eventual-send").RemotableBrand<{}, {
274
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
275
- }>;
276
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
277
- pushPayment: (payment: any, issuer: any) => Promise<any>;
278
- } & import("@endo/eventual-send").RemotableBrand<{}, {
279
- pushPayment: (payment: any, issuer: any) => Promise<any>;
280
- }>;
281
- setDestinations: (newDestinations: Record<string, ERef<import("@agoric/inter-protocol/src/feeDistributor.js").FeeDestination>>) => Promise<void>;
282
- setKeywordShares: (newShares: Record<string, bigint>) => void;
283
- } & import("@endo/eventual-send").RemotableBrand<{}, {
284
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("@agoric/inter-protocol/src/feeDistributor.js").CollectibleContractFacet>) => {
285
- collectFees: () => Promise<Payment<any>>;
286
- } & import("@endo/eventual-send").RemotableBrand<{}, {
287
- collectFees: () => Promise<Payment<any>>;
288
- }>;
289
- startPeriodicCollection: (debugName: string, collectorP: ERef<import("@agoric/inter-protocol/src/feeDistributor.js").FeeCollector>) => Promise<import("@agoric/inter-protocol/src/feeDistributor.js").PeriodicFeeCollector>;
290
- makeDepositFacetDestination: (depositFacet: {
291
- /**
292
- * Deposit all the contents of payment
293
- * into the purse that made this facet, returning the amount. If the optional
294
- * argument `optAmount` does not equal the amount of digital assets in the
295
- * payment, throw an error.
296
- *
297
- * If payment is a promise, throw an error.
298
- */
299
- receive: (args_0: Payment<AssetKind>, args_1?: any) => import("@endo/eventual-send").ERef<Amount<AssetKind>>;
300
- }) => {
301
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
302
- } & import("@endo/eventual-send").RemotableBrand<{}, {
303
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
304
- }>;
305
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
306
- pushPayment: (payment: any, issuer: any) => Promise<any>;
307
- } & import("@endo/eventual-send").RemotableBrand<{}, {
308
- pushPayment: (payment: any, issuer: any) => Promise<any>;
309
- }>;
310
- setDestinations: (newDestinations: Record<string, ERef<import("@agoric/inter-protocol/src/feeDistributor.js").FeeDestination>>) => Promise<void>;
311
- setKeywordShares: (newShares: Record<string, bigint>) => void;
312
- }>;
313
- publicFacet: {
314
- distributeFees: (payment: Payment<"nat">) => Promise<void>;
315
- getKeywordShares: () => Record<string, bigint>;
316
- } & import("@endo/eventual-send").RemotableBrand<{}, {
317
- distributeFees: (payment: Payment<"nat">) => Promise<void>;
318
- getKeywordShares: () => Record<string, bigint>;
319
- }>;
320
- }>>>;
321
- mintHolder: Promise<Installation<(<K extends AssetKind>(zcf: ZCF<import("@agoric/vats/src/mintHolder.js").IssuerInfo<K>>, _privateArgs: undefined, instanceBaggage: any) => {
322
- publicFacet: Issuer<AssetKind>;
323
- creatorFacet: Mint<AssetKind>;
324
- })>>;
325
- psm: Promise<Installation<typeof import("@agoric/inter-protocol/src/psm/psm.js")['start']>>;
326
- provisionPool: Promise<Installation<typeof import("@agoric/inter-protocol/src/provisionPool.js")['start']>>;
327
- reserve: Promise<Installation<typeof import("@agoric/inter-protocol/src/reserve/assetReserve.js")['start']>>;
328
- VaultFactory: Promise<Installation<typeof import("@agoric/inter-protocol/src/vaultFactory/vaultFactory.js")['start']>>;
329
- walletFactory: Promise<Installation<import('@agoric/smart-wallet/src/walletFactory.js').start>>;
330
- };
331
- };
332
- instance: {
333
- produce: Record<WellKnownName['instance'], Producer<Instance>>;
334
- consume: Record<WellKnownName['instance'], Promise<Instance>>;
335
- };
336
- uiConfig: {
337
- produce: Record<WellKnownName['uiConfig'], Producer<Record<string, any>>>;
338
- consume: Record<WellKnownName['uiConfig'], Promise<Record<string, any>>>;
339
- };
340
- };
341
- type StartGovernedUpgradableOpts<SF extends GovernableStartFn> = {
342
- installation: ERef<Installation<SF>>;
343
- issuerKeywordRecord?: IssuerKeywordRecord;
344
- governedParams: Record<string, unknown>;
345
- terms: Omit<import('@agoric/zoe/src/zoeService/utils').StartParams<SF>['terms'], 'brands' | 'issuers' | 'governedParams' | 'electionManager'>;
346
- privateArgs: Omit<import('@agoric/zoe/src/zoeService/utils').StartParams<SF>['privateArgs'], 'initialPoserInvitation'>;
347
- label: string;
348
- };
349
- type startGovernedUpgradable = <SF extends GovernableStartFn>(opts: StartGovernedUpgradableOpts<SF>) => Promise<GovernanceFacetKit<SF>>;
350
- type StartUpgradableOpts<SF extends import("@agoric/zoe/src/zoeService/utils").ContractStartFunction> = {
351
- installation: ERef<Installation<SF>>;
352
- issuerKeywordRecord?: IssuerKeywordRecord;
353
- terms?: Omit<import('@agoric/zoe/src/zoeService/utils').StartParams<SF>['terms'], 'brands' | 'issuers'>;
354
- privateArgs?: import('@agoric/zoe/src/zoeService/utils').StartParams<SF>['privateArgs'];
355
- label: string;
356
- };
357
- type StartUpgradable = <SF extends import("@agoric/zoe/src/zoeService/utils").ContractStartFunction>(opts: StartUpgradableOpts<SF>) => Promise<{
358
- instance: import("@agoric/zoe/src/zoeService/utils").Instance<SF>;
359
- adminFacet: import("@agoric/zoe/src/zoeService/utils").AdminFacet;
360
- creatorFacet: {};
361
- publicFacet: {};
362
- } & (SF extends import("@agoric/zoe/src/zoeService/utils").ContractStartFunction ? Awaited<ReturnType<SF>> : {
363
- creatorFacet: any;
364
- publicFacet: any;
365
- }) & {
366
- label: string;
367
- }>;
368
- type StartedInstanceKit<T> = import('@agoric/zoe/src/zoeService/utils').StartedInstanceKit<T>;
369
- type StartedInstanceKitWithLabel = {
370
- label: string;
371
- } & StartedInstanceKit<import('@agoric/zoe/src/zoeService/utils').ContractStartFunction>;
372
- type ChainBootstrapSpaceT = {
373
- agoricNames: NameHub;
374
- agoricNamesAdmin: import('@agoric/vats').NameAdmin;
375
- bankManager: BankManager;
376
- bldIssuerKit: RemoteIssuerKit;
377
- board: import('@agoric/vats').Board;
378
- bridgeManager: import('../types.js').BridgeManager | undefined;
379
- chainStorage: StorageNode | null;
380
- chainTimerService: import('@agoric/time/src/types').TimerService;
381
- client: ClientManager;
382
- clientCreator: ClientCreator;
383
- coreEvalBridgeHandler: import('../types.js').BridgeHandler;
384
- diagnostics: {
385
- savePrivateArgs: (instance: Instance, privateArgs: unknown) => void;
386
- };
387
- feeMintAccess: FeeMintAccess;
388
- highPrioritySendersManager: import('@agoric/internal/src/priority-senders.js').PrioritySendersManager | null;
389
- initialSupply: Payment<'nat'>;
390
- instancePrivateArgs: Map<Instance, unknown>;
391
- namesByAddress: NameHub;
392
- namesByAddressAdmin: import('../types').NamesByAddressAdmin;
393
- pegasusConnections: import('@agoric/vats').NameHubKit;
394
- pegasusConnectionsAdmin: import('@agoric/vats').NameAdmin;
395
- priceAuthorityVat: Awaited<PriceAuthorityVat>;
396
- priceAuthority: PriceAuthority;
397
- priceAuthorityAdmin: PriceAuthorityRegistryAdmin;
398
- provisioning: Awaited<ProvisioningVat> | undefined;
399
- provisionBridgeManager: import('../types.js').ScopedBridgeManager | undefined;
400
- provisionWalletBridgeManager: import('../types.js').ScopedBridgeManager | undefined;
401
- storageBridgeManager: import('../types.js').ScopedBridgeManager | null;
402
- contractKits: MapStore<Instance, StartedInstanceKitWithLabel>;
403
- startUpgradable: StartUpgradable;
404
- governedContractKits: MapStore<Instance, GovernanceFacetKit<any> & {
405
- label: string;
406
- }>;
407
- startGovernedUpgradable: startGovernedUpgradable;
408
- testFirstAnchorKit: import('../vat-bank.js').AssetIssuerKit<'nat'>;
409
- walletBridgeManager: import('../types.js').ScopedBridgeManager | undefined;
410
- walletFactoryStartResult: import('./startWalletFactory').WalletFactoryStartResult;
411
- provisionPoolStartResult: unknown;
412
- vatStore: import('./utils.js').VatStore;
413
- zoe: ZoeService;
414
- };
415
- type ChainBootstrapSpace = PromiseSpaceOf<ChainBootstrapSpaceT>;
416
- /**
417
- * IDEA/TODO: make types of
418
- * demo stuff invisible in production behaviors
419
- */
420
- type NameHub = import('@agoric/vats').NameHub;
421
- type BootstrapVatParams = {
422
- argv: {
423
- hardcodedClientAddresses?: string[];
424
- FIXME_GCI: string;
425
- PROVISIONER_INDEX?: number;
426
- };
427
- };
428
- type BootstrapPowers = WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
429
- vatAdminSvc: import("@agoric/swingset-vat").VatAdminSvc;
430
- }, {}, {
431
- loadVat: VatLoader<unknown>;
432
- loadCriticalVat: VatLoader<unknown>;
433
- }> & {
434
- zone: import('@agoric/zone').Zone;
435
- devices: SoloDevices | ChainDevices;
436
- vats: SwingsetVats;
437
- vatPowers: {
438
- [prop: string]: any;
439
- D: DProxy;
440
- };
441
- vatParameters: BootstrapVatParams;
442
- runBehaviors: (manifest: unknown) => Promise<unknown>;
443
- modules: Record<string, Record<string, any>>;
444
- };
445
- type BootstrapSpace = WellKnownSpaces & PromiseSpaceOf<ChainBootstrapSpaceT & {
446
- vatAdminSvc: VatAdminSvc;
447
- }, {}, {
448
- loadVat: VatLoader<unknown>;
449
- loadCriticalVat: VatLoader<unknown>;
450
- }>;
451
- type RemoteIssuerKit = {
452
- mint: ERef<Mint>;
453
- issuer: ERef<Issuer>;
454
- brand: Brand;
455
- };
456
- type BankManager = Awaited<ReturnType<Awaited<BankVat>['makeBankManager']>>;
457
- type AgoricNamesVat = ERef<ReturnType<(_vatPowers: unknown, _vatParameters: unknown, baggage: any) => {
458
- getNameHub: () => import("@agoric/vats").NameHub;
459
- getNameHubKit: () => import("@agoric/vats").NameHubKit;
460
- publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
461
- provideInertBrand: (keyword: string, displayInfo: DisplayInfo<AssetKind>) => any;
462
- } & import("@endo/eventual-send").RemotableBrand<{}, {
463
- getNameHub: () => import("@agoric/vats").NameHub;
464
- getNameHubKit: () => import("@agoric/vats").NameHubKit;
465
- publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
466
- provideInertBrand: (keyword: string, displayInfo: DisplayInfo<AssetKind>) => any;
467
- }>>>;
468
- type BankVat = ERef<ReturnType<typeof import("../vat-bank.js").buildRootObject>>;
469
- type BoardVat = ERef<ReturnType<typeof import("../vat-board.js").buildRootObject>>;
470
- type ChainStorageVat = ERef<ReturnType<typeof import("../vat-bridge.js").buildRootObject>>;
471
- type ProvisioningVat = ERef<ReturnType<typeof import("../vat-provisioning.js").buildRootObject>>;
472
- type MintsVat = ERef<ReturnType<typeof import("../vat-mints.js").buildRootObject>>;
473
- type PriceAuthorityVat = ERef<ReturnType<typeof import("../vat-priceAuthority.js").buildRootObject>>;
474
- type NetworkVat = ERef<ReturnType<typeof import("../vat-network.js").buildRootObject>>;
475
- type IBCVat = ERef<ReturnType<typeof import("../vat-ibc.js").buildRootObject>>;
476
- type PriceAuthorityRegistryAdmin = import('@agoric/zoe/tools/priceAuthorityRegistry').PriceAuthorityRegistryAdmin;
477
- type NamedVatPowers = {
478
- namedVat: PromiseSpaceOf<{
479
- agoricNames: Awaited<AgoricNamesVat>;
480
- board: Awaited<BoardVat>;
481
- }>;
482
- };
483
- type DemoFaucetPowers = PromiseSpaceOf<{
484
- mints: MintsVat;
485
- }>;
486
- type SoloVats = {
487
- spawner: SpawnerVat;
488
- http: HttpVat;
489
- network: NetworkVat;
490
- uploads: UploadsVat;
491
- bootstrap: unknown;
492
- };
493
- type SpawnerVat = ERef<ReturnType<typeof import("@agoric/solo/src/vat-spawner.js").buildRootObject>>;
494
- type HttpVat = ERef<ReturnType<typeof import("@agoric/solo/src/vat-http.js").buildRootObject>>;
495
- type UploadsVat = ERef<ReturnType<typeof import("@agoric/solo/src/vat-uploads.js").buildRootObject>>;
496
- /**
497
- * <T>
498
- */
499
- type BootDevices<T> = {
500
- vatPowers: {
501
- D: DProxy;
502
- };
503
- devices: T;
504
- };
505
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;iBAMa,QAAQ,GAAG;IAAE,cAAc,EAAE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