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
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MintPaused,
|
|
3
3
|
NotFoundError,
|
|
4
|
-
__commonJS,
|
|
5
4
|
__export,
|
|
6
|
-
__toESM,
|
|
7
5
|
zx
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
|
|
10
|
-
// node_modules/@dethcrypto/eth-sdk/dist/index.js
|
|
11
|
-
var require_dist = __commonJS({
|
|
12
|
-
"node_modules/@dethcrypto/eth-sdk/dist/index.js"(exports) {
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.defineConfig = void 0;
|
|
16
|
-
var defineConfig2 = (config) => config;
|
|
17
|
-
exports.defineConfig = defineConfig2;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
6
|
+
} from "./chunk-E7RA4BMW.mjs";
|
|
20
7
|
|
|
21
8
|
// src/protocols/aave/v2/_info.ts
|
|
22
9
|
var info_default = [
|
|
@@ -498,7 +485,7 @@ var stakeTokens_default = [
|
|
|
498
485
|
}
|
|
499
486
|
];
|
|
500
487
|
|
|
501
|
-
// node_modules/@
|
|
488
|
+
// node_modules/@gnosis-guild/eth-sdk-client/index.mjs
|
|
502
489
|
var eth_sdk_client_exports = {};
|
|
503
490
|
__export(eth_sdk_client_exports, {
|
|
504
491
|
getContract: () => getContract,
|
|
@@ -506,7 +493,7 @@ __export(eth_sdk_client_exports, {
|
|
|
506
493
|
getMainnetSdk: () => getMainnetSdk
|
|
507
494
|
});
|
|
508
495
|
|
|
509
|
-
// node_modules/.
|
|
496
|
+
// node_modules/.gnosisguild/eth-sdk-client/esm/index.js
|
|
510
497
|
import { Contract } from "ethers";
|
|
511
498
|
|
|
512
499
|
// eth-sdk/abis/mainnet/aaveV2/data_provider.json
|
|
@@ -561,7 +548,7 @@ var data_provider_default2 = [{ inputs: [{ internalType: "contract IPoolAddresse
|
|
|
561
548
|
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" }];
|
|
562
549
|
|
|
563
550
|
// eth-sdk/abis/mainnet/aaveV3/wrappedTokenGatewayV3.json
|
|
564
|
-
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: [
|
|
551
|
+
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" }];
|
|
565
552
|
|
|
566
553
|
// eth-sdk/abis/mainnet/aaveV3/aEthWETH.json
|
|
567
554
|
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" }];
|
|
@@ -8223,10 +8210,10 @@ var vlCVX_default = [{ inputs: [], stateMutability: "nonpayable", type: "constru
|
|
|
8223
8210
|
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" }];
|
|
8224
8211
|
|
|
8225
8212
|
// eth-sdk/abis/mainnet/curve/regularPool.json
|
|
8226
|
-
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"
|
|
8213
|
+
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" }];
|
|
8227
8214
|
|
|
8228
8215
|
// eth-sdk/abis/mainnet/curve/metaPool.json
|
|
8229
|
-
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 }];
|
|
8216
|
+
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" }];
|
|
8230
8217
|
|
|
8231
8218
|
// eth-sdk/abis/mainnet/lido/steth.json
|
|
8232
8219
|
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" }];
|
|
@@ -9335,7 +9322,7 @@ var weth_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name
|
|
|
9335
9322
|
// eth-sdk/abis/gnosis/spark/SavingsXDaiAdapter.json
|
|
9336
9323
|
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" }];
|
|
9337
9324
|
|
|
9338
|
-
// node_modules/.
|
|
9325
|
+
// node_modules/.gnosisguild/eth-sdk-client/esm/index.js
|
|
9339
9326
|
function getContract(address, abi, defaultSignerOrProvider) {
|
|
9340
9327
|
return new Contract(address, abi, defaultSignerOrProvider);
|
|
9341
9328
|
}
|
|
@@ -9361,7 +9348,7 @@ function getMainnetSdk(defaultSignerOrProvider) {
|
|
|
9361
9348
|
"aaveV3": {
|
|
9362
9349
|
"data_provider": getContract("0x7B4EB56E7CD4b454BA8ff71E4518426369a138a3", data_provider_default2, defaultSignerOrProvider),
|
|
9363
9350
|
"aaveLendingPoolV3": getContract("0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2", aaveLendingPoolV3_default, defaultSignerOrProvider),
|
|
9364
|
-
"wrappedTokenGatewayV3": getContract("
|
|
9351
|
+
"wrappedTokenGatewayV3": getContract("0xA434D495249abE33E031Fe71a969B81f3c07950D", wrappedTokenGatewayV3_default, defaultSignerOrProvider),
|
|
9365
9352
|
"aEthWETH": getContract("0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8", aEthWETH_default, defaultSignerOrProvider),
|
|
9366
9353
|
"variableDebtWETH": getContract("0xeA51d7853EEFb32b6ee06b1C12E6dcCA88Be0fFE", variableDebtWETH_default2, defaultSignerOrProvider),
|
|
9367
9354
|
"stableDebtWETH": getContract("0x102633152313C81cD80419b6EcF66d14Ad68949A", stableDebtWETH_default2, defaultSignerOrProvider)
|
|
@@ -9485,7 +9472,7 @@ function getGnosisSdk(defaultSignerOrProvider) {
|
|
|
9485
9472
|
}
|
|
9486
9473
|
|
|
9487
9474
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/authoring/kit.js
|
|
9488
|
-
import { BaseContract, ethers } from "ethers";
|
|
9475
|
+
import { BaseContract, ethers, isError } from "ethers";
|
|
9489
9476
|
|
|
9490
9477
|
// node_modules/zodiac-roles-deployments/build/esm/types.js
|
|
9491
9478
|
var ExecutionOptions;
|
|
@@ -9562,16 +9549,16 @@ var QUERY = `
|
|
|
9562
9549
|
query Role($id: String) {
|
|
9563
9550
|
role(id: $id) {
|
|
9564
9551
|
key
|
|
9565
|
-
members {
|
|
9552
|
+
members(first: 1000) {
|
|
9566
9553
|
member {
|
|
9567
9554
|
address
|
|
9568
9555
|
}
|
|
9569
9556
|
}
|
|
9570
|
-
targets {
|
|
9557
|
+
targets(first: 1000) {
|
|
9571
9558
|
address
|
|
9572
9559
|
clearance
|
|
9573
9560
|
executionOptions
|
|
9574
|
-
functions {
|
|
9561
|
+
functions(first: 1000) {
|
|
9575
9562
|
selector
|
|
9576
9563
|
executionOptions
|
|
9577
9564
|
wildcarded
|
|
@@ -9581,7 +9568,7 @@ query Role($id: String) {
|
|
|
9581
9568
|
}
|
|
9582
9569
|
}
|
|
9583
9570
|
}
|
|
9584
|
-
annotations {
|
|
9571
|
+
annotations(first: 1000) {
|
|
9585
9572
|
uri
|
|
9586
9573
|
schema
|
|
9587
9574
|
}
|
|
@@ -9593,18 +9580,14 @@ query Role($id: String) {
|
|
|
9593
9580
|
import { c } from "zodiac-roles-sdk";
|
|
9594
9581
|
|
|
9595
9582
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/utils.js
|
|
9596
|
-
import { keccak256 as keccak2562, ParamType, toUtf8Bytes } from "ethers
|
|
9583
|
+
import { keccak256 as keccak2562, ParamType, toUtf8Bytes } from "ethers";
|
|
9597
9584
|
|
|
9598
9585
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/conditions/conditionId.js
|
|
9599
|
-
import {
|
|
9600
|
-
import { concat, getCreate2Address, hexDataLength, hexlify, hexConcat, keccak256, hexZeroPad } from "ethers/lib/utils";
|
|
9586
|
+
import { concat, getCreate2Address, dataLength, keccak256, toBeHex } from "ethers";
|
|
9601
9587
|
|
|
9602
9588
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/utils/encodeAbiParameters.js
|
|
9603
|
-
import {
|
|
9604
|
-
var encodeAbiParameters = (types, values) => defaultAbiCoder.encode(types, values);
|
|
9605
|
-
|
|
9606
|
-
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/conditions/normalizeCondition.js
|
|
9607
|
-
import { BigNumber as BigNumber2 } from "ethers";
|
|
9589
|
+
import { AbiCoder } from "ethers";
|
|
9590
|
+
var encodeAbiParameters = (types, values) => AbiCoder.defaultAbiCoder().encode(types, values);
|
|
9608
9591
|
|
|
9609
9592
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/utils.js
|
|
9610
9593
|
var sighash = (signature) => keccak2562(toUtf8Bytes(signature)).substring(0, 10);
|
|
@@ -9625,7 +9608,7 @@ var isFunctionScoped = (permission) => {
|
|
|
9625
9608
|
};
|
|
9626
9609
|
|
|
9627
9610
|
// node_modules/zodiac-roles-sdk/build/esm/sdk/src/permissions/authoring/conditions/allowances.js
|
|
9628
|
-
import { ParamType as ParamType2 } from "ethers
|
|
9611
|
+
import { ParamType as ParamType2 } from "ethers";
|
|
9629
9612
|
var callWithinAllowance = (allowanceKey) => () => {
|
|
9630
9613
|
return {
|
|
9631
9614
|
paramType: ParameterType.None,
|
|
@@ -9645,13 +9628,15 @@ var etherWithinAllowance = (allowanceKey) => () => {
|
|
|
9645
9628
|
var makeAllowFunction = (contract, name) => {
|
|
9646
9629
|
const functionFragment = contract.interface.getFunction(name);
|
|
9647
9630
|
const functionInputs = functionFragment.inputs;
|
|
9648
|
-
|
|
9631
|
+
if (typeof contract.target !== "string" || !contract.target.startsWith("0x")) {
|
|
9632
|
+
throw new Error("Only addresses as contract targets are supported");
|
|
9633
|
+
}
|
|
9649
9634
|
return (...args) => {
|
|
9650
9635
|
const scopings = args.slice(0, functionInputs.length);
|
|
9651
9636
|
const hasScopings = scopings.some((s) => !!s);
|
|
9652
9637
|
const options = args[functionInputs.length] || {};
|
|
9653
9638
|
const presetFunction = {
|
|
9654
|
-
targetAddress: contract.
|
|
9639
|
+
targetAddress: contract.target,
|
|
9655
9640
|
signature: functionFragment.format("sighash"),
|
|
9656
9641
|
condition: hasScopings ? c.calldataMatches(scopings, functionInputs)() : void 0
|
|
9657
9642
|
};
|
|
@@ -9664,19 +9649,13 @@ var emptyCalldataMatches = {
|
|
|
9664
9649
|
children: []
|
|
9665
9650
|
};
|
|
9666
9651
|
var applyGlobalAllowance = (condition = emptyCalldataMatches, allowanceCondition) => {
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
if (!node.children)
|
|
9674
|
-
node.children = [];
|
|
9675
|
-
node.children = [...node.children || [], allowanceCondition];
|
|
9676
|
-
}
|
|
9652
|
+
if (condition.paramType !== ParameterType.Calldata || condition.operator !== Operator.Matches) {
|
|
9653
|
+
throw new Error("Global allowance can only be applied to calldata matches nodes");
|
|
9654
|
+
}
|
|
9655
|
+
return {
|
|
9656
|
+
...condition,
|
|
9657
|
+
children: [...condition.children || [], allowanceCondition]
|
|
9677
9658
|
};
|
|
9678
|
-
applyAllowance(clone);
|
|
9679
|
-
return clone;
|
|
9680
9659
|
};
|
|
9681
9660
|
var applyOptions = (entry, options) => {
|
|
9682
9661
|
let condition = entry.condition;
|
|
@@ -9700,15 +9679,41 @@ var EVERYTHING = Symbol("EVERYTHING");
|
|
|
9700
9679
|
var makeAllowContract = (contract) => {
|
|
9701
9680
|
const allowEverything = (options) => {
|
|
9702
9681
|
return {
|
|
9703
|
-
targetAddress: contract.
|
|
9682
|
+
targetAddress: contract.target,
|
|
9704
9683
|
...options
|
|
9705
9684
|
};
|
|
9706
9685
|
};
|
|
9707
|
-
const
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9686
|
+
const contractHasFunction = (prop) => {
|
|
9687
|
+
try {
|
|
9688
|
+
contract.getFunction(prop);
|
|
9689
|
+
} catch (error) {
|
|
9690
|
+
if (!isError(error, "INVALID_ARGUMENT") || error.argument !== "key") {
|
|
9691
|
+
throw error;
|
|
9692
|
+
}
|
|
9693
|
+
return false;
|
|
9694
|
+
}
|
|
9695
|
+
return true;
|
|
9696
|
+
};
|
|
9697
|
+
return new Proxy({}, {
|
|
9698
|
+
get: (target, prop) => {
|
|
9699
|
+
if (prop === EVERYTHING) {
|
|
9700
|
+
return allowEverything;
|
|
9701
|
+
}
|
|
9702
|
+
if (typeof prop !== "string") {
|
|
9703
|
+
return void 0;
|
|
9704
|
+
}
|
|
9705
|
+
if (contractHasFunction(prop)) {
|
|
9706
|
+
return makeAllowFunction(contract, prop);
|
|
9707
|
+
}
|
|
9708
|
+
return void 0;
|
|
9709
|
+
},
|
|
9710
|
+
has: (target, prop) => {
|
|
9711
|
+
if (typeof prop === "symbol") {
|
|
9712
|
+
return prop === EVERYTHING;
|
|
9713
|
+
}
|
|
9714
|
+
return contractHasFunction(prop);
|
|
9715
|
+
}
|
|
9716
|
+
});
|
|
9712
9717
|
};
|
|
9713
9718
|
var mapSdk = (sdk4) => {
|
|
9714
9719
|
return Object.keys(sdk4).reduce((acc, key) => {
|
|
@@ -9749,7 +9754,7 @@ var allowErc20Approve = (tokens, spenders) => forAll(tokens, {
|
|
|
9749
9754
|
});
|
|
9750
9755
|
|
|
9751
9756
|
// eth-sdk/config.ts
|
|
9752
|
-
|
|
9757
|
+
import { defineConfig } from "@gnosis-guild/eth-sdk";
|
|
9753
9758
|
var contracts = {
|
|
9754
9759
|
mainnet: {
|
|
9755
9760
|
aaveV2: {
|
|
@@ -9772,7 +9777,7 @@ var contracts = {
|
|
|
9772
9777
|
aaveV3: {
|
|
9773
9778
|
data_provider: "0x7B4EB56E7CD4b454BA8ff71E4518426369a138a3",
|
|
9774
9779
|
aaveLendingPoolV3: "0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2",
|
|
9775
|
-
wrappedTokenGatewayV3: "
|
|
9780
|
+
wrappedTokenGatewayV3: "0xA434D495249abE33E031Fe71a969B81f3c07950D",
|
|
9776
9781
|
aEthWETH: "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8",
|
|
9777
9782
|
variableDebtWETH: "0xeA51d7853EEFb32b6ee06b1C12E6dcCA88Be0fFE",
|
|
9778
9783
|
stableDebtWETH: "0x102633152313C81cD80419b6EcF66d14Ad68949A"
|
|
@@ -9900,7 +9905,7 @@ var contractAddressOverrides = {
|
|
|
9900
9905
|
aaveV3: {
|
|
9901
9906
|
data_provider: "0x501B4c19dd9C2e06E94dA7b6D5Ed4ddA013EC741",
|
|
9902
9907
|
aaveLendingPoolV3: "0xb50201558B00496A145fE76f7424749556E326D8",
|
|
9903
|
-
wrappedTokenGatewayV3: "
|
|
9908
|
+
wrappedTokenGatewayV3: "0x7B9c12915c594a68dE96201Cbdc79147F09da278",
|
|
9904
9909
|
aGnoWXDAI: "0xd0Dd6cEF72143E22cCED4867eb0d5F2328715533",
|
|
9905
9910
|
variableDebtWXDAI: "0xaC8b1cE0548C69318920C3e0b21Db296d5770D57",
|
|
9906
9911
|
stableDebtWXDAI: "0x281963D7471eCdC3A2Bd4503e24e89691cfe420D"
|
|
@@ -9928,7 +9933,7 @@ var contractAddressOverrides = {
|
|
|
9928
9933
|
aaveV3: {
|
|
9929
9934
|
data_provider: "0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654",
|
|
9930
9935
|
aaveLendingPoolV3: "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
|
|
9931
|
-
wrappedTokenGatewayV3: "
|
|
9936
|
+
wrappedTokenGatewayV3: "0x5760E34c4003752329bC77790B1De44C2799F8C3",
|
|
9932
9937
|
aArbWETH: "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
|
|
9933
9938
|
variableDebtWETH: "0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351",
|
|
9934
9939
|
stableDebtWETH: "0xD8Ad37849950903571df17049516a5CD4cbE55F6"
|
|
@@ -9944,7 +9949,7 @@ var contractAddressOverrides = {
|
|
|
9944
9949
|
weth: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
|
|
9945
9950
|
}
|
|
9946
9951
|
};
|
|
9947
|
-
var config_default =
|
|
9952
|
+
var config_default = defineConfig({
|
|
9948
9953
|
etherscanURLs: {
|
|
9949
9954
|
gnosis: "https://api.gnosisscan.io/api"
|
|
9950
9955
|
//gnosis: "https://blockscout.com/xdai/mainnet/api",
|
|
@@ -10878,7 +10883,6 @@ var borrowEther2 = (chain) => {
|
|
|
10878
10883
|
...allow.mainnet.aaveV3.wrappedTokenGatewayV3.repayETH(
|
|
10879
10884
|
aaveLendingPoolV3,
|
|
10880
10885
|
void 0,
|
|
10881
|
-
void 0,
|
|
10882
10886
|
c4.avatar,
|
|
10883
10887
|
{ send: true }
|
|
10884
10888
|
),
|
|
@@ -22237,9 +22241,6 @@ var borrow2 = ({
|
|
|
22237
22241
|
];
|
|
22238
22242
|
};
|
|
22239
22243
|
|
|
22240
|
-
// src/protocols/maker/utils.ts
|
|
22241
|
-
import { BigNumber as BigNumber3 } from "ethers";
|
|
22242
|
-
|
|
22243
22244
|
// src/protocols/maker/_info.ts
|
|
22244
22245
|
var info_default4 = [
|
|
22245
22246
|
{
|
|
@@ -22665,23 +22666,19 @@ var info_default4 = [
|
|
|
22665
22666
|
];
|
|
22666
22667
|
|
|
22667
22668
|
// src/provider.ts
|
|
22668
|
-
import {
|
|
22669
|
-
|
|
22670
|
-
|
|
22671
|
-
"
|
|
22672
|
-
|
|
22673
|
-
|
|
22674
|
-
name: "Ethereum"
|
|
22675
|
-
}
|
|
22676
|
-
);
|
|
22677
|
-
var gnoProvider = new providers.JsonRpcProvider(
|
|
22669
|
+
import { JsonRpcProvider } from "ethers";
|
|
22670
|
+
var ethProvider = new JsonRpcProvider("https://rpc.eth.gateway.fm", {
|
|
22671
|
+
chainId: 1,
|
|
22672
|
+
name: "Ethereum"
|
|
22673
|
+
});
|
|
22674
|
+
var gnoProvider = new JsonRpcProvider(
|
|
22678
22675
|
"https://rpc.gnosis.gateway.fm",
|
|
22679
22676
|
{
|
|
22680
22677
|
chainId: 100,
|
|
22681
22678
|
name: "Gnosis"
|
|
22682
22679
|
}
|
|
22683
22680
|
);
|
|
22684
|
-
var arb1Provider = new
|
|
22681
|
+
var arb1Provider = new JsonRpcProvider(
|
|
22685
22682
|
"https://rpc.arb1.arbitrum.gateway.fm",
|
|
22686
22683
|
{
|
|
22687
22684
|
chainId: 42161,
|
|
@@ -22690,16 +22687,11 @@ var arb1Provider = new providers.JsonRpcProvider(
|
|
|
22690
22687
|
);
|
|
22691
22688
|
|
|
22692
22689
|
// test/provider.ts
|
|
22693
|
-
import {
|
|
22690
|
+
import { JsonRpcProvider as JsonRpcProvider2 } from "ethers";
|
|
22694
22691
|
var provider;
|
|
22695
22692
|
var getProvider = () => {
|
|
22696
22693
|
if (!provider) {
|
|
22697
|
-
provider = new
|
|
22698
|
-
url: "http://127.0.0.1:8545",
|
|
22699
|
-
// https://docs.ethers.org/v5/api/utils/web/#ConnectionInfo
|
|
22700
|
-
// How long to wait (in ms) before rejecting with a timeout error. (default: 120000).
|
|
22701
|
-
timeout: 24e4
|
|
22702
|
-
});
|
|
22694
|
+
provider = new JsonRpcProvider2("http://127.0.0.1:8545");
|
|
22703
22695
|
}
|
|
22704
22696
|
return provider;
|
|
22705
22697
|
};
|
|
@@ -22715,19 +22707,19 @@ var queryCdps = async (proxy, targets) => {
|
|
|
22715
22707
|
const cdps = [];
|
|
22716
22708
|
let cdp = await sdk.maker.CdpManager.first(proxy);
|
|
22717
22709
|
console.log({ first: cdp, proxy });
|
|
22718
|
-
while (
|
|
22710
|
+
while (cdp !== 0n) {
|
|
22719
22711
|
cdps.push(cdp);
|
|
22720
22712
|
cdp = (await sdk.maker.CdpManager.list(cdp)).next;
|
|
22721
22713
|
}
|
|
22722
22714
|
const targetCdps = targets == null ? void 0 : targets.map((target) => {
|
|
22723
22715
|
try {
|
|
22724
|
-
return
|
|
22716
|
+
return BigInt(target);
|
|
22725
22717
|
} catch (e) {
|
|
22726
22718
|
throw new NotFoundError(`Cdp not found: ${target}`);
|
|
22727
22719
|
}
|
|
22728
22720
|
});
|
|
22729
22721
|
targetCdps == null ? void 0 : targetCdps.forEach((target) => {
|
|
22730
|
-
if (!cdps.some((cdp2) => cdp2
|
|
22722
|
+
if (!cdps.some((cdp2) => cdp2 === target)) {
|
|
22731
22723
|
throw new NotFoundError(`Cdp not found: ${target}`);
|
|
22732
22724
|
}
|
|
22733
22725
|
});
|
|
@@ -22737,7 +22729,7 @@ var queryIlk = async (cdp) => {
|
|
|
22737
22729
|
const ilkId = await sdk.maker.CdpManager.ilks(cdp);
|
|
22738
22730
|
const ilk = info_default4.find((ilk2) => ilk2.ilk === ilkId);
|
|
22739
22731
|
if (!ilk) {
|
|
22740
|
-
throw new Error(`Unexpected ilk ${ilkId} of cdp ${cdp
|
|
22732
|
+
throw new Error(`Unexpected ilk ${ilkId} of cdp ${Number(cdp)}`);
|
|
22741
22733
|
}
|
|
22742
22734
|
return ilk;
|
|
22743
22735
|
};
|
|
@@ -22769,18 +22761,18 @@ var eth10 = {
|
|
|
22769
22761
|
};
|
|
22770
22762
|
|
|
22771
22763
|
// src/protocols/rocket_pool/utils.ts
|
|
22772
|
-
import {
|
|
22764
|
+
import { keccak256 as keccak2563, solidityPacked } from "ethers";
|
|
22773
22765
|
var sdk2 = getMainnetSdk(
|
|
22774
22766
|
process.env.NODE_ENV === "test" ? getProvider() : ethProvider
|
|
22775
22767
|
);
|
|
22776
22768
|
var queryDepositPool = async () => {
|
|
22777
|
-
const deposit_pool_key =
|
|
22778
|
-
|
|
22769
|
+
const deposit_pool_key = keccak2563(
|
|
22770
|
+
solidityPacked(
|
|
22779
22771
|
["string", "string"],
|
|
22780
22772
|
["contract.address", "rocketDepositPool"]
|
|
22781
22773
|
)
|
|
22782
22774
|
);
|
|
22783
|
-
return await sdk2.rocket_pool.storage
|
|
22775
|
+
return await sdk2.rocket_pool.storage["getAddress(bytes32)"](
|
|
22784
22776
|
deposit_pool_key
|
|
22785
22777
|
);
|
|
22786
22778
|
};
|
|
@@ -24654,7 +24646,6 @@ var queryTokens = async (nftIds) => {
|
|
|
24654
24646
|
|
|
24655
24647
|
// src/protocols/uniswap/v3/index.ts
|
|
24656
24648
|
import { c as c15 } from "zodiac-roles-sdk";
|
|
24657
|
-
import { BigNumber as BigNumber4 } from "ethers";
|
|
24658
24649
|
var FeeMapping = {
|
|
24659
24650
|
"0.01%": 100,
|
|
24660
24651
|
"0.05%": 500,
|
|
@@ -24675,7 +24666,7 @@ var eth14 = {
|
|
|
24675
24666
|
const mintFees = (fees == null ? void 0 : fees.map((fee) => FeeMapping[fee])) || void 0;
|
|
24676
24667
|
const nftIds = targets && targets.map((target) => {
|
|
24677
24668
|
try {
|
|
24678
|
-
return
|
|
24669
|
+
return BigInt(target);
|
|
24679
24670
|
} catch (e) {
|
|
24680
24671
|
throw new NotFoundError(`Invalid NFT ID: ${target}`);
|
|
24681
24672
|
}
|
|
@@ -25258,11 +25249,10 @@ var POSTER_ADDRESS = "0x000000000000cd17345801aa8147b8D3950260FF";
|
|
|
25258
25249
|
// src/export.ts
|
|
25259
25250
|
import {
|
|
25260
25251
|
Interface,
|
|
25261
|
-
hexlify
|
|
25252
|
+
hexlify,
|
|
25262
25253
|
isBytesLike
|
|
25263
|
-
} from "ethers
|
|
25254
|
+
} from "ethers";
|
|
25264
25255
|
import { posterAbi, rolesAbi } from "zodiac-roles-sdk";
|
|
25265
|
-
import { BigNumber as BigNumber5 } from "ethers";
|
|
25266
25256
|
var createExportToSafeTransactionBuilder = (chainId) => {
|
|
25267
25257
|
return function exportToSafeTransactionBuilder(transactions, meta) {
|
|
25268
25258
|
return {
|
|
@@ -25324,10 +25314,10 @@ var asTxBuilderInputValues = (result) => {
|
|
|
25324
25314
|
let serialized = value;
|
|
25325
25315
|
if (typeof value === "string") {
|
|
25326
25316
|
serialized = value;
|
|
25327
|
-
} else if (
|
|
25317
|
+
} else if (typeof value === "bigint") {
|
|
25328
25318
|
serialized = value.toString();
|
|
25329
25319
|
} else if (isBytesLike(value)) {
|
|
25330
|
-
serialized =
|
|
25320
|
+
serialized = hexlify(value);
|
|
25331
25321
|
} else {
|
|
25332
25322
|
serialized = JSON.stringify(value);
|
|
25333
25323
|
}
|
|
@@ -25347,4 +25337,4 @@ export {
|
|
|
25347
25337
|
createApply,
|
|
25348
25338
|
createExportToSafeTransactionBuilder
|
|
25349
25339
|
};
|
|
25350
|
-
//# sourceMappingURL=chunk-
|
|
25340
|
+
//# sourceMappingURL=chunk-AUSHK4AH.mjs.map
|