@exodus/asset-types 0.2.1 → 0.2.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.3](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.2.2...@exodus/asset-types@0.2.3) (2025-02-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: allow asset specific messages (#5010)
13
+
14
+
15
+
16
+ ## [0.2.2](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.2.1...@exodus/asset-types@0.2.2) (2025-02-06)
17
+
18
+ **Note:** Version bump only for package @exodus/asset-types
19
+
20
+
21
+
22
+
23
+
6
24
  ## [0.2.1](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.2.0...@exodus/asset-types@0.2.1) (2025-02-06)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/asset-types",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Typings for Assets",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -31,5 +31,5 @@
31
31
  "devDependencies": {
32
32
  "@types/bn.js": "^5"
33
33
  },
34
- "gitHead": "4bf0b4efd938c60fc9ef8af756030442bda18f70"
34
+ "gitHead": "6cac727a12afc44b363ab1c5e82b32bbed71d1f0"
35
35
  }
@@ -40,5 +40,6 @@ export type AssetMeta = {
40
40
  decimals?: number
41
41
  mintAddress?: string
42
42
  units: Record<string, number>
43
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
44
  [prop: string]: any // allow additional chain specific properties
44
45
  }
package/src/asset.d.ts CHANGED
@@ -192,7 +192,7 @@ export type ExtendedTxSendParams = Extendable<
192
192
 
193
193
  export type TxSendParams = StrictTxSendParams | ExtendedTxSendParams
194
194
 
195
- export type SignMessageParams = { message: string; signer: Signer }
195
+ export type SignMessageParams<M = string> = { message: M; signer: Signer }
196
196
 
197
197
  export type AssetApi = CommonAssetApi & {
198
198
  addressHasHistory?: (address: string) => Promise<boolean>
@@ -209,7 +209,7 @@ export type AssetApi = CommonAssetApi & {
209
209
  getSupportedPurposes?: (params?: GetSupportedPurposesParams) => number[]
210
210
  moveFunds?: MoveFunds
211
211
  signHardware?: (params: SignHardwareTxParams) => Promise<any>
212
- signMessage?(params: SignMessageParams): Promise<any>
212
+ signMessage?<M = string>(params: SignMessageParams<M>): Promise<any>
213
213
  signTx(params: SignTxParams): Promise<any>
214
214
  sendTx(params: TxSendParams): Promise<IdentifiableTx>
215
215
  validateAssetId?: (assetId: string) => boolean