@agoric/vats 0.15.2-dev-247cc9b.0 → 0.15.2-dev-db4d0ea.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 +15 -15
- package/src/centralSupply.d.ts.map +1 -1
- package/src/core/basic-behaviors.d.ts +1117 -6
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/boot-chain.d.ts +1 -1
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/boot-sim.d.ts +1 -1
- package/src/core/boot-sim.d.ts.map +1 -1
- package/src/core/boot-solo.d.ts +1 -1
- package/src/core/boot-solo.d.ts.map +1 -1
- package/src/core/chain-behaviors.d.ts +421 -11
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/demoIssuers.d.ts +4 -4
- package/src/core/demoIssuers.d.ts.map +1 -1
- package/src/core/lib-boot.d.ts +2 -2
- package/src/core/lib-boot.d.ts.map +1 -1
- package/src/core/promise-space.d.ts +1 -1
- package/src/core/promise-space.d.ts.map +1 -1
- package/src/core/startWalletFactory.d.ts +2 -401
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/utils.d.ts +68 -4
- package/src/core/utils.d.ts.map +1 -1
- package/src/localchain.d.ts +1 -1
- package/src/localchain.d.ts.map +1 -1
- package/src/nameHub.d.ts +7 -1
- package/src/nameHub.d.ts.map +1 -1
- package/src/priceAuthorityRegistry.d.ts.map +1 -1
- package/src/proposals/localchain-proposal.d.ts +38 -401
- package/src/proposals/localchain-proposal.d.ts.map +1 -1
- package/src/proposals/namesByAddress-fix-proposal.d.ts.map +1 -1
- package/src/proposals/network-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-zoe-proposal.d.ts.map +1 -1
- package/src/proposals/zcf-proposal.d.ts.map +1 -1
- package/src/vat-agoricNames.d.ts.map +1 -1
- package/src/vat-bank.d.ts +89 -59
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bridge.d.ts +2 -2
- package/src/vat-bridge.d.ts.map +1 -1
- package/src/vat-provisioning.d.ts.map +1 -1
- package/src/virtual-purse.d.ts +1 -1
- package/src/virtual-purse.d.ts.map +1 -1
- package/tools/boot-test-utils.d.ts.map +1 -1
package/src/vat-bank.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
6
6
|
* @param {ERef<{ update: import('./types.js').NameAdmin['update'] }>} [nameAdminP]
|
|
7
7
|
* update facet of a NameAdmin; see addAsset() for detail.
|
|
8
8
|
*/
|
|
9
|
-
makeBankManager(bankBridgeManagerP?: ERef<import(
|
|
9
|
+
makeBankManager(bankBridgeManagerP?: ERef<import("./types.js").ScopedBridgeManager | undefined>, nameAdminP?: ERef<{
|
|
10
10
|
update: import('./types.js').NameAdmin['update'];
|
|
11
11
|
}> | undefined): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
12
12
|
/**
|
|
@@ -20,7 +20,17 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
20
20
|
* @param {AssetIssuerKit} feeKit
|
|
21
21
|
* @returns {ERef<import('@endo/far').EOnly<DepositFacet>>}
|
|
22
22
|
*/
|
|
23
|
-
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<
|
|
23
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<{
|
|
24
|
+
/**
|
|
25
|
+
* Deposit all the contents of payment
|
|
26
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
27
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
28
|
+
* payment, throw an error.
|
|
29
|
+
*
|
|
30
|
+
* If payment is a promise, throw an error.
|
|
31
|
+
*/
|
|
32
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
33
|
+
}>;
|
|
24
34
|
/**
|
|
25
35
|
* Get the address of named module account.
|
|
26
36
|
*
|
|
@@ -61,7 +71,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
61
71
|
* @param {ERef<{ update: import('./types.js').NameAdmin['update'] }>} [nameAdminP]
|
|
62
72
|
* update facet of a NameAdmin; see addAsset() for detail.
|
|
63
73
|
*/
|
|
64
|
-
makeBankManager(bankBridgeManagerP?: ERef<import(
|
|
74
|
+
makeBankManager(bankBridgeManagerP?: ERef<import("./types.js").ScopedBridgeManager | undefined>, nameAdminP?: ERef<{
|
|
65
75
|
update: import('./types.js').NameAdmin['update'];
|
|
66
76
|
}> | undefined): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
67
77
|
/**
|
|
@@ -75,7 +85,17 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
75
85
|
* @param {AssetIssuerKit} feeKit
|
|
76
86
|
* @returns {ERef<import('@endo/far').EOnly<DepositFacet>>}
|
|
77
87
|
*/
|
|
78
|
-
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<
|
|
88
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<{
|
|
89
|
+
/**
|
|
90
|
+
* Deposit all the contents of payment
|
|
91
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
92
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
93
|
+
* payment, throw an error.
|
|
94
|
+
*
|
|
95
|
+
* If payment is a promise, throw an error.
|
|
96
|
+
*/
|
|
97
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
98
|
+
}>;
|
|
79
99
|
/**
|
|
80
100
|
* Get the address of named module account.
|
|
81
101
|
*
|
|
@@ -146,13 +166,13 @@ export type AssetIssuerKit<K extends AssetKind = AssetKind> = {
|
|
|
146
166
|
issuer: ERef<Issuer<K>>;
|
|
147
167
|
brand: Brand<K>;
|
|
148
168
|
};
|
|
149
|
-
export type AssetRecord = AssetIssuerKit & {
|
|
169
|
+
export type AssetRecord = AssetIssuerKit<AssetKind> & {
|
|
150
170
|
denom: string;
|
|
151
|
-
escrowPurse?: ERef<Purse
|
|
171
|
+
escrowPurse?: ERef<Purse<AssetKind>> | undefined;
|
|
152
172
|
};
|
|
153
173
|
export type AssetDescriptor = {
|
|
154
174
|
brand: Brand;
|
|
155
|
-
issuer: ERef<Issuer
|
|
175
|
+
issuer: ERef<Issuer<AssetKind>>;
|
|
156
176
|
issuerName: string;
|
|
157
177
|
denom: string;
|
|
158
178
|
proposedName: string;
|
|
@@ -216,29 +236,29 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
216
236
|
* Get the alleged Brand for this
|
|
217
237
|
* Purse
|
|
218
238
|
*/
|
|
219
|
-
getAllegedBrand: () =>
|
|
239
|
+
getAllegedBrand: () => ERef<{
|
|
220
240
|
/**
|
|
221
241
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
222
242
|
*/
|
|
223
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
224
|
-
getAllegedName: () =>
|
|
243
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
244
|
+
getAllegedName: () => ERef<string>;
|
|
225
245
|
/**
|
|
226
246
|
* Give information to UI on how
|
|
227
247
|
* to display the amount.
|
|
228
248
|
*/
|
|
229
|
-
getDisplayInfo: () =>
|
|
249
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
230
250
|
getAmountShape: () => any;
|
|
231
251
|
}>;
|
|
232
252
|
/**
|
|
233
253
|
* Get the amount contained in this
|
|
234
254
|
* purse.
|
|
235
255
|
*/
|
|
236
|
-
getCurrentAmount: () =>
|
|
256
|
+
getCurrentAmount: () => ERef<Amount<AssetKind>>;
|
|
237
257
|
/**
|
|
238
258
|
* Get a lossy
|
|
239
259
|
* notifier for changes to this purse's balance.
|
|
240
260
|
*/
|
|
241
|
-
getCurrentAmountNotifier: () =>
|
|
261
|
+
getCurrentAmountNotifier: () => ERef<{
|
|
242
262
|
/**
|
|
243
263
|
* Returns a promise for an update record as of an update count.
|
|
244
264
|
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
@@ -249,7 +269,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
249
269
|
* Used to make lossy ("latest") iterators.
|
|
250
270
|
* NOTE: Use of `number` as an `updateCount` is deprecated.
|
|
251
271
|
*/
|
|
252
|
-
getUpdateSince: (updateCount?: number | bigint | undefined) =>
|
|
272
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => ERef<UpdateRecord<Amount<AssetKind>>>;
|
|
253
273
|
}>;
|
|
254
274
|
/**
|
|
255
275
|
* Deposit all the contents of payment into
|
|
@@ -258,12 +278,12 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
258
278
|
*
|
|
259
279
|
* If payment is a promise, throw an error.
|
|
260
280
|
*/
|
|
261
|
-
deposit: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
281
|
+
deposit: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
262
282
|
/**
|
|
263
283
|
* Return an object whose
|
|
264
284
|
* `receive` method deposits to the current Purse.
|
|
265
285
|
*/
|
|
266
|
-
getDepositFacet: () =>
|
|
286
|
+
getDepositFacet: () => ERef<{
|
|
267
287
|
/**
|
|
268
288
|
* Deposit all the contents of payment
|
|
269
289
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -272,30 +292,30 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
272
292
|
*
|
|
273
293
|
* If payment is a promise, throw an error.
|
|
274
294
|
*/
|
|
275
|
-
receive: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
295
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
276
296
|
}>;
|
|
277
297
|
/**
|
|
278
298
|
* Withdraw amount from
|
|
279
299
|
* this purse into a new Payment.
|
|
280
300
|
*/
|
|
281
|
-
withdraw: (amount: Amount<AssetKind>) =>
|
|
301
|
+
withdraw: (amount: Amount<AssetKind>) => ERef<{
|
|
282
302
|
/**
|
|
283
303
|
* Get the allegedBrand, indicating
|
|
284
304
|
* the type of digital asset this payment purports to be, and which issuer to
|
|
285
305
|
* use. Because payments are not trusted, any method calls on payments should
|
|
286
306
|
* be treated with suspicion and verified elsewhere.
|
|
287
307
|
*/
|
|
288
|
-
getAllegedBrand: () =>
|
|
308
|
+
getAllegedBrand: () => ERef<{
|
|
289
309
|
/**
|
|
290
310
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
291
311
|
*/
|
|
292
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
293
|
-
getAllegedName: () =>
|
|
312
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
313
|
+
getAllegedName: () => ERef<string>;
|
|
294
314
|
/**
|
|
295
315
|
* Give information to UI on how
|
|
296
316
|
* to display the amount.
|
|
297
317
|
*/
|
|
298
|
-
getDisplayInfo: () =>
|
|
318
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
299
319
|
getAmountShape: () => any;
|
|
300
320
|
}>;
|
|
301
321
|
}>;
|
|
@@ -311,7 +331,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
311
331
|
*
|
|
312
332
|
* Returns an empty set if this issuer does not support recovery sets.
|
|
313
333
|
*/
|
|
314
|
-
getRecoverySet: () =>
|
|
334
|
+
getRecoverySet: () => ERef<CopySet<Payment<AssetKind>>>;
|
|
315
335
|
/**
|
|
316
336
|
* For use in emergencies, such as coming
|
|
317
337
|
* back from a traumatic crash and upgrade. This deposits all the payments in
|
|
@@ -320,7 +340,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
320
340
|
*
|
|
321
341
|
* Returns an empty amount if this issuer does not support recovery sets.
|
|
322
342
|
*/
|
|
323
|
-
recoverAll: () =>
|
|
343
|
+
recoverAll: () => ERef<Amount<AssetKind>>;
|
|
324
344
|
}>>;
|
|
325
345
|
}) => (args_0: {
|
|
326
346
|
address: string;
|
|
@@ -341,29 +361,29 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
341
361
|
* Get the alleged Brand for this
|
|
342
362
|
* Purse
|
|
343
363
|
*/
|
|
344
|
-
getAllegedBrand: () =>
|
|
364
|
+
getAllegedBrand: () => ERef<{
|
|
345
365
|
/**
|
|
346
366
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
347
367
|
*/
|
|
348
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
349
|
-
getAllegedName: () =>
|
|
368
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
369
|
+
getAllegedName: () => ERef<string>;
|
|
350
370
|
/**
|
|
351
371
|
* Give information to UI on how
|
|
352
372
|
* to display the amount.
|
|
353
373
|
*/
|
|
354
|
-
getDisplayInfo: () =>
|
|
374
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
355
375
|
getAmountShape: () => any;
|
|
356
376
|
}>;
|
|
357
377
|
/**
|
|
358
378
|
* Get the amount contained in this
|
|
359
379
|
* purse.
|
|
360
380
|
*/
|
|
361
|
-
getCurrentAmount: () =>
|
|
381
|
+
getCurrentAmount: () => ERef<Amount<AssetKind>>;
|
|
362
382
|
/**
|
|
363
383
|
* Get a lossy
|
|
364
384
|
* notifier for changes to this purse's balance.
|
|
365
385
|
*/
|
|
366
|
-
getCurrentAmountNotifier: () =>
|
|
386
|
+
getCurrentAmountNotifier: () => ERef<{
|
|
367
387
|
/**
|
|
368
388
|
* Returns a promise for an update record as of an update count.
|
|
369
389
|
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
@@ -374,7 +394,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
374
394
|
* Used to make lossy ("latest") iterators.
|
|
375
395
|
* NOTE: Use of `number` as an `updateCount` is deprecated.
|
|
376
396
|
*/
|
|
377
|
-
getUpdateSince: (updateCount?: number | bigint | undefined) =>
|
|
397
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => ERef<UpdateRecord<Amount<AssetKind>>>;
|
|
378
398
|
}>;
|
|
379
399
|
/**
|
|
380
400
|
* Deposit all the contents of payment into
|
|
@@ -383,12 +403,12 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
383
403
|
*
|
|
384
404
|
* If payment is a promise, throw an error.
|
|
385
405
|
*/
|
|
386
|
-
deposit: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
406
|
+
deposit: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
387
407
|
/**
|
|
388
408
|
* Return an object whose
|
|
389
409
|
* `receive` method deposits to the current Purse.
|
|
390
410
|
*/
|
|
391
|
-
getDepositFacet: () =>
|
|
411
|
+
getDepositFacet: () => ERef<{
|
|
392
412
|
/**
|
|
393
413
|
* Deposit all the contents of payment
|
|
394
414
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -397,30 +417,30 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
397
417
|
*
|
|
398
418
|
* If payment is a promise, throw an error.
|
|
399
419
|
*/
|
|
400
|
-
receive: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
420
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
401
421
|
}>;
|
|
402
422
|
/**
|
|
403
423
|
* Withdraw amount from
|
|
404
424
|
* this purse into a new Payment.
|
|
405
425
|
*/
|
|
406
|
-
withdraw: (amount: Amount<AssetKind>) =>
|
|
426
|
+
withdraw: (amount: Amount<AssetKind>) => ERef<{
|
|
407
427
|
/**
|
|
408
428
|
* Get the allegedBrand, indicating
|
|
409
429
|
* the type of digital asset this payment purports to be, and which issuer to
|
|
410
430
|
* use. Because payments are not trusted, any method calls on payments should
|
|
411
431
|
* be treated with suspicion and verified elsewhere.
|
|
412
432
|
*/
|
|
413
|
-
getAllegedBrand: () =>
|
|
433
|
+
getAllegedBrand: () => ERef<{
|
|
414
434
|
/**
|
|
415
435
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
416
436
|
*/
|
|
417
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
418
|
-
getAllegedName: () =>
|
|
437
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
438
|
+
getAllegedName: () => ERef<string>;
|
|
419
439
|
/**
|
|
420
440
|
* Give information to UI on how
|
|
421
441
|
* to display the amount.
|
|
422
442
|
*/
|
|
423
|
-
getDisplayInfo: () =>
|
|
443
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
424
444
|
getAmountShape: () => any;
|
|
425
445
|
}>;
|
|
426
446
|
}>;
|
|
@@ -436,7 +456,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
436
456
|
*
|
|
437
457
|
* Returns an empty set if this issuer does not support recovery sets.
|
|
438
458
|
*/
|
|
439
|
-
getRecoverySet: () =>
|
|
459
|
+
getRecoverySet: () => ERef<CopySet<Payment<AssetKind>>>;
|
|
440
460
|
/**
|
|
441
461
|
* For use in emergencies, such as coming
|
|
442
462
|
* back from a traumatic crash and upgrade. This deposits all the payments in
|
|
@@ -445,7 +465,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
445
465
|
*
|
|
446
466
|
* Returns an empty amount if this issuer does not support recovery sets.
|
|
447
467
|
*/
|
|
448
|
-
recoverAll: () =>
|
|
468
|
+
recoverAll: () => ERef<Amount<AssetKind>>;
|
|
449
469
|
}>;
|
|
450
470
|
}>>;
|
|
451
471
|
makePublishKit: ReturnType<(baggage: MapStore<string, any>, kindName: string) => (options?: {
|
|
@@ -476,29 +496,29 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
476
496
|
* Get the alleged Brand for this
|
|
477
497
|
* Purse
|
|
478
498
|
*/
|
|
479
|
-
getAllegedBrand: () =>
|
|
499
|
+
getAllegedBrand: () => ERef<{
|
|
480
500
|
/**
|
|
481
501
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
482
502
|
*/
|
|
483
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
484
|
-
getAllegedName: () =>
|
|
503
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
504
|
+
getAllegedName: () => ERef<string>;
|
|
485
505
|
/**
|
|
486
506
|
* Give information to UI on how
|
|
487
507
|
* to display the amount.
|
|
488
508
|
*/
|
|
489
|
-
getDisplayInfo: () =>
|
|
509
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
490
510
|
getAmountShape: () => any;
|
|
491
511
|
}>;
|
|
492
512
|
/**
|
|
493
513
|
* Get the amount contained in this
|
|
494
514
|
* purse.
|
|
495
515
|
*/
|
|
496
|
-
getCurrentAmount: () =>
|
|
516
|
+
getCurrentAmount: () => ERef<Amount<AssetKind>>;
|
|
497
517
|
/**
|
|
498
518
|
* Get a lossy
|
|
499
519
|
* notifier for changes to this purse's balance.
|
|
500
520
|
*/
|
|
501
|
-
getCurrentAmountNotifier: () =>
|
|
521
|
+
getCurrentAmountNotifier: () => ERef<{
|
|
502
522
|
/**
|
|
503
523
|
* Returns a promise for an update record as of an update count.
|
|
504
524
|
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
@@ -509,7 +529,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
509
529
|
* Used to make lossy ("latest") iterators.
|
|
510
530
|
* NOTE: Use of `number` as an `updateCount` is deprecated.
|
|
511
531
|
*/
|
|
512
|
-
getUpdateSince: (updateCount?: number | bigint | undefined) =>
|
|
532
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => ERef<UpdateRecord<Amount<AssetKind>>>;
|
|
513
533
|
}>;
|
|
514
534
|
/**
|
|
515
535
|
* Deposit all the contents of payment into
|
|
@@ -518,12 +538,12 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
518
538
|
*
|
|
519
539
|
* If payment is a promise, throw an error.
|
|
520
540
|
*/
|
|
521
|
-
deposit: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
541
|
+
deposit: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
522
542
|
/**
|
|
523
543
|
* Return an object whose
|
|
524
544
|
* `receive` method deposits to the current Purse.
|
|
525
545
|
*/
|
|
526
|
-
getDepositFacet: () =>
|
|
546
|
+
getDepositFacet: () => ERef<{
|
|
527
547
|
/**
|
|
528
548
|
* Deposit all the contents of payment
|
|
529
549
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -532,30 +552,30 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
532
552
|
*
|
|
533
553
|
* If payment is a promise, throw an error.
|
|
534
554
|
*/
|
|
535
|
-
receive: (args_0: Payment<AssetKind>, args_1?: any) =>
|
|
555
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
536
556
|
}>;
|
|
537
557
|
/**
|
|
538
558
|
* Withdraw amount from
|
|
539
559
|
* this purse into a new Payment.
|
|
540
560
|
*/
|
|
541
|
-
withdraw: (amount: Amount<AssetKind>) =>
|
|
561
|
+
withdraw: (amount: Amount<AssetKind>) => ERef<{
|
|
542
562
|
/**
|
|
543
563
|
* Get the allegedBrand, indicating
|
|
544
564
|
* the type of digital asset this payment purports to be, and which issuer to
|
|
545
565
|
* use. Because payments are not trusted, any method calls on payments should
|
|
546
566
|
* be treated with suspicion and verified elsewhere.
|
|
547
567
|
*/
|
|
548
|
-
getAllegedBrand: () =>
|
|
568
|
+
getAllegedBrand: () => ERef<{
|
|
549
569
|
/**
|
|
550
570
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
551
571
|
*/
|
|
552
|
-
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) =>
|
|
553
|
-
getAllegedName: () =>
|
|
572
|
+
isMyIssuer: (allegedIssuer: ERef<Issuer<AssetKind>>) => ERef<boolean>;
|
|
573
|
+
getAllegedName: () => ERef<string>;
|
|
554
574
|
/**
|
|
555
575
|
* Give information to UI on how
|
|
556
576
|
* to display the amount.
|
|
557
577
|
*/
|
|
558
|
-
getDisplayInfo: () =>
|
|
578
|
+
getDisplayInfo: () => ERef<DisplayInfo<AssetKind>>;
|
|
559
579
|
getAmountShape: () => any;
|
|
560
580
|
}>;
|
|
561
581
|
}>;
|
|
@@ -571,7 +591,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
571
591
|
*
|
|
572
592
|
* Returns an empty set if this issuer does not support recovery sets.
|
|
573
593
|
*/
|
|
574
|
-
getRecoverySet: () =>
|
|
594
|
+
getRecoverySet: () => ERef<CopySet<Payment<AssetKind>>>;
|
|
575
595
|
/**
|
|
576
596
|
* For use in emergencies, such as coming
|
|
577
597
|
* back from a traumatic crash and upgrade. This deposits all the payments in
|
|
@@ -580,7 +600,7 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
580
600
|
*
|
|
581
601
|
* Returns an empty amount if this issuer does not support recovery sets.
|
|
582
602
|
*/
|
|
583
|
-
recoverAll: () =>
|
|
603
|
+
recoverAll: () => ERef<Amount<AssetKind>>;
|
|
584
604
|
}>>;
|
|
585
605
|
}): (args_0: {
|
|
586
606
|
bankChannel?: BridgeChannel | undefined;
|
|
@@ -598,7 +618,17 @@ declare function prepareBankManager(zone: import('@agoric/zone').Zone, { provide
|
|
|
598
618
|
* @param {AssetIssuerKit} feeKit
|
|
599
619
|
* @returns {ERef<import('@endo/far').EOnly<DepositFacet>>}
|
|
600
620
|
*/
|
|
601
|
-
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<
|
|
621
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<{
|
|
622
|
+
/**
|
|
623
|
+
* Deposit all the contents of payment
|
|
624
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
625
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
626
|
+
* payment, throw an error.
|
|
627
|
+
*
|
|
628
|
+
* If payment is a promise, throw an error.
|
|
629
|
+
*/
|
|
630
|
+
receive: (args_0: Payment<AssetKind>, args_1?: any) => ERef<Amount<AssetKind>>;
|
|
631
|
+
}>;
|
|
602
632
|
/**
|
|
603
633
|
* Get the address of named module account.
|
|
604
634
|
*
|
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":"AA00BA;IASI;;;;;;OAMG
|
|
1
|
+
{"version":3,"file":"vat-bank.d.ts","sourceRoot":"","sources":["vat-bank.js"],"names":[],"mappings":"AA00BA;IASI;;;;;;OAMG;;gBAFuB,OAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC;;QAjPhE;;;;WAIG;gCADU,kBAAkB,eAAe,CAAC;QAS/C;;;;WAIG;gDAHQ,MAAM,UACN,cAAc;;;;;;;;;;;QAmBzB;;;;;;WAMG;4CAHQ,MAAM,GACJ,QAAQ,MAAM,GAAG,IAAI,CAAC;QAenC;;;;;;;;;;;;WAYG;wBALQ,MAAM,cACN,MAAM,gBACN,MAAM;;;QA4EjB;;;;;WAKG;mCAFQ,MAAM,GACJ,QAAQ,IAAI,CAAC;;;IAgG5B;;;;;;OAMG;;gBAFuB,OAAO,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC;;QAjPhE;;;;WAIG;gCADU,kBAAkB,eAAe,CAAC;QA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,5 +1,5 @@
|
|
|
1
1
|
export function buildRootObject(vatPowers: any, _args: any, baggage: any): {
|
|
2
|
-
makeBridgedChainStorageRoot: (storageBridgeManagerP: ERef<import(
|
|
2
|
+
makeBridgedChainStorageRoot: (storageBridgeManagerP: ERef<import("./types.js").ScopedBridgeManager>, rootPath: string, options?: object) => Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
3
3
|
getPath(): string;
|
|
4
4
|
getStoreKey(): Promise<import("@agoric/internal/src/lib-chainStorage.js").VStorageKey>;
|
|
5
5
|
makeChildNode(name: string, childNodeOptions?: {
|
|
@@ -9,7 +9,7 @@ export function buildRootObject(vatPowers: any, _args: any, baggage: any): {
|
|
|
9
9
|
}>>;
|
|
10
10
|
provideManagerForBridge: (bridgeDevice: BridgeDevice) => import("./types.js").BridgeManager;
|
|
11
11
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
|
-
makeBridgedChainStorageRoot: (storageBridgeManagerP: ERef<import(
|
|
12
|
+
makeBridgedChainStorageRoot: (storageBridgeManagerP: ERef<import("./types.js").ScopedBridgeManager>, rootPath: string, options?: object) => Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
13
13
|
getPath(): string;
|
|
14
14
|
getStoreKey(): Promise<import("@agoric/internal/src/lib-chainStorage.js").VStorageKey>;
|
|
15
15
|
makeChildNode(name: string, childNodeOptions?: {
|
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;
|
|
1
|
+
{"version":3,"file":"vat-bridge.d.ts","sourceRoot":"","sources":["vat-bridge.js"],"names":[],"mappings":"AAOA;mHAgBa,MAAM,YACN,MAAM;;;;;;;;;;mHADN,MAAM,YACN,MAAM;;;;;;;;;GAyBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-provisioning.d.ts","sourceRoot":"","sources":["vat-provisioning.js"],"names":[],"mappings":"AAkFA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"vat-provisioning.d.ts","sourceRoot":"","sources":["vat-provisioning.js"],"names":[],"mappings":"AAkFA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;0CAoBhC,YAAY,KACZ,QAAQ;gCASR,MAAM,WACN,MAAM,cACN,MAAM,EAAE;;;;;;;;0CAZR,YAAY,KACZ,QAAQ;gCASR,MAAM,WACN,MAAM,cACN,MAAM,EAAE;;;;;;;GAuDpB"}
|
package/src/virtual-purse.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export function makeVirtualPurseKitIKit(brandShape?: Pattern, amountShape?: Patt
|
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
export function prepareVirtualPurse(zone: import('@agoric/zone').Zone): (vpc: ERef<VirtualPurseController>, { escrowPurse: defaultEscrowPurse, ...issuerKit }: {
|
|
37
|
-
issuer: ERef<Issuer
|
|
37
|
+
issuer: ERef<Issuer<AssetKind>>;
|
|
38
38
|
brand: Brand;
|
|
39
39
|
mint?: ERef<Mint<AssetKind>> | undefined;
|
|
40
40
|
escrowPurse?: ERef<Purse<AssetKind>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-purse.d.ts","sourceRoot":"","sources":["virtual-purse.js"],"names":[],"mappings":"AAsBO,qDAHI,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DjB;AA2LM,0CADK,OAAO,cAAc,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"virtual-purse.d.ts","sourceRoot":"","sources":["virtual-purse.js"],"names":[],"mappings":"AAsBO,qDAHI,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DjB;AA2LM,0CADK,OAAO,cAAc,EAAE,IAAI;;WASzB,KAAK;;;MAWJ,QAAQ,QAAQ,MAAM,KAAK,CAAC,CAAC,CAAC,CAyB5C;uBAnOY,OAAO,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;qBAG3B,CAAC,GAAG,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,QAAQ,MAAM,CAAC;qBAC3D,CAAC,GAAG,EAAE,MAAM,KAAK,QAAQ,OAAO,CAAC;;;;;;;;;;;;gBAKjC,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,IAAI,CAAC;;;;;;;gBAIjC,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,IAAI,CAAC;;;;;iBAIjC,CAAC,KAAK,EAAE,KAAK,KAAK,YAAY,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-test-utils.d.ts","sourceRoot":"","sources":["boot-test-utils.js"],"names":[],"mappings":";;;;;;;;;;;AAiCO,6BAAqB;AAE5B,qBAAqB;AACrB,yBADW,MAAM,CACgB;AAE1B
|
|
1
|
+
{"version":3,"file":"boot-test-utils.d.ts","sourceRoot":"","sources":["boot-test-utils.js"],"names":[],"mappings":";;;;;;;;;;;AAiCO,6BAAqB;AAE5B,qBAAqB;AACrB,yBADW,MAAM,CACgB;AAE1B;;;;;;;iBAGmB,GAAG;iBACH,GAAG;eAGL,GAAG;gBACF,GAAG;;;eAIJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BvB;AAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEN;AAEM,iDAON;mDAlJkD,2BAA2B;4CAClC,oBAAoB;6CACnB,qBAAqB;2CACvB,mBAAmB;6CACjB,qBAAqB;+CACnB,uBAAuB;sDAChB,8BAA8B;oDAChC,4BAA4B;2CACrC,mBAAmB"}
|