defi-kit 1.15.2 → 2.0.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.
- package/dist/arb1.d.mts +9 -9
- package/dist/arb1.d.ts +9 -9
- package/dist/arb1.js +92 -113
- package/dist/arb1.js.map +1 -1
- package/dist/arb1.mjs +2 -2
- package/dist/{chunk-5S7EGMF3.mjs → chunk-AUSHK4AH.mjs} +88 -98
- package/dist/chunk-AUSHK4AH.mjs.map +1 -0
- package/dist/chunk-E7RA4BMW.mjs +47 -0
- package/dist/chunk-E7RA4BMW.mjs.map +1 -0
- package/dist/eth.d.mts +9 -9
- package/dist/eth.d.ts +9 -9
- package/dist/eth.js +92 -113
- package/dist/eth.js.map +1 -1
- package/dist/eth.mjs +2 -2
- package/dist/gno.d.mts +9 -9
- package/dist/gno.d.ts +9 -9
- package/dist/gno.js +92 -113
- package/dist/gno.js.map +1 -1
- package/dist/gno.mjs +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/schema-CKYlQ7oR.d.mts +10976 -0
- package/dist/schema-CKYlQ7oR.d.ts +10976 -0
- package/package.json +16 -16
- package/dist/chunk-5S7EGMF3.mjs.map +0 -1
- package/dist/chunk-PPWDBQS4.mjs +0 -73
- package/dist/chunk-PPWDBQS4.mjs.map +0 -1
- package/dist/schema-UegJFDLi.d.mts +0 -574
- package/dist/schema-UegJFDLi.d.ts +0 -574
package/dist/arb1.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
6
|
var __export = (target, all) => {
|
|
12
7
|
for (var name in all)
|
|
13
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,27 +15,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
15
|
}
|
|
21
16
|
return to;
|
|
22
17
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
19
|
|
|
33
|
-
// node_modules/@dethcrypto/eth-sdk/dist/index.js
|
|
34
|
-
var require_dist = __commonJS({
|
|
35
|
-
"node_modules/@dethcrypto/eth-sdk/dist/index.js"(exports) {
|
|
36
|
-
"use strict";
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.defineConfig = void 0;
|
|
39
|
-
var defineConfig2 = (config) => config;
|
|
40
|
-
exports.defineConfig = defineConfig2;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
20
|
// src/arb1.ts
|
|
45
21
|
var arb1_exports = {};
|
|
46
22
|
__export(arb1_exports, {
|
|
@@ -537,7 +513,7 @@ var stakeTokens_default = [
|
|
|
537
513
|
}
|
|
538
514
|
];
|
|
539
515
|
|
|
540
|
-
// node_modules/@
|
|
516
|
+
// node_modules/@gnosis-guild/eth-sdk-client/index.mjs
|
|
541
517
|
var eth_sdk_client_exports = {};
|
|
542
518
|
__export(eth_sdk_client_exports, {
|
|
543
519
|
getContract: () => getContract,
|
|
@@ -545,7 +521,7 @@ __export(eth_sdk_client_exports, {
|
|
|
545
521
|
getMainnetSdk: () => getMainnetSdk
|
|
546
522
|
});
|
|
547
523
|
|
|
548
|
-
// node_modules/.
|
|
524
|
+
// node_modules/.gnosisguild/eth-sdk-client/esm/index.js
|
|
549
525
|
var import_ethers = require("ethers");
|
|
550
526
|
|
|
551
527
|
// eth-sdk/abis/mainnet/aaveV2/data_provider.json
|
|
@@ -600,7 +576,7 @@ var data_provider_default2 = [{ inputs: [{ internalType: "contract IPoolAddresse
|
|
|
600
576
|
var aaveLendingPoolV3_default = [{ inputs: [{ internalType: "contract IPoolAddressesProvider", name: "provider", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "backer", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "uint256", name: "fee", type: "uint256" }], name: "BackUnbacked", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: false, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "address", name: "onBehalfOf", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "enum DataTypes.InterestRateMode", name: "interestRateMode", type: "uint8" }, { indexed: false, internalType: "uint256", name: "borrowRate", type: "uint256" }, { indexed: true, internalType: "uint16", name: "referralCode", type: "uint16" }], name: "Borrow", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "target", type: "address" }, { indexed: false, internalType: "address", name: "initiator", type: "address" }, { indexed: true, internalType: "address", name: "asset", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "enum DataTypes.InterestRateMode", name: "interestRateMode", type: "uint8" }, { indexed: false, internalType: "uint256", name: "premium", type: "uint256" }, { indexed: true, internalType: "uint16", name: "referralCode", type: "uint16" }], name: "FlashLoan", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "asset", type: "address" }, { indexed: false, internalType: "uint256", name: "totalDebt", type: "uint256" }], name: "IsolationModeTotalDebtUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "collateralAsset", type: "address" }, { indexed: true, internalType: "address", name: "debtAsset", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: false, internalType: "uint256", name: "debtToCover", type: "uint256" }, { indexed: false, internalType: "uint256", name: "liquidatedCollateralAmount", type: "uint256" }, { indexed: false, internalType: "address", name: "liquidator", type: "address" }, { indexed: false, internalType: "bool", name: "receiveAToken", type: "bool" }], name: "LiquidationCall", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: false, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "address", name: "onBehalfOf", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: true, internalType: "uint16", name: "referralCode", type: "uint16" }], name: "MintUnbacked", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: false, internalType: "uint256", name: "amountMinted", type: "uint256" }], name: "MintedToTreasury", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }], name: "RebalanceStableBorrowRate", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "address", name: "repayer", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "bool", name: "useATokens", type: "bool" }], name: "Repay", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: false, internalType: "uint256", name: "liquidityRate", type: "uint256" }, { indexed: false, internalType: "uint256", name: "stableBorrowRate", type: "uint256" }, { indexed: false, internalType: "uint256", name: "variableBorrowRate", type: "uint256" }, { indexed: false, internalType: "uint256", name: "liquidityIndex", type: "uint256" }, { indexed: false, internalType: "uint256", name: "variableBorrowIndex", type: "uint256" }], name: "ReserveDataUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }], name: "ReserveUsedAsCollateralDisabled", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }], name: "ReserveUsedAsCollateralEnabled", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: false, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "address", name: "onBehalfOf", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: true, internalType: "uint16", name: "referralCode", type: "uint16" }], name: "Supply", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: false, internalType: "enum DataTypes.InterestRateMode", name: "interestRateMode", type: "uint8" }], name: "SwapBorrowRateMode", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: false, internalType: "uint8", name: "categoryId", type: "uint8" }], name: "UserEModeSet", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "reserve", type: "address" }, { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "Withdraw", type: "event" }, { inputs: [], name: "ADDRESSES_PROVIDER", outputs: [{ internalType: "contract IPoolAddressesProvider", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "BRIDGE_PROTOCOL_FEE", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "FLASHLOAN_PREMIUM_TOTAL", outputs: [{ internalType: "uint128", name: "", type: "uint128" }], stateMutability: "view", type: "function" }, { inputs: [], name: "FLASHLOAN_PREMIUM_TO_PROTOCOL", outputs: [{ internalType: "uint128", name: "", type: "uint128" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_NUMBER_RESERVES", outputs: [{ internalType: "uint16", name: "", type: "uint16" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_STABLE_RATE_BORROW_SIZE_PERCENT", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "POOL_REVISION", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "fee", type: "uint256" }], name: "backUnbacked", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "interestRateMode", type: "uint256" }, { internalType: "uint16", name: "referralCode", type: "uint16" }, { internalType: "address", name: "onBehalfOf", type: "address" }], name: "borrow", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint8", name: "id", type: "uint8" }, { components: [{ internalType: "uint16", name: "ltv", type: "uint16" }, { internalType: "uint16", name: "liquidationThreshold", type: "uint16" }, { internalType: "uint16", name: "liquidationBonus", type: "uint16" }, { internalType: "address", name: "priceSource", type: "address" }, { internalType: "string", name: "label", type: "string" }], internalType: "struct DataTypes.EModeCategory", name: "category", type: "tuple" }], name: "configureEModeCategory", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "deposit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "dropReserve", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "balanceFromBefore", type: "uint256" }, { internalType: "uint256", name: "balanceToBefore", type: "uint256" }], name: "finalizeTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "receiverAddress", type: "address" }, { internalType: "address[]", name: "assets", type: "address[]" }, { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, { internalType: "uint256[]", name: "interestRateModes", type: "uint256[]" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "bytes", name: "params", type: "bytes" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "flashLoan", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "receiverAddress", type: "address" }, { internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "bytes", name: "params", type: "bytes" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "flashLoanSimple", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "getConfiguration", outputs: [{ components: [{ internalType: "uint256", name: "data", type: "uint256" }], internalType: "struct DataTypes.ReserveConfigurationMap", name: "", type: "tuple" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint8", name: "id", type: "uint8" }], name: "getEModeCategoryData", outputs: [{ components: [{ internalType: "uint16", name: "ltv", type: "uint16" }, { internalType: "uint16", name: "liquidationThreshold", type: "uint16" }, { internalType: "uint16", name: "liquidationBonus", type: "uint16" }, { internalType: "address", name: "priceSource", type: "address" }, { internalType: "string", name: "label", type: "string" }], internalType: "struct DataTypes.EModeCategory", name: "", type: "tuple" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint16", name: "id", type: "uint16" }], name: "getReserveAddressById", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "getReserveData", outputs: [{ components: [{ components: [{ internalType: "uint256", name: "data", type: "uint256" }], internalType: "struct DataTypes.ReserveConfigurationMap", name: "configuration", type: "tuple" }, { internalType: "uint128", name: "liquidityIndex", type: "uint128" }, { internalType: "uint128", name: "currentLiquidityRate", type: "uint128" }, { internalType: "uint128", name: "variableBorrowIndex", type: "uint128" }, { internalType: "uint128", name: "currentVariableBorrowRate", type: "uint128" }, { internalType: "uint128", name: "currentStableBorrowRate", type: "uint128" }, { internalType: "uint40", name: "lastUpdateTimestamp", type: "uint40" }, { internalType: "uint16", name: "id", type: "uint16" }, { internalType: "address", name: "aTokenAddress", type: "address" }, { internalType: "address", name: "stableDebtTokenAddress", type: "address" }, { internalType: "address", name: "variableDebtTokenAddress", type: "address" }, { internalType: "address", name: "interestRateStrategyAddress", type: "address" }, { internalType: "uint128", name: "accruedToTreasury", type: "uint128" }, { internalType: "uint128", name: "unbacked", type: "uint128" }, { internalType: "uint128", name: "isolationModeTotalDebt", type: "uint128" }], internalType: "struct DataTypes.ReserveData", name: "", type: "tuple" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "getReserveNormalizedIncome", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "getReserveNormalizedVariableDebt", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "getReservesList", outputs: [{ internalType: "address[]", name: "", type: "address[]" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "getUserAccountData", outputs: [{ internalType: "uint256", name: "totalCollateralBase", type: "uint256" }, { internalType: "uint256", name: "totalDebtBase", type: "uint256" }, { internalType: "uint256", name: "availableBorrowsBase", type: "uint256" }, { internalType: "uint256", name: "currentLiquidationThreshold", type: "uint256" }, { internalType: "uint256", name: "ltv", type: "uint256" }, { internalType: "uint256", name: "healthFactor", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "getUserConfiguration", outputs: [{ components: [{ internalType: "uint256", name: "data", type: "uint256" }], internalType: "struct DataTypes.UserConfigurationMap", name: "", type: "tuple" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "getUserEMode", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "address", name: "aTokenAddress", type: "address" }, { internalType: "address", name: "stableDebtAddress", type: "address" }, { internalType: "address", name: "variableDebtAddress", type: "address" }, { internalType: "address", name: "interestRateStrategyAddress", type: "address" }], name: "initReserve", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "contract IPoolAddressesProvider", name: "provider", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "collateralAsset", type: "address" }, { internalType: "address", name: "debtAsset", type: "address" }, { internalType: "address", name: "user", type: "address" }, { internalType: "uint256", name: "debtToCover", type: "uint256" }, { internalType: "bool", name: "receiveAToken", type: "bool" }], name: "liquidationCall", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address[]", name: "assets", type: "address[]" }], name: "mintToTreasury", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "mintUnbacked", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "address", name: "user", type: "address" }], name: "rebalanceStableBorrowRate", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "interestRateMode", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }], name: "repay", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "interestRateMode", type: "uint256" }], name: "repayWithATokens", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "interestRateMode", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "permitV", type: "uint8" }, { internalType: "bytes32", name: "permitR", type: "bytes32" }, { internalType: "bytes32", name: "permitS", type: "bytes32" }], name: "repayWithPermit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "token", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "rescueTokens", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "resetIsolationModeTotalDebt", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { components: [{ internalType: "uint256", name: "data", type: "uint256" }], internalType: "struct DataTypes.ReserveConfigurationMap", name: "configuration", type: "tuple" }], name: "setConfiguration", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "address", name: "rateStrategyAddress", type: "address" }], name: "setReserveInterestRateStrategyAddress", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint8", name: "categoryId", type: "uint8" }], name: "setUserEMode", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "bool", name: "useAsCollateral", type: "bool" }], name: "setUserUseReserveAsCollateral", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "supply", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint16", name: "referralCode", type: "uint16" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "permitV", type: "uint8" }, { internalType: "bytes32", name: "permitR", type: "bytes32" }, { internalType: "bytes32", name: "permitS", type: "bytes32" }], name: "supplyWithPermit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "interestRateMode", type: "uint256" }], name: "swapBorrowRateMode", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "protocolFee", type: "uint256" }], name: "updateBridgeProtocolFee", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint128", name: "flashLoanPremiumTotal", type: "uint128" }, { internalType: "uint128", name: "flashLoanPremiumToProtocol", type: "uint128" }], name: "updateFlashloanPremiums", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "asset", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "to", type: "address" }], name: "withdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }];
|
|
601
577
|
|
|
602
578
|
// eth-sdk/abis/mainnet/aaveV3/wrappedTokenGatewayV3.json
|
|
603
|
-
var wrappedTokenGatewayV3_default = [{ inputs: [{ internalType: "address", name: "weth", type: "address" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "contract IPool", name: "pool", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { stateMutability: "payable", type: "fallback" }, { inputs: [
|
|
579
|
+
var wrappedTokenGatewayV3_default = [{ inputs: [{ internalType: "address", name: "weth", type: "address" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "contract IPool", name: "pool", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { stateMutability: "payable", type: "fallback" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "borrowETH", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint16", name: "referralCode", type: "uint16" }], name: "depositETH", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "emergencyEtherTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "token", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "emergencyTokenTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "getWETHAddress", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "onBehalfOf", type: "address" }], name: "repayETH", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "to", type: "address" }], name: "withdrawETH", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "permitV", type: "uint8" }, { internalType: "bytes32", name: "permitR", type: "bytes32" }, { internalType: "bytes32", name: "permitS", type: "bytes32" }], name: "withdrawETHWithPermit", outputs: [], stateMutability: "nonpayable", type: "function" }, { stateMutability: "payable", type: "receive" }];
|
|
604
580
|
|
|
605
581
|
// eth-sdk/abis/mainnet/aaveV3/aEthWETH.json
|
|
606
582
|
var aEthWETH_default = [{ inputs: [{ internalType: "contract IPool", name: "pool", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "spender", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }, { indexed: false, internalType: "uint256", name: "index", type: "uint256" }], name: "BalanceTransfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "target", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }, { indexed: false, internalType: "uint256", name: "balanceIncrease", type: "uint256" }, { indexed: false, internalType: "uint256", name: "index", type: "uint256" }], name: "Burn", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "underlyingAsset", type: "address" }, { indexed: true, internalType: "address", name: "pool", type: "address" }, { indexed: false, internalType: "address", name: "treasury", type: "address" }, { indexed: false, internalType: "address", name: "incentivesController", type: "address" }, { indexed: false, internalType: "uint8", name: "aTokenDecimals", type: "uint8" }, { indexed: false, internalType: "string", name: "aTokenName", type: "string" }, { indexed: false, internalType: "string", name: "aTokenSymbol", type: "string" }, { indexed: false, internalType: "bytes", name: "params", type: "bytes" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "caller", type: "address" }, { indexed: true, internalType: "address", name: "onBehalfOf", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }, { indexed: false, internalType: "uint256", name: "balanceIncrease", type: "uint256" }, { indexed: false, internalType: "uint256", name: "index", type: "uint256" }], name: "Mint", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { inputs: [], name: "ATOKEN_REVISION", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "EIP712_REVISION", outputs: [{ internalType: "bytes", name: "", type: "bytes" }], stateMutability: "view", type: "function" }, { inputs: [], name: "PERMIT_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "POOL", outputs: [{ internalType: "contract IPool", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "RESERVE_TREASURY_ADDRESS", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "UNDERLYING_ASSET_ADDRESS", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }], name: "allowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "receiverOfUnderlying", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "index", type: "uint256" }], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "decimals", outputs: [{ internalType: "uint8", name: "", type: "uint8" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "subtractedValue", type: "uint256" }], name: "decreaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "getIncentivesController", outputs: [{ internalType: "contract IAaveIncentivesController", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "getPreviousIndex", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "getScaledUserBalanceAndSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }, { internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "handleRepayment", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "addedValue", type: "uint256" }], name: "increaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "contract IPool", name: "initializingPool", type: "address" }, { internalType: "address", name: "treasury", type: "address" }, { internalType: "address", name: "underlyingAsset", type: "address" }, { internalType: "contract IAaveIncentivesController", name: "incentivesController", type: "address" }, { internalType: "uint8", name: "aTokenDecimals", type: "uint8" }, { internalType: "string", name: "aTokenName", type: "string" }, { internalType: "string", name: "aTokenSymbol", type: "string" }, { internalType: "bytes", name: "params", type: "bytes" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "caller", type: "address" }, { internalType: "address", name: "onBehalfOf", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "index", type: "uint256" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "index", type: "uint256" }], name: "mintToTreasury", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "name", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "nonces", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "permit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "token", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "rescueTokens", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "user", type: "address" }], name: "scaledBalanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "scaledTotalSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "contract IAaveIncentivesController", name: "controller", type: "address" }], name: "setIncentivesController", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "symbol", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [], name: "totalSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "transfer", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "sender", type: "address" }, { internalType: "address", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transferOnLiquidation", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "target", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "transferUnderlyingTo", outputs: [], stateMutability: "nonpayable", type: "function" }];
|
|
@@ -8262,10 +8238,10 @@ var vlCVX_default = [{ inputs: [], stateMutability: "nonpayable", type: "constru
|
|
|
8262
8238
|
var orderSigner_default = [{ inputs: [{ internalType: "contract GPv2Signing", name: "_signing", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "deployedAt", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "domainSeparator", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ components: [{ internalType: "contract IERC20", name: "sellToken", type: "address" }, { internalType: "contract IERC20", name: "buyToken", type: "address" }, { internalType: "address", name: "receiver", type: "address" }, { internalType: "uint256", name: "sellAmount", type: "uint256" }, { internalType: "uint256", name: "buyAmount", type: "uint256" }, { internalType: "uint32", name: "validTo", type: "uint32" }, { internalType: "bytes32", name: "appData", type: "bytes32" }, { internalType: "uint256", name: "feeAmount", type: "uint256" }, { internalType: "bytes32", name: "kind", type: "bytes32" }, { internalType: "bool", name: "partiallyFillable", type: "bool" }, { internalType: "bytes32", name: "sellTokenBalance", type: "bytes32" }, { internalType: "bytes32", name: "buyTokenBalance", type: "bytes32" }], internalType: "struct GPv2Order.Data", name: "order", type: "tuple" }, { internalType: "uint32", name: "validDuration", type: "uint32" }, { internalType: "uint256", name: "feeAmountBP", type: "uint256" }], name: "signOrder", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "signing", outputs: [{ internalType: "contract GPv2Signing", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ components: [{ internalType: "contract IERC20", name: "sellToken", type: "address" }, { internalType: "contract IERC20", name: "buyToken", type: "address" }, { internalType: "address", name: "receiver", type: "address" }, { internalType: "uint256", name: "sellAmount", type: "uint256" }, { internalType: "uint256", name: "buyAmount", type: "uint256" }, { internalType: "uint32", name: "validTo", type: "uint32" }, { internalType: "bytes32", name: "appData", type: "bytes32" }, { internalType: "uint256", name: "feeAmount", type: "uint256" }, { internalType: "bytes32", name: "kind", type: "bytes32" }, { internalType: "bool", name: "partiallyFillable", type: "bool" }, { internalType: "bytes32", name: "sellTokenBalance", type: "bytes32" }, { internalType: "bytes32", name: "buyTokenBalance", type: "bytes32" }], internalType: "struct GPv2Order.Data", name: "order", type: "tuple" }], name: "unsignOrder", outputs: [], stateMutability: "nonpayable", type: "function" }];
|
|
8263
8239
|
|
|
8264
8240
|
// eth-sdk/abis/mainnet/curve/regularPool.json
|
|
8265
|
-
var regularPool_default = [{ name: "TokenExchange", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "AddLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityOne", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256", name: "token_amount", indexed: false }, { type: "uint256", name: "coin_amount", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityImbalance", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "CommitNewAdmin", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "NewAdmin", inputs: [{ type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "CommitNewFee", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "NewFee", inputs: [{ type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "RampA", inputs: [{ type: "uint256", name: "old_A", indexed: false }, { type: "uint256", name: "new_A", indexed: false }, { type: "uint256", name: "initial_time", indexed: false }, { type: "uint256", name: "future_time", indexed: false }], anonymous: false, type: "event" }, { name: "StopRampA", inputs: [{ type: "uint256", name: "A", indexed: false }, { type: "uint256", name: "t", indexed: false }], anonymous: false, type: "event" }, { outputs: [], inputs: [{ type: "address", name: "_owner" }, { type: "address[3]", name: "_coins" }, { type: "address", name: "_pool_token" }, { type: "uint256", name: "_A" }, { type: "uint256", name: "_fee" }, { type: "uint256", name: "_admin_fee" }], stateMutability: "nonpayable", type: "constructor" }, { name: "A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function"
|
|
8241
|
+
var regularPool_default = [{ name: "TokenExchange", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "AddLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityOne", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256", name: "token_amount", indexed: false }, { type: "uint256", name: "coin_amount", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityImbalance", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[3]", name: "token_amounts", indexed: false }, { type: "uint256[3]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "CommitNewAdmin", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "NewAdmin", inputs: [{ type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "CommitNewFee", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "NewFee", inputs: [{ type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "RampA", inputs: [{ type: "uint256", name: "old_A", indexed: false }, { type: "uint256", name: "new_A", indexed: false }, { type: "uint256", name: "initial_time", indexed: false }, { type: "uint256", name: "future_time", indexed: false }], anonymous: false, type: "event" }, { name: "StopRampA", inputs: [{ type: "uint256", name: "A", indexed: false }, { type: "uint256", name: "t", indexed: false }], anonymous: false, type: "event" }, { outputs: [], inputs: [{ type: "address", name: "_owner" }, { type: "address[3]", name: "_coins" }, { type: "address", name: "_pool_token" }, { type: "uint256", name: "_A" }, { type: "uint256", name: "_fee" }, { type: "uint256", name: "_admin_fee" }], stateMutability: "nonpayable", type: "constructor" }, { name: "A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "get_virtual_price", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "calc_token_amount", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[3]", name: "amounts" }, { type: "bool", name: "deposit" }], stateMutability: "view", type: "function" }, { name: "add_liquidity", outputs: [], inputs: [{ type: "uint256[3]", name: "amounts" }, { type: "uint256", name: "min_mint_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "get_dy", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function" }, { name: "get_dy_underlying", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function" }, { name: "exchange", outputs: [], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }, { type: "uint256", name: "min_dy" }], stateMutability: "nonpayable", type: "function" }, { name: "remove_liquidity", outputs: [], inputs: [{ type: "uint256", name: "_amount" }, { type: "uint256[3]", name: "min_amounts" }], stateMutability: "nonpayable", type: "function" }, { name: "remove_liquidity_imbalance", outputs: [], inputs: [{ type: "uint256[3]", name: "amounts" }, { type: "uint256", name: "max_burn_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "calc_withdraw_one_coin", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }], stateMutability: "view", type: "function" }, { name: "remove_liquidity_one_coin", outputs: [], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }, { type: "uint256", name: "min_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "ramp_A", outputs: [], inputs: [{ type: "uint256", name: "_future_A" }, { type: "uint256", name: "_future_time" }], stateMutability: "nonpayable", type: "function" }, { name: "stop_ramp_A", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "commit_new_fee", outputs: [], inputs: [{ type: "uint256", name: "new_fee" }, { type: "uint256", name: "new_admin_fee" }], stateMutability: "nonpayable", type: "function" }, { name: "apply_new_fee", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "revert_new_parameters", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "commit_transfer_ownership", outputs: [], inputs: [{ type: "address", name: "_owner" }], stateMutability: "nonpayable", type: "function" }, { name: "apply_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "revert_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "admin_balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "i" }], stateMutability: "view", type: "function" }, { name: "withdraw_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "donate_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "kill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "unkill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "coins", outputs: [{ type: "address", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function" }, { name: "balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function" }, { name: "fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "initial_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "initial_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "admin_actions_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "transfer_ownership_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function" }];
|
|
8266
8242
|
|
|
8267
8243
|
// eth-sdk/abis/mainnet/curve/metaPool.json
|
|
8268
|
-
var metaPool_default = [{ name: "TokenExchange", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "TokenExchangeUnderlying", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "AddLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityOne", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256", name: "token_amount", indexed: false }, { type: "uint256", name: "coin_amount", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityImbalance", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "CommitNewAdmin", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "NewAdmin", inputs: [{ type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "CommitNewFee", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "NewFee", inputs: [{ type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "RampA", inputs: [{ type: "uint256", name: "old_A", indexed: false }, { type: "uint256", name: "new_A", indexed: false }, { type: "uint256", name: "initial_time", indexed: false }, { type: "uint256", name: "future_time", indexed: false }], anonymous: false, type: "event" }, { name: "StopRampA", inputs: [{ type: "uint256", name: "A", indexed: false }, { type: "uint256", name: "t", indexed: false }], anonymous: false, type: "event" }, { outputs: [], inputs: [{ type: "address", name: "_owner" }, { type: "address[2]", name: "_coins" }, { type: "address", name: "_pool_token" }, { type: "address", name: "_base_pool" }, { type: "uint256", name: "_A" }, { type: "uint256", name: "_fee" }, { type: "uint256", name: "_admin_fee" }], stateMutability: "nonpayable", type: "constructor" }, { name: "A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 5205 }, { name: "A_precise", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 5167 }, { name: "get_virtual_price", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 992854 }, { name: "calc_token_amount", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "bool", name: "is_deposit" }], stateMutability: "view", type: "function", gas: 3939870 }, { name: "add_liquidity", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "uint256", name: "min_mint_amount" }], stateMutability: "nonpayable", type: "function", gas: 6138492 }, { name: "get_dy", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function", gas: 2390368 }, { name: "get_dy_underlying", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function", gas: 2393485 }, { name: "exchange", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }, { type: "uint256", name: "min_dy" }], stateMutability: "nonpayable", type: "function", gas: 2617568 }, { name: "exchange_underlying", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }, { type: "uint256", name: "min_dy" }], stateMutability: "nonpayable", type: "function", gas: 2632475 }, { name: "remove_liquidity", outputs: [{ type: "uint256[2]", name: "" }], inputs: [{ type: "uint256", name: "_amount" }, { type: "uint256[2]", name: "min_amounts" }], stateMutability: "nonpayable", type: "function", gas: 163289 }, { name: "remove_liquidity_imbalance", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "uint256", name: "max_burn_amount" }], stateMutability: "nonpayable", type: "function", gas: 6138317 }, { name: "calc_withdraw_one_coin", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }], stateMutability: "view", type: "function", gas: 4335 }, { name: "remove_liquidity_one_coin", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }, { type: "uint256", name: "_min_amount" }], stateMutability: "nonpayable", type: "function", gas: 3827137 }, { name: "ramp_A", outputs: [], inputs: [{ type: "uint256", name: "_future_A" }, { type: "uint256", name: "_future_time" }], stateMutability: "nonpayable", type: "function", gas: 151906 }, { name: "stop_ramp_A", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 148667 }, { name: "commit_new_fee", outputs: [], inputs: [{ type: "uint256", name: "new_fee" }, { type: "uint256", name: "new_admin_fee" }], stateMutability: "nonpayable", type: "function", gas: 110491 }, { name: "apply_new_fee", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 97272 }, { name: "revert_new_parameters", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 21925 }, { name: "commit_transfer_ownership", outputs: [], inputs: [{ type: "address", name: "_owner" }], stateMutability: "nonpayable", type: "function", gas: 74663 }, { name: "apply_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 60740 }, { name: "revert_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 22015 }, { name: "admin_balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "i" }], stateMutability: "view", type: "function", gas: 3511 }, { name: "withdraw_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 9248 }, { name: "donate_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 74995 }, { name: "kill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 38028 }, { name: "unkill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function", gas: 22165 }, { name: "coins", outputs: [{ type: "address", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function", gas: 2250 }, { name: "balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function", gas: 2280 }, { name: "fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2201 }, { name: "admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2231 }, { name: "owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2261 }, { name: "base_pool", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2291 }, { name: "base_virtual_price", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2321 }, { name: "base_cache_updated", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2351 }, { name: "base_coins", outputs: [{ type: "address", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function", gas: 2490 }, { name: "initial_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2411 }, { name: "future_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2441 }, { name: "initial_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2471 }, { name: "future_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2501 }, { name: "admin_actions_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2531 }, { name: "transfer_ownership_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2561 }, { name: "future_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2591 }, { name: "future_admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2621 }, { name: "future_owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function", gas: 2651 }];
|
|
8244
|
+
var metaPool_default = [{ name: "TokenExchange", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "TokenExchangeUnderlying", inputs: [{ type: "address", name: "buyer", indexed: true }, { type: "int128", name: "sold_id", indexed: false }, { type: "uint256", name: "tokens_sold", indexed: false }, { type: "int128", name: "bought_id", indexed: false }, { type: "uint256", name: "tokens_bought", indexed: false }], anonymous: false, type: "event" }, { name: "AddLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidity", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityOne", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256", name: "token_amount", indexed: false }, { type: "uint256", name: "coin_amount", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "RemoveLiquidityImbalance", inputs: [{ type: "address", name: "provider", indexed: true }, { type: "uint256[2]", name: "token_amounts", indexed: false }, { type: "uint256[2]", name: "fees", indexed: false }, { type: "uint256", name: "invariant", indexed: false }, { type: "uint256", name: "token_supply", indexed: false }], anonymous: false, type: "event" }, { name: "CommitNewAdmin", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "NewAdmin", inputs: [{ type: "address", name: "admin", indexed: true }], anonymous: false, type: "event" }, { name: "CommitNewFee", inputs: [{ type: "uint256", name: "deadline", indexed: true }, { type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "NewFee", inputs: [{ type: "uint256", name: "fee", indexed: false }, { type: "uint256", name: "admin_fee", indexed: false }], anonymous: false, type: "event" }, { name: "RampA", inputs: [{ type: "uint256", name: "old_A", indexed: false }, { type: "uint256", name: "new_A", indexed: false }, { type: "uint256", name: "initial_time", indexed: false }, { type: "uint256", name: "future_time", indexed: false }], anonymous: false, type: "event" }, { name: "StopRampA", inputs: [{ type: "uint256", name: "A", indexed: false }, { type: "uint256", name: "t", indexed: false }], anonymous: false, type: "event" }, { outputs: [], inputs: [{ type: "address", name: "_owner" }, { type: "address[2]", name: "_coins" }, { type: "address", name: "_pool_token" }, { type: "address", name: "_base_pool" }, { type: "uint256", name: "_A" }, { type: "uint256", name: "_fee" }, { type: "uint256", name: "_admin_fee" }], stateMutability: "nonpayable", type: "constructor" }, { name: "A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "A_precise", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "get_virtual_price", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "calc_token_amount", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "bool", name: "is_deposit" }], stateMutability: "view", type: "function" }, { name: "add_liquidity", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "uint256", name: "min_mint_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "get_dy", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function" }, { name: "get_dy_underlying", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }], stateMutability: "view", type: "function" }, { name: "exchange", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }, { type: "uint256", name: "min_dy" }], stateMutability: "nonpayable", type: "function" }, { name: "exchange_underlying", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "int128", name: "i" }, { type: "int128", name: "j" }, { type: "uint256", name: "dx" }, { type: "uint256", name: "min_dy" }], stateMutability: "nonpayable", type: "function" }, { name: "remove_liquidity", outputs: [{ type: "uint256[2]", name: "" }], inputs: [{ type: "uint256", name: "_amount" }, { type: "uint256[2]", name: "min_amounts" }], stateMutability: "nonpayable", type: "function" }, { name: "remove_liquidity_imbalance", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256[2]", name: "amounts" }, { type: "uint256", name: "max_burn_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "calc_withdraw_one_coin", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }], stateMutability: "view", type: "function" }, { name: "remove_liquidity_one_coin", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "_token_amount" }, { type: "int128", name: "i" }, { type: "uint256", name: "_min_amount" }], stateMutability: "nonpayable", type: "function" }, { name: "ramp_A", outputs: [], inputs: [{ type: "uint256", name: "_future_A" }, { type: "uint256", name: "_future_time" }], stateMutability: "nonpayable", type: "function" }, { name: "stop_ramp_A", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "commit_new_fee", outputs: [], inputs: [{ type: "uint256", name: "new_fee" }, { type: "uint256", name: "new_admin_fee" }], stateMutability: "nonpayable", type: "function" }, { name: "apply_new_fee", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "revert_new_parameters", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "commit_transfer_ownership", outputs: [], inputs: [{ type: "address", name: "_owner" }], stateMutability: "nonpayable", type: "function" }, { name: "apply_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "revert_transfer_ownership", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "admin_balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "i" }], stateMutability: "view", type: "function" }, { name: "withdraw_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "donate_admin_fees", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "kill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "unkill_me", outputs: [], inputs: [], stateMutability: "nonpayable", type: "function" }, { name: "coins", outputs: [{ type: "address", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function" }, { name: "balances", outputs: [{ type: "uint256", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function" }, { name: "fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "base_pool", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "base_virtual_price", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "base_cache_updated", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "base_coins", outputs: [{ type: "address", name: "" }], inputs: [{ type: "uint256", name: "arg0" }], stateMutability: "view", type: "function" }, { name: "initial_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_A", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "initial_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_A_time", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "admin_actions_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "transfer_ownership_deadline", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_admin_fee", outputs: [{ type: "uint256", name: "" }], inputs: [], stateMutability: "view", type: "function" }, { name: "future_owner", outputs: [{ type: "address", name: "" }], inputs: [], stateMutability: "view", type: "function" }];
|
|
8269
8245
|
|
|
8270
8246
|
// eth-sdk/abis/mainnet/lido/steth.json
|
|
8271
8247
|
var steth_default = [{ constant: false, inputs: [], name: "resume", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "pure", type: "function" }, { constant: false, inputs: [], name: "stop", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "hasInitialized", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_spender", type: "address" }, { name: "_amount", type: "uint256" }], name: "approve", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "STAKING_CONTROL_ROLE", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "_ethAmount", type: "uint256" }], name: "getSharesByPooledEth", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "isStakingPaused", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_sender", type: "address" }, { name: "_recipient", type: "address" }, { name: "_amount", type: "uint256" }], name: "transferFrom", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_script", type: "bytes" }], name: "getEVMScriptExecutor", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_maxStakeLimit", type: "uint256" }, { name: "_stakeLimitIncreasePerBlock", type: "uint256" }], name: "setStakingLimit", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "RESUME_ROLE", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_lidoLocator", type: "address" }, { name: "_eip712StETH", type: "address" }], name: "finalizeUpgrade_v2", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ name: "", type: "uint8" }], payable: false, stateMutability: "pure", type: "function" }, { constant: true, inputs: [], name: "getRecoveryVault", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getTotalPooledEther", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_newDepositedValidators", type: "uint256" }], name: "unsafeChangeDepositedValidators", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "PAUSE_ROLE", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_spender", type: "address" }, { name: "_addedValue", type: "uint256" }], name: "increaseAllowance", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getTreasury", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "isStopped", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getBufferedEther", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_lidoLocator", type: "address" }, { name: "_eip712StETH", type: "address" }], name: "initialize", outputs: [], payable: true, stateMutability: "payable", type: "function" }, { constant: false, inputs: [], name: "receiveELRewards", outputs: [], payable: true, stateMutability: "payable", type: "function" }, { constant: true, inputs: [], name: "getWithdrawalCredentials", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getCurrentStakeLimit", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getStakeLimitFullInfo", outputs: [{ name: "isStakingPaused", type: "bool" }, { name: "isStakingLimitSet", type: "bool" }, { name: "currentStakeLimit", type: "uint256" }, { name: "maxStakeLimit", type: "uint256" }, { name: "maxStakeLimitGrowthBlocks", type: "uint256" }, { name: "prevStakeLimit", type: "uint256" }, { name: "prevStakeBlockNumber", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_sender", type: "address" }, { name: "_recipient", type: "address" }, { name: "_sharesAmount", type: "uint256" }], name: "transferSharesFrom", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_account", type: "address" }], name: "balanceOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "resumeStaking", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getFeeDistribution", outputs: [{ name: "treasuryFeeBasisPoints", type: "uint16" }, { name: "insuranceFeeBasisPoints", type: "uint16" }, { name: "operatorsFeeBasisPoints", type: "uint16" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "receiveWithdrawals", outputs: [], payable: true, stateMutability: "payable", type: "function" }, { constant: true, inputs: [{ name: "_sharesAmount", type: "uint256" }], name: "getPooledEthByShares", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "token", type: "address" }], name: "allowRecoverability", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "owner", type: "address" }], name: "nonces", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "appId", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getOracle", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "eip712Domain", outputs: [{ name: "name", type: "string" }, { name: "version", type: "string" }, { name: "chainId", type: "uint256" }, { name: "verifyingContract", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getContractVersion", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getInitializationBlock", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_recipient", type: "address" }, { name: "_sharesAmount", type: "uint256" }], name: "transferShares", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "pure", type: "function" }, { constant: true, inputs: [], name: "getEIP712StETH", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "", type: "address" }], name: "transferToVault", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_sender", type: "address" }, { name: "_role", type: "bytes32" }, { name: "_params", type: "uint256[]" }], name: "canPerform", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_referral", type: "address" }], name: "submit", outputs: [{ name: "", type: "uint256" }], payable: true, stateMutability: "payable", type: "function" }, { constant: false, inputs: [{ name: "_spender", type: "address" }, { name: "_subtractedValue", type: "uint256" }], name: "decreaseAllowance", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getEVMScriptRegistry", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_recipient", type: "address" }, { name: "_amount", type: "uint256" }], name: "transfer", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_maxDepositsCount", type: "uint256" }, { name: "_stakingModuleId", type: "uint256" }, { name: "_depositCalldata", type: "bytes" }], name: "deposit", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "UNSAFE_CHANGE_DEPOSITED_VALIDATORS_ROLE", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getBeaconStat", outputs: [{ name: "depositedValidators", type: "uint256" }, { name: "beaconValidators", type: "uint256" }, { name: "beaconBalance", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "removeStakingLimit", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_reportTimestamp", type: "uint256" }, { name: "_timeElapsed", type: "uint256" }, { name: "_clValidators", type: "uint256" }, { name: "_clBalance", type: "uint256" }, { name: "_withdrawalVaultBalance", type: "uint256" }, { name: "_elRewardsVaultBalance", type: "uint256" }, { name: "_sharesRequestedToBurn", type: "uint256" }, { name: "_withdrawalFinalizationBatches", type: "uint256[]" }, { name: "_simulatedShareRate", type: "uint256" }], name: "handleOracleReport", outputs: [{ name: "postRebaseAmounts", type: "uint256[4]" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getFee", outputs: [{ name: "totalFee", type: "uint16" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "kernel", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getTotalShares", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_owner", type: "address" }, { name: "_spender", type: "address" }, { name: "_value", type: "uint256" }, { name: "_deadline", type: "uint256" }, { name: "_v", type: "uint8" }, { name: "_r", type: "bytes32" }, { name: "_s", type: "bytes32" }], name: "permit", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_owner", type: "address" }, { name: "_spender", type: "address" }], name: "allowance", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "isPetrified", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getLidoLocator", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "canDeposit", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "STAKING_PAUSE_ROLE", outputs: [{ name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "getDepositableEther", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "_account", type: "address" }], name: "sharesOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "pauseStaking", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getTotalELRewardsCollected", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { payable: true, stateMutability: "payable", type: "fallback" }, { anonymous: false, inputs: [], name: "StakingPaused", type: "event" }, { anonymous: false, inputs: [], name: "StakingResumed", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "maxStakeLimit", type: "uint256" }, { indexed: false, name: "stakeLimitIncreasePerBlock", type: "uint256" }], name: "StakingLimitSet", type: "event" }, { anonymous: false, inputs: [], name: "StakingLimitRemoved", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "reportTimestamp", type: "uint256" }, { indexed: false, name: "preCLValidators", type: "uint256" }, { indexed: false, name: "postCLValidators", type: "uint256" }], name: "CLValidatorsUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "depositedValidators", type: "uint256" }], name: "DepositedValidatorsChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "reportTimestamp", type: "uint256" }, { indexed: false, name: "preCLBalance", type: "uint256" }, { indexed: false, name: "postCLBalance", type: "uint256" }, { indexed: false, name: "withdrawalsWithdrawn", type: "uint256" }, { indexed: false, name: "executionLayerRewardsWithdrawn", type: "uint256" }, { indexed: false, name: "postBufferedEther", type: "uint256" }], name: "ETHDistributed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "reportTimestamp", type: "uint256" }, { indexed: false, name: "timeElapsed", type: "uint256" }, { indexed: false, name: "preTotalShares", type: "uint256" }, { indexed: false, name: "preTotalEther", type: "uint256" }, { indexed: false, name: "postTotalShares", type: "uint256" }, { indexed: false, name: "postTotalEther", type: "uint256" }, { indexed: false, name: "sharesMintedAsFees", type: "uint256" }], name: "TokenRebased", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "lidoLocator", type: "address" }], name: "LidoLocatorSet", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "ELRewardsReceived", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "WithdrawalsReceived", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "sender", type: "address" }, { indexed: false, name: "amount", type: "uint256" }, { indexed: false, name: "referral", type: "address" }], name: "Submitted", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "Unbuffered", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "executor", type: "address" }, { indexed: false, name: "script", type: "bytes" }, { indexed: false, name: "input", type: "bytes" }, { indexed: false, name: "returnData", type: "bytes" }], name: "ScriptResult", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "vault", type: "address" }, { indexed: true, name: "token", type: "address" }, { indexed: false, name: "amount", type: "uint256" }], name: "RecoverToVault", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "eip712StETH", type: "address" }], name: "EIP712StETHInitialized", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "from", type: "address" }, { indexed: true, name: "to", type: "address" }, { indexed: false, name: "sharesValue", type: "uint256" }], name: "TransferShares", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "account", type: "address" }, { indexed: false, name: "preRebaseTokenAmount", type: "uint256" }, { indexed: false, name: "postRebaseTokenAmount", type: "uint256" }, { indexed: false, name: "sharesAmount", type: "uint256" }], name: "SharesBurnt", type: "event" }, { anonymous: false, inputs: [], name: "Stopped", type: "event" }, { anonymous: false, inputs: [], name: "Resumed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "from", type: "address" }, { indexed: true, name: "to", type: "address" }, { indexed: false, name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "owner", type: "address" }, { indexed: true, name: "spender", type: "address" }, { indexed: false, name: "value", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "version", type: "uint256" }], name: "ContractVersionSet", type: "event" }];
|
|
@@ -9374,7 +9350,7 @@ var weth_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name
|
|
|
9374
9350
|
// eth-sdk/abis/gnosis/spark/SavingsXDaiAdapter.json
|
|
9375
9351
|
var SavingsXDaiAdapter_default = [{ inputs: [{ internalType: "address", name: "interestReceiver_", type: "address" }, { internalType: "address payable", name: "sDAI_", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "deposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "receiver", type: "address" }], name: "depositXDAI", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [], name: "interestReceiver", outputs: [{ internalType: "contract IBridgeInterestReceiver", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "mint", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "redeem", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "receiver", type: "address" }], name: "redeemAll", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "receiver", type: "address" }], name: "redeemAllXDAI", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "redeemXDAI", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [], name: "sDAI", outputs: [{ internalType: "contract SavingsXDai", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "vaultAPY", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "withdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "withdrawXDAI", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [], name: "wxdai", outputs: [{ internalType: "contract IWXDAI", name: "", type: "address" }], stateMutability: "view", type: "function" }, { stateMutability: "payable", type: "receive" }];
|
|
9376
9352
|
|
|
9377
|
-
// node_modules/.
|
|
9353
|
+
// node_modules/.gnosisguild/eth-sdk-client/esm/index.js
|
|
9378
9354
|
function getContract(address, abi, defaultSignerOrProvider) {
|
|
9379
9355
|
return new import_ethers.Contract(address, abi, defaultSignerOrProvider);
|
|
9380
9356
|
}
|
|
@@ -9400,7 +9376,7 @@ function getMainnetSdk(defaultSignerOrProvider) {
|
|
|
9400
9376
|
"aaveV3": {
|
|
9401
9377
|
"data_provider": getContract("0x7B4EB56E7CD4b454BA8ff71E4518426369a138a3", data_provider_default2, defaultSignerOrProvider),
|
|
9402
9378
|
"aaveLendingPoolV3": getContract("0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2", aaveLendingPoolV3_default, defaultSignerOrProvider),
|
|
9403
|
-
"wrappedTokenGatewayV3": getContract("
|
|
9379
|
+
"wrappedTokenGatewayV3": getContract("0xA434D495249abE33E031Fe71a969B81f3c07950D", wrappedTokenGatewayV3_default, defaultSignerOrProvider),
|
|
9404
9380
|
"aEthWETH": getContract("0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8", aEthWETH_default, defaultSignerOrProvider),
|
|
9405
9381
|
"variableDebtWETH": getContract("0xeA51d7853EEFb32b6ee06b1C12E6dcCA88Be0fFE", variableDebtWETH_default2, defaultSignerOrProvider),
|
|
9406
9382
|
"stableDebtWETH": getContract("0x102633152313C81cD80419b6EcF66d14Ad68949A", stableDebtWETH_default2, defaultSignerOrProvider)
|
|
@@ -9524,7 +9500,7 @@ function getGnosisSdk(defaultSignerOrProvider) {
|
|
|
9524
9500
|
}
|
|
9525
9501
|
|
|
9526
9502
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/authoring/kit.js
|
|
9527
|
-
var
|
|
9503
|
+
var import_ethers6 = require("ethers");
|
|
9528
9504
|
|
|
9529
9505
|
// node_modules/zodiac-roles-deployments/build/esm/types.js
|
|
9530
9506
|
var ExecutionOptions;
|
|
@@ -9601,16 +9577,16 @@ var QUERY = `
|
|
|
9601
9577
|
query Role($id: String) {
|
|
9602
9578
|
role(id: $id) {
|
|
9603
9579
|
key
|
|
9604
|
-
members {
|
|
9580
|
+
members(first: 1000) {
|
|
9605
9581
|
member {
|
|
9606
9582
|
address
|
|
9607
9583
|
}
|
|
9608
9584
|
}
|
|
9609
|
-
targets {
|
|
9585
|
+
targets(first: 1000) {
|
|
9610
9586
|
address
|
|
9611
9587
|
clearance
|
|
9612
9588
|
executionOptions
|
|
9613
|
-
functions {
|
|
9589
|
+
functions(first: 1000) {
|
|
9614
9590
|
selector
|
|
9615
9591
|
executionOptions
|
|
9616
9592
|
wildcarded
|
|
@@ -9620,7 +9596,7 @@ query Role($id: String) {
|
|
|
9620
9596
|
}
|
|
9621
9597
|
}
|
|
9622
9598
|
}
|
|
9623
|
-
annotations {
|
|
9599
|
+
annotations(first: 1000) {
|
|
9624
9600
|
uri
|
|
9625
9601
|
schema
|
|
9626
9602
|
}
|
|
@@ -9632,27 +9608,23 @@ query Role($id: String) {
|
|
|
9632
9608
|
var import_zodiac_roles_sdk = require("zodiac-roles-sdk");
|
|
9633
9609
|
|
|
9634
9610
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/utils.js
|
|
9635
|
-
var
|
|
9611
|
+
var import_ethers4 = require("ethers");
|
|
9636
9612
|
|
|
9637
9613
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/conditions/conditionId.js
|
|
9638
|
-
var
|
|
9639
|
-
var import_utils2 = require("ethers/lib/utils");
|
|
9614
|
+
var import_ethers3 = require("ethers");
|
|
9640
9615
|
|
|
9641
9616
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/utils/encodeAbiParameters.js
|
|
9642
|
-
var
|
|
9643
|
-
var encodeAbiParameters = (types, values) =>
|
|
9644
|
-
|
|
9645
|
-
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/conditions/normalizeCondition.js
|
|
9646
|
-
var import_ethers3 = require("ethers");
|
|
9617
|
+
var import_ethers2 = require("ethers");
|
|
9618
|
+
var encodeAbiParameters = (types, values) => import_ethers2.AbiCoder.defaultAbiCoder().encode(types, values);
|
|
9647
9619
|
|
|
9648
9620
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/utils.js
|
|
9649
|
-
var sighash = (signature) => (0,
|
|
9621
|
+
var sighash = (signature) => (0, import_ethers4.keccak256)((0, import_ethers4.toUtf8Bytes)(signature)).substring(0, 10);
|
|
9650
9622
|
var coercePermission = (permission) => {
|
|
9651
9623
|
if (isFunctionScoped(permission)) {
|
|
9652
9624
|
return {
|
|
9653
9625
|
targetAddress: permission.targetAddress.toLowerCase(),
|
|
9654
9626
|
selector: "selector" in permission ? permission.selector.toLowerCase() : sighash(permission.signature),
|
|
9655
|
-
condition: typeof permission.condition === "function" ? permission.condition(
|
|
9627
|
+
condition: typeof permission.condition === "function" ? permission.condition(import_ethers4.ParamType.from("bytes")) : permission.condition,
|
|
9656
9628
|
send: permission.send,
|
|
9657
9629
|
delegatecall: permission.delegatecall
|
|
9658
9630
|
};
|
|
@@ -9664,7 +9636,7 @@ var isFunctionScoped = (permission) => {
|
|
|
9664
9636
|
};
|
|
9665
9637
|
|
|
9666
9638
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/authoring/conditions/allowances.js
|
|
9667
|
-
var
|
|
9639
|
+
var import_ethers5 = require("ethers");
|
|
9668
9640
|
var callWithinAllowance = (allowanceKey) => () => {
|
|
9669
9641
|
return {
|
|
9670
9642
|
paramType: ParameterType.None,
|
|
@@ -9684,13 +9656,15 @@ var etherWithinAllowance = (allowanceKey) => () => {
|
|
|
9684
9656
|
var makeAllowFunction = (contract, name) => {
|
|
9685
9657
|
const functionFragment = contract.interface.getFunction(name);
|
|
9686
9658
|
const functionInputs = functionFragment.inputs;
|
|
9687
|
-
|
|
9659
|
+
if (typeof contract.target !== "string" || !contract.target.startsWith("0x")) {
|
|
9660
|
+
throw new Error("Only addresses as contract targets are supported");
|
|
9661
|
+
}
|
|
9688
9662
|
return (...args) => {
|
|
9689
9663
|
const scopings = args.slice(0, functionInputs.length);
|
|
9690
9664
|
const hasScopings = scopings.some((s) => !!s);
|
|
9691
9665
|
const options = args[functionInputs.length] || {};
|
|
9692
9666
|
const presetFunction = {
|
|
9693
|
-
targetAddress: contract.
|
|
9667
|
+
targetAddress: contract.target,
|
|
9694
9668
|
signature: functionFragment.format("sighash"),
|
|
9695
9669
|
condition: hasScopings ? import_zodiac_roles_sdk.c.calldataMatches(scopings, functionInputs)() : void 0
|
|
9696
9670
|
};
|
|
@@ -9703,19 +9677,13 @@ var emptyCalldataMatches = {
|
|
|
9703
9677
|
children: []
|
|
9704
9678
|
};
|
|
9705
9679
|
var applyGlobalAllowance = (condition = emptyCalldataMatches, allowanceCondition) => {
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
if (!node.children)
|
|
9713
|
-
node.children = [];
|
|
9714
|
-
node.children = [...node.children || [], allowanceCondition];
|
|
9715
|
-
}
|
|
9680
|
+
if (condition.paramType !== ParameterType.Calldata || condition.operator !== Operator.Matches) {
|
|
9681
|
+
throw new Error("Global allowance can only be applied to calldata matches nodes");
|
|
9682
|
+
}
|
|
9683
|
+
return {
|
|
9684
|
+
...condition,
|
|
9685
|
+
children: [...condition.children || [], allowanceCondition]
|
|
9716
9686
|
};
|
|
9717
|
-
applyAllowance(clone);
|
|
9718
|
-
return clone;
|
|
9719
9687
|
};
|
|
9720
9688
|
var applyOptions = (entry, options) => {
|
|
9721
9689
|
let condition = entry.condition;
|
|
@@ -9739,19 +9707,45 @@ var EVERYTHING = Symbol("EVERYTHING");
|
|
|
9739
9707
|
var makeAllowContract = (contract) => {
|
|
9740
9708
|
const allowEverything = (options) => {
|
|
9741
9709
|
return {
|
|
9742
|
-
targetAddress: contract.
|
|
9710
|
+
targetAddress: contract.target,
|
|
9743
9711
|
...options
|
|
9744
9712
|
};
|
|
9745
9713
|
};
|
|
9746
|
-
const
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9714
|
+
const contractHasFunction = (prop) => {
|
|
9715
|
+
try {
|
|
9716
|
+
contract.getFunction(prop);
|
|
9717
|
+
} catch (error) {
|
|
9718
|
+
if (!(0, import_ethers6.isError)(error, "INVALID_ARGUMENT") || error.argument !== "key") {
|
|
9719
|
+
throw error;
|
|
9720
|
+
}
|
|
9721
|
+
return false;
|
|
9722
|
+
}
|
|
9723
|
+
return true;
|
|
9724
|
+
};
|
|
9725
|
+
return new Proxy({}, {
|
|
9726
|
+
get: (target, prop) => {
|
|
9727
|
+
if (prop === EVERYTHING) {
|
|
9728
|
+
return allowEverything;
|
|
9729
|
+
}
|
|
9730
|
+
if (typeof prop !== "string") {
|
|
9731
|
+
return void 0;
|
|
9732
|
+
}
|
|
9733
|
+
if (contractHasFunction(prop)) {
|
|
9734
|
+
return makeAllowFunction(contract, prop);
|
|
9735
|
+
}
|
|
9736
|
+
return void 0;
|
|
9737
|
+
},
|
|
9738
|
+
has: (target, prop) => {
|
|
9739
|
+
if (typeof prop === "symbol") {
|
|
9740
|
+
return prop === EVERYTHING;
|
|
9741
|
+
}
|
|
9742
|
+
return contractHasFunction(prop);
|
|
9743
|
+
}
|
|
9744
|
+
});
|
|
9751
9745
|
};
|
|
9752
9746
|
var mapSdk = (sdk4) => {
|
|
9753
9747
|
return Object.keys(sdk4).reduce((acc, key) => {
|
|
9754
|
-
if (sdk4[key] instanceof
|
|
9748
|
+
if (sdk4[key] instanceof import_ethers6.BaseContract) {
|
|
9755
9749
|
acc[key] = makeAllowContract(sdk4[key]);
|
|
9756
9750
|
} else {
|
|
9757
9751
|
acc[key] = mapSdk(sdk4[key]);
|
|
@@ -9766,7 +9760,7 @@ var allow = Object.keys(eth_sdk_client_exports).reduce((acc, sdkGetterName) => {
|
|
|
9766
9760
|
const network = uncapitalize(sdkGetterName.slice(3, -3));
|
|
9767
9761
|
acc[network] = mapSdk(
|
|
9768
9762
|
// eslint-disable-next-line import/namespace
|
|
9769
|
-
eth_sdk_client_exports[sdkGetterName](
|
|
9763
|
+
eth_sdk_client_exports[sdkGetterName](import_ethers6.ethers.getDefaultProvider())
|
|
9770
9764
|
);
|
|
9771
9765
|
return acc;
|
|
9772
9766
|
}, {});
|
|
@@ -9788,7 +9782,7 @@ var allowErc20Approve = (tokens, spenders) => (0, import_zodiac_roles_sdk2.forAl
|
|
|
9788
9782
|
});
|
|
9789
9783
|
|
|
9790
9784
|
// eth-sdk/config.ts
|
|
9791
|
-
var import_eth_sdk =
|
|
9785
|
+
var import_eth_sdk = require("@gnosis-guild/eth-sdk");
|
|
9792
9786
|
var contracts = {
|
|
9793
9787
|
mainnet: {
|
|
9794
9788
|
aaveV2: {
|
|
@@ -9811,7 +9805,7 @@ var contracts = {
|
|
|
9811
9805
|
aaveV3: {
|
|
9812
9806
|
data_provider: "0x7B4EB56E7CD4b454BA8ff71E4518426369a138a3",
|
|
9813
9807
|
aaveLendingPoolV3: "0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2",
|
|
9814
|
-
wrappedTokenGatewayV3: "
|
|
9808
|
+
wrappedTokenGatewayV3: "0xA434D495249abE33E031Fe71a969B81f3c07950D",
|
|
9815
9809
|
aEthWETH: "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8",
|
|
9816
9810
|
variableDebtWETH: "0xeA51d7853EEFb32b6ee06b1C12E6dcCA88Be0fFE",
|
|
9817
9811
|
stableDebtWETH: "0x102633152313C81cD80419b6EcF66d14Ad68949A"
|
|
@@ -9939,7 +9933,7 @@ var contractAddressOverrides = {
|
|
|
9939
9933
|
aaveV3: {
|
|
9940
9934
|
data_provider: "0x501B4c19dd9C2e06E94dA7b6D5Ed4ddA013EC741",
|
|
9941
9935
|
aaveLendingPoolV3: "0xb50201558B00496A145fE76f7424749556E326D8",
|
|
9942
|
-
wrappedTokenGatewayV3: "
|
|
9936
|
+
wrappedTokenGatewayV3: "0x7B9c12915c594a68dE96201Cbdc79147F09da278",
|
|
9943
9937
|
aGnoWXDAI: "0xd0Dd6cEF72143E22cCED4867eb0d5F2328715533",
|
|
9944
9938
|
variableDebtWXDAI: "0xaC8b1cE0548C69318920C3e0b21Db296d5770D57",
|
|
9945
9939
|
stableDebtWXDAI: "0x281963D7471eCdC3A2Bd4503e24e89691cfe420D"
|
|
@@ -9967,7 +9961,7 @@ var contractAddressOverrides = {
|
|
|
9967
9961
|
aaveV3: {
|
|
9968
9962
|
data_provider: "0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654",
|
|
9969
9963
|
aaveLendingPoolV3: "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
|
|
9970
|
-
wrappedTokenGatewayV3: "
|
|
9964
|
+
wrappedTokenGatewayV3: "0x5760E34c4003752329bC77790B1De44C2799F8C3",
|
|
9971
9965
|
aArbWETH: "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
|
|
9972
9966
|
variableDebtWETH: "0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351",
|
|
9973
9967
|
stableDebtWETH: "0xD8Ad37849950903571df17049516a5CD4cbE55F6"
|
|
@@ -10917,7 +10911,6 @@ var borrowEther2 = (chain) => {
|
|
|
10917
10911
|
...allow.mainnet.aaveV3.wrappedTokenGatewayV3.repayETH(
|
|
10918
10912
|
aaveLendingPoolV3,
|
|
10919
10913
|
void 0,
|
|
10920
|
-
void 0,
|
|
10921
10914
|
import_zodiac_roles_sdk4.c.avatar,
|
|
10922
10915
|
{ send: true }
|
|
10923
10916
|
),
|
|
@@ -22276,9 +22269,6 @@ var borrow2 = ({
|
|
|
22276
22269
|
];
|
|
22277
22270
|
};
|
|
22278
22271
|
|
|
22279
|
-
// src/protocols/maker/utils.ts
|
|
22280
|
-
var import_ethers7 = require("ethers");
|
|
22281
|
-
|
|
22282
22272
|
// src/protocols/maker/_info.ts
|
|
22283
22273
|
var info_default4 = [
|
|
22284
22274
|
{
|
|
@@ -22704,23 +22694,19 @@ var info_default4 = [
|
|
|
22704
22694
|
];
|
|
22705
22695
|
|
|
22706
22696
|
// src/provider.ts
|
|
22707
|
-
var
|
|
22708
|
-
|
|
22709
|
-
|
|
22710
|
-
"
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
-
name: "Ethereum"
|
|
22714
|
-
}
|
|
22715
|
-
);
|
|
22716
|
-
var gnoProvider = new import_ethers5.providers.JsonRpcProvider(
|
|
22697
|
+
var import_ethers7 = require("ethers");
|
|
22698
|
+
var ethProvider = new import_ethers7.JsonRpcProvider("https://rpc.eth.gateway.fm", {
|
|
22699
|
+
chainId: 1,
|
|
22700
|
+
name: "Ethereum"
|
|
22701
|
+
});
|
|
22702
|
+
var gnoProvider = new import_ethers7.JsonRpcProvider(
|
|
22717
22703
|
"https://rpc.gnosis.gateway.fm",
|
|
22718
22704
|
{
|
|
22719
22705
|
chainId: 100,
|
|
22720
22706
|
name: "Gnosis"
|
|
22721
22707
|
}
|
|
22722
22708
|
);
|
|
22723
|
-
var arb1Provider = new
|
|
22709
|
+
var arb1Provider = new import_ethers7.JsonRpcProvider(
|
|
22724
22710
|
"https://rpc.arb1.arbitrum.gateway.fm",
|
|
22725
22711
|
{
|
|
22726
22712
|
chainId: 42161,
|
|
@@ -22729,16 +22715,11 @@ var arb1Provider = new import_ethers5.providers.JsonRpcProvider(
|
|
|
22729
22715
|
);
|
|
22730
22716
|
|
|
22731
22717
|
// test/provider.ts
|
|
22732
|
-
var
|
|
22718
|
+
var import_ethers8 = require("ethers");
|
|
22733
22719
|
var provider;
|
|
22734
22720
|
var getProvider = () => {
|
|
22735
22721
|
if (!provider) {
|
|
22736
|
-
provider = new
|
|
22737
|
-
url: "http://127.0.0.1:8545",
|
|
22738
|
-
// https://docs.ethers.org/v5/api/utils/web/#ConnectionInfo
|
|
22739
|
-
// How long to wait (in ms) before rejecting with a timeout error. (default: 120000).
|
|
22740
|
-
timeout: 24e4
|
|
22741
|
-
});
|
|
22722
|
+
provider = new import_ethers8.JsonRpcProvider("http://127.0.0.1:8545");
|
|
22742
22723
|
}
|
|
22743
22724
|
return provider;
|
|
22744
22725
|
};
|
|
@@ -22754,19 +22735,19 @@ var queryCdps = async (proxy, targets) => {
|
|
|
22754
22735
|
const cdps = [];
|
|
22755
22736
|
let cdp = await sdk.maker.CdpManager.first(proxy);
|
|
22756
22737
|
console.log({ first: cdp, proxy });
|
|
22757
|
-
while (
|
|
22738
|
+
while (cdp !== 0n) {
|
|
22758
22739
|
cdps.push(cdp);
|
|
22759
22740
|
cdp = (await sdk.maker.CdpManager.list(cdp)).next;
|
|
22760
22741
|
}
|
|
22761
22742
|
const targetCdps = targets == null ? void 0 : targets.map((target) => {
|
|
22762
22743
|
try {
|
|
22763
|
-
return
|
|
22744
|
+
return BigInt(target);
|
|
22764
22745
|
} catch (e) {
|
|
22765
22746
|
throw new NotFoundError(`Cdp not found: ${target}`);
|
|
22766
22747
|
}
|
|
22767
22748
|
});
|
|
22768
22749
|
targetCdps == null ? void 0 : targetCdps.forEach((target) => {
|
|
22769
|
-
if (!cdps.some((cdp2) => cdp2
|
|
22750
|
+
if (!cdps.some((cdp2) => cdp2 === target)) {
|
|
22770
22751
|
throw new NotFoundError(`Cdp not found: ${target}`);
|
|
22771
22752
|
}
|
|
22772
22753
|
});
|
|
@@ -22776,7 +22757,7 @@ var queryIlk = async (cdp) => {
|
|
|
22776
22757
|
const ilkId = await sdk.maker.CdpManager.ilks(cdp);
|
|
22777
22758
|
const ilk = info_default4.find((ilk2) => ilk2.ilk === ilkId);
|
|
22778
22759
|
if (!ilk) {
|
|
22779
|
-
throw new Error(`Unexpected ilk ${ilkId} of cdp ${cdp
|
|
22760
|
+
throw new Error(`Unexpected ilk ${ilkId} of cdp ${Number(cdp)}`);
|
|
22780
22761
|
}
|
|
22781
22762
|
return ilk;
|
|
22782
22763
|
};
|
|
@@ -22808,18 +22789,18 @@ var eth10 = {
|
|
|
22808
22789
|
};
|
|
22809
22790
|
|
|
22810
22791
|
// src/protocols/rocket_pool/utils.ts
|
|
22811
|
-
var
|
|
22792
|
+
var import_ethers9 = require("ethers");
|
|
22812
22793
|
var sdk2 = getMainnetSdk(
|
|
22813
22794
|
process.env.NODE_ENV === "test" ? getProvider() : ethProvider
|
|
22814
22795
|
);
|
|
22815
22796
|
var queryDepositPool = async () => {
|
|
22816
|
-
const deposit_pool_key =
|
|
22817
|
-
|
|
22797
|
+
const deposit_pool_key = (0, import_ethers9.keccak256)(
|
|
22798
|
+
(0, import_ethers9.solidityPacked)(
|
|
22818
22799
|
["string", "string"],
|
|
22819
22800
|
["contract.address", "rocketDepositPool"]
|
|
22820
22801
|
)
|
|
22821
22802
|
);
|
|
22822
|
-
return await sdk2.rocket_pool.storage
|
|
22803
|
+
return await sdk2.rocket_pool.storage["getAddress(bytes32)"](
|
|
22823
22804
|
deposit_pool_key
|
|
22824
22805
|
);
|
|
22825
22806
|
};
|
|
@@ -24693,7 +24674,6 @@ var queryTokens = async (nftIds) => {
|
|
|
24693
24674
|
|
|
24694
24675
|
// src/protocols/uniswap/v3/index.ts
|
|
24695
24676
|
var import_zodiac_roles_sdk15 = require("zodiac-roles-sdk");
|
|
24696
|
-
var import_ethers9 = require("ethers");
|
|
24697
24677
|
var FeeMapping = {
|
|
24698
24678
|
"0.01%": 100,
|
|
24699
24679
|
"0.05%": 500,
|
|
@@ -24714,7 +24694,7 @@ var eth14 = {
|
|
|
24714
24694
|
const mintFees = (fees == null ? void 0 : fees.map((fee) => FeeMapping[fee])) || void 0;
|
|
24715
24695
|
const nftIds = targets && targets.map((target) => {
|
|
24716
24696
|
try {
|
|
24717
|
-
return
|
|
24697
|
+
return BigInt(target);
|
|
24718
24698
|
} catch (e) {
|
|
24719
24699
|
throw new NotFoundError(`Invalid NFT ID: ${target}`);
|
|
24720
24700
|
}
|
|
@@ -24878,14 +24858,14 @@ var arb12 = annotateAll(
|
|
|
24878
24858
|
var import_zod2 = require("zod");
|
|
24879
24859
|
|
|
24880
24860
|
// src/zx.ts
|
|
24881
|
-
var
|
|
24861
|
+
var import_ethers10 = require("ethers");
|
|
24882
24862
|
var import_zod = require("zod");
|
|
24883
24863
|
var import_zod_to_openapi = require("@asteasolutions/zod-to-openapi");
|
|
24884
24864
|
(0, import_zod_to_openapi.extendZodWithOpenApi)(import_zod.z);
|
|
24885
24865
|
var zx = {
|
|
24886
24866
|
address: () => import_zod.z.string().regex(/0x[a-fA-F0-9]{40}/).transform((val, ctx) => {
|
|
24887
24867
|
try {
|
|
24888
|
-
return (0,
|
|
24868
|
+
return (0, import_ethers10.getAddress)(val);
|
|
24889
24869
|
} catch (e) {
|
|
24890
24870
|
ctx.addIssue({
|
|
24891
24871
|
code: import_zod.z.ZodIssueCode.custom,
|
|
@@ -25279,9 +25259,8 @@ var createApply = (chainId) => {
|
|
|
25279
25259
|
var POSTER_ADDRESS = "0x000000000000cd17345801aa8147b8D3950260FF";
|
|
25280
25260
|
|
|
25281
25261
|
// src/export.ts
|
|
25282
|
-
var
|
|
25262
|
+
var import_ethers11 = require("ethers");
|
|
25283
25263
|
var import_zodiac_roles_sdk18 = require("zodiac-roles-sdk");
|
|
25284
|
-
var import_ethers10 = require("ethers");
|
|
25285
25264
|
var createExportToSafeTransactionBuilder = (chainId) => {
|
|
25286
25265
|
return function exportToSafeTransactionBuilder2(transactions, meta) {
|
|
25287
25266
|
return {
|
|
@@ -25299,7 +25278,7 @@ var createExportToSafeTransactionBuilder = (chainId) => {
|
|
|
25299
25278
|
};
|
|
25300
25279
|
var decode = (transaction) => {
|
|
25301
25280
|
const abi = transaction.to === POSTER_ADDRESS ? import_zodiac_roles_sdk18.posterAbi : import_zodiac_roles_sdk18.rolesAbi;
|
|
25302
|
-
const iface = new
|
|
25281
|
+
const iface = new import_ethers11.Interface(abi);
|
|
25303
25282
|
const selector = transaction.data.slice(0, 10);
|
|
25304
25283
|
const functionFragment = iface.getFunction(selector);
|
|
25305
25284
|
if (!functionFragment) {
|
|
@@ -25343,10 +25322,10 @@ var asTxBuilderInputValues = (result) => {
|
|
|
25343
25322
|
let serialized = value;
|
|
25344
25323
|
if (typeof value === "string") {
|
|
25345
25324
|
serialized = value;
|
|
25346
|
-
} else if (
|
|
25325
|
+
} else if (typeof value === "bigint") {
|
|
25347
25326
|
serialized = value.toString();
|
|
25348
|
-
} else if ((0,
|
|
25349
|
-
serialized = (0,
|
|
25327
|
+
} else if ((0, import_ethers11.isBytesLike)(value)) {
|
|
25328
|
+
serialized = (0, import_ethers11.hexlify)(value);
|
|
25350
25329
|
} else {
|
|
25351
25330
|
serialized = JSON.stringify(value);
|
|
25352
25331
|
}
|