@curvefi/api 2.5.1 → 2.8.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.
@@ -2,3 +2,6 @@ export declare const ALIASES_ETHEREUM: import("../interfaces").IDict<string>;
2
2
  export declare const ALIASES_POLYGON: import("../interfaces").IDict<string>;
3
3
  export declare const ALIASES_FANTOM: import("../interfaces").IDict<string>;
4
4
  export declare const ALIASES_AVALANCHE: import("../interfaces").IDict<string>;
5
+ export declare const ALIASES_ARBITRUM: import("../interfaces").IDict<string>;
6
+ export declare const ALIASES_OPTIMISM: import("../interfaces").IDict<string>;
7
+ export declare const ALIASES_XDAI: import("../interfaces").IDict<string>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALIASES_AVALANCHE = exports.ALIASES_FANTOM = exports.ALIASES_POLYGON = exports.ALIASES_ETHEREUM = void 0;
3
+ exports.ALIASES_XDAI = exports.ALIASES_OPTIMISM = exports.ALIASES_ARBITRUM = exports.ALIASES_AVALANCHE = exports.ALIASES_FANTOM = exports.ALIASES_POLYGON = exports.ALIASES_ETHEREUM = void 0;
4
4
  var utils_1 = require("./utils");
5
5
  exports.ALIASES_ETHEREUM = (0, utils_1.lowerCaseValues)({
6
6
  "crv": "0xD533a949740bb3306d119CC777fa900bA034cd52",
@@ -50,3 +50,39 @@ exports.ALIASES_AVALANCHE = (0, utils_1.lowerCaseValues)({
50
50
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
51
51
  "registry_exchange": "",
52
52
  });
53
+ exports.ALIASES_ARBITRUM = (0, utils_1.lowerCaseValues)({
54
+ "crv": "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978",
55
+ "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
56
+ "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
57
+ "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
58
+ "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
59
+ "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
60
+ "deposit_and_stake": "0xB7De33440B7171159a9718CBE748086cecDd9685",
61
+ "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
62
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
63
+ "registry_exchange": "",
64
+ });
65
+ exports.ALIASES_OPTIMISM = (0, utils_1.lowerCaseValues)({
66
+ "crv": "0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53",
67
+ "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
68
+ "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
69
+ "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
70
+ "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
71
+ "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
72
+ "deposit_and_stake": "0xB7De33440B7171159a9718CBE748086cecDd9685",
73
+ "factory": '0x2db0E83599a91b508Ac268a6197b8B14F5e72840',
74
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
75
+ "registry_exchange": "",
76
+ });
77
+ exports.ALIASES_XDAI = (0, utils_1.lowerCaseValues)({
78
+ "crv": "0x712b3d230f3c1c19db860d80619288b1f0bdd0bd",
79
+ "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
80
+ "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
81
+ "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
82
+ "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
83
+ "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
84
+ "deposit_and_stake": "0xB7De33440B7171159a9718CBE748086cecDd9685",
85
+ "factory": '0xD19Baeadc667Cf2015e395f2B08668Ef120f41F5',
86
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
87
+ "registry_exchange": "",
88
+ });
@@ -0,0 +1,7 @@
1
+ export declare const COINS_ARBITRUM: {
2
+ [index: string]: string;
3
+ };
4
+ export declare const cTokensArbitrum: never[];
5
+ export declare const yTokensArbitrum: never[];
6
+ export declare const ycTokensArbitrum: never[];
7
+ export declare const aTokensArbitrum: never[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aTokensArbitrum = exports.ycTokensArbitrum = exports.yTokensArbitrum = exports.cTokensArbitrum = exports.COINS_ARBITRUM = void 0;
4
+ var utils_1 = require("../utils");
5
+ exports.COINS_ARBITRUM = (0, utils_1.lowerCaseValues)({
6
+ 'crv': '0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978',
7
+ // --- USD ---
8
+ 'usdc': '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
9
+ 'usdt': '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
10
+ '2crv': '0x7f90122bf0700f9e7e1f688fe926940e8839f353',
11
+ // --- EUR ---
12
+ 'eurs': '0xd22a58f79e9481d1a88e00c343885a588b34b68b',
13
+ // --- BTC ---
14
+ 'wbtc': '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f',
15
+ 'renbtc': '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
16
+ // --- ETH ---
17
+ "eth": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
18
+ "weth": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
19
+ });
20
+ exports.cTokensArbitrum = []; //.map((a) => a.toLowerCase());
21
+ exports.yTokensArbitrum = []; //.map((a) => a.toLowerCase());
22
+ exports.ycTokensArbitrum = []; //.map((a) => a.toLowerCase());
23
+ exports.aTokensArbitrum = []; //.map((a) => a.toLowerCase());
@@ -0,0 +1,7 @@
1
+ export declare const COINS_OPTIMISM: {
2
+ [index: string]: string;
3
+ };
4
+ export declare const cTokensOptimism: never[];
5
+ export declare const yTokensOptimism: never[];
6
+ export declare const ycTokensOptimism: never[];
7
+ export declare const aTokensOptimism: never[];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aTokensOptimism = exports.ycTokensOptimism = exports.yTokensOptimism = exports.cTokensOptimism = exports.COINS_OPTIMISM = void 0;
4
+ var utils_1 = require("../utils");
5
+ exports.COINS_OPTIMISM = (0, utils_1.lowerCaseValues)({
6
+ 'crv': '0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53',
7
+ // --- USD ---
8
+ 'dai': '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
9
+ 'usdc': '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
10
+ 'usdt': '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
11
+ 'susd': '0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9',
12
+ '3crv': '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
13
+ // --- ETH ---
14
+ 'eth': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
15
+ 'weth': '0x4200000000000000000000000000000000000006',
16
+ 'seth': '0xe405de8f52ba7559f9df3c368500b6e6ae6cee49',
17
+ });
18
+ exports.cTokensOptimism = []; //.map((a) => a.toLowerCase());
19
+ exports.yTokensOptimism = []; //.map((a) => a.toLowerCase());
20
+ exports.ycTokensOptimism = []; //.map((a) => a.toLowerCase());
21
+ exports.aTokensOptimism = []; //.map((a) => a.toLowerCase());
@@ -0,0 +1,7 @@
1
+ export declare const COINS_XDAI: {
2
+ [index: string]: string;
3
+ };
4
+ export declare const cTokensXDai: never[];
5
+ export declare const yTokensXDai: never[];
6
+ export declare const ycTokensXDai: never[];
7
+ export declare const aTokensXDai: never[];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aTokensXDai = exports.ycTokensXDai = exports.yTokensXDai = exports.cTokensXDai = exports.COINS_XDAI = void 0;
4
+ var utils_1 = require("../utils");
5
+ exports.COINS_XDAI = (0, utils_1.lowerCaseValues)({
6
+ 'crv': '0x712b3d230f3c1c19db860d80619288b1f0bdd0bd',
7
+ // --- USD ---
8
+ 'wxdai': '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
9
+ 'usdc': '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83',
10
+ 'usdt': '0x4ECaBa5870353805a9F068101A40E0f32ed605C6',
11
+ 'rai': '0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa',
12
+ 'x3crv': '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
13
+ });
14
+ exports.cTokensXDai = []; //.map((a) => a.toLowerCase());
15
+ exports.yTokensXDai = []; //.map((a) => a.toLowerCase());
16
+ exports.ycTokensXDai = []; //.map((a) => a.toLowerCase());
17
+ exports.aTokensXDai = []; //.map((a) => a.toLowerCase());
@@ -0,0 +1,4 @@
1
+ import { IPoolData } from "../../interfaces";
2
+ export declare const POOLS_DATA_ARBITRUM: {
3
+ [index: string]: IPoolData;
4
+ };
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.POOLS_DATA_ARBITRUM = void 0;
7
+ var utils_1 = require("../utils");
8
+ var swap_json_1 = __importDefault(require("../abis/2pool/swap.json"));
9
+ var swap_json_2 = __importDefault(require("../abis/tricrypto2/swap.json"));
10
+ var deposit_json_1 = __importDefault(require("../abis/tricrypto2/deposit.json"));
11
+ var swap_json_3 = __importDefault(require("../abis/eursusd2/swap.json"));
12
+ var zap_json_1 = __importDefault(require("../abis/eursusd2/zap.json"));
13
+ var swap_json_4 = __importDefault(require("../abis/ren-arbitrum/swap.json"));
14
+ var gauge_child_json_1 = __importDefault(require("../abis/gauge_child.json"));
15
+ exports.POOLS_DATA_ARBITRUM = (0, utils_1.lowerCasePoolDataAddresses)({
16
+ '2pool': {
17
+ name: "2pool",
18
+ full_name: "2pool",
19
+ symbol: "2pool",
20
+ reference_asset: "USD",
21
+ swap_address: '0x7f90122bf0700f9e7e1f688fe926940e8839f353',
22
+ token_address: '0x7f90122bf0700f9e7e1f688fe926940e8839f353',
23
+ // gauge_address: '0xbF7E49483881C76487b0989CD7d9A8239B20CA41', // Rewards-Only
24
+ gauge_address: '0xCE5F24B7A95e9cBa7df4B54E911B4A3Dc8CDAf6f',
25
+ is_plain: true,
26
+ underlying_coins: ['USDC', 'USDT'],
27
+ wrapped_coins: ['USDC', 'USDT'],
28
+ underlying_coin_addresses: [
29
+ '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
30
+ '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
31
+ ],
32
+ wrapped_coin_addresses: [
33
+ '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
34
+ '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
35
+ ],
36
+ underlying_decimals: [6, 6],
37
+ wrapped_decimals: [6, 6],
38
+ swap_abi: swap_json_1.default,
39
+ gauge_abi: gauge_child_json_1.default,
40
+ },
41
+ tricrypto: {
42
+ name: "tricrypto",
43
+ full_name: "tricrypto",
44
+ symbol: "tricrypto",
45
+ reference_asset: 'CRYPTO',
46
+ is_crypto: true,
47
+ swap_address: '0x960ea3e3C7FB317332d990873d354E18d7645590',
48
+ token_address: '0x8e0B8c8BB9db49a46697F3a5Bb8A308e744821D2',
49
+ // gauge_address: '0x97E2768e8E73511cA874545DC5Ff8067eB19B787', // Rewards-Only
50
+ gauge_address: '0x555766f3da968ecBefa690Ffd49A2Ac02f47aa5f',
51
+ deposit_address: '0xF97c707024ef0DD3E77a0824555a46B622bfB500',
52
+ underlying_coins: ['USDT', 'WBTC', 'ETH'],
53
+ wrapped_coins: ['USDT', 'WBTC', 'WETH'],
54
+ underlying_coin_addresses: [
55
+ '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
56
+ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f',
57
+ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
58
+ ],
59
+ wrapped_coin_addresses: [
60
+ '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
61
+ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f',
62
+ '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
63
+ ],
64
+ underlying_decimals: [6, 8, 18],
65
+ wrapped_decimals: [6, 8, 18],
66
+ swap_abi: swap_json_2.default,
67
+ gauge_abi: gauge_child_json_1.default,
68
+ deposit_abi: deposit_json_1.default,
69
+ },
70
+ 'ren': {
71
+ name: "ren",
72
+ full_name: "ren",
73
+ symbol: "ren",
74
+ reference_asset: 'BTC',
75
+ is_plain: true,
76
+ swap_address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb',
77
+ token_address: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb',
78
+ // gauge_address: '0xC2b1DF84112619D190193E48148000e3990Bf627', // Rewards-Only
79
+ gauge_address: '0xDB3fd1bfC67b5D4325cb31C04E0Cae52f1787FD6',
80
+ underlying_coins: ['WBTC', 'renBTC'],
81
+ wrapped_coins: ['WBTC', 'renBTC'],
82
+ underlying_coin_addresses: [
83
+ '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f',
84
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
85
+ ],
86
+ wrapped_coin_addresses: [
87
+ '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f',
88
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
89
+ ],
90
+ underlying_decimals: [8, 8],
91
+ wrapped_decimals: [8, 8],
92
+ swap_abi: swap_json_4.default,
93
+ gauge_abi: gauge_child_json_1.default,
94
+ },
95
+ eursusd: {
96
+ name: "eursusd",
97
+ full_name: "eursusd",
98
+ symbol: "eursusd",
99
+ reference_asset: 'CRYPTO',
100
+ swap_address: '0xA827a652Ead76c6B0b3D19dba05452E06e25c27e',
101
+ token_address: '0x3dFe1324A0ee9d86337d06aEB829dEb4528DB9CA',
102
+ // gauge_address: '0x37C7ef6B0E23C9bd9B620A6daBbFEC13CE30D824', // Rewards-Only
103
+ gauge_address: '0x6339eF8Df0C2d3d3E7eE697E241666a916B81587',
104
+ deposit_address: '0x25e2e8d104BC1A70492e2BE32dA7c1f8367F9d2c',
105
+ is_meta: true,
106
+ is_crypto: true,
107
+ base_pool: '2pool',
108
+ underlying_coins: ['EURS', 'USDC', 'USDT'],
109
+ wrapped_coins: ['EURS', '2CRV'],
110
+ underlying_coin_addresses: [
111
+ '0xd22a58f79e9481d1a88e00c343885a588b34b68b',
112
+ '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
113
+ '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
114
+ ],
115
+ wrapped_coin_addresses: [
116
+ '0xd22a58f79e9481d1a88e00c343885a588b34b68b',
117
+ '0x7f90122bf0700f9e7e1f688fe926940e8839f353',
118
+ ],
119
+ underlying_decimals: [2, 6, 6],
120
+ wrapped_decimals: [2, 18],
121
+ swap_abi: swap_json_3.default,
122
+ gauge_abi: gauge_child_json_1.default,
123
+ deposit_abi: zap_json_1.default,
124
+ },
125
+ });
@@ -2,4 +2,7 @@ import { POOLS_DATA_ETHEREUM } from "./ethereum";
2
2
  import { POOLS_DATA_POLYGON } from "./polygon";
3
3
  import { POOLS_DATA_FANTOM } from "./fantom";
4
4
  import { POOLS_DATA_AVALANCHE } from "./avalanche";
5
- export { POOLS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, };
5
+ import { POOLS_DATA_ARBITRUM } from "./arbitrum";
6
+ import { POOLS_DATA_OPTIMISM } from "./optimism";
7
+ import { POOLS_DATA_XDAI } from "./xdai";
8
+ export { POOLS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POOLS_DATA_AVALANCHE = exports.POOLS_DATA_FANTOM = exports.POOLS_DATA_POLYGON = exports.POOLS_DATA_ETHEREUM = void 0;
3
+ exports.POOLS_DATA_XDAI = exports.POOLS_DATA_OPTIMISM = exports.POOLS_DATA_ARBITRUM = exports.POOLS_DATA_AVALANCHE = exports.POOLS_DATA_FANTOM = exports.POOLS_DATA_POLYGON = exports.POOLS_DATA_ETHEREUM = void 0;
4
4
  var ethereum_1 = require("./ethereum");
5
5
  Object.defineProperty(exports, "POOLS_DATA_ETHEREUM", { enumerable: true, get: function () { return ethereum_1.POOLS_DATA_ETHEREUM; } });
6
6
  var polygon_1 = require("./polygon");
@@ -9,3 +9,9 @@ var fantom_1 = require("./fantom");
9
9
  Object.defineProperty(exports, "POOLS_DATA_FANTOM", { enumerable: true, get: function () { return fantom_1.POOLS_DATA_FANTOM; } });
10
10
  var avalanche_1 = require("./avalanche");
11
11
  Object.defineProperty(exports, "POOLS_DATA_AVALANCHE", { enumerable: true, get: function () { return avalanche_1.POOLS_DATA_AVALANCHE; } });
12
+ var arbitrum_1 = require("./arbitrum");
13
+ Object.defineProperty(exports, "POOLS_DATA_ARBITRUM", { enumerable: true, get: function () { return arbitrum_1.POOLS_DATA_ARBITRUM; } });
14
+ var optimism_1 = require("./optimism");
15
+ Object.defineProperty(exports, "POOLS_DATA_OPTIMISM", { enumerable: true, get: function () { return optimism_1.POOLS_DATA_OPTIMISM; } });
16
+ var xdai_1 = require("./xdai");
17
+ Object.defineProperty(exports, "POOLS_DATA_XDAI", { enumerable: true, get: function () { return xdai_1.POOLS_DATA_XDAI; } });
@@ -0,0 +1,4 @@
1
+ import { IPoolData } from "../../interfaces";
2
+ export declare const POOLS_DATA_OPTIMISM: {
3
+ [index: string]: IPoolData;
4
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.POOLS_DATA_OPTIMISM = void 0;
7
+ var swap_json_1 = __importDefault(require("../abis/3pool-optimism/swap.json"));
8
+ var gauge_rewards_only_json_1 = __importDefault(require("../abis/gauge_rewards_only.json"));
9
+ var utils_1 = require("../utils");
10
+ exports.POOLS_DATA_OPTIMISM = (0, utils_1.lowerCasePoolDataAddresses)({
11
+ '3pool': {
12
+ name: "3pool",
13
+ full_name: "3pool",
14
+ symbol: "3pool",
15
+ reference_asset: 'USD',
16
+ is_plain: true,
17
+ swap_address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
18
+ token_address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
19
+ gauge_address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353',
20
+ underlying_coins: ['DAI', 'USDC', 'USDT'],
21
+ wrapped_coins: ['DAI', 'USDC', 'USDT'],
22
+ underlying_coin_addresses: [
23
+ '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
24
+ '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
25
+ '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
26
+ ],
27
+ wrapped_coin_addresses: [
28
+ '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
29
+ '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
30
+ '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
31
+ ],
32
+ underlying_decimals: [18, 6, 6],
33
+ wrapped_decimals: [18, 6, 6],
34
+ swap_abi: swap_json_1.default,
35
+ gauge_abi: gauge_rewards_only_json_1.default,
36
+ },
37
+ });
@@ -0,0 +1,4 @@
1
+ import { IPoolData } from "../../interfaces";
2
+ export declare const POOLS_DATA_XDAI: {
3
+ [index: string]: IPoolData;
4
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.POOLS_DATA_XDAI = void 0;
7
+ var swap_json_1 = __importDefault(require("../abis/3pool/swap.json"));
8
+ var swap_json_2 = __importDefault(require("../abis/rai/swap.json"));
9
+ var deposit_json_1 = __importDefault(require("../abis/rai/deposit.json"));
10
+ var gauge_rewards_only_json_1 = __importDefault(require("../abis/gauge_rewards_only.json"));
11
+ var streamer_json_1 = __importDefault(require("../abis/streamer.json"));
12
+ var utils_1 = require("../utils");
13
+ exports.POOLS_DATA_XDAI = (0, utils_1.lowerCasePoolDataAddresses)({
14
+ '3pool': {
15
+ name: "3pool",
16
+ full_name: "3pool",
17
+ symbol: "3pool",
18
+ reference_asset: 'USD',
19
+ swap_address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353',
20
+ token_address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
21
+ gauge_address: '0x78CF256256C8089d68Cde634Cf7cDEFb39286470',
22
+ sCurveRewards_address: '0x6C09F6727113543Fd061a721da512B7eFCDD0267',
23
+ is_plain: true,
24
+ underlying_coins: ['WXDAI', 'USDC', 'USDT'],
25
+ wrapped_coins: ['WXDAI', 'USDC', 'USDT'],
26
+ underlying_coin_addresses: [
27
+ '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
28
+ '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83',
29
+ '0x4ECaBa5870353805a9F068101A40E0f32ed605C6',
30
+ ],
31
+ wrapped_coin_addresses: [
32
+ '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
33
+ '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83',
34
+ '0x4ECaBa5870353805a9F068101A40E0f32ed605C6',
35
+ ],
36
+ underlying_decimals: [18, 6, 6],
37
+ wrapped_decimals: [18, 6, 6],
38
+ swap_abi: swap_json_1.default,
39
+ gauge_abi: gauge_rewards_only_json_1.default,
40
+ sCurveRewards_abi: streamer_json_1.default,
41
+ },
42
+ rai: {
43
+ name: "rai",
44
+ full_name: "rai",
45
+ symbol: "rai",
46
+ reference_asset: 'USD',
47
+ swap_address: '0x85bA9Dfb4a3E4541420Fc75Be02E2B42042D7e46',
48
+ token_address: '0x36390a1Ae126f16C5D222CB1F2AB341dD09f2FEC',
49
+ gauge_address: '0x0000000000000000000000000000000000000000',
50
+ deposit_address: '0xdf6eb52c4A9d7d5964b918c50D47a643Fd7D3D4c',
51
+ is_meta: true,
52
+ base_pool: '3pool',
53
+ underlying_coins: ['RAI', 'WXDAI', 'USDC', 'USDT'],
54
+ wrapped_coins: ['RAI', 'x3CRV'],
55
+ underlying_coin_addresses: [
56
+ '0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa',
57
+ '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
58
+ '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83',
59
+ '0x4ECaBa5870353805a9F068101A40E0f32ed605C6',
60
+ ],
61
+ wrapped_coin_addresses: [
62
+ '0xd7a28aa9c470e7e9d8c676bcd5dd2f40c5683afa',
63
+ '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
64
+ ],
65
+ underlying_decimals: [18, 18, 6, 6],
66
+ wrapped_decimals: [18, 18],
67
+ swap_abi: swap_json_2.default,
68
+ gauge_abi: gauge_rewards_only_json_1.default,
69
+ deposit_abi: deposit_json_1.default,
70
+ },
71
+ });
package/lib/curve.js CHANGED
@@ -80,11 +80,14 @@ var streamer_json_1 = __importDefault(require("./constants/abis/streamer.json"))
80
80
  var factory_json_1 = __importDefault(require("./constants/abis/factory.json"));
81
81
  var factory_crypto_json_1 = __importDefault(require("./constants/abis/factory-crypto.json"));
82
82
  var pools_1 = require("./constants/pools");
83
+ var aliases_1 = require("./constants/aliases");
83
84
  var ethereum_1 = require("./constants/coins/ethereum");
85
+ var optimism_1 = require("./constants/coins/optimism");
84
86
  var polygon_1 = require("./constants/coins/polygon");
85
87
  var fantom_1 = require("./constants/coins/fantom");
86
88
  var avalanche_1 = require("./constants/coins/avalanche");
87
- var aliases_1 = require("./constants/aliases");
89
+ var arbitrum_1 = require("./constants/coins/arbitrum");
90
+ var xdai_1 = require("./constants/coins/xdai");
88
91
  var utils_1 = require("./constants/utils");
89
92
  exports.NETWORK_CONSTANTS = {
90
93
  1: {
@@ -97,6 +100,26 @@ exports.NETWORK_CONSTANTS = {
97
100
  ycTokens: ethereum_1.ycTokensEthereum,
98
101
  aTokens: ethereum_1.aTokensEthereum,
99
102
  },
103
+ 10: {
104
+ NAME: 'optimism',
105
+ ALIASES: aliases_1.ALIASES_OPTIMISM,
106
+ POOLS_DATA: pools_1.POOLS_DATA_OPTIMISM,
107
+ COINS: optimism_1.COINS_OPTIMISM,
108
+ cTokens: optimism_1.cTokensOptimism,
109
+ yTokens: optimism_1.yTokensOptimism,
110
+ ycTokens: optimism_1.ycTokensOptimism,
111
+ aTokens: optimism_1.aTokensOptimism,
112
+ },
113
+ 100: {
114
+ NAME: 'xdai',
115
+ ALIASES: aliases_1.ALIASES_XDAI,
116
+ POOLS_DATA: pools_1.POOLS_DATA_XDAI,
117
+ COINS: xdai_1.COINS_XDAI,
118
+ cTokens: xdai_1.cTokensXDai,
119
+ yTokens: xdai_1.yTokensXDai,
120
+ ycTokens: xdai_1.ycTokensXDai,
121
+ aTokens: xdai_1.aTokensXDai,
122
+ },
100
123
  137: {
101
124
  NAME: 'polygon',
102
125
  ALIASES: aliases_1.ALIASES_POLYGON,
@@ -127,6 +150,16 @@ exports.NETWORK_CONSTANTS = {
127
150
  ycTokens: avalanche_1.ycTokensAvalanche,
128
151
  aTokens: avalanche_1.aTokensAvalanche,
129
152
  },
153
+ 42161: {
154
+ NAME: 'arbitrum',
155
+ ALIASES: aliases_1.ALIASES_ARBITRUM,
156
+ POOLS_DATA: pools_1.POOLS_DATA_ARBITRUM,
157
+ COINS: arbitrum_1.COINS_ARBITRUM,
158
+ cTokens: arbitrum_1.cTokensArbitrum,
159
+ yTokens: arbitrum_1.yTokensArbitrum,
160
+ ycTokens: arbitrum_1.ycTokensArbitrum,
161
+ aTokens: arbitrum_1.aTokensArbitrum,
162
+ },
130
163
  };
131
164
  var Curve = /** @class */ (function () {
132
165
  function Curve() {
@@ -281,10 +314,12 @@ var Curve = /** @class */ (function () {
281
314
  multicallContract: new ethcall_1.Contract(pool.token_address, ERC20_json_1.default),
282
315
  };
283
316
  }
284
- this.contracts[pool.gauge_address] = {
285
- contract: new ethers_1.Contract(pool.gauge_address, pool.gauge_abi, this.signer || this.provider),
286
- multicallContract: new ethcall_1.Contract(pool.gauge_address, pool.gauge_abi),
287
- };
317
+ if (pool.gauge_address !== ethers_1.ethers.constants.AddressZero) {
318
+ this.contracts[pool.gauge_address] = {
319
+ contract: new ethers_1.Contract(pool.gauge_address, pool.gauge_abi, this.signer || this.provider),
320
+ multicallContract: new ethcall_1.Contract(pool.gauge_address, pool.gauge_abi),
321
+ };
322
+ }
288
323
  if (pool.deposit_address && !this.contracts[pool.deposit_address]) {
289
324
  this.contracts[pool.deposit_address] = {
290
325
  contract: new ethers_1.Contract(pool.deposit_address, pool.deposit_abi, this.signer || this.provider),
@@ -25,6 +25,20 @@ function setFactoryZapContracts() {
25
25
  multicallContract: new ethcall_1.Contract(metaSBtcZapAddress, deposit_json_1.default),
26
26
  };
27
27
  }
28
+ else if (this.chainId === 10) {
29
+ var metaUsdZapAddress = "0x167e42a1c7ab4be03764a2222aac57f5f6754411".toLowerCase();
30
+ this.contracts[metaUsdZapAddress] = {
31
+ contract: new ethers_1.Contract(metaUsdZapAddress, deposit_json_1.default, this.signer || this.provider),
32
+ multicallContract: new ethcall_1.Contract(metaUsdZapAddress, deposit_json_1.default),
33
+ };
34
+ }
35
+ else if (this.chainId === 100) {
36
+ var metaUsdZapAddress = "0x87C067fAc25f123554a0E76596BF28cFa37fD5E9".toLowerCase();
37
+ this.contracts[metaUsdZapAddress] = {
38
+ contract: new ethers_1.Contract(metaUsdZapAddress, deposit_json_1.default, this.signer || this.provider),
39
+ multicallContract: new ethcall_1.Contract(metaUsdZapAddress, deposit_json_1.default),
40
+ };
41
+ }
28
42
  else if (this.chainId === 137) {
29
43
  var metaUsdZapAddress = "0x5ab5C56B9db92Ba45a0B46a207286cD83C15C939".toLowerCase();
30
44
  this.contracts[metaUsdZapAddress] = {
@@ -66,5 +80,17 @@ function setFactoryZapContracts() {
66
80
  multicallContract: new ethcall_1.Contract(metaBtcZapAddress, DepositZapMetaBtcPolygon_json_1.default),
67
81
  };
68
82
  }
83
+ else if (this.chainId === 42161) {
84
+ var metaUsdZapAddress = "0x7544Fe3d184b6B55D6B36c3FCA1157eE0Ba30287".toLowerCase();
85
+ this.contracts[metaUsdZapAddress] = {
86
+ contract: new ethers_1.Contract(metaUsdZapAddress, DepositZapFantom_json_1.default, this.signer || this.provider),
87
+ multicallContract: new ethcall_1.Contract(metaUsdZapAddress, DepositZapFantom_json_1.default),
88
+ };
89
+ var metaBtcZapAddress = "0x803A2B40c5a9BB2B86DD630B274Fa2A9202874C2".toLowerCase();
90
+ this.contracts[metaBtcZapAddress] = {
91
+ contract: new ethers_1.Contract(metaBtcZapAddress, DepositZapFantom_json_1.default, this.signer || this.provider),
92
+ multicallContract: new ethcall_1.Contract(metaBtcZapAddress, DepositZapFantom_json_1.default),
93
+ };
94
+ }
69
95
  }
70
96
  exports.setFactoryZapContracts = setFactoryZapContracts;
@@ -3,14 +3,23 @@ export declare const implementationABIDictEthereum: IDict<any>;
3
3
  export declare const implementationABIDictPolygon: IDict<any>;
4
4
  export declare const implementationABIDictFantom: IDict<any>;
5
5
  export declare const implementationABIDictAvalanche: IDict<any>;
6
+ export declare const implementationABIDictArbitrum: IDict<any>;
7
+ export declare const implementationABIDictOptimism: IDict<any>;
8
+ export declare const implementationABIDictXDai: IDict<any>;
6
9
  export declare const implementationBasePoolIdDictEthereum: IDict<string>;
7
10
  export declare const implementationBasePoolIdDictPolygon: IDict<string>;
8
11
  export declare const implementationBasePoolIdDictFantom: IDict<string>;
9
12
  export declare const implementationBasePoolIdDictAvalanche: IDict<string>;
13
+ export declare const implementationBasePoolIdDictArbitrum: IDict<string>;
14
+ export declare const implementationBasePoolIdDictOptimism: IDict<string>;
15
+ export declare const implementationBasePoolIdDictXDai: IDict<string>;
10
16
  export declare const basePoolIdZapDictEthereum: IDict<string>;
11
17
  export declare const basePoolIdZapDictPolygon: IDict<string>;
12
18
  export declare const basePoolIdZapDictFantom: IDict<string>;
13
19
  export declare const basePoolIdZapDictAvalanche: IDict<string>;
20
+ export declare const basePoolIdZapDictArbitrum: IDict<string>;
21
+ export declare const basePoolIdZapDictOptimism: IDict<string>;
22
+ export declare const basePoolIdZapDictXDai: IDict<string>;
14
23
  export declare const NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
15
24
  export declare const NATIVE_TOKENS: {
16
25
  [index: number]: {