@exodus/asset-types 0.6.0 → 0.7.1
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 +20 -0
- package/package.json +2 -2
- package/src/asset.d.ts +15 -0
- package/src/create-tx-params.d.ts +1 -0
- package/src/send-tx.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.7.1](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.7.0...@exodus/asset-types@0.7.1) (2026-06-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix(ethereum-api): eliminate send-all dust on HYPE and other forceGasLimitEstimation networks (#7747)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [0.7.0](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.6.0...@exodus/asset-types@0.7.0) (2026-05-25)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat(ethereum-api): warn on risky recipients for native ETH sends (#8110)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [0.6.0](https://github.com/ExodusMovement/assets/compare/@exodus/asset-types@0.5.1...@exodus/asset-types@0.6.0) (2026-05-18)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/asset-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Typings for Assets",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public",
|
|
43
43
|
"provenance": false
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f0c007138096bf627e21fc9e757637394fe2a5b0"
|
|
46
46
|
}
|
package/src/asset.d.ts
CHANGED
|
@@ -157,6 +157,20 @@ export type AssetAddress = {
|
|
|
157
157
|
|
|
158
158
|
export type SignMessageParams<M = string> = { message: M; signer: Signer }
|
|
159
159
|
|
|
160
|
+
export type CheckTxPayload = Extendable<{
|
|
161
|
+
chain: number | string
|
|
162
|
+
fromAddress: string
|
|
163
|
+
toAddress: string
|
|
164
|
+
value: string
|
|
165
|
+
input?: string
|
|
166
|
+
hash?: string
|
|
167
|
+
}>
|
|
168
|
+
|
|
169
|
+
export type CheckTxResult = {
|
|
170
|
+
action: 'WARN' | 'NONE'
|
|
171
|
+
reason?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
160
174
|
export type AssetApi = CommonAssetApi & {
|
|
161
175
|
addressHasHistory?: (address: string) => Promise<boolean>
|
|
162
176
|
broadcastTx: (rawTx: Buffer) => Promise<any>
|
|
@@ -174,6 +188,7 @@ export type AssetApi = CommonAssetApi & {
|
|
|
174
188
|
getSupportedPurposes?: (params?: GetSupportedPurposesParams) => number[]
|
|
175
189
|
moveFunds?: MoveFunds
|
|
176
190
|
sendTx(params: TxSendParams): Promise<IdentifiableTx>
|
|
191
|
+
checkTx?: (payload: CheckTxPayload) => Promise<CheckTxResult>
|
|
177
192
|
signHardware?: (params: SignHardwareTxParams) => Promise<any>
|
|
178
193
|
signMessage?<M = string>(params: SignMessageParams<M>): Promise<any>
|
|
179
194
|
signTx(params: SignTxParams): Promise<any>
|