@gearbox-protocol/sdk 8.15.1 → 8.15.2
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/dist/cjs/sdk/sdk-gov-legacy/index.js +0 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/aave.js +0 -82
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/aura.js +0 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/compound.js +0 -62
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/convex.js +0 -4
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -4
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/erc4626.js +0 -64
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/gear.js +0 -196
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +0 -3
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/wrapped.js +2 -4
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -27
- package/dist/cjs/sdk/sdk-legacy/index.js +0 -2
- package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +2 -5
- package/dist/esm/sdk/sdk-gov-legacy/index.js +0 -1
- package/dist/esm/sdk/sdk-gov-legacy/tokens/aave.js +0 -73
- package/dist/esm/sdk/sdk-gov-legacy/tokens/aura.js +0 -1
- package/dist/esm/sdk/sdk-gov-legacy/tokens/compound.js +0 -54
- package/dist/esm/sdk/sdk-gov-legacy/tokens/convex.js +0 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/erc4626.js +0 -56
- package/dist/esm/sdk/sdk-gov-legacy/tokens/gear.js +0 -188
- package/dist/esm/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -1
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +0 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/wrapped.js +1 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -18
- package/dist/esm/sdk/sdk-legacy/index.js +0 -1
- package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +2 -5
- package/dist/types/sdk/sdk-gov-legacy/index.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/aave.d.ts +0 -16
- package/dist/types/sdk/sdk-gov-legacy/tokens/aura.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/compound.d.ts +0 -10
- package/dist/types/sdk/sdk-gov-legacy/tokens/convex.d.ts +0 -2
- package/dist/types/sdk/sdk-gov-legacy/tokens/curveLP.d.ts +1 -3
- package/dist/types/sdk/sdk-gov-legacy/tokens/erc4626.d.ts +0 -19
- package/dist/types/sdk/sdk-gov-legacy/tokens/gear.d.ts +0 -24
- package/dist/types/sdk/sdk-gov-legacy/tokens/stakingRewards.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/token.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/wrapped.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/zircuit.d.ts +0 -10
- package/dist/types/sdk/sdk-legacy/index.d.ts +0 -1
- package/dist/types/sdk/sdk-legacy/tokens/tokenData.d.ts +7 -2
- package/package.json +1 -1
- package/dist/cjs/sdk/sdk-gov-legacy/core/constants.js +0 -37
- package/dist/cjs/sdk/sdk-legacy/payload/token.js +0 -16
- package/dist/esm/sdk/sdk-gov-legacy/core/constants.js +0 -10
- package/dist/esm/sdk/sdk-legacy/payload/token.js +0 -0
- package/dist/types/sdk/sdk-gov-legacy/core/constants.d.ts +0 -5
- package/dist/types/sdk/sdk-legacy/payload/token.d.ts +0 -9
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { Address } from "viem";
|
|
2
2
|
import type { SupportedToken } from "../../sdk-gov-legacy/index.js";
|
|
3
|
-
|
|
3
|
+
export interface TokenDataPayload {
|
|
4
|
+
addr: Address;
|
|
5
|
+
symbol: SupportedToken;
|
|
6
|
+
title?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
decimals: number;
|
|
9
|
+
}
|
|
4
10
|
export declare class TokenData {
|
|
5
11
|
readonly address: Address;
|
|
6
12
|
readonly title: string;
|
|
@@ -9,6 +15,5 @@ export declare class TokenData {
|
|
|
9
15
|
readonly decimals: number;
|
|
10
16
|
readonly icon: string;
|
|
11
17
|
constructor(payload: TokenDataPayload);
|
|
12
|
-
compareBySymbol(b: TokenData): number;
|
|
13
18
|
static getTokenIcon(symbol: string): string;
|
|
14
19
|
}
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var constants_exports = {};
|
|
20
|
-
__export(constants_exports, {
|
|
21
|
-
DUMB_ADDRESS: () => DUMB_ADDRESS,
|
|
22
|
-
DUMB_ADDRESS2: () => DUMB_ADDRESS2,
|
|
23
|
-
DUMB_ADDRESS3: () => DUMB_ADDRESS3,
|
|
24
|
-
DUMB_ADDRESS4: () => DUMB_ADDRESS4
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(constants_exports);
|
|
27
|
-
const DUMB_ADDRESS = "0xC4375B7De8af5a38a93548eb8453a498222C4fF2";
|
|
28
|
-
const DUMB_ADDRESS2 = "0x93548eB8453a498222C4FF2C4375b7De8af5A38a";
|
|
29
|
-
const DUMB_ADDRESS3 = "0x822293548EB8453A49c4fF2c4375B7DE8AF5a38A";
|
|
30
|
-
const DUMB_ADDRESS4 = "0x498222C4Ff2C4393548eb8453a75B7dE8AF5A38a";
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
DUMB_ADDRESS,
|
|
34
|
-
DUMB_ADDRESS2,
|
|
35
|
-
DUMB_ADDRESS3,
|
|
36
|
-
DUMB_ADDRESS4
|
|
37
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var token_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(token_exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const DUMB_ADDRESS = "0xC4375B7De8af5a38a93548eb8453a498222C4fF2";
|
|
2
|
-
const DUMB_ADDRESS2 = "0x93548eB8453a498222C4FF2C4375b7De8af5A38a";
|
|
3
|
-
const DUMB_ADDRESS3 = "0x822293548EB8453A49c4fF2c4375B7DE8AF5a38A";
|
|
4
|
-
const DUMB_ADDRESS4 = "0x498222C4Ff2C4393548eb8453a75B7dE8AF5A38a";
|
|
5
|
-
export {
|
|
6
|
-
DUMB_ADDRESS,
|
|
7
|
-
DUMB_ADDRESS2,
|
|
8
|
-
DUMB_ADDRESS3,
|
|
9
|
-
DUMB_ADDRESS4
|
|
10
|
-
};
|
|
File without changes
|