@exodus/assets-feature 5.2.0 → 5.3.0

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,12 @@
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
+ ## [5.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.2.0...@exodus/assets-feature@5.3.0) (2024-04-26)
7
+
8
+ ### Features
9
+
10
+ - add types for asset api ([#6696](https://github.com/ExodusMovement/exodus-hydra/issues/6696)) ([a50d9d5](https://github.com/ExodusMovement/exodus-hydra/commit/a50d9d5c3d11e14dde2a412826aa0e01952f42bd))
11
+
6
12
  ## [5.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.1.0...@exodus/assets-feature@5.2.0) (2024-04-26)
7
13
 
8
14
  ### Features
package/api/index.d.ts CHANGED
@@ -1,13 +1,39 @@
1
+ type Asset = any
2
+
3
+ enum TokenStatus {
4
+ CURATED = 'c',
5
+ DISABLED = 'd',
6
+ UNVERIFIED = 'u',
7
+ VERIFIED = 'v',
8
+ }
9
+
1
10
  declare const assetsApiDefinition: {
2
11
  id: 'assetsApi'
3
12
  type: 'api'
4
13
  factory(): {
5
- assets: {
14
+ assetPreferences: {
6
15
  enableMultiAddressMode(params: { assetNames: string[] }): Promise<void>
7
16
  disableMultiAddressMode(params: { assetNames: string[] }): Promise<void>
8
17
  disablePurpose(params: { assetName: string; purpose: number }): Promise<void>
9
18
  enablePurpose(params: { assetName: string; purpose: number }): Promise<void>
10
19
  }
20
+ assets: {
21
+ fetchToken(assetId: string, baseAssetName: string): Asset
22
+ searchTokens(params: {
23
+ baseAssetName?: string | string[]
24
+ lifecycleStatus?: TokenStatus[]
25
+ query?: string
26
+ excludeTags?: string[]
27
+ })
28
+ updateTokens(): Promise<void>
29
+ addTokens(params: {
30
+ assetIds: string[]
31
+ baseAssetName: string
32
+ allowedStatusList?: TokenStatus[]
33
+ }): string
34
+ getAsset(assetName: string): Promise<Asset>
35
+ getAssets(): Promise<{ [assetName: string]: Asset }>
36
+ }
11
37
  }
12
38
  }
13
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
6
  "main": "index.js",
@@ -68,5 +68,5 @@
68
68
  "msw": "^2.0.0",
69
69
  "redux": "^4.0.0"
70
70
  },
71
- "gitHead": "581122b6c76599d0fe3d14067f7696dc0d5e90ad"
71
+ "gitHead": "0baf07a6772615c63c00b9524cc2a0378fa7dbf0"
72
72
  }