@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/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 & PaymentMethods<K>;
409
- export type PaymentMethods<K extends AssetKind = AssetKind> = {
410
- /**
411
- * Get the allegedBrand, indicating
412
- * the type of digital asset this payment purports to be, and which issuer to
413
- * use. Because payments are not trusted, any method calls on payments should
414
- * be treated with suspicion and verified elsewhere.
415
- */
416
- getAllegedBrand: () => Brand<K>;
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