@gearbox-protocol/sdk 14.8.4 → 14.8.6

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.
@@ -78,7 +78,7 @@ class TokenData {
78
78
  this.symbol = payload.symbol;
79
79
  this.name = payload.name;
80
80
  this.decimals = payload.decimals;
81
- this.icon = TokenData.getTokenIcon(payload.symbol);
81
+ this.icon = payload.icon ?? TokenData.getTokenIcon(payload.symbol);
82
82
  this.isPhantom = payload.isPhantom ?? false;
83
83
  }
84
84
  static getTokenIcon(symbol) {
@@ -48,6 +48,9 @@ __reExport(contracts_exports, require("./MellowWrapperAdapterContract.js"), modu
48
48
  __reExport(contracts_exports, require("./MidasIssuanceVaultAdapterContract.js"), module.exports);
49
49
  __reExport(contracts_exports, require("./MidasRedemptionVaultAdapterContract.js"), module.exports);
50
50
  __reExport(contracts_exports, require("./PendleRouterAdapterContract.js"), module.exports);
51
+ __reExport(contracts_exports, require("./SecuritizeOnRampAdapterContract.js"), module.exports);
52
+ __reExport(contracts_exports, require("./SecuritizeRedemptionGatewayAdapterContract.js"), module.exports);
53
+ __reExport(contracts_exports, require("./SecuritizeSwapAdapterContract.js"), module.exports);
51
54
  __reExport(contracts_exports, require("./StakingRewardsAdapterContract.js"), module.exports);
52
55
  __reExport(contracts_exports, require("./TraderJoeRouterAdapterContract.js"), module.exports);
53
56
  __reExport(contracts_exports, require("./UniswapV2AdapterContract.js"), module.exports);
@@ -91,6 +94,9 @@ __reExport(contracts_exports, require("./WstETHV1AdapterContract.js"), module.ex
91
94
  ...require("./MidasIssuanceVaultAdapterContract.js"),
92
95
  ...require("./MidasRedemptionVaultAdapterContract.js"),
93
96
  ...require("./PendleRouterAdapterContract.js"),
97
+ ...require("./SecuritizeOnRampAdapterContract.js"),
98
+ ...require("./SecuritizeRedemptionGatewayAdapterContract.js"),
99
+ ...require("./SecuritizeSwapAdapterContract.js"),
94
100
  ...require("./StakingRewardsAdapterContract.js"),
95
101
  ...require("./TraderJoeRouterAdapterContract.js"),
96
102
  ...require("./UniswapV2AdapterContract.js"),
@@ -55,7 +55,7 @@ class TokenData {
55
55
  this.symbol = payload.symbol;
56
56
  this.name = payload.name;
57
57
  this.decimals = payload.decimals;
58
- this.icon = TokenData.getTokenIcon(payload.symbol);
58
+ this.icon = payload.icon ?? TokenData.getTokenIcon(payload.symbol);
59
59
  this.isPhantom = payload.isPhantom ?? false;
60
60
  }
61
61
  static getTokenIcon(symbol) {
@@ -31,6 +31,9 @@ export * from "./MellowWrapperAdapterContract.js";
31
31
  export * from "./MidasIssuanceVaultAdapterContract.js";
32
32
  export * from "./MidasRedemptionVaultAdapterContract.js";
33
33
  export * from "./PendleRouterAdapterContract.js";
34
+ export * from "./SecuritizeOnRampAdapterContract.js";
35
+ export * from "./SecuritizeRedemptionGatewayAdapterContract.js";
36
+ export * from "./SecuritizeSwapAdapterContract.js";
34
37
  export * from "./StakingRewardsAdapterContract.js";
35
38
  export * from "./TraderJoeRouterAdapterContract.js";
36
39
  export * from "./UniswapV2AdapterContract.js";
@@ -1,4 +1,27 @@
1
1
  import type { Address } from "viem";
2
+ export type TokenIconLayerSource = {
3
+ type: "symbol";
4
+ symbol: string;
5
+ } | {
6
+ type: "url";
7
+ url: string;
8
+ };
9
+ /**
10
+ * Named layout presets for composite icons. Pixel layout lives in UI-kit (TokenIcon), not in API payloads.
11
+ */
12
+ export type TokenIconCompositePreset =
13
+ /** Background full size; foreground centered at ~65% (e.g. token on plate). */
14
+ "centered_foreground";
15
+ /**
16
+ * Client-composed token icon: multiple layers by preset.
17
+ */
18
+ export type IconComposite = {
19
+ kind: "composite";
20
+ preset: TokenIconCompositePreset;
21
+ scaleFactor?: number;
22
+ /** Exactly two layers (bottom then top). */
23
+ layers: readonly [TokenIconLayerSource, TokenIconLayerSource];
24
+ };
2
25
  export interface TokenDataPayload {
3
26
  addr: Address;
4
27
  symbol: string;
@@ -6,6 +29,7 @@ export interface TokenDataPayload {
6
29
  name: string;
7
30
  decimals: number;
8
31
  isPhantom: boolean;
32
+ icon?: string | IconComposite;
9
33
  }
10
34
  export declare class TokenData {
11
35
  readonly address: Address;
@@ -13,7 +37,7 @@ export declare class TokenData {
13
37
  readonly symbol: string;
14
38
  readonly name: string;
15
39
  readonly decimals: number;
16
- readonly icon: string;
40
+ readonly icon: string | IconComposite;
17
41
  readonly isPhantom: boolean;
18
42
  constructor(payload: TokenDataPayload);
19
43
  static getTokenIcon(symbol: string): string;
@@ -31,6 +31,9 @@ export * from "./MellowWrapperAdapterContract.js";
31
31
  export * from "./MidasIssuanceVaultAdapterContract.js";
32
32
  export * from "./MidasRedemptionVaultAdapterContract.js";
33
33
  export * from "./PendleRouterAdapterContract.js";
34
+ export * from "./SecuritizeOnRampAdapterContract.js";
35
+ export * from "./SecuritizeRedemptionGatewayAdapterContract.js";
36
+ export * from "./SecuritizeSwapAdapterContract.js";
34
37
  export * from "./StakingRewardsAdapterContract.js";
35
38
  export * from "./TraderJoeRouterAdapterContract.js";
36
39
  export * from "./UniswapV2AdapterContract.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.8.4",
3
+ "version": "14.8.6",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -83,31 +83,31 @@
83
83
  "@redstone-finance/protocol": "^0.9.0",
84
84
  "@redstone-finance/sdk": "^0.9.0",
85
85
  "@redstone-finance/utils": "^0.9.0",
86
- "abitype": "^1.2.3",
86
+ "abitype": "^1.2.4",
87
87
  "buffer": "^6.0.3",
88
88
  "date-fns": "^4.1.0",
89
89
  "viem": ">=2.23.15 <3.0.0",
90
- "zod": "^4.3.6"
90
+ "zod": "^4.4.3"
91
91
  },
92
92
  "devDependencies": {
93
- "@biomejs/biome": "^2.4.12",
94
- "@commitlint/cli": "^20.5.0",
95
- "@commitlint/config-conventional": "^20.5.0",
96
- "@gearbox-protocol/biome-config": "^1.0.27",
93
+ "@biomejs/biome": "^2.4.15",
94
+ "@commitlint/cli": "^21.0.0",
95
+ "@commitlint/config-conventional": "^21.0.0",
96
+ "@gearbox-protocol/biome-config": "^1.0.29",
97
97
  "@types/cross-spawn": "^6.0.6",
98
- "axios": "^1.15.1",
98
+ "axios": "^1.16.0",
99
99
  "cross-spawn": "^7.0.6",
100
100
  "husky": "^9.1.7",
101
- "lint-staged": "^16.4.0",
101
+ "lint-staged": "^17.0.4",
102
102
  "pino": "^10.3.1",
103
103
  "pino-pretty": "^13.1.3",
104
104
  "tsup": "^8.5.1",
105
105
  "tsx": "^4.21.0",
106
106
  "typescript": "^6.0.3",
107
107
  "viem-deal": "^2.0.4",
108
- "vite": "^8.0.9",
109
- "vitest": "^4.1.4",
110
- "yaml": "^2.8.3"
108
+ "vite": "^8.0.12",
109
+ "vitest": "^4.1.5",
110
+ "yaml": "^2.9.0"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "axios": "^1.0.0",
@@ -128,5 +128,5 @@
128
128
  "biome check --no-errors-on-unmatched --write"
129
129
  ]
130
130
  },
131
- "packageManager": "pnpm@10.33.0"
131
+ "packageManager": "pnpm@11.1.1"
132
132
  }