defi-kit 1.0.0 → 1.0.2

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.
@@ -5,7 +5,7 @@ import {
5
5
  __export,
6
6
  __toESM,
7
7
  zx
8
- } from "./chunk-WMII4CAV.mjs";
8
+ } from "./chunk-PU3MJ7WD.mjs";
9
9
 
10
10
  // node_modules/@dethcrypto/eth-sdk/dist/index.js
11
11
  var require_dist = __commonJS({
@@ -6531,6 +6531,9 @@ var dai_default = [{ inputs: [{ internalType: "uint256", name: "chainId_", type:
6531
6531
  // eth-sdk/abis/mainnet/usdc.json
6532
6532
  var usdc_default = [{ 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: "authorizer", type: "address" }, { indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "AuthorizationCanceled", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "authorizer", type: "address" }, { indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "AuthorizationUsed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_account", type: "address" }], name: "Blacklisted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newBlacklister", type: "address" }], name: "BlacklisterChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "burner", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "Burn", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newMasterMinter", type: "address" }], name: "MasterMinterChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "minter", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "Mint", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "minter", type: "address" }, { indexed: false, internalType: "uint256", name: "minterAllowedAmount", type: "uint256" }], name: "MinterConfigured", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "oldMinter", type: "address" }], name: "MinterRemoved", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "previousOwner", type: "address" }, { indexed: false, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [], name: "Pause", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }], name: "PauserChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }], name: "RescuerChanged", 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" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_account", type: "address" }], name: "UnBlacklisted", type: "event" }, { anonymous: false, inputs: [], name: "Unpause", type: "event" }, { inputs: [], name: "CANCEL_AUTHORIZATION_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "PERMIT_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "RECEIVE_WITH_AUTHORIZATION_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "TRANSFER_WITH_AUTHORIZATION_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], 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: "value", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "authorizer", type: "address" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "authorizationState", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "blacklist", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "blacklister", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "authorizer", type: "address" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "cancelAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }, { internalType: "uint256", name: "minterAllowedAmount", type: "uint256" }], name: "configureMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "currency", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", 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: "decrement", type: "uint256" }], name: "decreaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "increment", type: "uint256" }], name: "increaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "string", name: "tokenName", type: "string" }, { internalType: "string", name: "tokenSymbol", type: "string" }, { internalType: "string", name: "tokenCurrency", type: "string" }, { internalType: "uint8", name: "tokenDecimals", type: "uint8" }, { internalType: "address", name: "newMasterMinter", type: "address" }, { internalType: "address", name: "newPauser", type: "address" }, { internalType: "address", name: "newBlacklister", type: "address" }, { internalType: "address", name: "newOwner", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "string", name: "newName", type: "string" }], name: "initializeV2", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "lostAndFound", type: "address" }], name: "initializeV2_1", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "isBlacklisted", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "isMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "masterMinter", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_to", type: "address" }, { internalType: "uint256", name: "_amount", type: "uint256" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }], name: "minterAllowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", 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: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pauser", outputs: [{ internalType: "address", name: "", type: "address" }], 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: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "validAfter", type: "uint256" }, { internalType: "uint256", name: "validBefore", type: "uint256" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "receiveWithAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }], name: "removeMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "contract IERC20", name: "tokenContract", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "rescueERC20", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "rescuer", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", 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: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transfer", 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: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "validAfter", type: "uint256" }, { internalType: "uint256", name: "validBefore", type: "uint256" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "transferWithAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "unBlacklist", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newBlacklister", type: "address" }], name: "updateBlacklister", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newMasterMinter", type: "address" }], name: "updateMasterMinter", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newPauser", type: "address" }], name: "updatePauser", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newRescuer", type: "address" }], name: "updateRescuer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "version", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }];
6533
6533
 
6534
+ // eth-sdk/abis/mainnet/usdt.json
6535
+ var usdt_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_upgradedAddress", type: "address" }], name: "deprecate", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_spender", type: "address" }, { name: "_value", type: "uint256" }], name: "approve", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "deprecated", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_evilUser", type: "address" }], name: "addBlackList", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_value", type: "uint256" }], name: "transferFrom", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "upgradedAddress", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "balances", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "maximumFee", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "_totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "unpause", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_maker", type: "address" }], name: "getBlackListStatus", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }, { name: "", type: "address" }], name: "allowed", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "paused", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "who", type: "address" }], name: "balanceOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "pause", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getOwner", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "owner", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_to", type: "address" }, { name: "_value", type: "uint256" }], name: "transfer", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "newBasisPoints", type: "uint256" }, { name: "newMaxFee", type: "uint256" }], name: "setParams", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "amount", type: "uint256" }], name: "issue", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "amount", type: "uint256" }], name: "redeem", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_owner", type: "address" }, { name: "_spender", type: "address" }], name: "allowance", outputs: [{ name: "remaining", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "basisPointsRate", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "isBlackListed", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_clearedUser", type: "address" }], name: "removeBlackList", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "MAX_UINT", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_blackListedUser", type: "address" }], name: "destroyBlackFunds", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { inputs: [{ name: "_initialSupply", type: "uint256" }, { name: "_name", type: "string" }, { name: "_symbol", type: "string" }, { name: "_decimals", type: "uint256" }], payable: false, stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "Issue", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "Redeem", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "newAddress", type: "address" }], name: "Deprecate", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "feeBasisPoints", type: "uint256" }, { indexed: false, name: "maxFee", type: "uint256" }], name: "Params", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_blackListedUser", type: "address" }, { indexed: false, name: "_balance", type: "uint256" }], name: "DestroyedBlackFunds", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_user", type: "address" }], name: "AddedBlackList", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_user", type: "address" }], name: "RemovedBlackList", 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: true, name: "from", type: "address" }, { indexed: true, name: "to", type: "address" }, { indexed: false, name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [], name: "Pause", type: "event" }, { anonymous: false, inputs: [], name: "Unpause", type: "event" }];
6536
+
6534
6537
  // eth-sdk/abis/mainnet/weth.json
6535
6538
  var weth_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "guy", type: "address" }, { name: "wad", type: "uint256" }], name: "approve", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "src", type: "address" }, { name: "dst", type: "address" }, { name: "wad", type: "uint256" }], name: "transferFrom", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "wad", type: "uint256" }], name: "withdraw", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ name: "", type: "uint8" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "balanceOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "dst", type: "address" }, { name: "wad", type: "uint256" }], name: "transfer", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [], name: "deposit", outputs: [], payable: true, stateMutability: "payable", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }, { name: "", type: "address" }], name: "allowance", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { payable: true, stateMutability: "payable", type: "fallback" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: true, name: "guy", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: true, name: "dst", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "dst", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Deposit", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Withdrawal", type: "event" }];
6536
6539
 
@@ -6638,6 +6641,7 @@ function getMainnetSdk(defaultSignerOrProvider) {
6638
6641
  },
6639
6642
  "dai": getContract("0x6B175474E89094C44Da98b954EedeAC495271d0F", dai_default, defaultSignerOrProvider),
6640
6643
  "usdc": getContract("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", usdc_default, defaultSignerOrProvider),
6644
+ "usdt": getContract("0xdAC17F958D2ee523a2206206994597C13D831ec7", usdt_default, defaultSignerOrProvider),
6641
6645
  "weth": getContract("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", weth_default, defaultSignerOrProvider)
6642
6646
  };
6643
6647
  }
@@ -6943,6 +6947,14 @@ var contracts = {
6943
6947
  weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
6944
6948
  }
6945
6949
  };
6950
+ var contractAddressOverrides = {
6951
+ gnosis: {
6952
+ aura: {
6953
+ booster: "0x98Ef32edd24e2c92525E59afc4475C1242a30184",
6954
+ reward_pool_deposit_wrapper: "0x0Fec3d212BcC29eF3E505B555D7a7343DF0B7F76"
6955
+ }
6956
+ }
6957
+ };
6946
6958
  var config_default = (0, import_eth_sdk.defineConfig)({
6947
6959
  contracts
6948
6960
  });
@@ -9470,8 +9482,8 @@ var gnoPools_default = [
9470
9482
  // src/protocols/aura/actions.ts
9471
9483
  import { c as c6 } from "zodiac-roles-sdk";
9472
9484
 
9473
- // src/protocols/balancer/_info.ts
9474
- var info_default3 = [
9485
+ // src/protocols/balancer/_ethPools.ts
9486
+ var ethPools_default2 = [
9475
9487
  {
9476
9488
  bpt: "0x00612Eb4F312eB6ace7aCC8781196601078aE339",
9477
9489
  id: "0x00612eb4f312eb6ace7acc8781196601078ae3390002000000000000000005a2",
@@ -9997,6 +10009,25 @@ var info_default3 = [
9997
10009
  }
9998
10010
  ]
9999
10011
  },
10012
+ {
10013
+ bpt: "0x20a61B948E33879ce7F23e535CC7BAA3BC66c5a9",
10014
+ id: "0x20a61b948e33879ce7f23e535cc7baa3bc66c5a9000000000000000000000555",
10015
+ name: "R-DAI-BLP",
10016
+ type: "ComposableStable",
10017
+ gauge: "0x6F3b31296FD2457eba6Dca3BED65ec79e06c1295",
10018
+ tokens: [
10019
+ {
10020
+ address: "0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21",
10021
+ symbol: "R",
10022
+ id: "0x"
10023
+ },
10024
+ {
10025
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
10026
+ symbol: "DAI",
10027
+ id: "0x"
10028
+ }
10029
+ ]
10030
+ },
10000
10031
  {
10001
10032
  bpt: "0x20FacEcaa68E9b7c92d2d0ec9136D864Df805233",
10002
10033
  id: "0x20facecaa68e9b7c92d2d0ec9136d864df805233000100000000000000000190",
@@ -10913,45 +10944,6 @@ var info_default3 = [
10913
10944
  }
10914
10945
  ]
10915
10946
  },
10916
- {
10917
- bpt: "0x5b3b589B45531a2f0aE203d5044782bA46aEFC4c",
10918
- id: "0x5b3b589b45531a2f0ae203d5044782ba46aefc4c00010000000000000000061a",
10919
- name: "17DNT-17CVC-17OCEAN-17POLY-17USDC-17ENJ",
10920
- type: "Weighted",
10921
- gauge: null,
10922
- tokens: [
10923
- {
10924
- address: "0x0AbdAce70D3790235af448C88547603b945604ea",
10925
- symbol: "DNT",
10926
- id: "0x"
10927
- },
10928
- {
10929
- address: "0x41e5560054824eA6B0732E656E3Ad64E20e94E45",
10930
- symbol: "CVC",
10931
- id: "0x"
10932
- },
10933
- {
10934
- address: "0x967da4048cD07aB37855c090aAF366e4ce1b9F48",
10935
- symbol: "OCEAN",
10936
- id: "0x"
10937
- },
10938
- {
10939
- address: "0x9992eC3cF6A55b00978cdDF2b27BC6882d88D1eC",
10940
- symbol: "POLY",
10941
- id: "0x"
10942
- },
10943
- {
10944
- address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
10945
- symbol: "USDC",
10946
- id: "0x"
10947
- },
10948
- {
10949
- address: "0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",
10950
- symbol: "ENJ",
10951
- id: "0x"
10952
- }
10953
- ]
10954
- },
10955
10947
  {
10956
10948
  bpt: "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56",
10957
10949
  id: "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014",
@@ -11514,25 +11506,6 @@ var info_default3 = [
11514
11506
  }
11515
11507
  ]
11516
11508
  },
11517
- {
11518
- bpt: "0x80bE0c303D8Ad2A280878b50a39B1ee8E54DBD22",
11519
- id: "0x80be0c303d8ad2a280878b50a39b1ee8e54dbd2200020000000000000000000f",
11520
- name: "B-50LPT-50WETH",
11521
- type: "Weighted",
11522
- gauge: null,
11523
- tokens: [
11524
- {
11525
- address: "0x58b6A8A3302369DAEc383334672404Ee733aB239",
11526
- symbol: "LPT",
11527
- id: "0x"
11528
- },
11529
- {
11530
- address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
11531
- symbol: "WETH",
11532
- id: "0x"
11533
- }
11534
- ]
11535
- },
11536
11509
  {
11537
11510
  bpt: "0x8167A1117691f39e05e9131cfA88F0e3A620E967",
11538
11511
  id: "0x8167a1117691f39e05e9131cfa88f0e3a620e96700020000000000000000038c",
@@ -12028,30 +12001,6 @@ var info_default3 = [
12028
12001
  }
12029
12002
  ]
12030
12003
  },
12031
- {
12032
- bpt: "0x988f2B03Aea264378518B7235d08c6cB2583AAA4",
12033
- id: "0x988f2b03aea264378518b7235d08c6cb2583aaa40001000000000000000004b5",
12034
- name: "29WBTC-4wstETH-67TRAC",
12035
- type: "Weighted",
12036
- gauge: null,
12037
- tokens: [
12038
- {
12039
- address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
12040
- symbol: "WBTC",
12041
- id: "0x"
12042
- },
12043
- {
12044
- address: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
12045
- symbol: "wstETH",
12046
- id: "0x"
12047
- },
12048
- {
12049
- address: "0xaA7a9CA87d3694B5755f213B5D04094b8d0F0A6F",
12050
- symbol: "TRAC",
12051
- id: "0x"
12052
- }
12053
- ]
12054
- },
12055
12004
  {
12056
12005
  bpt: "0x98b76Fb35387142f97d601A297276bB152Ae8ab0",
12057
12006
  id: "0x98b76fb35387142f97d601a297276bb152ae8ab0000200000000000000000662",
@@ -13773,139 +13722,621 @@ var info_default3 = [
13773
13722
  }
13774
13723
  ];
13775
13724
 
13776
- // src/protocols/balancer/actions.ts
13777
- import { c as c5 } from "zodiac-roles-sdk";
13778
- var BAL = "0xba100000625a3754423978a60c9317c58a424e3D";
13779
- var WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
13780
- var B_80BAL_20WETH = "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56";
13781
- var B_80BAL_20WETH_PID = "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014";
13782
- var bb_a_USD_v1 = "0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2";
13783
- var bb_a_USD_v2 = "0xA13a9247ea42D743238089903570127DdA72fE44";
13784
- var bb_a_USD_v3 = "0xfeBb0bbf162E64fb9D0dfe186E517d84C395f016";
13785
- var USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
13786
- var deposit = (pool, tokens = pool.tokens) => {
13787
- const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
13788
- const tokenPoolIds = pool.tokens.filter(
13789
- (token) => tokens.some((t) => token.address === t.address) && token.id !== null && token.id !== "0x"
13790
- ).map((token) => token.id);
13791
- const permissions = [
13792
- ...allowErc20Approve(tokenAddresses, [contracts.mainnet.balancer.vault]),
13793
- allow.mainnet.balancer.vault.joinPool(
13794
- pool.id,
13795
- c5.avatar,
13796
- c5.avatar,
13797
- void 0,
13798
- // Independently if one of the tokens added is ETH or not we must
13799
- // add the send: true because Roles mod does not support scoping
13800
- // the same function with different option values.
13725
+ // src/protocols/balancer/_gnoPools.ts
13726
+ var gnoPools_default2 = [
13727
+ {
13728
+ bpt: "0x00dF7f58e1Cf932eBe5f54De5970Fb2Bdf0ef06D",
13729
+ id: "0x00df7f58e1cf932ebe5f54de5970fb2bdf0ef06d00010000000000000000005b",
13730
+ name: "B-50wstETH-25BAL-25AURA",
13731
+ type: "Weighted",
13732
+ gauge: null,
13733
+ tokens: [
13801
13734
  {
13802
- send: true
13735
+ address: "0x1509706a6c66CA549ff0cB464de88231DDBe213B",
13736
+ symbol: "AURA",
13737
+ id: "0x"
13738
+ },
13739
+ {
13740
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
13741
+ symbol: "wstETH",
13742
+ id: "0x"
13743
+ },
13744
+ {
13745
+ address: "0x7eF541E2a22058048904fE5744f9c7E4C57AF717",
13746
+ symbol: "BAL",
13747
+ id: "0x"
13803
13748
  }
13804
- ),
13805
- allow.mainnet.balancer.vault.exitPool(pool.id, c5.avatar, c5.avatar)
13806
- ];
13807
- if (tokenPoolIds.length > 0) {
13808
- permissions.push(
13809
- // With the latest changes that Balancer made, there's no need to swap
13810
- // tokens in order to join or exit pools
13811
- // allow.mainnet.balancer.vault.swap(
13812
- // { poolId: c.or(...(tokenPoolIds as [string, string, ...string[]])) },
13813
- // { recipient: c.avatar, sender: c.avatar }
13814
- // ),
13815
- allow.mainnet.balancer.vault.setRelayerApproval(
13816
- c5.avatar,
13817
- contracts.mainnet.balancer.relayer
13818
- ),
13819
- allow.mainnet.balancer.relayer.multicall(
13820
- c5.every(
13821
- c5.or(
13822
- c5.calldataMatches(
13823
- allow.mainnet.balancer.relayerLibrary.joinPool(
13824
- c5.or(
13825
- pool.id,
13826
- ...tokenPoolIds
13827
- ),
13828
- void 0,
13829
- c5.or(c5.avatar, contracts.mainnet.balancer.relayer),
13830
- c5.or(c5.avatar, contracts.mainnet.balancer.relayer)
13831
- )
13832
- ),
13833
- c5.calldataMatches(
13834
- allow.mainnet.balancer.relayerLibrary.exitPool(
13835
- c5.or(
13836
- pool.id,
13837
- ...tokenPoolIds
13838
- ),
13839
- void 0,
13840
- c5.avatar,
13841
- c5.avatar
13842
- )
13843
- )
13844
- // With the latest changes that Balancer made, there's no need to swap
13845
- // tokens in order to join or exit pools
13846
- // c.calldataMatches(
13847
- // allow.mainnet.balancer.relayerLibrary.swap(
13848
- // {
13849
- // poolId: c.or(
13850
- // ...(tokenPoolIds as [string, string, ...string[]])
13851
- // ),
13852
- // },
13853
- // { recipient: c.avatar, sender: c.avatar }
13854
- // )
13855
- // )
13856
- )
13857
- ),
13858
- { send: true }
13859
- )
13860
- );
13861
- }
13862
- return permissions;
13863
- };
13864
- var stake2 = (pool) => {
13865
- const permissions = [];
13866
- if (pool.gauge) {
13867
- permissions.push(
13868
- ...allowErc20Approve([pool.bpt], [pool.gauge]),
13749
+ ]
13750
+ },
13751
+ {
13752
+ bpt: "0x06135A9Ae830476d3a941baE9010B63732a055F4",
13753
+ id: "0x06135a9ae830476d3a941bae9010b63732a055f4000000000000000000000065",
13754
+ name: "stEUR/EURe",
13755
+ type: "ComposableStable",
13756
+ gauge: null,
13757
+ tokens: [
13869
13758
  {
13870
- ...allow.mainnet.balancer.gauge["deposit(uint256)"](),
13871
- targetAddress: pool.gauge
13759
+ address: "0x004626A008B1aCdC4c74ab51644093b155e59A23",
13760
+ symbol: "stEUR",
13761
+ id: "0x"
13872
13762
  },
13873
13763
  {
13874
- ...allow.mainnet.balancer.gauge["withdraw(uint256)"](),
13875
- targetAddress: pool.gauge
13764
+ address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
13765
+ symbol: "EURe",
13766
+ id: "0x"
13767
+ }
13768
+ ]
13769
+ },
13770
+ {
13771
+ bpt: "0x2086f52651837600180dE173B09470F54EF74910",
13772
+ id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f",
13773
+ name: "staBAL3",
13774
+ type: "ComposableStable",
13775
+ gauge: null,
13776
+ tokens: [
13777
+ {
13778
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
13779
+ symbol: "USDT",
13780
+ id: "0x"
13876
13781
  },
13877
13782
  {
13878
- ...allow.mainnet.balancer.gauge["claim_rewards()"](),
13879
- targetAddress: pool.gauge
13783
+ address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
13784
+ symbol: "USDC",
13785
+ id: "0x"
13880
13786
  },
13881
- allow.mainnet.balancer.minter.mint(pool.gauge)
13882
- );
13883
- }
13884
- return permissions;
13885
- };
13886
- var lock = () => {
13887
- return [
13888
- ...allowErc20Approve([BAL, WETH], [contracts.mainnet.balancer.vault]),
13889
- ...allowErc20Approve([B_80BAL_20WETH], [contracts.mainnet.balancer.vebal]),
13890
- allow.mainnet.balancer.vault.joinPool(
13891
- B_80BAL_20WETH_PID,
13892
- c5.avatar,
13893
- c5.avatar,
13894
- void 0,
13895
- { send: true }
13896
- ),
13897
- allow.mainnet.balancer.vault.exitPool(
13898
- B_80BAL_20WETH_PID,
13899
- c5.avatar,
13900
- c5.avatar
13901
- ),
13902
- // As Safes are smart contracts they are not allowed to lock veBAL
13903
- // if the they are not whitelisted previously by Balancer:
13904
- // https://forum.balancer.fi/t/allow-for-gnosis-safe-to-be-used-for-vebal-locking/2698
13905
- allow.mainnet.balancer.vebal.create_lock(),
13906
- allow.mainnet.balancer.vebal.increase_amount(),
13907
- allow.mainnet.balancer.vebal.increase_unlock_time(),
13908
- allow.mainnet.balancer.vebal.withdraw(),
13787
+ {
13788
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
13789
+ symbol: "WXDAI",
13790
+ id: "0x"
13791
+ }
13792
+ ]
13793
+ },
13794
+ {
13795
+ bpt: "0x21d4c792Ea7E38e0D0819c2011A2b1Cb7252Bd99",
13796
+ id: "0x21d4c792ea7e38e0d0819c2011a2b1cb7252bd9900020000000000000000001e",
13797
+ name: "50COW-50GNO",
13798
+ type: "Weighted",
13799
+ gauge: null,
13800
+ tokens: [
13801
+ {
13802
+ address: "0x177127622c4A00F3d409B75571e12cB3c8973d3c",
13803
+ symbol: "COW",
13804
+ id: "0x"
13805
+ },
13806
+ {
13807
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
13808
+ symbol: "GNO",
13809
+ id: "0x"
13810
+ }
13811
+ ]
13812
+ },
13813
+ {
13814
+ bpt: "0x388Cae2f7d3704C937313d990298Ba67D70a3709",
13815
+ id: "0x388cae2f7d3704c937313d990298ba67d70a3709000200000000000000000026",
13816
+ name: "50AGVE-50GNO",
13817
+ type: "Weighted",
13818
+ gauge: null,
13819
+ tokens: [
13820
+ {
13821
+ address: "0x3a97704a1b25F08aa230ae53B352e2e72ef52843",
13822
+ symbol: "AGVE",
13823
+ id: "0x"
13824
+ },
13825
+ {
13826
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
13827
+ symbol: "GNO",
13828
+ id: "0x"
13829
+ }
13830
+ ]
13831
+ },
13832
+ {
13833
+ bpt: "0x4683e340a8049261057D5aB1b29C8d840E75695e",
13834
+ id: "0x4683e340a8049261057d5ab1b29c8d840e75695e00020000000000000000005a",
13835
+ name: "B-50wstETH-50GNO",
13836
+ type: "Weighted",
13837
+ gauge: null,
13838
+ tokens: [
13839
+ {
13840
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
13841
+ symbol: "wstETH",
13842
+ id: "0x"
13843
+ },
13844
+ {
13845
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
13846
+ symbol: "GNO",
13847
+ id: "0x"
13848
+ }
13849
+ ]
13850
+ },
13851
+ {
13852
+ bpt: "0x4bcf6b48906fA0f68bEa1FC255869A41241d4851",
13853
+ id: "0x4bcf6b48906fa0f68bea1fc255869a41241d4851000200000000000000000021",
13854
+ name: "50WXDAI-50MPS",
13855
+ type: "Weighted",
13856
+ gauge: null,
13857
+ tokens: [
13858
+ {
13859
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
13860
+ symbol: "WXDAI",
13861
+ id: "0x"
13862
+ },
13863
+ {
13864
+ address: "0xfa57AA7beED63D03Aaf85fFd1753f5f6242588fb",
13865
+ symbol: "MPS",
13866
+ id: "0x"
13867
+ }
13868
+ ]
13869
+ },
13870
+ {
13871
+ bpt: "0x4cdABE9E07ca393943AcFB9286bBbd0D0a310Ff6",
13872
+ id: "0x4cdabe9e07ca393943acfb9286bbbd0d0a310ff600020000000000000000005c",
13873
+ name: "B-50wstETH-50COW",
13874
+ type: "Weighted",
13875
+ gauge: null,
13876
+ tokens: [
13877
+ {
13878
+ address: "0x177127622c4A00F3d409B75571e12cB3c8973d3c",
13879
+ symbol: "COW",
13880
+ id: "0x"
13881
+ },
13882
+ {
13883
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
13884
+ symbol: "wstETH",
13885
+ id: "0x"
13886
+ }
13887
+ ]
13888
+ },
13889
+ {
13890
+ bpt: "0x5C78d05b8ECF97507d1cf70646082c54FaA4dA95",
13891
+ id: "0x5c78d05b8ecf97507d1cf70646082c54faa4da95000000000000000000000030",
13892
+ name: "bb-agEUR-EURe",
13893
+ type: "ComposableStable",
13894
+ gauge: "0x210ABdFD989f3eE5C08614a8f4e096Cf8408f5DF",
13895
+ tokens: [
13896
+ {
13897
+ address: "0x4b1E2c2762667331Bc91648052F646d1b0d35984",
13898
+ symbol: "agEUR",
13899
+ id: "0x"
13900
+ },
13901
+ {
13902
+ address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
13903
+ symbol: "EURe",
13904
+ id: "0x"
13905
+ }
13906
+ ]
13907
+ },
13908
+ {
13909
+ bpt: "0x66888E4F35063Ad8bb11506A6fde5024fb4f1dB0",
13910
+ id: "0x66888e4f35063ad8bb11506a6fde5024fb4f1db0000100000000000000000053",
13911
+ name: "staBAL3-WETH-WBTC-BPT",
13912
+ type: "Weighted",
13913
+ gauge: null,
13914
+ tokens: [
13915
+ {
13916
+ address: "0x2086f52651837600180dE173B09470F54EF74910",
13917
+ symbol: "staBAL3",
13918
+ id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f"
13919
+ },
13920
+ {
13921
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
13922
+ symbol: "USDT",
13923
+ id: "0x"
13924
+ },
13925
+ {
13926
+ address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
13927
+ symbol: "USDC",
13928
+ id: "0x"
13929
+ },
13930
+ {
13931
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
13932
+ symbol: "WXDAI",
13933
+ id: "0x"
13934
+ },
13935
+ {
13936
+ address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
13937
+ symbol: "WETH",
13938
+ id: "0x"
13939
+ },
13940
+ {
13941
+ address: "0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252",
13942
+ symbol: "WBTC",
13943
+ id: "0x"
13944
+ }
13945
+ ]
13946
+ },
13947
+ {
13948
+ bpt: "0x7644fA5D0eA14FcF3E813Fdf93ca9544f8567655",
13949
+ id: "0x7644fa5d0ea14fcf3e813fdf93ca9544f8567655000000000000000000000066",
13950
+ name: "sBAL3",
13951
+ type: "ComposableStable",
13952
+ gauge: null,
13953
+ tokens: [
13954
+ {
13955
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
13956
+ symbol: "USDT",
13957
+ id: "0x"
13958
+ },
13959
+ {
13960
+ address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
13961
+ symbol: "sDAI",
13962
+ id: "0x"
13963
+ },
13964
+ {
13965
+ address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
13966
+ symbol: "USDC",
13967
+ id: "0x"
13968
+ }
13969
+ ]
13970
+ },
13971
+ {
13972
+ bpt: "0x79C872Ed3Acb3fc5770dd8a0cD9Cd5dB3B3Ac985",
13973
+ id: "0x79c872ed3acb3fc5770dd8a0cd9cd5db3b3ac985000200000000000000000067",
13974
+ name: "50OLAS-50WXDAI",
13975
+ type: "Weighted",
13976
+ gauge: null,
13977
+ tokens: [
13978
+ {
13979
+ address: "0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
13980
+ symbol: "OLAS",
13981
+ id: "0x"
13982
+ },
13983
+ {
13984
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
13985
+ symbol: "WXDAI",
13986
+ id: "0x"
13987
+ }
13988
+ ]
13989
+ },
13990
+ {
13991
+ bpt: "0xa99FD9950B5D5dCeEaf4939E221dcA8cA9B938aB",
13992
+ id: "0xa99fd9950b5d5dceeaf4939e221dca8ca9b938ab000100000000000000000025",
13993
+ name: "25WETH-25BAL-25GNO-25wxDAI",
13994
+ type: "Weighted",
13995
+ gauge: "0xC092E0a4f5a2AdF3CF91E27cf4B7d7917D12CA2B",
13996
+ tokens: [
13997
+ {
13998
+ address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
13999
+ symbol: "WETH",
14000
+ id: "0x"
14001
+ },
14002
+ {
14003
+ address: "0x7eF541E2a22058048904fE5744f9c7E4C57AF717",
14004
+ symbol: "BAL",
14005
+ id: "0x"
14006
+ },
14007
+ {
14008
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
14009
+ symbol: "GNO",
14010
+ id: "0x"
14011
+ },
14012
+ {
14013
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
14014
+ symbol: "WXDAI",
14015
+ id: "0x"
14016
+ }
14017
+ ]
14018
+ },
14019
+ {
14020
+ bpt: "0xB8bB1ce9C6E5401D66fE2126dB6E7387E1E24fFE",
14021
+ id: "0xb8bb1ce9c6e5401d66fe2126db6e7387e1e24ffe00020000000000000000003d",
14022
+ name: "50WETH-50GNO",
14023
+ type: "Weighted",
14024
+ gauge: "0xd264f4d4Ad98FEf4b198547059C07a8E8bBF2F0E",
14025
+ tokens: [
14026
+ {
14027
+ address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
14028
+ symbol: "WETH",
14029
+ id: "0x"
14030
+ },
14031
+ {
14032
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
14033
+ symbol: "GNO",
14034
+ id: "0x"
14035
+ }
14036
+ ]
14037
+ },
14038
+ {
14039
+ bpt: "0xbAd20c15A773bf03ab973302F61FAbceA5101f0A",
14040
+ id: "0xbad20c15a773bf03ab973302f61fabcea5101f0a000000000000000000000034",
14041
+ name: "bb-WETH-wstETH",
14042
+ type: "ComposableStable",
14043
+ gauge: "0x27519F69b2Ac912aeb6fE066180FB25a17c71755",
14044
+ tokens: [
14045
+ {
14046
+ address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
14047
+ symbol: "WETH",
14048
+ id: "0x"
14049
+ },
14050
+ {
14051
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
14052
+ symbol: "wstETH",
14053
+ id: "0x"
14054
+ }
14055
+ ]
14056
+ },
14057
+ {
14058
+ bpt: "0xBc2acf5E821c5c9f8667A36bB1131dAd26Ed64F9",
14059
+ id: "0xbc2acf5e821c5c9f8667a36bb1131dad26ed64f9000200000000000000000063",
14060
+ name: "B-50sDAI-50wstETH",
14061
+ type: "Weighted",
14062
+ gauge: null,
14063
+ tokens: [
14064
+ {
14065
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
14066
+ symbol: "wstETH",
14067
+ id: "0x"
14068
+ },
14069
+ {
14070
+ address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
14071
+ symbol: "sDAI",
14072
+ id: "0x"
14073
+ }
14074
+ ]
14075
+ },
14076
+ {
14077
+ bpt: "0xC5Df11757F4A8DFACcC731d13b9577f67055c6c6",
14078
+ id: "0xc5df11757f4a8dfaccc731d13b9577f67055c6c6000200000000000000000077",
14079
+ name: "B-50EURe-50GBPe",
14080
+ type: "Weighted",
14081
+ gauge: null,
14082
+ tokens: [
14083
+ {
14084
+ address: "0x5Cb9073902F2035222B9749F8fB0c9BFe5527108",
14085
+ symbol: "GBPe",
14086
+ id: "0x"
14087
+ },
14088
+ {
14089
+ address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
14090
+ symbol: "EURe",
14091
+ id: "0x"
14092
+ }
14093
+ ]
14094
+ },
14095
+ {
14096
+ bpt: "0xc9F00C3a713008DDf69b768d90d4978549bFDF94",
14097
+ id: "0xc9f00c3a713008ddf69b768d90d4978549bfdf9400000000000000000000006d",
14098
+ name: "crvUSD/sDAI",
14099
+ type: "ComposableStable",
14100
+ gauge: null,
14101
+ tokens: [
14102
+ {
14103
+ address: "0xaBEf652195F98A91E490f047A5006B71c85f058d",
14104
+ symbol: "crvUSD",
14105
+ id: "0x"
14106
+ },
14107
+ {
14108
+ address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
14109
+ symbol: "sDAI",
14110
+ id: "0x"
14111
+ }
14112
+ ]
14113
+ },
14114
+ {
14115
+ bpt: "0xDd439304A77f54B1F7854751Ac1169b279591Ef7",
14116
+ id: "0xdd439304a77f54b1f7854751ac1169b279591ef7000000000000000000000064",
14117
+ name: "EURe/sDAI",
14118
+ type: "ComposableStable",
14119
+ gauge: null,
14120
+ tokens: [
14121
+ {
14122
+ address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
14123
+ symbol: "sDAI",
14124
+ id: "0x"
14125
+ },
14126
+ {
14127
+ address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
14128
+ symbol: "EURe",
14129
+ id: "0x"
14130
+ }
14131
+ ]
14132
+ },
14133
+ {
14134
+ bpt: "0xEA54604e7E1DdEc8320cF838CFE857FbF44Aad9f",
14135
+ id: "0xea54604e7e1ddec8320cf838cfe857fbf44aad9f000200000000000000000078",
14136
+ name: "B-50GBPe-50WXDAI",
14137
+ type: "Weighted",
14138
+ gauge: null,
14139
+ tokens: [
14140
+ {
14141
+ address: "0x5Cb9073902F2035222B9749F8fB0c9BFe5527108",
14142
+ symbol: "GBPe",
14143
+ id: "0x"
14144
+ },
14145
+ {
14146
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
14147
+ symbol: "WXDAI",
14148
+ id: "0x"
14149
+ }
14150
+ ]
14151
+ },
14152
+ {
14153
+ bpt: "0xEb30C85CC528537f5350CF5684Ce6a4538e13394",
14154
+ id: "0xeb30c85cc528537f5350cf5684ce6a4538e13394000200000000000000000059",
14155
+ name: "B-50USD-50wstETH",
14156
+ type: "Weighted",
14157
+ gauge: null,
14158
+ tokens: [
14159
+ {
14160
+ address: "0x2086f52651837600180dE173B09470F54EF74910",
14161
+ symbol: "staBAL3",
14162
+ id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f"
14163
+ },
14164
+ {
14165
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
14166
+ symbol: "USDT",
14167
+ id: "0x"
14168
+ },
14169
+ {
14170
+ address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
14171
+ symbol: "USDC",
14172
+ id: "0x"
14173
+ },
14174
+ {
14175
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
14176
+ symbol: "WXDAI",
14177
+ id: "0x"
14178
+ },
14179
+ {
14180
+ address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
14181
+ symbol: "wstETH",
14182
+ id: "0x"
14183
+ }
14184
+ ]
14185
+ },
14186
+ {
14187
+ bpt: "0xfbc3112172bA256454047D7436d1E08B3cdc5031",
14188
+ id: "0xfbc3112172ba256454047d7436d1e08b3cdc5031000200000000000000000015",
14189
+ name: "80MIVA-20WXDAI",
14190
+ type: "Weighted",
14191
+ gauge: null,
14192
+ tokens: [
14193
+ {
14194
+ address: "0x63e62989D9EB2d37dfDB1F93A22f063635b07d51",
14195
+ symbol: "MIVA",
14196
+ id: "0x"
14197
+ },
14198
+ {
14199
+ address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
14200
+ symbol: "WXDAI",
14201
+ id: "0x"
14202
+ }
14203
+ ]
14204
+ }
14205
+ ];
14206
+
14207
+ // src/protocols/balancer/actions.ts
14208
+ import { c as c5 } from "zodiac-roles-sdk";
14209
+ var BAL = "0xba100000625a3754423978a60c9317c58a424e3D";
14210
+ var WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
14211
+ var B_80BAL_20WETH = "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56";
14212
+ var B_80BAL_20WETH_PID = "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014";
14213
+ var bb_a_USD_v1 = "0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2";
14214
+ var bb_a_USD_v2 = "0xA13a9247ea42D743238089903570127DdA72fE44";
14215
+ var bb_a_USD_v3 = "0xfeBb0bbf162E64fb9D0dfe186E517d84C395f016";
14216
+ var USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
14217
+ var deposit = (pool, tokens = pool.tokens) => {
14218
+ const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
14219
+ const tokenPoolIds = pool.tokens.filter(
14220
+ (token) => tokens.some((t) => token.address === t.address) && token.id !== null && token.id !== "0x"
14221
+ ).map((token) => token.id);
14222
+ const permissions = [
14223
+ ...allowErc20Approve(tokenAddresses, [contracts.mainnet.balancer.vault]),
14224
+ allow.mainnet.balancer.vault.joinPool(
14225
+ pool.id,
14226
+ c5.avatar,
14227
+ c5.avatar,
14228
+ void 0,
14229
+ // Independently if one of the tokens added is ETH or not we must
14230
+ // add the send: true because Roles mod does not support scoping
14231
+ // the same function with different option values.
14232
+ {
14233
+ send: true
14234
+ }
14235
+ ),
14236
+ allow.mainnet.balancer.vault.exitPool(pool.id, c5.avatar, c5.avatar)
14237
+ ];
14238
+ if (tokenPoolIds.length > 0) {
14239
+ permissions.push(
14240
+ // With the latest changes that Balancer made, there's no need to swap
14241
+ // tokens in order to join or exit pools
14242
+ // allow.mainnet.balancer.vault.swap(
14243
+ // { poolId: c.or(...(tokenPoolIds as [string, string, ...string[]])) },
14244
+ // { recipient: c.avatar, sender: c.avatar }
14245
+ // ),
14246
+ allow.mainnet.balancer.vault.setRelayerApproval(
14247
+ c5.avatar,
14248
+ contracts.mainnet.balancer.relayer
14249
+ ),
14250
+ allow.mainnet.balancer.relayer.multicall(
14251
+ c5.every(
14252
+ c5.or(
14253
+ c5.calldataMatches(
14254
+ allow.mainnet.balancer.relayerLibrary.joinPool(
14255
+ c5.or(
14256
+ pool.id,
14257
+ ...tokenPoolIds
14258
+ ),
14259
+ void 0,
14260
+ c5.or(c5.avatar, contracts.mainnet.balancer.relayer),
14261
+ c5.or(c5.avatar, contracts.mainnet.balancer.relayer)
14262
+ )
14263
+ ),
14264
+ c5.calldataMatches(
14265
+ allow.mainnet.balancer.relayerLibrary.exitPool(
14266
+ c5.or(
14267
+ pool.id,
14268
+ ...tokenPoolIds
14269
+ ),
14270
+ void 0,
14271
+ c5.avatar,
14272
+ c5.avatar
14273
+ )
14274
+ )
14275
+ // With the latest changes that Balancer made, there's no need to swap
14276
+ // tokens in order to join or exit pools
14277
+ // c.calldataMatches(
14278
+ // allow.mainnet.balancer.relayerLibrary.swap(
14279
+ // {
14280
+ // poolId: c.or(
14281
+ // ...(tokenPoolIds as [string, string, ...string[]])
14282
+ // ),
14283
+ // },
14284
+ // { recipient: c.avatar, sender: c.avatar }
14285
+ // )
14286
+ // )
14287
+ )
14288
+ ),
14289
+ { send: true }
14290
+ )
14291
+ );
14292
+ }
14293
+ return permissions;
14294
+ };
14295
+ var stake2 = (pool) => {
14296
+ const permissions = [];
14297
+ if (pool.gauge) {
14298
+ permissions.push(
14299
+ ...allowErc20Approve([pool.bpt], [pool.gauge]),
14300
+ {
14301
+ ...allow.mainnet.balancer.gauge["deposit(uint256)"](),
14302
+ targetAddress: pool.gauge
14303
+ },
14304
+ {
14305
+ ...allow.mainnet.balancer.gauge["withdraw(uint256)"](),
14306
+ targetAddress: pool.gauge
14307
+ },
14308
+ {
14309
+ ...allow.mainnet.balancer.gauge["claim_rewards()"](),
14310
+ targetAddress: pool.gauge
14311
+ },
14312
+ allow.mainnet.balancer.minter.mint(pool.gauge)
14313
+ );
14314
+ }
14315
+ return permissions;
14316
+ };
14317
+ var lock = () => {
14318
+ return [
14319
+ ...allowErc20Approve([BAL, WETH], [contracts.mainnet.balancer.vault]),
14320
+ ...allowErc20Approve([B_80BAL_20WETH], [contracts.mainnet.balancer.vebal]),
14321
+ allow.mainnet.balancer.vault.joinPool(
14322
+ B_80BAL_20WETH_PID,
14323
+ c5.avatar,
14324
+ c5.avatar,
14325
+ void 0,
14326
+ { send: true }
14327
+ ),
14328
+ allow.mainnet.balancer.vault.exitPool(
14329
+ B_80BAL_20WETH_PID,
14330
+ c5.avatar,
14331
+ c5.avatar
14332
+ ),
14333
+ // As Safes are smart contracts they are not allowed to lock veBAL
14334
+ // if the they are not whitelisted previously by Balancer:
14335
+ // https://forum.balancer.fi/t/allow-for-gnosis-safe-to-be-used-for-vebal-locking/2698
14336
+ allow.mainnet.balancer.vebal.create_lock(),
14337
+ allow.mainnet.balancer.vebal.increase_amount(),
14338
+ allow.mainnet.balancer.vebal.increase_unlock_time(),
14339
+ allow.mainnet.balancer.vebal.withdraw(),
13909
14340
  allow.mainnet.balancer.fee_distributor.claimToken(
13910
14341
  c5.avatar,
13911
14342
  c5.or(BAL, bb_a_USD_v1, bb_a_USD_v2, bb_a_USD_v3, USDC)
@@ -13928,11 +14359,11 @@ var findPool = (pools, nameIdOrBpt) => {
13928
14359
  }
13929
14360
  return pool;
13930
14361
  };
13931
- var findToken3 = (symbolOrAddress) => {
13932
- const symbolAddressLower = symbolOrAddress.toLowerCase();
13933
- const tokens = info_default3.flatMap((pool) => [...pool.tokens]);
14362
+ var findToken3 = (pools, symbolOrAddress) => {
14363
+ const nameOrAddressOrIdLower = symbolOrAddress.toLowerCase();
14364
+ const tokens = pools.flatMap((pool) => [...pool.tokens]);
13934
14365
  const token = tokens.find(
13935
- (token2) => token2.symbol.toLowerCase() === symbolAddressLower || token2.address.toLowerCase() === symbolAddressLower
14366
+ (token2) => token2.symbol.toLowerCase() === nameOrAddressOrIdLower || token2.address.toLowerCase() === nameOrAddressOrIdLower
13936
14367
  );
13937
14368
  if (!token) {
13938
14369
  throw new NotFoundError(`Token not found: ${symbolOrAddress}`);
@@ -13940,13 +14371,18 @@ var findToken3 = (symbolOrAddress) => {
13940
14371
  return token;
13941
14372
  };
13942
14373
  var eth3 = {
13943
- deposit: async (options) => options.targets.flatMap(
13944
- (target) => {
13945
- var _a;
13946
- return deposit(findPool(info_default3, target), (_a = options.tokens) == null ? void 0 : _a.map(findToken3));
13947
- }
13948
- ),
13949
- stake: async (options) => options.targets.flatMap((target) => stake2(findPool(info_default3, target))),
14374
+ deposit: async ({
14375
+ targets,
14376
+ tokens
14377
+ }) => {
14378
+ return targets.flatMap(
14379
+ (target) => deposit(
14380
+ findPool(ethPools_default2, target),
14381
+ tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken3(ethPools_default2, addressOrSymbol))
14382
+ )
14383
+ );
14384
+ },
14385
+ stake: async (options) => options.targets.flatMap((target) => stake2(findPool(ethPools_default2, target))),
13950
14386
  lock: async () => {
13951
14387
  return lock();
13952
14388
  }
@@ -13971,11 +14407,29 @@ var eth3 = {
13971
14407
  // src/protocols/aura/actions.ts
13972
14408
  var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
13973
14409
  var AURA = "0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF";
13974
- var deposit2 = (pool, tokens = pool.tokens) => {
14410
+ var deposit2 = (chain, pool, tokens = pool.tokens) => {
13975
14411
  const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
14412
+ let booster;
14413
+ let reward_pool_deposit_wrapper;
14414
+ let balancer_pools;
14415
+ switch (chain) {
14416
+ case "eth" /* eth */:
14417
+ booster = contracts.mainnet.aura.booster;
14418
+ reward_pool_deposit_wrapper = contracts.mainnet.aura.reward_pool_deposit_wrapper;
14419
+ balancer_pools = ethPools_default2;
14420
+ break;
14421
+ case "gno" /* gno */:
14422
+ booster = contractAddressOverrides.gnosis.aura.booster;
14423
+ reward_pool_deposit_wrapper = contractAddressOverrides.gnosis.aura.reward_pool_deposit_wrapper;
14424
+ balancer_pools = gnoPools_default2;
14425
+ break;
14426
+ }
13976
14427
  const permissions = [
13977
- ...allowErc20Approve([pool.bpt], [contracts.mainnet.aura.booster]),
13978
- allow.mainnet.aura.booster.deposit(pool.id),
14428
+ ...allowErc20Approve([pool.bpt], [booster]),
14429
+ {
14430
+ ...allow.mainnet.aura.booster.deposit(pool.id),
14431
+ targetAddress: booster
14432
+ },
13979
14433
  {
13980
14434
  ...allow.mainnet.aura.rewarder.withdrawAndUnwrap(),
13981
14435
  targetAddress: pool.rewarder
@@ -13992,15 +14446,16 @@ var deposit2 = (pool, tokens = pool.tokens) => {
13992
14446
  ];
13993
14447
  if (tokenAddresses.length > 0) {
13994
14448
  permissions.push(
13995
- ...allowErc20Approve(tokenAddresses, [
13996
- contracts.mainnet.aura.reward_pool_deposit_wrapper
13997
- ]),
13998
- allow.mainnet.aura.reward_pool_deposit_wrapper.depositSingle(
13999
- pool.rewarder,
14000
- c6.or(...tokenAddresses),
14001
- void 0,
14002
- findPool(info_default3, pool.bpt).id
14003
- )
14449
+ ...allowErc20Approve(tokenAddresses, [reward_pool_deposit_wrapper]),
14450
+ {
14451
+ ...allow.mainnet.aura.reward_pool_deposit_wrapper.depositSingle(
14452
+ pool.rewarder,
14453
+ c6.or(...tokenAddresses),
14454
+ void 0,
14455
+ findPool(balancer_pools, pool.bpt).id
14456
+ ),
14457
+ targetAddress: reward_pool_deposit_wrapper
14458
+ }
14004
14459
  );
14005
14460
  }
14006
14461
  return permissions;
@@ -14109,9 +14564,9 @@ var stakeTokens_default2 = [
14109
14564
 
14110
14565
  // src/protocols/aura/index.ts
14111
14566
  var findPool2 = (pools, nameOrAddressOrId) => {
14112
- const symbolAddressLower = nameOrAddressOrId.toLowerCase();
14567
+ const nameOrAddressOrIdLower = nameOrAddressOrId.toLowerCase();
14113
14568
  const pool = pools.find(
14114
- (pool2) => pool2.name.toLowerCase() === symbolAddressLower || pool2.bpt.toLowerCase() === symbolAddressLower || pool2.id.toLowerCase() === symbolAddressLower
14569
+ (pool2) => pool2.name.toLowerCase() === nameOrAddressOrIdLower || pool2.bpt.toLowerCase() === nameOrAddressOrIdLower || pool2.id.toLowerCase() === nameOrAddressOrIdLower
14115
14570
  );
14116
14571
  if (!pool) {
14117
14572
  throw new NotFoundError(`Pool not found: ${nameOrAddressOrId}`);
@@ -14119,10 +14574,10 @@ var findPool2 = (pools, nameOrAddressOrId) => {
14119
14574
  return pool;
14120
14575
  };
14121
14576
  var findToken4 = (pools, symbolOrAddress) => {
14122
- const symbolAddressLower = symbolOrAddress.toLowerCase();
14577
+ const nameOrAddressOrIdLower = symbolOrAddress.toLowerCase();
14123
14578
  const tokens = pools.flatMap((pool) => [...pool.tokens]);
14124
14579
  const token = tokens.find(
14125
- (token2) => token2.symbol.toLowerCase() === symbolAddressLower || token2.address.toLowerCase() === symbolAddressLower
14580
+ (token2) => token2.symbol.toLowerCase() === nameOrAddressOrIdLower || token2.address.toLowerCase() === nameOrAddressOrIdLower
14126
14581
  );
14127
14582
  if (!token) {
14128
14583
  throw new NotFoundError(`Token not found: ${symbolOrAddress}`);
@@ -14130,9 +14585,9 @@ var findToken4 = (pools, symbolOrAddress) => {
14130
14585
  return token;
14131
14586
  };
14132
14587
  var findStakeToken2 = (nameOrAddress) => {
14133
- const symbolAddressLower = nameOrAddress.toLowerCase();
14588
+ const nameOrAddressOrIdLower = nameOrAddress.toLowerCase();
14134
14589
  const stakeToken = stakeTokens_default2.find(
14135
- (stakeToken2) => stakeToken2.address.toLowerCase() === symbolAddressLower || stakeToken2.symbol.toLowerCase() === symbolAddressLower
14590
+ (stakeToken2) => stakeToken2.address.toLowerCase() === nameOrAddressOrIdLower || stakeToken2.symbol.toLowerCase() === nameOrAddressOrIdLower
14136
14591
  );
14137
14592
  if (!stakeToken) {
14138
14593
  throw new NotFoundError(`Token not found on eth: ${nameOrAddress}`);
@@ -14146,6 +14601,7 @@ var eth4 = {
14146
14601
  }) => {
14147
14602
  return targets.flatMap(
14148
14603
  (target) => deposit2(
14604
+ "eth" /* eth */,
14149
14605
  findPool2(ethPools_default, target),
14150
14606
  tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken4(ethPools_default, addressOrSymbol))
14151
14607
  )
@@ -14175,6 +14631,7 @@ var gno = {
14175
14631
  }) => {
14176
14632
  return targets.flatMap(
14177
14633
  (target) => deposit2(
14634
+ "gno" /* gno */,
14178
14635
  findPool2(gnoPools_default, target),
14179
14636
  tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken4(gnoPools_default, addressOrSymbol))
14180
14637
  )
@@ -14183,7 +14640,7 @@ var gno = {
14183
14640
  };
14184
14641
 
14185
14642
  // src/protocols/compound/v2/_info.ts
14186
- var info_default4 = [
14643
+ var info_default3 = [
14187
14644
  {
14188
14645
  cToken: "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",
14189
14646
  token: "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
@@ -14396,7 +14853,7 @@ var borrow = (token) => {
14396
14853
  // src/protocols/compound/v2/index.ts
14397
14854
  var findToken5 = (symbolOrAddress) => {
14398
14855
  const nameOrAddressLower = symbolOrAddress.toLowerCase();
14399
- const token = info_default4.find(
14856
+ const token = info_default3.find(
14400
14857
  (token2) => token2.symbol.toLowerCase() === nameOrAddressLower || token2.token.toLowerCase() === nameOrAddressLower
14401
14858
  );
14402
14859
  if (!token) {
@@ -14418,7 +14875,7 @@ var eth5 = {
14418
14875
  };
14419
14876
 
14420
14877
  // src/protocols/convex/_info.ts
14421
- var info_default5 = [
14878
+ var info_default4 = [
14422
14879
  {
14423
14880
  name: "cDAI+cUSDC",
14424
14881
  id: "0",
@@ -16322,6 +16779,34 @@ var info_default5 = [
16322
16779
  crvLPToken: "0x2482DFb5A65D901d137742AB1095f26374509352",
16323
16780
  cvxDepositToken: "0x8c97D911BF1f47B7d33334B9dcf197Bfe93c7104",
16324
16781
  rewarder: "0x4C204392a9E4d5f8390541971B59FC95B24782b5"
16782
+ },
16783
+ {
16784
+ name: "xETHpxETH",
16785
+ id: "299",
16786
+ crvLPToken: "0x3C91EAeac42DfaEad5F356167c52837e443b9f94",
16787
+ cvxDepositToken: "0xCef9FA76c26747B341984633dac29E20E7B64aF8",
16788
+ rewarder: "0xc30946E3c09D86c3546e11286BC2779b2a40A972"
16789
+ },
16790
+ {
16791
+ name: "ETH+pxETH-f",
16792
+ id: "300",
16793
+ crvLPToken: "0x982bcd444C9445c15CCe3eca506ef01E8348Fe5D",
16794
+ cvxDepositToken: "0x359589fb4fc290009c3a0B10a232610e9E0A310B",
16795
+ rewarder: "0x29aB65DB26116249b0D30c2349C1C7Fa56648203"
16796
+ },
16797
+ {
16798
+ name: "pxETHmkUSD-f",
16799
+ id: "301",
16800
+ crvLPToken: "0x6ade6971Ca3d90990C30d39c78b0534C7166e07b",
16801
+ cvxDepositToken: "0x1C9427B79093Aacc5BEe197Bf32aB72403992371",
16802
+ rewarder: "0x484A34B0154A97B09828736888b95bb298F3a8DF"
16803
+ },
16804
+ {
16805
+ name: "mkUSDPay",
16806
+ id: "302",
16807
+ crvLPToken: "0x9e10f9Fb6F0D32B350CEe2618662243d4f24C64a",
16808
+ cvxDepositToken: "0x66710eBFdeD4aAf3D6675Bdd7c9cE11F0914D71E",
16809
+ rewarder: "0x09E18C6F03b5ee9D3F39c3865aa53A12E46E54B2"
16325
16810
  }
16326
16811
  ];
16327
16812
 
@@ -16413,7 +16898,7 @@ var stakeTokens_default3 = [
16413
16898
  // src/protocols/convex/index.ts
16414
16899
  var findPool3 = (nameOrAddressOrId) => {
16415
16900
  const symbolAddressLower = nameOrAddressOrId.toLowerCase();
16416
- const pool = info_default5.find(
16901
+ const pool = info_default4.find(
16417
16902
  (pool2) => pool2.name.toLowerCase() === symbolAddressLower || pool2.crvLPToken.toLowerCase() === symbolAddressLower || pool2.id.toLowerCase() === symbolAddressLower
16418
16903
  );
16419
16904
  if (!pool) {
@@ -16640,7 +17125,7 @@ var borrow2 = ({
16640
17125
  import { BigNumber as BigNumber3 } from "ethers";
16641
17126
 
16642
17127
  // src/protocols/maker/_info.ts
16643
- var info_default6 = [
17128
+ var info_default5 = [
16644
17129
  {
16645
17130
  address: "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
16646
17131
  symbol: "BAT",
@@ -17127,7 +17612,7 @@ var queryCdps = async (proxy, targets) => {
17127
17612
  };
17128
17613
  var queryIlk = async (cdp) => {
17129
17614
  const ilkId = await sdk.maker.CdpManager.ilks(cdp);
17130
- const ilk = info_default6.find((ilk2) => ilk2.ilk === ilkId);
17615
+ const ilk = info_default5.find((ilk2) => ilk2.ilk === ilkId);
17131
17616
  if (!ilk) {
17132
17617
  throw new Error(`Unexpected ilk ${ilkId} of cdp ${cdp.toNumber()}`);
17133
17618
  }
@@ -17161,7 +17646,7 @@ var eth9 = {
17161
17646
  };
17162
17647
 
17163
17648
  // src/protocols/spark/_info.ts
17164
- var info_default7 = [
17649
+ var info_default6 = [
17165
17650
  {
17166
17651
  symbol: "DAI",
17167
17652
  token: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
@@ -17384,7 +17869,7 @@ var borrowEther3 = () => {
17384
17869
  // src/protocols/spark/index.ts
17385
17870
  var findToken6 = (symbolOrAddress) => {
17386
17871
  const nameOrAddressLower = symbolOrAddress.toLowerCase();
17387
- const token = info_default7.find(
17872
+ const token = info_default6.find(
17388
17873
  (token2) => token2.symbol.toLowerCase() === nameOrAddressLower || token2.token.toLowerCase() === nameOrAddressLower
17389
17874
  );
17390
17875
  if (!token) {
@@ -17408,7 +17893,7 @@ var eth10 = {
17408
17893
  );
17409
17894
  }
17410
17895
  };
17411
- var allTokenSymbols = [...info_default7.map((token) => token.symbol), "ETH"];
17896
+ var allTokenSymbols = [...info_default6.map((token) => token.symbol), "ETH"];
17412
17897
 
17413
17898
  // src/protocols/annotate.ts
17414
17899
  var annotate = (actionFunction, path) => {
@@ -17583,13 +18068,13 @@ var gno4 = {
17583
18068
  import { z as z4 } from "zod";
17584
18069
  var ethTokens2 = [
17585
18070
  ...new Set(
17586
- info_default3.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
18071
+ ethPools_default2.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
17587
18072
  )
17588
18073
  ];
17589
18074
  var zPool = z4.enum([
17590
- ...info_default3.map((pool) => pool.name),
17591
- ...info_default3.map((pool) => pool.bpt),
17592
- ...info_default3.map((pool) => pool.id)
18075
+ ...ethPools_default2.map((pool) => pool.name),
18076
+ ...ethPools_default2.map((pool) => pool.bpt),
18077
+ ...ethPools_default2.map((pool) => pool.id)
17593
18078
  ]);
17594
18079
  var zToken3 = z4.enum(ethTokens2);
17595
18080
  var eth15 = {
@@ -17611,8 +18096,8 @@ var eth15 = {
17611
18096
  // src/protocols/compound/v2/schema.ts
17612
18097
  import { z as z5 } from "zod";
17613
18098
  var zToken4 = z5.enum([
17614
- ...info_default4.map((token) => token.symbol),
17615
- ...info_default4.map((token) => token.token)
18099
+ ...info_default3.map((token) => token.symbol),
18100
+ ...info_default3.map((token) => token.token)
17616
18101
  ]);
17617
18102
  var eth16 = {
17618
18103
  deposit: z5.object({
@@ -17626,9 +18111,9 @@ var eth16 = {
17626
18111
  // src/protocols/convex/schema.ts
17627
18112
  import { z as z6 } from "zod";
17628
18113
  var zPool2 = z6.enum([
17629
- ...info_default5.map((pool) => pool.name),
17630
- ...info_default5.map((pool) => pool.crvLPToken),
17631
- ...info_default5.map((pool) => pool.id)
18114
+ ...info_default4.map((pool) => pool.name),
18115
+ ...info_default4.map((pool) => pool.crvLPToken),
18116
+ ...info_default4.map((pool) => pool.id)
17632
18117
  ]);
17633
18118
  var zStakeToken4 = z6.enum([
17634
18119
  ...stakeTokens_default3.map((token) => token.symbol),
@@ -17679,9 +18164,9 @@ var eth20 = {
17679
18164
  // src/protocols/spark/schema.ts
17680
18165
  import { z as z10 } from "zod";
17681
18166
  var zToken5 = z10.enum([
17682
- ...info_default7.map((token) => token.symbol),
18167
+ ...info_default6.map((token) => token.symbol),
17683
18168
  "DSR_sDAI",
17684
- ...info_default7.map((token) => token.token)
18169
+ ...info_default6.map((token) => token.token)
17685
18170
  ]);
17686
18171
  var eth21 = {
17687
18172
  deposit: z10.object({
@@ -17847,4 +18332,4 @@ export {
17847
18332
  createApply,
17848
18333
  createExportToSafeTransactionBuilder
17849
18334
  };
17850
- //# sourceMappingURL=chunk-UUNDCFGG.mjs.map
18335
+ //# sourceMappingURL=chunk-PQDN7IHL.mjs.map