@curvefi/api 2.56.7 → 2.56.9

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.
@@ -0,0 +1,203 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "DECIMALS",
5
+ "outputs": [
6
+ {
7
+ "internalType": "uint256",
8
+ "name": "",
9
+ "type": "uint256"
10
+ }
11
+ ],
12
+ "stateMutability": "view",
13
+ "type": "function"
14
+ },
15
+ {
16
+ "inputs": [],
17
+ "name": "baseFee",
18
+ "outputs": [
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "",
22
+ "type": "uint256"
23
+ }
24
+ ],
25
+ "stateMutability": "view",
26
+ "type": "function"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "baseFeeScalar",
31
+ "outputs": [
32
+ {
33
+ "internalType": "uint32",
34
+ "name": "",
35
+ "type": "uint32"
36
+ }
37
+ ],
38
+ "stateMutability": "view",
39
+ "type": "function"
40
+ },
41
+ {
42
+ "inputs": [],
43
+ "name": "blobBaseFee",
44
+ "outputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "stateMutability": "view",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "blobBaseFeeScalar",
57
+ "outputs": [
58
+ {
59
+ "internalType": "uint32",
60
+ "name": "",
61
+ "type": "uint32"
62
+ }
63
+ ],
64
+ "stateMutability": "view",
65
+ "type": "function"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "decimals",
70
+ "outputs": [
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "",
74
+ "type": "uint256"
75
+ }
76
+ ],
77
+ "stateMutability": "pure",
78
+ "type": "function"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "gasPrice",
83
+ "outputs": [
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "",
87
+ "type": "uint256"
88
+ }
89
+ ],
90
+ "stateMutability": "view",
91
+ "type": "function"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "bytes",
97
+ "name": "_data",
98
+ "type": "bytes"
99
+ }
100
+ ],
101
+ "name": "getL1Fee",
102
+ "outputs": [
103
+ {
104
+ "internalType": "uint256",
105
+ "name": "",
106
+ "type": "uint256"
107
+ }
108
+ ],
109
+ "stateMutability": "view",
110
+ "type": "function"
111
+ },
112
+ {
113
+ "inputs": [
114
+ {
115
+ "internalType": "bytes",
116
+ "name": "_data",
117
+ "type": "bytes"
118
+ }
119
+ ],
120
+ "name": "getL1GasUsed",
121
+ "outputs": [
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "stateMutability": "view",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [],
133
+ "name": "isEcotone",
134
+ "outputs": [
135
+ {
136
+ "internalType": "bool",
137
+ "name": "",
138
+ "type": "bool"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "l1BaseFee",
147
+ "outputs": [
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "stateMutability": "view",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "overhead",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "scalar",
173
+ "outputs": [
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "setEcotone",
186
+ "outputs": [],
187
+ "stateMutability": "nonpayable",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "version",
193
+ "outputs": [
194
+ {
195
+ "internalType": "string",
196
+ "name": "",
197
+ "type": "string"
198
+ }
199
+ ],
200
+ "stateMutability": "view",
201
+ "type": "function"
202
+ }
203
+ ]
@@ -46,7 +46,7 @@ export var ALIASES_POLYGON = lowerCaseValues({
46
46
  });
47
47
  export var ALIASES_FANTOM = lowerCaseValues({
48
48
  "crv": "0x1E4F97b9f9F913c46F1632781732927B9019C68b",
49
- "gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
49
+ "gauge_factory": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
50
50
  "voting_escrow": "0xb75dca485e21a77e1b433ecacb74475fc67e259c",
51
51
  "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
52
52
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
@@ -66,7 +66,7 @@ export var ALIASES_FANTOM = lowerCaseValues({
66
66
  });
67
67
  export var ALIASES_AVALANCHE = lowerCaseValues({
68
68
  "crv": "0x47536F17F4fF30e64A96a7555826b8f9e66ec468",
69
- "gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
69
+ "gauge_factory": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
70
70
  "voting_escrow": "0xc55837710bc500f1e3c7bb9dd1d51f7c5647e657",
71
71
  "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
72
72
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
@@ -124,6 +124,7 @@ export var ALIASES_OPTIMISM = lowerCaseValues({
124
124
  "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
125
125
  "factory_admin": "",
126
126
  "gas_oracle": '0xc0d3C0d3C0d3c0D3C0D3C0d3C0d3C0D3C0D3000f',
127
+ "gas_oracle_blob": '0x420000000000000000000000000000000000000f',
127
128
  });
128
129
  export var ALIASES_XDAI = lowerCaseValues({
129
130
  "crv": "0x712b3d230f3c1c19db860d80619288b1f0bdd0bd",
@@ -265,10 +266,11 @@ export var ALIASES_BASE = lowerCaseValues({
265
266
  "factory_admin": "0x0000000000000000000000000000000000000000",
266
267
  "stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
267
268
  "gas_oracle": '0xc0d3C0d3C0d3c0D3C0D3C0d3C0d3C0D3C0D3000f',
269
+ "gas_oracle_blob": '0x420000000000000000000000000000000000000f',
268
270
  });
269
271
  export var ALIASES_BSC = lowerCaseValues({
270
272
  "crv": "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
271
- "gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
273
+ "gauge_factory": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
272
274
  "voting_escrow": "0x0000000000000000000000000000000000000000",
273
275
  "fee_distributor": "0x0000000000000000000000000000000000000000",
274
276
  "gauge_controller": "0x0000000000000000000000000000000000000000",
package/lib/curve.js CHANGED
@@ -87,6 +87,7 @@ import twocryptoFactoryABI from './constants/abis/factory-twocrypto-ng.json' ass
87
87
  import tricryptoFactoryABI from './constants/abis/factory-tricrypto.json' assert { type: 'json' };
88
88
  import stableNgFactoryABI from './constants/abis/factory-stable-ng.json' assert { type: 'json' };
89
89
  import gasOracleABI from './constants/abis/gas_oracle_optimism.json' assert { type: 'json' };
90
+ import gasOracleBlobABI from './constants/abis/gas_oracle_optimism_blob.json' assert { type: 'json' };
90
91
  import votingProposalABI from './constants/abis/voting_proposal.json' assert { type: 'json' };
91
92
  import circulatingSupplyABI from './constants/abis/circulating_supply.json' assert { type: 'json' };
92
93
  import { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, } from './constants/pools/index.js';
@@ -1140,6 +1141,7 @@ var Curve = /** @class */ (function () {
1140
1141
  if (L2Networks.includes(this.chainId)) {
1141
1142
  curveInstance_1 = this;
1142
1143
  curveInstance_1.setContract(curveInstance_1.constants.ALIASES.gas_oracle, gasOracleABI);
1144
+ curveInstance_1.setContract(curveInstance_1.constants.ALIASES.gas_oracle_blob, gasOracleBlobABI);
1143
1145
  // @ts-ignore
1144
1146
  if (AbstractProvider.prototype.originalEstimate) {
1145
1147
  // @ts-ignore
package/lib/utils.js CHANGED
@@ -727,7 +727,7 @@ export var getGasPriceFromL2 = function () { return __awaiter(void 0, void 0, vo
727
727
  return [2 /*return*/, 0.1 * 1e9]; // constant 0.1 gwei
728
728
  }
729
729
  if (!L2Networks.includes(curve.chainId)) return [3 /*break*/, 2];
730
- return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gas_oracle].contract.gasPrice()];
730
+ return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gas_oracle_blob].contract.gasPrice({ "gasPrice": "0x2000000" })];
731
731
  case 1:
732
732
  gasPrice = _a.sent();
733
733
  return [2 /*return*/, Number(gasPrice)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.56.7",
3
+ "version": "2.56.9",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",