@agoric/ertp 0.16.3-other-dev-3eb1a1d.0 → 0.16.3-other-dev-fbe72e7.0.fbe72e7
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 +24 -24
- package/src/amountMath.d.ts +14 -10
- package/src/amountMath.d.ts.map +1 -1
- package/src/amountMath.js +15 -11
- package/src/issuerKit.d.ts +9 -14
- package/src/issuerKit.d.ts.map +1 -1
- package/src/issuerKit.js +34 -21
- package/src/legacy-payment-helpers.d.ts +6 -4
- package/src/legacy-payment-helpers.d.ts.map +1 -1
- package/src/legacy-payment-helpers.js +15 -9
- package/src/payment.d.ts +1 -1
- package/src/payment.d.ts.map +1 -1
- package/src/payment.js +2 -1
- package/src/paymentLedger.d.ts +3 -1
- package/src/paymentLedger.d.ts.map +1 -1
- package/src/paymentLedger.js +10 -8
- package/src/purse.d.ts +2 -2
- package/src/ratio.d.ts +48 -0
- package/src/ratio.d.ts.map +1 -0
- package/src/ratio.js +441 -0
- package/src/safeMath.d.ts +11 -0
- package/src/safeMath.d.ts.map +1 -0
- package/src/safeMath.js +50 -0
- package/src/typeGuards.d.ts +4 -0
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +1 -0
- package/src/types.d.ts +3 -3
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +16 -10
package/src/types.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { LatestTopic } from '@agoric/notifier';
|
|
|
2
2
|
import type { ERef } from '@endo/far';
|
|
3
3
|
import type { RemotableObject } from '@endo/pass-style';
|
|
4
4
|
import type { CopyBag, CopySet, Key, Pattern } from '@endo/patterns';
|
|
5
|
+
import type { TypeTag } from '@agoric/internal/src/tagged.js';
|
|
5
6
|
import type { AssetKind } from './amountMath.js';
|
|
6
7
|
|
|
7
8
|
export type { AssetKind } from './amountMath.js';
|
|
@@ -405,16 +406,21 @@ export type PurseMethods<
|
|
|
405
406
|
export type Payment<
|
|
406
407
|
K extends AssetKind = AssetKind,
|
|
407
408
|
M extends Key = Key,
|
|
408
|
-
> = RemotableObject &
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
409
|
+
> = RemotableObject &
|
|
410
|
+
TypeTag<
|
|
411
|
+
{
|
|
412
|
+
/**
|
|
413
|
+
* Get the allegedBrand, indicating
|
|
414
|
+
* the type of digital asset this payment purports to be, and which issuer to
|
|
415
|
+
* use. Because payments are not trusted, any method calls on payments should
|
|
416
|
+
* be treated with suspicion and verified elsewhere.
|
|
417
|
+
*/
|
|
418
|
+
getAllegedBrand: () => Brand<K>;
|
|
419
|
+
},
|
|
420
|
+
'Set-like value type',
|
|
421
|
+
M
|
|
422
|
+
>;
|
|
423
|
+
|
|
418
424
|
/**
|
|
419
425
|
* All of the difference in how digital asset
|
|
420
426
|
* amount are manipulated can be reduced to the behavior of the math on
|