@gearbox-protocol/sdk 0.0.4 → 0.0.5
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/lib/core/token.js +4 -0
- package/lib/index.js +5 -1
- package/lib/utils/multicall.d.ts +1 -1
- package/package.json +1 -1
- package/src/core/token.ts +5 -0
- package/src/utils/multicall.ts +2 -1
package/lib/core/token.js
CHANGED
|
@@ -113,6 +113,10 @@ exports.tokenDataByNetwork = {
|
|
|
113
113
|
address: "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
|
|
114
114
|
type: "stable"
|
|
115
115
|
},
|
|
116
|
+
LUNA: {
|
|
117
|
+
address: "0xd2877702675e6ceb975b4a1dff9fb7baf4c91ea9",
|
|
118
|
+
type: "volatile"
|
|
119
|
+
},
|
|
116
120
|
// YEARN TOKENS
|
|
117
121
|
yvDAI: {
|
|
118
122
|
address: "0xdA816459F1AB5631232FE5e97a05BBBb94970c95",
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/utils/multicall.d.ts
CHANGED
package/package.json
CHANGED
package/src/core/token.ts
CHANGED
|
@@ -142,6 +142,11 @@ export const tokenDataByNetwork: Record<
|
|
|
142
142
|
type: "stable"
|
|
143
143
|
},
|
|
144
144
|
|
|
145
|
+
LUNA: {
|
|
146
|
+
address: "0xd2877702675e6ceb975b4a1dff9fb7baf4c91ea9",
|
|
147
|
+
type: "volatile"
|
|
148
|
+
},
|
|
149
|
+
|
|
145
150
|
// YEARN TOKENS
|
|
146
151
|
yvDAI: {
|
|
147
152
|
address: "0xdA816459F1AB5631232FE5e97a05BBBb94970c95",
|
package/src/utils/multicall.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Multicall2 } from "../types/Multicall2";
|
|
2
1
|
import { ethers } from "ethers";
|
|
2
|
+
import { Multicall2 } from "../types/Multicall2";
|
|
3
|
+
|
|
3
4
|
import { Multicall2__factory } from "../types/factories/Multicall2__factory";
|
|
4
5
|
|
|
5
6
|
export interface CallData<T extends ethers.utils.Interface> {
|