@gearbox-protocol/sdk 11.5.1 → 11.6.1
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/abi/router/kelpLRTDepositPoolWorker.js +541 -0
- package/dist/cjs/permissionless/bindings/instance-manager.js +11 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +8 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +6 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +14 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +15 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +45 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +51 -0
- package/dist/cjs/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +48 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +8 -0
- package/dist/cjs/plugins/adapters/types.js +4 -0
- package/dist/cjs/sdk/chain/chains.js +37 -4
- package/dist/cjs/sdk/constants/address-provider.js +2 -1
- package/dist/cjs/sdk/constants/addresses.js +8 -4
- package/dist/cjs/sdk/constants/networks.js +4 -2
- package/dist/cjs/sdk/router/RouterV300Contract.js +2 -1
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/esm/abi/router/kelpLRTDepositPoolWorker.js +517 -0
- package/dist/esm/permissionless/bindings/instance-manager.js +11 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +12 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +6 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +16 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +13 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +21 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +27 -0
- package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +24 -0
- package/dist/esm/plugins/adapters/contracts/index.js +4 -0
- package/dist/esm/plugins/adapters/types.js +4 -0
- package/dist/esm/sdk/chain/chains.js +37 -4
- package/dist/esm/sdk/constants/address-provider.js +2 -1
- package/dist/esm/sdk/constants/addresses.js +8 -4
- package/dist/esm/sdk/constants/networks.js +4 -2
- package/dist/esm/sdk/router/RouterV300Contract.js +2 -1
- package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/esm/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +726 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +23 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +14 -0
- package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +12 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +4 -0
- package/dist/types/plugins/adapters/types.d.ts +5 -1
- package/dist/types/sdk/chain/chains.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
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 KelpLRTDepositPoolAdapterContract_exports = {};
|
|
20
|
+
__export(KelpLRTDepositPoolAdapterContract_exports, {
|
|
21
|
+
KelpLRTDepositPoolAdapterContract: () => KelpLRTDepositPoolAdapterContract
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(KelpLRTDepositPoolAdapterContract_exports);
|
|
24
|
+
var import_viem = require("viem");
|
|
25
|
+
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
26
|
+
const abi = [];
|
|
27
|
+
class KelpLRTDepositPoolAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
28
|
+
allowedAssets;
|
|
29
|
+
constructor(sdk, args) {
|
|
30
|
+
super(sdk, { ...args, abi });
|
|
31
|
+
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
32
|
+
[
|
|
33
|
+
{ type: "address", name: "creditManager" },
|
|
34
|
+
{ type: "address", name: "targetContract" },
|
|
35
|
+
{ type: "address[]", name: "allowedAssets" }
|
|
36
|
+
],
|
|
37
|
+
args.baseParams.serializedParams
|
|
38
|
+
);
|
|
39
|
+
this.allowedAssets = [...decoded[2]];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
KelpLRTDepositPoolAdapterContract
|
|
45
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
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 KelpLRTWithdrawalManagerAdapterContract_exports = {};
|
|
20
|
+
__export(KelpLRTWithdrawalManagerAdapterContract_exports, {
|
|
21
|
+
KelpLRTWithdrawalManagerAdapterContract: () => KelpLRTWithdrawalManagerAdapterContract
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(KelpLRTWithdrawalManagerAdapterContract_exports);
|
|
24
|
+
var import_viem = require("viem");
|
|
25
|
+
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
26
|
+
const abi = [];
|
|
27
|
+
class KelpLRTWithdrawalManagerAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
28
|
+
allowedTokensOut;
|
|
29
|
+
constructor(sdk, args) {
|
|
30
|
+
super(sdk, { ...args, abi });
|
|
31
|
+
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
32
|
+
[
|
|
33
|
+
{ type: "address", name: "creditManager" },
|
|
34
|
+
{ type: "address", name: "targetContract" },
|
|
35
|
+
{ type: "address[]", name: "allowedTokensOut" },
|
|
36
|
+
{ type: "address[]", name: "phantomTokensForAllowedTokensOut" }
|
|
37
|
+
],
|
|
38
|
+
args.baseParams.serializedParams
|
|
39
|
+
);
|
|
40
|
+
this.allowedTokensOut = decoded[2].map((tokenOut, index) => ({
|
|
41
|
+
tokenOut,
|
|
42
|
+
phantomToken: decoded[3][index]
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
KelpLRTWithdrawalManagerAdapterContract
|
|
49
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
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 MellowDepositQueueAdapterContract_exports = {};
|
|
20
|
+
__export(MellowDepositQueueAdapterContract_exports, {
|
|
21
|
+
MellowDepositQueueAdapterContract: () => MellowDepositQueueAdapterContract
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(MellowDepositQueueAdapterContract_exports);
|
|
24
|
+
var import_viem = require("viem");
|
|
25
|
+
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
26
|
+
const abi = [];
|
|
27
|
+
class MellowDepositQueueAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
28
|
+
asset;
|
|
29
|
+
phantomToken;
|
|
30
|
+
referral;
|
|
31
|
+
constructor(sdk, args) {
|
|
32
|
+
super(sdk, { ...args, abi });
|
|
33
|
+
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
34
|
+
[
|
|
35
|
+
{ type: "address", name: "creditManager" },
|
|
36
|
+
{ type: "address", name: "targetContract" },
|
|
37
|
+
{ type: "address", name: "asset" },
|
|
38
|
+
{ type: "address", name: "phantomToken" },
|
|
39
|
+
{ type: "address", name: "referral" }
|
|
40
|
+
],
|
|
41
|
+
args.baseParams.serializedParams
|
|
42
|
+
);
|
|
43
|
+
this.asset = decoded[2];
|
|
44
|
+
this.phantomToken = decoded[3];
|
|
45
|
+
this.referral = decoded[4];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
MellowDepositQueueAdapterContract
|
|
51
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
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 MellowRedeemQueueAdapterContract_exports = {};
|
|
20
|
+
__export(MellowRedeemQueueAdapterContract_exports, {
|
|
21
|
+
MellowRedeemQueueAdapterContract: () => MellowRedeemQueueAdapterContract
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(MellowRedeemQueueAdapterContract_exports);
|
|
24
|
+
var import_viem = require("viem");
|
|
25
|
+
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
26
|
+
const abi = [];
|
|
27
|
+
class MellowRedeemQueueAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
28
|
+
vaultToken;
|
|
29
|
+
phantomToken;
|
|
30
|
+
constructor(sdk, args) {
|
|
31
|
+
super(sdk, { ...args, abi });
|
|
32
|
+
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
33
|
+
[
|
|
34
|
+
{ type: "address", name: "creditManager" },
|
|
35
|
+
{ type: "address", name: "targetContract" },
|
|
36
|
+
{ type: "address", name: "vaultToken" },
|
|
37
|
+
{ type: "address", name: "phantomToken" }
|
|
38
|
+
],
|
|
39
|
+
args.baseParams.serializedParams
|
|
40
|
+
);
|
|
41
|
+
this.vaultToken = decoded[2];
|
|
42
|
+
this.phantomToken = decoded[3];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
MellowRedeemQueueAdapterContract
|
|
48
|
+
});
|
|
@@ -36,11 +36,15 @@ __reExport(contracts_exports, require("./FluidDexAdapterContract.js"), module.ex
|
|
|
36
36
|
__reExport(contracts_exports, require("./InfinifiGatewayAdapterContract.js"), module.exports);
|
|
37
37
|
__reExport(contracts_exports, require("./InfinifiUnwindingGatewayAdapterContract.js"), module.exports);
|
|
38
38
|
__reExport(contracts_exports, require("./InfraredVaultAdapterContract.js"), module.exports);
|
|
39
|
+
__reExport(contracts_exports, require("./KelpLRTDepositPoolAdapterContract.js"), module.exports);
|
|
40
|
+
__reExport(contracts_exports, require("./KelpLRTWithdrawalManagerAdapterContract.js"), module.exports);
|
|
39
41
|
__reExport(contracts_exports, require("./KodiakIslandGatewayAdapterContract.js"), module.exports);
|
|
40
42
|
__reExport(contracts_exports, require("./LidoV1AdapterContract.js"), module.exports);
|
|
41
43
|
__reExport(contracts_exports, require("./MellowClaimerAdapterContract.js"), module.exports);
|
|
44
|
+
__reExport(contracts_exports, require("./MellowDepositQueueAdapterContract.js"), module.exports);
|
|
42
45
|
__reExport(contracts_exports, require("./MellowDVVAdapterContract.js"), module.exports);
|
|
43
46
|
__reExport(contracts_exports, require("./MellowERC4626VaultAdapterContract.js"), module.exports);
|
|
47
|
+
__reExport(contracts_exports, require("./MellowRedeemQueueAdapterContract.js"), module.exports);
|
|
44
48
|
__reExport(contracts_exports, require("./MellowVaultAdapterContract.js"), module.exports);
|
|
45
49
|
__reExport(contracts_exports, require("./MellowWrapperAdapterContract.js"), module.exports);
|
|
46
50
|
__reExport(contracts_exports, require("./MidasIssuanceVaultAdapterContract.js"), module.exports);
|
|
@@ -79,11 +83,15 @@ __reExport(contracts_exports, require("./YearnV2AdapterContract.js"), module.exp
|
|
|
79
83
|
...require("./InfinifiGatewayAdapterContract.js"),
|
|
80
84
|
...require("./InfinifiUnwindingGatewayAdapterContract.js"),
|
|
81
85
|
...require("./InfraredVaultAdapterContract.js"),
|
|
86
|
+
...require("./KelpLRTDepositPoolAdapterContract.js"),
|
|
87
|
+
...require("./KelpLRTWithdrawalManagerAdapterContract.js"),
|
|
82
88
|
...require("./KodiakIslandGatewayAdapterContract.js"),
|
|
83
89
|
...require("./LidoV1AdapterContract.js"),
|
|
84
90
|
...require("./MellowClaimerAdapterContract.js"),
|
|
91
|
+
...require("./MellowDepositQueueAdapterContract.js"),
|
|
85
92
|
...require("./MellowDVVAdapterContract.js"),
|
|
86
93
|
...require("./MellowERC4626VaultAdapterContract.js"),
|
|
94
|
+
...require("./MellowRedeemQueueAdapterContract.js"),
|
|
87
95
|
...require("./MellowVaultAdapterContract.js"),
|
|
88
96
|
...require("./MellowWrapperAdapterContract.js"),
|
|
89
97
|
...require("./MidasIssuanceVaultAdapterContract.js"),
|
|
@@ -43,6 +43,8 @@ var AdapterType = /* @__PURE__ */ ((AdapterType2) => {
|
|
|
43
43
|
AdapterType2["INFINIFI_GATEWAY"] = "INFINIFI_GATEWAY";
|
|
44
44
|
AdapterType2["INFINIFI_UNWINDING"] = "INFINIFI_UNWINDING";
|
|
45
45
|
AdapterType2["INFRARED_VAULT"] = "INFRARED_VAULT";
|
|
46
|
+
AdapterType2["KELP_DEPOSIT"] = "KELP_DEPOSIT";
|
|
47
|
+
AdapterType2["KELP_WITHDRAWAL"] = "KELP_WITHDRAWAL";
|
|
46
48
|
AdapterType2["KODIAK_ISLAND_GATEWAY"] = "KODIAK_ISLAND_GATEWAY";
|
|
47
49
|
AdapterType2["LIDO_V1"] = "LIDO_V1";
|
|
48
50
|
AdapterType2["LIDO_WSTETH_V1"] = "LIDO_WSTETH_V1";
|
|
@@ -51,6 +53,8 @@ var AdapterType = /* @__PURE__ */ ((AdapterType2) => {
|
|
|
51
53
|
AdapterType2["MELLOW_ERC4626_VAULT"] = "MELLOW_ERC4626_VAULT";
|
|
52
54
|
AdapterType2["MELLOW_LRT_VAULT"] = "MELLOW_LRT_VAULT";
|
|
53
55
|
AdapterType2["MELLOW_WRAPPER"] = "MELLOW_WRAPPER";
|
|
56
|
+
AdapterType2["MELLOW_DEPOSIT"] = "MELLOW_DEPOSIT";
|
|
57
|
+
AdapterType2["MELLOW_REDEEM"] = "MELLOW_REDEEM";
|
|
54
58
|
AdapterType2["MIDAS_ISSUANCE_VAULT"] = "MIDAS_ISSUANCE_VAULT";
|
|
55
59
|
AdapterType2["MIDAS_REDEMPTION_VAULT"] = "MIDAS_REDEMPTION_VAULT";
|
|
56
60
|
AdapterType2["PENDLE_ROUTER"] = "PENDLE_ROUTER";
|
|
@@ -48,7 +48,8 @@ const SUPPORTED_NETWORKS = [
|
|
|
48
48
|
"Etherlink",
|
|
49
49
|
"Hemi",
|
|
50
50
|
"Lisk",
|
|
51
|
-
"Plasma"
|
|
51
|
+
"Plasma",
|
|
52
|
+
"Somnia"
|
|
52
53
|
];
|
|
53
54
|
const NetworkType = import_v4.z.enum(SUPPORTED_NETWORKS);
|
|
54
55
|
function withPublicNode(chain, subdomain) {
|
|
@@ -184,9 +185,7 @@ const chains = {
|
|
|
184
185
|
},
|
|
185
186
|
rpcUrls: {
|
|
186
187
|
default: {
|
|
187
|
-
http: [
|
|
188
|
-
"https://permissionless-staging.gearbox.foundation/api/proxy/rpc/143"
|
|
189
|
-
]
|
|
188
|
+
http: ["https://rpc-mainnet.monadinfra.com"]
|
|
190
189
|
}
|
|
191
190
|
},
|
|
192
191
|
blockExplorers: {
|
|
@@ -338,6 +337,40 @@ const chains = {
|
|
|
338
337
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
339
338
|
}
|
|
340
339
|
}
|
|
340
|
+
}),
|
|
341
|
+
Somnia: (0, import_viem.defineChain)({
|
|
342
|
+
id: 5031,
|
|
343
|
+
name: "Somnia",
|
|
344
|
+
nativeCurrency: {
|
|
345
|
+
name: "Somnia",
|
|
346
|
+
symbol: "STT",
|
|
347
|
+
decimals: 18
|
|
348
|
+
},
|
|
349
|
+
rpcUrls: {
|
|
350
|
+
default: {
|
|
351
|
+
http: ["https://api.infra.mainnet.somnia.network"]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
blockExplorers: {
|
|
355
|
+
default: {
|
|
356
|
+
name: "Somnia Explorer",
|
|
357
|
+
url: "https://explorer.somnia.network"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
contracts: {
|
|
361
|
+
multicall3: {
|
|
362
|
+
address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",
|
|
363
|
+
blockCreated: 38516341
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
blockTime: 200,
|
|
367
|
+
network: "Somnia",
|
|
368
|
+
defaultMarketConfigurators: {},
|
|
369
|
+
isPublic: false,
|
|
370
|
+
wellKnownToken: {
|
|
371
|
+
address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
|
|
372
|
+
symbol: "USDT"
|
|
373
|
+
}
|
|
341
374
|
})
|
|
342
375
|
};
|
|
343
376
|
const networkByChainId = Object.values(chains).reduce((acc, chain) => {
|
|
@@ -105,7 +105,8 @@ const ADDRESS_PROVIDER = {
|
|
|
105
105
|
Etherlink: import_addresses.NOT_DEPLOYED,
|
|
106
106
|
Hemi: import_addresses.NOT_DEPLOYED,
|
|
107
107
|
Lisk: import_addresses.NOT_DEPLOYED,
|
|
108
|
-
Plasma: import_addresses.NOT_DEPLOYED
|
|
108
|
+
Plasma: import_addresses.NOT_DEPLOYED,
|
|
109
|
+
Somnia: import_addresses.NOT_DEPLOYED
|
|
109
110
|
};
|
|
110
111
|
const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
|
|
111
112
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -46,7 +46,8 @@ const TIMELOCK = {
|
|
|
46
46
|
Etherlink: NOT_DEPLOYED,
|
|
47
47
|
Hemi: NOT_DEPLOYED,
|
|
48
48
|
Lisk: NOT_DEPLOYED,
|
|
49
|
-
Plasma: NOT_DEPLOYED
|
|
49
|
+
Plasma: NOT_DEPLOYED,
|
|
50
|
+
Somnia: NOT_DEPLOYED
|
|
50
51
|
};
|
|
51
52
|
const GEARBOX_MULTISIG = {
|
|
52
53
|
Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
|
|
@@ -64,7 +65,8 @@ const GEARBOX_MULTISIG = {
|
|
|
64
65
|
Etherlink: NOT_DEPLOYED,
|
|
65
66
|
Hemi: NOT_DEPLOYED,
|
|
66
67
|
Lisk: NOT_DEPLOYED,
|
|
67
|
-
Plasma: NOT_DEPLOYED
|
|
68
|
+
Plasma: NOT_DEPLOYED,
|
|
69
|
+
Somnia: NOT_DEPLOYED
|
|
68
70
|
};
|
|
69
71
|
const GEARBOX_RISK_CURATORS = {
|
|
70
72
|
Mainnet: [TIMELOCK.Mainnet],
|
|
@@ -82,7 +84,8 @@ const GEARBOX_RISK_CURATORS = {
|
|
|
82
84
|
Etherlink: [],
|
|
83
85
|
Hemi: [],
|
|
84
86
|
Lisk: [],
|
|
85
|
-
Plasma: []
|
|
87
|
+
Plasma: [],
|
|
88
|
+
Somnia: []
|
|
86
89
|
};
|
|
87
90
|
const DEPRECIATED_POOLS = {
|
|
88
91
|
Mainnet: {
|
|
@@ -102,7 +105,8 @@ const DEPRECIATED_POOLS = {
|
|
|
102
105
|
Etherlink: {},
|
|
103
106
|
Hemi: {},
|
|
104
107
|
Lisk: {},
|
|
105
|
-
Plasma: {}
|
|
108
|
+
Plasma: {},
|
|
109
|
+
Somnia: {}
|
|
106
110
|
};
|
|
107
111
|
// Annotate the CommonJS export names for ESM import in node:
|
|
108
112
|
0 && (module.exports = {
|
|
@@ -51,8 +51,9 @@ const ADDRESS_PROVIDER_BLOCK = {
|
|
|
51
51
|
// arbitrary not deployed yet
|
|
52
52
|
Lisk: 18934260n,
|
|
53
53
|
// arbitrary not deployed yet
|
|
54
|
-
Plasma: 670918n
|
|
54
|
+
Plasma: 670918n,
|
|
55
55
|
// arbitrary not deployed yet
|
|
56
|
+
Somnia: 147687418n
|
|
56
57
|
};
|
|
57
58
|
const BLOCK_DURATION_LOCAL = {
|
|
58
59
|
Mainnet: 12050,
|
|
@@ -71,7 +72,8 @@ const BLOCK_DURATION_LOCAL = {
|
|
|
71
72
|
Etherlink: 1e3,
|
|
72
73
|
Hemi: 12e3,
|
|
73
74
|
Lisk: 2e3,
|
|
74
|
-
Plasma: 1e3
|
|
75
|
+
Plasma: 1e3,
|
|
76
|
+
Somnia: 200
|
|
75
77
|
};
|
|
76
78
|
const DEFAULT_DURATION = 12e3;
|
|
77
79
|
const BLOCK_DURATION = Object.values(import_chain.chains).reduce(
|
|
@@ -333,7 +333,8 @@ class RouterV300Contract extends import_AbstractRouterContract.AbstractRouterCon
|
|
|
333
333
|
Etherlink: "0x0",
|
|
334
334
|
Hemi: "0x0",
|
|
335
335
|
Lisk: "0x0",
|
|
336
|
-
Plasma: "0x0"
|
|
336
|
+
Plasma: "0x0",
|
|
337
|
+
Somnia: "0x0"
|
|
337
338
|
};
|
|
338
339
|
const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.networkType];
|
|
339
340
|
const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
|