@lifi/perps-types 5.0.0 → 5.1.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.
@@ -6,6 +6,10 @@ export interface Asset {
6
6
  displayName?: string;
7
7
  tags?: string[];
8
8
  aliases?: string[];
9
+ decimals?: number;
10
+ l1Decimals?: number;
11
+ l1Address?: string;
12
+ minWithdrawalAmount?: string;
9
13
  }
10
14
  export interface AssetsResponse {
11
15
  assets: Asset[];
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAQlB,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAGD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAQlB,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAMlB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAGD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
@@ -21,6 +21,18 @@ export interface Asset {
21
21
  tags?: string[];
22
22
  /** Other venues' display symbols for the same real-world asset (e.g. Hyperliquid `SILVER` carries `['XAG']`). */
23
23
  aliases?: string[];
24
+ /**
25
+ * Precision the venue holds this asset at — the exponent an amount is
26
+ * scaled by to reach the venue's integer wire value. Absent when the
27
+ * provider publishes no per-asset precision.
28
+ */
29
+ decimals?: number;
30
+ /** Precision of the asset's L1 token contract, which need not match {@link Asset.decimals}. */
31
+ l1Decimals?: number;
32
+ /** L1 token contract; the zero address denotes native gas. */
33
+ l1Address?: string;
34
+ /** Venue minimum for a single withdrawal, denominated in this asset — not USD. */
35
+ minWithdrawalAmount?: string;
24
36
  }
25
37
  /** Response containing the provider's normalized asset registry. @public */
26
38
  export interface AssetsResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kFAAkF;IAClF,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
@@ -21,6 +21,18 @@ export interface Asset {
21
21
  tags?: string[];
22
22
  /** Other venues' display symbols for the same real-world asset (e.g. Hyperliquid `SILVER` carries `['XAG']`). */
23
23
  aliases?: string[];
24
+ /**
25
+ * Precision the venue holds this asset at — the exponent an amount is
26
+ * scaled by to reach the venue's integer wire value. Absent when the
27
+ * provider publishes no per-asset precision.
28
+ */
29
+ decimals?: number;
30
+ /** Precision of the asset's L1 token contract, which need not match {@link Asset.decimals}. */
31
+ l1Decimals?: number;
32
+ /** L1 token contract; the zero address denotes native gas. */
33
+ l1Address?: string;
34
+ /** Venue minimum for a single withdrawal, denominated in this asset — not USD. */
35
+ minWithdrawalAmount?: string;
24
36
  }
25
37
  /** Response containing the provider's normalized asset registry. @public */
26
38
  export interface AssetsResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kFAAkF;IAClF,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/perps-types",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Shared types for the LI.FI perps stack",
5
5
  "keywords": [
6
6
  "lifi",
@@ -41,7 +41,9 @@
41
41
  "src/**/*.ts",
42
42
  "!src/**/*.spec.ts",
43
43
  "!src/**/*.test.ts",
44
- "!src/**/*.tsbuildinfo"
44
+ "!src/**/*.tsbuildinfo",
45
+ "!tsconfig.json",
46
+ "!tsconfig.build.json"
45
47
  ],
46
48
  "publishConfig": {
47
49
  "access": "public"
package/src/asset.ts CHANGED
@@ -21,6 +21,18 @@ export interface Asset {
21
21
  tags?: string[]
22
22
  /** Other venues' display symbols for the same real-world asset (e.g. Hyperliquid `SILVER` carries `['XAG']`). */
23
23
  aliases?: string[]
24
+ /**
25
+ * Precision the venue holds this asset at — the exponent an amount is
26
+ * scaled by to reach the venue's integer wire value. Absent when the
27
+ * provider publishes no per-asset precision.
28
+ */
29
+ decimals?: number
30
+ /** Precision of the asset's L1 token contract, which need not match {@link Asset.decimals}. */
31
+ l1Decimals?: number
32
+ /** L1 token contract; the zero address denotes native gas. */
33
+ l1Address?: string
34
+ /** Venue minimum for a single withdrawal, denominated in this asset — not USD. */
35
+ minWithdrawalAmount?: string
24
36
  }
25
37
 
26
38
  /** Response containing the provider's normalized asset registry. @public */