@exodus/asset-types 0.2.2 → 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 +10 -0
- package/package.json +2 -2
- package/src/asset-meta.d.ts +1 -0
- package/src/asset.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @exodus/asset-types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/asset-types",
|
|
3
|
-
"version": "0.2.
|
|
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": "
|
|
34
|
+
"gitHead": "6cac727a12afc44b363ab1c5e82b32bbed71d1f0"
|
|
35
35
|
}
|
package/src/asset-meta.d.ts
CHANGED
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:
|
|
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
|
|
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
|