@mortiseagentvault/sdk 0.1.1 → 0.2.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/index.js CHANGED
@@ -1292,12 +1292,19 @@ function checksumAddress(address_, chainId) {
1292
1292
  checksumAddressCache.set(cacheKey, result);
1293
1293
  return result;
1294
1294
  }
1295
+ function getAddress(address, chainId) {
1296
+ if (!isAddress(address, { strict: false }))
1297
+ throw new InvalidAddressError({ address });
1298
+ return checksumAddress(address, chainId);
1299
+ }
1295
1300
  var checksumAddressCache;
1296
1301
  var init_getAddress = __esm({
1297
1302
  "../node_modules/viem/_esm/utils/address/getAddress.js"() {
1303
+ init_address();
1298
1304
  init_toBytes();
1299
1305
  init_keccak256();
1300
1306
  init_lru();
1307
+ init_isAddress();
1301
1308
  checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
1302
1309
  }
1303
1310
  });
@@ -2968,33 +2975,54 @@ var init_decodeFunctionData = __esm({
2968
2975
  // src/abis.ts
2969
2976
  var abis_exports = {};
2970
2977
  __export(abis_exports, {
2978
+ aaveV3Abi: () => aaveV3Abi,
2971
2979
  accountAbi: () => accountAbi,
2972
2980
  acrossAbi: () => acrossAbi,
2973
2981
  adapterAbi: () => adapterAbi,
2982
+ aeroLiquidityAbi: () => aeroLiquidityAbi,
2983
+ aeroSlipstreamAbi: () => aeroSlipstreamAbi,
2974
2984
  automationAbi: () => automationAbi,
2985
+ beefyAbi: () => beefyAbi,
2986
+ ccipAbi: () => ccipAbi,
2987
+ compoundAbi: () => compoundAbi,
2975
2988
  dcaAbi: () => dcaAbi,
2976
2989
  entryPointAbi: () => entryPointAbi,
2977
2990
  erc20Abi: () => erc20Abi,
2978
2991
  erc4626Abi: () => erc4626Abi,
2992
+ erc8004Abi: () => erc8004Abi,
2979
2993
  factoryAbi: () => factoryAbi,
2980
2994
  familyTransferAbi: () => familyTransferAbi,
2981
2995
  flapAbi: () => flapAbi,
2982
2996
  gateAbi: () => gateAbi,
2997
+ layerZeroOftAbi: () => layerZeroOftAbi,
2998
+ lighterAbi: () => lighterAbi,
2999
+ listaLendingAbi: () => listaLendingAbi,
2983
3000
  morphoBlueAbi: () => morphoBlueAbi,
3001
+ morphoBorrowAbi: () => morphoBorrowAbi,
3002
+ oneInchAbi: () => oneInchAbi,
3003
+ pancakeInfinityAbi: () => pancakeInfinityAbi,
3004
+ pancakeV3Abi: () => pancakeV3Abi,
3005
+ pauseGuardAbi: () => pauseGuardAbi,
3006
+ pendleAbi: () => pendleAbi,
2984
3007
  ponsAbi: () => ponsAbi,
3008
+ priorsAbi: () => priorsAbi,
2985
3009
  rebalanceAbi: () => rebalanceAbi,
2986
3010
  rootValidatorAbi: () => rootValidatorAbi,
2987
3011
  routerAbi: () => routerAbi,
2988
3012
  safe7579Abi: () => safe7579Abi,
2989
3013
  signerAbi: () => signerAbi,
2990
3014
  subVaultsAbi: () => subVaultsAbi,
3015
+ sushiAbi: () => sushiAbi,
2991
3016
  timelockAbi: () => timelockAbi,
2992
3017
  transferAbi: () => transferAbi,
3018
+ uniswapV2Abi: () => uniswapV2Abi,
2993
3019
  uniswapV3Abi: () => uniswapV3Abi,
2994
3020
  uniswapV3LiquidityAbi: () => uniswapV3LiquidityAbi,
2995
3021
  uniswapV4Abi: () => uniswapV4Abi,
2996
3022
  uniswapV4LiquidityAbi: () => uniswapV4LiquidityAbi,
2997
- wethAbi: () => wethAbi
3023
+ wethAbi: () => wethAbi,
3024
+ x402Abi: () => x402Abi,
3025
+ x402EscrowAbi: () => x402EscrowAbi
2998
3026
  });
2999
3027
  var gateAbi = [{ "type": "function", "name": "ENTRY_POINT", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "PERMIT2", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "acceptChild", "inputs": [{ "name": "child", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "agentUntil", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "agent", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "canUse", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "actor", "type": "address", "internalType": "address" }, { "name": "adapter", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "cap", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "actor", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "tuple", "internalType": "struct MortiseGate.Cap", "components": [{ "name": "limit", "type": "uint128", "internalType": "uint128" }, { "name": "used", "type": "uint128", "internalType": "uint128" }, { "name": "period", "type": "uint64", "internalType": "uint64" }, { "name": "windowStart", "type": "uint64", "internalType": "uint64" }] }], "stateMutability": "view" }, { "type": "function", "name": "childCount", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "epoch", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "execute", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "actions", "type": "tuple[]", "internalType": "struct Action[]", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }], "outputs": [{ "name": "results", "type": "bytes[][]", "internalType": "bytes[][]" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasOpenFloor", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "actor", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "hasOpenMarkets", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "actor", "type": "address", "internalType": "address" }, { "name": "adapter", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "installed", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isAgent", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "agent", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isFamily", "inputs": [{ "name": "a", "type": "address", "internalType": "address" }, { "name": "b", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isInitialized", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isMarket", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "adapter", "type": "address", "internalType": "address" }, { "name": "market", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isModule", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "module", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isModuleType", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "pure" }, { "type": "function", "name": "isPaused", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "liveParent", "inputs": [{ "name": "child", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "minRate", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "tokenIn", "type": "address", "internalType": "address" }, { "name": "tokenOut", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "moduleState", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "module", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "function", "name": "onInstall", "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "onUninstall", "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "parentEpoch", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "parentVault", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "pause", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "pauser", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "proposeParent", "inputs": [{ "name": "parent", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "proposedParent", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "setAdapterAccess", "inputs": [{ "name": "actor", "type": "address", "internalType": "address" }, { "name": "adapter", "type": "address", "internalType": "address" }, { "name": "allowed", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setAgent", "inputs": [{ "name": "agent", "type": "address", "internalType": "address" }, { "name": "until", "type": "uint64", "internalType": "uint64" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setCap", "inputs": [{ "name": "actor", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "limit", "type": "uint128", "internalType": "uint128" }, { "name": "period", "type": "uint64", "internalType": "uint64" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMarket", "inputs": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "allowed", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMinRate", "inputs": [{ "name": "tokenIn", "type": "address", "internalType": "address" }, { "name": "tokenOut", "type": "address", "internalType": "address" }, { "name": "rate", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setModule", "inputs": [{ "name": "module", "type": "address", "internalType": "address" }, { "name": "enabled", "type": "bool", "internalType": "bool" }, { "name": "initState", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setOpenFloor", "inputs": [{ "name": "actor", "type": "address", "internalType": "address" }, { "name": "open", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setOpenMarkets", "inputs": [{ "name": "actor", "type": "address", "internalType": "address" }, { "name": "adapter", "type": "address", "internalType": "address" }, { "name": "open", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPauser", "inputs": [{ "name": "newPauser", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "trigger", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "module", "type": "address", "internalType": "address" }], "outputs": [{ "name": "results", "type": "bytes[][]", "internalType": "bytes[][]" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "unlink", "inputs": [{ "name": "child", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "unpause", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "ActionExecuted", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "actor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "adapter", "type": "address", "indexed": true, "internalType": "address" }, { "name": "market", "type": "bytes32", "indexed": false, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "AdapterAccessSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "actor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "adapter", "type": "address", "indexed": true, "internalType": "address" }, { "name": "allowed", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "AgentSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "agent", "type": "address", "indexed": true, "internalType": "address" }, { "name": "until", "type": "uint64", "indexed": false, "internalType": "uint64" }], "anonymous": false }, { "type": "event", "name": "CapSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "actor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "limit", "type": "uint128", "indexed": false, "internalType": "uint128" }, { "name": "period", "type": "uint64", "indexed": false, "internalType": "uint64" }], "anonymous": false }, { "type": "event", "name": "FamilyLinked", "inputs": [{ "name": "child", "type": "address", "indexed": true, "internalType": "address" }, { "name": "parentVault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "childCount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "FamilyUnlinked", "inputs": [{ "name": "child", "type": "address", "indexed": true, "internalType": "address" }, { "name": "parentVault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "childCount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "Installed", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "MarketSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "adapter", "type": "address", "indexed": true, "internalType": "address" }, { "name": "market", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "allowed", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "MinRateSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenIn", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenOut", "type": "address", "indexed": true, "internalType": "address" }, { "name": "rate", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "ModuleSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "module", "type": "address", "indexed": true, "internalType": "address" }, { "name": "enabled", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "OpenFloorSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "actor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "open", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "OpenMarketsSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "actor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "adapter", "type": "address", "indexed": true, "internalType": "address" }, { "name": "open", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "Paused", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "by", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "PauserSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "pauser", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "ProposedParentSet", "inputs": [{ "name": "child", "type": "address", "indexed": true, "internalType": "address" }, { "name": "proposedParent", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "Uninstalled", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "Unpaused", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "error", "name": "AdapterNotAllowed", "inputs": [{ "name": "adapter", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "AllowanceLeft", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }, { "name": "spender", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "AlreadyInitialized", "inputs": [{ "name": "smartAccount", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "BalanceUnreadable", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "BelowMinRate", "inputs": [{ "name": "spent", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "CallNotAllowed", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }, { "type": "error", "name": "CapExceeded", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }, { "name": "used", "type": "uint256", "internalType": "uint256" }, { "name": "limit", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "DuplicateToken", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "EmptyPlan", "inputs": [] }, { "type": "error", "name": "ForbiddenTarget", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "InvalidPeriod", "inputs": [] }, { "type": "error", "name": "MalformedCall", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "MarketNotAllowed", "inputs": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "market", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "NoMinRate", "inputs": [{ "name": "tokenIn", "type": "address", "internalType": "address" }, { "name": "tokenOut", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotAgent", "inputs": [{ "name": "agent", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotInitialized", "inputs": [{ "name": "smartAccount", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotInstalled", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotLinked", "inputs": [{ "name": "child", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotModule", "inputs": [{ "name": "module", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotPauser", "inputs": [{ "name": "caller", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotProposedParent", "inputs": [{ "name": "child", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "Reentrancy", "inputs": [] }, { "type": "error", "name": "SwapNotSettled", "inputs": [] }, { "type": "error", "name": "UndeclaredEth", "inputs": [] }, { "type": "error", "name": "UndeclaredToken", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "VaultPaused", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }] }];
3000
3028
  var rootValidatorAbi = [{ "type": "function", "name": "MAX_GUARDIANS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_MEMBERS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_RECOVERY_DELAY", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_RECOVERY_DELAY", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "approveRecovery", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }, { "name": "newRoot", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "cancelRecovery", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "executeRecovery", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }, { "name": "newRoot", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "guardiansOf", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "guardians", "type": "address[]", "internalType": "address[]" }, { "name": "threshold", "type": "uint256", "internalType": "uint256" }, { "name": "delay", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "isInitialized", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isModuleType", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "pure" }, { "type": "function", "name": "isPaymasterOnly", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isRootSignature", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }, { "name": "hash", "type": "bytes32", "internalType": "bytes32" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isValidSignatureWithSender", "inputs": [{ "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "bytes32", "internalType": "bytes32" }, { "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4" }], "stateMutability": "pure" }, { "type": "function", "name": "onInstall", "inputs": [{ "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "onUninstall", "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "recoveryNonce", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "recoveryOf", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }, { "name": "rootHash", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "tuple", "internalType": "struct MortiseRootValidator.Recovery", "components": [{ "name": "approvals", "type": "uint256", "internalType": "uint256" }, { "name": "readyAt", "type": "uint256", "internalType": "uint256" }] }], "stateMutability": "view" }, { "type": "function", "name": "rootOf", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "members", "type": "tuple[]", "internalType": "struct MortiseRootValidator.Member[]", "components": [{ "name": "keyType", "type": "uint8", "internalType": "enum MortiseRootValidator.KeyType" }, { "name": "signer", "type": "address", "internalType": "address" }, { "name": "x", "type": "bytes32", "internalType": "bytes32" }, { "name": "y", "type": "bytes32", "internalType": "bytes32" }] }, { "name": "threshold", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "setGuardians", "inputs": [{ "name": "guardians", "type": "address[]", "internalType": "address[]" }, { "name": "threshold", "type": "uint256", "internalType": "uint256" }, { "name": "delay", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPaymasterOnly", "inputs": [{ "name": "required", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRootKey", "inputs": [{ "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "validateUserOp", "inputs": [{ "name": "userOp", "type": "tuple", "internalType": "struct PackedUserOperation", "components": [{ "name": "sender", "type": "address", "internalType": "address" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "initCode", "type": "bytes", "internalType": "bytes" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }, { "name": "accountGasLimits", "type": "bytes32", "internalType": "bytes32" }, { "name": "preVerificationGas", "type": "uint256", "internalType": "uint256" }, { "name": "gasFees", "type": "bytes32", "internalType": "bytes32" }, { "name": "paymasterAndData", "type": "bytes", "internalType": "bytes" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }] }, { "name": "userOpHash", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "event", "name": "GuardiansSet", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "guardians", "type": "address[]", "indexed": false, "internalType": "address[]" }, { "name": "threshold", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "delay", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "PaymasterOnlySet", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "required", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "RecoveryApproved", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "guardian", "type": "address", "indexed": true, "internalType": "address" }, { "name": "rootHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "approvals", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "RecoveryCancelled", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "RecoveryExecuted", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "rootHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "RecoveryReady", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "rootHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "readyAt", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newRoot", "type": "bytes", "indexed": false, "internalType": "bytes" }], "anonymous": false }, { "type": "event", "name": "RootCleared", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "RootSet", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "members", "type": "tuple[]", "indexed": false, "internalType": "struct MortiseRootValidator.Member[]", "components": [{ "name": "keyType", "type": "uint8", "internalType": "enum MortiseRootValidator.KeyType" }, { "name": "signer", "type": "address", "internalType": "address" }, { "name": "x", "type": "bytes32", "internalType": "bytes32" }, { "name": "y", "type": "bytes32", "internalType": "bytes32" }] }, { "name": "threshold", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "error", "name": "AlreadyInitialized", "inputs": [{ "name": "smartAccount", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "HookInstalled", "inputs": [] }, { "type": "error", "name": "InvalidGuardians", "inputs": [] }, { "type": "error", "name": "InvalidKey", "inputs": [] }, { "type": "error", "name": "InvalidRoot", "inputs": [] }, { "type": "error", "name": "InvalidTargetAddress", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotGuardian", "inputs": [{ "name": "caller", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotInitialized", "inputs": [{ "name": "smartAccount", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "RecoveryNotReady", "inputs": [{ "name": "rootHash", "type": "bytes32", "internalType": "bytes32" }] }];
@@ -3019,6 +3047,27 @@ var familyTransferAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "
3019
3047
  var dcaAbi = [{ "type": "function", "name": "encodePlan", "inputs": [{ "name": "action", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "keeper", "type": "address", "internalType": "address" }, { "name": "interval", "type": "uint64", "internalType": "uint64" }, { "name": "firstAt", "type": "uint64", "internalType": "uint64" }, { "name": "runs", "type": "uint32", "internalType": "uint32" }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "pure" }, { "type": "function", "name": "propose", "inputs": [{ "name": "", "type": "address", "internalType": "address" }, { "name": "caller", "type": "address", "internalType": "address" }, { "name": "state", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "actions", "type": "tuple[]", "internalType": "struct Action[]", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "nextState", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "error", "name": "Finished", "inputs": [] }, { "type": "error", "name": "NotDue", "inputs": [{ "name": "nextAt", "type": "uint64", "internalType": "uint64" }] }, { "type": "error", "name": "NotKeeper", "inputs": [{ "name": "caller", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroInterval", "inputs": [] }, { "type": "error", "name": "ZeroKeeper", "inputs": [] }];
3020
3048
  var automationAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_INTERVAL", "inputs": [], "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_STEPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_TASKS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "encodeTasks", "inputs": [{ "name": "tasks", "type": "tuple[]", "internalType": "struct AutomationModule.Task[]", "components": [{ "name": "keeper", "type": "address", "internalType": "address" }, { "name": "nextAt", "type": "uint64", "internalType": "uint64" }, { "name": "interval", "type": "uint64", "internalType": "uint64" }, { "name": "runsLeft", "type": "uint32", "internalType": "uint32" }, { "name": "group", "type": "uint32", "internalType": "uint32" }, { "name": "condition", "type": "tuple", "internalType": "struct AutomationModule.Condition", "components": [{ "name": "feed", "type": "tuple", "internalType": "struct Feed", "components": [{ "name": "feed", "type": "address", "internalType": "address" }, { "name": "maxAge", "type": "uint32", "internalType": "uint32" }, { "name": "stockToken", "type": "address", "internalType": "address" }] }, { "name": "above", "type": "bool", "internalType": "bool" }, { "name": "price", "type": "uint256", "internalType": "uint256" }] }, { "name": "steps", "type": "tuple[]", "internalType": "struct AutomationModule.Step[]", "components": [{ "name": "action", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "keep", "type": "uint256", "internalType": "uint256" }, { "name": "bps", "type": "uint16", "internalType": "uint16" }, { "name": "word", "type": "uint16", "internalType": "uint16" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }] }] }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "pure" }, { "type": "function", "name": "propose", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "caller", "type": "address", "internalType": "address" }, { "name": "state", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "actions", "type": "tuple[]", "internalType": "struct Action[]", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "nextState", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "error", "name": "BadTemplate", "inputs": [{ "name": "task", "type": "uint256", "internalType": "uint256" }, { "name": "step", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "InvalidTasks", "inputs": [] }, { "type": "error", "name": "NothingToRun", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3021
3049
  var rebalanceAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_INTERVAL", "inputs": [], "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_PAIRS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "encodePairs", "inputs": [{ "name": "pairs", "type": "tuple[]", "internalType": "struct RebalanceModule.Pair[]", "components": [{ "name": "keeper", "type": "address", "internalType": "address" }, { "name": "tokenA", "type": "address", "internalType": "address" }, { "name": "tokenB", "type": "address", "internalType": "address" }, { "name": "feedA", "type": "tuple", "internalType": "struct Feed", "components": [{ "name": "feed", "type": "address", "internalType": "address" }, { "name": "maxAge", "type": "uint32", "internalType": "uint32" }, { "name": "stockToken", "type": "address", "internalType": "address" }] }, { "name": "feedB", "type": "tuple", "internalType": "struct Feed", "components": [{ "name": "feed", "type": "address", "internalType": "address" }, { "name": "maxAge", "type": "uint32", "internalType": "uint32" }, { "name": "stockToken", "type": "address", "internalType": "address" }] }, { "name": "targetBpsA", "type": "uint16", "internalType": "uint16" }, { "name": "bandBps", "type": "uint16", "internalType": "uint16" }, { "name": "slippageBps", "type": "uint16", "internalType": "uint16" }, { "name": "interval", "type": "uint64", "internalType": "uint64" }, { "name": "nextAt", "type": "uint64", "internalType": "uint64" }, { "name": "minTradeUsd", "type": "uint256", "internalType": "uint256" }, { "name": "sellA", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "wordA", "type": "uint16", "internalType": "uint16" }, { "name": "minOutWordA", "type": "uint16", "internalType": "uint16" }, { "name": "sellB", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "wordB", "type": "uint16", "internalType": "uint16" }, { "name": "minOutWordB", "type": "uint16", "internalType": "uint16" }] }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "pure" }, { "type": "function", "name": "propose", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "caller", "type": "address", "internalType": "address" }, { "name": "state", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "actions", "type": "tuple[]", "internalType": "struct Action[]", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "nextState", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "error", "name": "BadTemplate", "inputs": [{ "name": "pair", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "InvalidPairs", "inputs": [] }, { "type": "error", "name": "NothingToRun", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3050
+ var uniswapV2Abi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "PERMIT2", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "UNIVERSAL_ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WETH", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NoPair", "inputs": [] }, { "type": "error", "name": "SameToken", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3051
+ var pancakeV3Abi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "PERMIT2", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "UNIVERSAL_ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WETH", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NoPool", "inputs": [] }, { "type": "error", "name": "SameToken", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3052
+ var pancakeInfinityAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "CL_POOL_MANAGER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "PERMIT2", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "UNIVERSAL_ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NotClPool", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3053
+ var aeroSlipstreamAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "CL_FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "SWAP_ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WETH", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NoPool", "inputs": [] }, { "type": "error", "name": "SameToken", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3054
+ var oneInchAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "BadLayout", "inputs": [] }, { "type": "error", "name": "MinReturnBelowFloor", "inputs": [{ "name": "minReturn", "type": "uint256", "internalType": "uint256" }, { "name": "floor", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotSwap", "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }, { "type": "error", "name": "SameToken", "inputs": [] }, { "type": "error", "name": "UnpricedPair", "inputs": [{ "name": "tokenIn", "type": "address", "internalType": "address" }, { "name": "tokenOut", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "UnsupportedFlags", "inputs": [{ "name": "flags", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "WrongEthAmount", "inputs": [{ "name": "declared", "type": "uint256", "internalType": "uint256" }, { "name": "needed", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "WrongReceiver", "inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "WrongTokenOut", "inputs": [{ "name": "declared", "type": "address", "internalType": "address" }, { "name": "inCalldata", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3055
+ var sushiAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "RED_SNWAPPER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "MinReturnBelowFloor", "inputs": [{ "name": "minReturn", "type": "uint256", "internalType": "uint256" }, { "name": "floor", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotSnwap", "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }, { "type": "error", "name": "SameToken", "inputs": [] }, { "type": "error", "name": "UnpricedPair", "inputs": [{ "name": "tokenIn", "type": "address", "internalType": "address" }, { "name": "tokenOut", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "WrongReceiver", "inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3056
+ var listaLendingAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MOOLAH", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "InvalidAmount", "inputs": [] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3057
+ var aaveV3Abi = [{ "type": "constructor", "inputs": [{ "name": "pool", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "POOL", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "view" }, { "type": "error", "name": "NoReserve", "inputs": [{ "name": "asset", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3058
+ var priorsAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "BORROW", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "LEND", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "POOL", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "USDG", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "borrowOf", "inputs": [{ "name": "agentId", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "pure" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "DelegateActive", "inputs": [{ "name": "agentId", "type": "uint256", "internalType": "uint256" }, { "name": "delegate", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "agentId", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotVaultLoan", "inputs": [{ "name": "loanId", "type": "uint256", "internalType": "uint256" }, { "name": "owner", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3059
+ var beefyAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3060
+ var pendleAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MARKET_FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "Expired", "inputs": [{ "name": "market", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotExpired", "inputs": [{ "name": "market", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "market", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotPendleMarket", "inputs": [{ "name": "market", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3061
+ var aeroLiquidityAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "POSITION_MANAGER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "NoPool", "inputs": [] }, { "type": "error", "name": "NoPriceBand", "inputs": [{ "name": "token0", "type": "address", "internalType": "address" }, { "name": "token1", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "NotVaultPosition", "inputs": [{ "name": "tokenId", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "PriceOutOfBand", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3062
+ var lighterAbi = [{ "type": "function", "name": "MARKET", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "USDG", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "USDG_INDEX", "inputs": [], "outputs": [{ "name": "", "type": "uint16", "internalType": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "ZK_LIGHTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "pure" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3063
+ var layerZeroOftAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }, { "name": "oft", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "OFT", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "TOKEN", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "routeOf", "inputs": [{ "name": "dstEid", "type": "uint32", "internalType": "uint32" }, { "name": "to", "type": "bytes32", "internalType": "bytes32" }, { "name": "minRate", "type": "uint256", "internalType": "uint256" }, { "name": "maxFee", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "pure" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "view" }, { "type": "error", "name": "Dust", "inputs": [{ "name": "amountLD", "type": "uint256", "internalType": "uint256" }, { "name": "conversionRate", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "FeeTooHigh", "inputs": [{ "name": "fee", "type": "uint256", "internalType": "uint256" }, { "name": "maxFee", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3064
+ var ccipAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "routeOf", "inputs": [{ "name": "destinationChainSelector", "type": "uint64", "internalType": "uint64" }, { "name": "receiver", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "maxFee", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "pure" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }, { "type": "error", "name": "FeeTooHigh", "inputs": [{ "name": "fee", "type": "uint256", "internalType": "uint256" }, { "name": "maxFee", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3065
+ var morphoBorrowAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MORPHO", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "checkLtv", "inputs": [{ "name": "params", "type": "tuple", "internalType": "struct MarketParams", "components": [{ "name": "loanToken", "type": "address", "internalType": "address" }, { "name": "collateralToken", "type": "address", "internalType": "address" }, { "name": "oracle", "type": "address", "internalType": "address" }, { "name": "irm", "type": "address", "internalType": "address" }, { "name": "lltv", "type": "uint256", "internalType": "uint256" }] }, { "name": "vault", "type": "address", "internalType": "address" }, { "name": "maxLtv", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "view" }, { "type": "function", "name": "ltvOf", "inputs": [{ "name": "params", "type": "tuple", "internalType": "struct MarketParams", "components": [{ "name": "loanToken", "type": "address", "internalType": "address" }, { "name": "collateralToken", "type": "address", "internalType": "address" }, { "name": "oracle", "type": "address", "internalType": "address" }, { "name": "irm", "type": "address", "internalType": "address" }, { "name": "lltv", "type": "uint256", "internalType": "uint256" }] }, { "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "marketOf", "inputs": [{ "name": "params", "type": "tuple", "internalType": "struct MarketParams", "components": [{ "name": "loanToken", "type": "address", "internalType": "address" }, { "name": "collateralToken", "type": "address", "internalType": "address" }, { "name": "oracle", "type": "address", "internalType": "address" }, { "name": "irm", "type": "address", "internalType": "address" }, { "name": "lltv", "type": "uint256", "internalType": "uint256" }] }, { "name": "maxLtv", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "pure" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "view" }, { "type": "error", "name": "BadCeiling", "inputs": [{ "name": "maxLtv", "type": "uint256", "internalType": "uint256" }, { "name": "lltv", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "LtvAboveCeiling", "inputs": [{ "name": "ltv", "type": "uint256", "internalType": "uint256" }, { "name": "maxLtv", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NoDebt", "inputs": [] }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] }];
3066
+ var erc8004Abi = [{ "type": "function", "name": "IDENTITY", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "REGISTRY", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "pure" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "pure" }];
3067
+ var x402EscrowAbi = [{ "type": "constructor", "inputs": [{ "name": "token", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "MAX_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "TOKEN", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "authorize", "inputs": [{ "name": "to", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "validAfter", "type": "uint256", "internalType": "uint256" }, { "name": "validBefore", "type": "uint256", "internalType": "uint256" }, { "name": "nonce", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "digestFor", "inputs": [{ "name": "to", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "validAfter", "type": "uint256", "internalType": "uint256" }, { "name": "validBefore", "type": "uint256", "internalType": "uint256" }, { "name": "nonce", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "digestOf", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "isValidSignature", "inputs": [{ "name": "hash", "type": "bytes32", "internalType": "bytes32" }, { "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4" }], "stateMutability": "view" }, { "type": "function", "name": "payments", "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "validBefore", "type": "uint64", "internalType": "uint64" }, { "name": "closed", "type": "bool", "internalType": "bool" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "nonce", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "reclaim", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Authorized", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "validAfter", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "validBefore", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "digest", "type": "bytes32", "indexed": false, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "Reclaimed", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "error", "name": "AlreadyClosed", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "AlreadyPaid", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "BadWindow", "inputs": [] }, { "type": "error", "name": "NonceTaken", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "SelfPayment", "inputs": [] }, { "type": "error", "name": "StillOpen", "inputs": [{ "name": "validBefore", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "UnknownNonce", "inputs": [{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroValue", "inputs": [] }];
3068
+ var x402Abi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }, { "name": "escrow", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "ESCROW", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "TOKEN", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plan", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "p", "type": "tuple", "internalType": "struct Plan", "components": [{ "name": "market", "type": "bytes32", "internalType": "bytes32" }, { "name": "calls", "type": "tuple[]", "internalType": "struct Execution[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }] }, { "name": "tokens", "type": "address[]", "internalType": "address[]" }, { "name": "isSwap", "type": "bool", "internalType": "bool" }, { "name": "swapIn", "type": "address", "internalType": "address" }, { "name": "swapOut", "type": "address", "internalType": "address" }] }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "r", "type": "tuple[]", "internalType": "struct CallRule[]", "components": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "selector", "type": "bytes4", "internalType": "bytes4" }] }], "stateMutability": "view" }, { "type": "error", "name": "NotListed", "inputs": [{ "name": "to", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3069
+ var pauseGuardAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_TRIPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "isWatcher", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "wallet", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "pause", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setTrips", "inputs": [{ "name": "trips", "type": "tuple[]", "internalType": "struct MortisePauseGuard.Trip[]", "components": [{ "name": "feed", "type": "tuple", "internalType": "struct Feed", "components": [{ "name": "feed", "type": "address", "internalType": "address" }, { "name": "maxAge", "type": "uint32", "internalType": "uint32" }, { "name": "stockToken", "type": "address", "internalType": "address" }] }, { "name": "min", "type": "uint256", "internalType": "uint256" }, { "name": "max", "type": "uint256", "internalType": "uint256" }] }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setWatcher", "inputs": [{ "name": "wallet", "type": "address", "internalType": "address" }, { "name": "allowed", "type": "bool", "internalType": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "trip", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "index", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "tripsOf", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "tuple[]", "internalType": "struct MortisePauseGuard.Trip[]", "components": [{ "name": "feed", "type": "tuple", "internalType": "struct Feed", "components": [{ "name": "feed", "type": "address", "internalType": "address" }, { "name": "maxAge", "type": "uint32", "internalType": "uint32" }, { "name": "stockToken", "type": "address", "internalType": "address" }] }, { "name": "min", "type": "uint256", "internalType": "uint256" }, { "name": "max", "type": "uint256", "internalType": "uint256" }] }], "stateMutability": "view" }, { "type": "event", "name": "PausedBy", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "caller", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tripIndex", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "price", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "TripsSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "count", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "WatcherSet", "inputs": [{ "name": "vault", "type": "address", "indexed": true, "internalType": "address" }, { "name": "wallet", "type": "address", "indexed": true, "internalType": "address" }, { "name": "allowed", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "error", "name": "BadTrip", "inputs": [{ "name": "index", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotTripped", "inputs": [{ "name": "price", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "NotWatcher", "inputs": [{ "name": "caller", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "TooManyTrips", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3070
+ var compoundAbi = [{ "type": "constructor", "inputs": [{ "name": "gate", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "DEPOSIT_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "GATE", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_INTERVAL", "inputs": [], "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_POSITIONS", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "encodePositions", "inputs": [{ "name": "positions", "type": "tuple[]", "internalType": "struct CompoundModule.Position[]", "components": [{ "name": "keeper", "type": "address", "internalType": "address" }, { "name": "nextAt", "type": "uint64", "internalType": "uint64" }, { "name": "interval", "type": "uint64", "internalType": "uint64" }, { "name": "collectedAt", "type": "uint64", "internalType": "uint64" }, { "name": "collect", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "deposit", "type": "tuple", "internalType": "struct Action", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "token0", "type": "address", "internalType": "address" }, { "name": "token1", "type": "address", "internalType": "address" }, { "name": "word0", "type": "uint16", "internalType": "uint16" }, { "name": "word1", "type": "uint16", "internalType": "uint16" }, { "name": "min0", "type": "uint256", "internalType": "uint256" }, { "name": "min1", "type": "uint256", "internalType": "uint256" }, { "name": "base0", "type": "uint256", "internalType": "uint256" }, { "name": "base1", "type": "uint256", "internalType": "uint256" }] }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "pure" }, { "type": "function", "name": "propose", "inputs": [{ "name": "vault", "type": "address", "internalType": "address" }, { "name": "caller", "type": "address", "internalType": "address" }, { "name": "state", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "actions", "type": "tuple[]", "internalType": "struct Action[]", "components": [{ "name": "adapter", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }] }, { "name": "nextState", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "error", "name": "BadTemplate", "inputs": [{ "name": "position", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "InvalidPositions", "inputs": [] }, { "type": "error", "name": "NothingToRun", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }];
3022
3071
  var accountAbi = [{ "type": "function", "name": "accountId", "inputs": [], "outputs": [{ "name": "accountImplementationId", "type": "string", "internalType": "string" }], "stateMutability": "view" }, { "type": "function", "name": "execute", "inputs": [{ "name": "mode", "type": "bytes32", "internalType": "ModeCode" }, { "name": "executionCalldata", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "executeFromExecutor", "inputs": [{ "name": "mode", "type": "bytes32", "internalType": "ModeCode" }, { "name": "executionCalldata", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "returnData", "type": "bytes[]", "internalType": "bytes[]" }], "stateMutability": "payable" }, { "type": "function", "name": "installModule", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }, { "name": "module", "type": "address", "internalType": "address" }, { "name": "initData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "isModuleInstalled", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }, { "name": "module", "type": "address", "internalType": "address" }, { "name": "additionalContext", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isValidSignature", "inputs": [{ "name": "hash", "type": "bytes32", "internalType": "bytes32" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4" }], "stateMutability": "view" }, { "type": "function", "name": "supportsExecutionMode", "inputs": [{ "name": "encodedMode", "type": "bytes32", "internalType": "ModeCode" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "supportsModule", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "uninstallModule", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "internalType": "uint256" }, { "name": "module", "type": "address", "internalType": "address" }, { "name": "deInitData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "event", "name": "ModuleInstalled", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "module", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "ModuleUninstalled", "inputs": [{ "name": "moduleTypeId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "module", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }];
3023
3072
  var entryPointAbi = [{ "type": "function", "name": "addStake", "inputs": [{ "name": "_unstakeDelaySec", "type": "uint32", "internalType": "uint32" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "balanceOf", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "delegateAndRevert", "inputs": [{ "name": "target", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "depositTo", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "getDepositInfo", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "info", "type": "tuple", "internalType": "struct IStakeManager.DepositInfo", "components": [{ "name": "deposit", "type": "uint256", "internalType": "uint256" }, { "name": "staked", "type": "bool", "internalType": "bool" }, { "name": "stake", "type": "uint112", "internalType": "uint112" }, { "name": "unstakeDelaySec", "type": "uint32", "internalType": "uint32" }, { "name": "withdrawTime", "type": "uint48", "internalType": "uint48" }] }], "stateMutability": "view" }, { "type": "function", "name": "getNonce", "inputs": [{ "name": "sender", "type": "address", "internalType": "address" }, { "name": "key", "type": "uint192", "internalType": "uint192" }], "outputs": [{ "name": "nonce", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "getSenderAddress", "inputs": [{ "name": "initCode", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getUserOpHash", "inputs": [{ "name": "userOp", "type": "tuple", "internalType": "struct PackedUserOperation", "components": [{ "name": "sender", "type": "address", "internalType": "address" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "initCode", "type": "bytes", "internalType": "bytes" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }, { "name": "accountGasLimits", "type": "bytes32", "internalType": "bytes32" }, { "name": "preVerificationGas", "type": "uint256", "internalType": "uint256" }, { "name": "gasFees", "type": "bytes32", "internalType": "bytes32" }, { "name": "paymasterAndData", "type": "bytes", "internalType": "bytes" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }] }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "handleAggregatedOps", "inputs": [{ "name": "opsPerAggregator", "type": "tuple[]", "internalType": "struct IEntryPoint.UserOpsPerAggregator[]", "components": [{ "name": "userOps", "type": "tuple[]", "internalType": "struct PackedUserOperation[]", "components": [{ "name": "sender", "type": "address", "internalType": "address" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "initCode", "type": "bytes", "internalType": "bytes" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }, { "name": "accountGasLimits", "type": "bytes32", "internalType": "bytes32" }, { "name": "preVerificationGas", "type": "uint256", "internalType": "uint256" }, { "name": "gasFees", "type": "bytes32", "internalType": "bytes32" }, { "name": "paymasterAndData", "type": "bytes", "internalType": "bytes" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }] }, { "name": "aggregator", "type": "address", "internalType": "contract IAggregator" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }] }, { "name": "beneficiary", "type": "address", "internalType": "address payable" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "handleOps", "inputs": [{ "name": "ops", "type": "tuple[]", "internalType": "struct PackedUserOperation[]", "components": [{ "name": "sender", "type": "address", "internalType": "address" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "initCode", "type": "bytes", "internalType": "bytes" }, { "name": "callData", "type": "bytes", "internalType": "bytes" }, { "name": "accountGasLimits", "type": "bytes32", "internalType": "bytes32" }, { "name": "preVerificationGas", "type": "uint256", "internalType": "uint256" }, { "name": "gasFees", "type": "bytes32", "internalType": "bytes32" }, { "name": "paymasterAndData", "type": "bytes", "internalType": "bytes" }, { "name": "signature", "type": "bytes", "internalType": "bytes" }] }, { "name": "beneficiary", "type": "address", "internalType": "address payable" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "incrementNonce", "inputs": [{ "name": "key", "type": "uint192", "internalType": "uint192" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "unlockStake", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawStake", "inputs": [{ "name": "withdrawAddress", "type": "address", "internalType": "address payable" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawTo", "inputs": [{ "name": "withdrawAddress", "type": "address", "internalType": "address payable" }, { "name": "withdrawAmount", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "AccountDeployed", "inputs": [{ "name": "userOpHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "factory", "type": "address", "indexed": false, "internalType": "address" }, { "name": "paymaster", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "BeforeExecution", "inputs": [], "anonymous": false }, { "type": "event", "name": "Deposited", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "totalDeposit", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "PostOpRevertReason", "inputs": [{ "name": "userOpHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "revertReason", "type": "bytes", "indexed": false, "internalType": "bytes" }], "anonymous": false }, { "type": "event", "name": "SignatureAggregatorChanged", "inputs": [{ "name": "aggregator", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "StakeLocked", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "totalStaked", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "unstakeDelaySec", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "StakeUnlocked", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "withdrawTime", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "StakeWithdrawn", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "withdrawAddress", "type": "address", "indexed": false, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UserOperationEvent", "inputs": [{ "name": "userOpHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "paymaster", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "success", "type": "bool", "indexed": false, "internalType": "bool" }, { "name": "actualGasCost", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "actualGasUsed", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UserOperationPrefundTooLow", "inputs": [{ "name": "userOpHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UserOperationRevertReason", "inputs": [{ "name": "userOpHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "revertReason", "type": "bytes", "indexed": false, "internalType": "bytes" }], "anonymous": false }, { "type": "event", "name": "Withdrawn", "inputs": [{ "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "withdrawAddress", "type": "address", "indexed": false, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "error", "name": "DelegateAndRevert", "inputs": [{ "name": "success", "type": "bool", "internalType": "bool" }, { "name": "ret", "type": "bytes", "internalType": "bytes" }] }, { "type": "error", "name": "FailedOp", "inputs": [{ "name": "opIndex", "type": "uint256", "internalType": "uint256" }, { "name": "reason", "type": "string", "internalType": "string" }] }, { "type": "error", "name": "FailedOpWithRevert", "inputs": [{ "name": "opIndex", "type": "uint256", "internalType": "uint256" }, { "name": "reason", "type": "string", "internalType": "string" }, { "name": "inner", "type": "bytes", "internalType": "bytes" }] }, { "type": "error", "name": "PostOpReverted", "inputs": [{ "name": "returnData", "type": "bytes", "internalType": "bytes" }] }, { "type": "error", "name": "SenderAddressResult", "inputs": [{ "name": "sender", "type": "address", "internalType": "address" }] }, { "type": "error", "name": "SignatureValidationFailed", "inputs": [{ "name": "aggregator", "type": "address", "internalType": "address" }] }];
3024
3073
  var erc20Abi = [{ "type": "function", "name": "allowance", "inputs": [{ "name": "owner", "type": "address", "internalType": "address" }, { "name": "spender", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "approve", "inputs": [{ "name": "spender", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "balanceOf", "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "decimals", "inputs": [], "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "name", "inputs": [], "outputs": [{ "name": "", "type": "string", "internalType": "string" }], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [{ "name": "", "type": "string", "internalType": "string" }], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "transfer", "inputs": [{ "name": "to", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferFrom", "inputs": [{ "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "nonpayable" }, { "type": "event", "name": "Approval", "inputs": [{ "name": "owner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "spender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "Transfer", "inputs": [{ "name": "from", "type": "address", "indexed": true, "internalType": "address" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }];
@@ -3221,6 +3270,7 @@ init_decodeErrorResult();
3221
3270
  init_decodeFunctionData();
3222
3271
  init_encodeAbiParameters();
3223
3272
  init_encodeFunctionData();
3273
+ init_getAddress();
3224
3274
  init_concat();
3225
3275
  init_pad();
3226
3276
  init_toHex();
@@ -3258,7 +3308,28 @@ var mortise = {
3258
3308
  familyTransfer: "0x398f4003F11197d70744D14423114D81280B5042",
3259
3309
  dca: "0xC319309684725a0cF3F712F630A9e7c63ACE345a",
3260
3310
  automation: "0x2aFf436334EbcafA4233363fcAf95bFE63219d7d",
3261
- rebalance: "0xe6e501a2A6422587E8c81813B805D52B4b4fFc57"
3311
+ rebalance: "0xe6e501a2A6422587E8c81813B805D52B4b4fFc57",
3312
+ uniswapV2: "0x41D0Be363De3b05F4A3C94820B690b1851A8a1Ed",
3313
+ pancakeV3: "0xe35C76466C723C88E75B12469E813488065b6Eab",
3314
+ pancakeInfinity: "0x1e403cf84375845216EB8335C84724033FB4FE44",
3315
+ aeroSlipstream: "0x8Ef073497C2782b31Bd691A8230FDcc6E9c1Aa0C",
3316
+ oneInch: "0xBBf54683bEa7964D4F54F68e61F50053e4a348FF",
3317
+ sushi: "0xF03FDF71b37473865B7aee99ff1349458efE6bD1",
3318
+ listaLending: "0x91880854d8738564FcC681E2A14CD9186e7a0508",
3319
+ aaveV3: "0x3b1e415443ccBB11c5B0e64a71A33c6F3Ab70989",
3320
+ priors: "0xc7FB4a6B54b3ba55E31A7F58bA5d45169B2A6Fe9",
3321
+ beefy: "0x61dB2eFA7561A9b99E3226d118b5Db9b7F63b92a",
3322
+ pendle: "0xe7B2BbFc3b2d5eE81991043A1FE35B52D86Fa249",
3323
+ aeroLiquidity: "0x61DF34fE62a3276D819EA9D599479615b63a1DB0",
3324
+ lighter: "0xEE4CBD35bA70cd69d71D3b130f142b1886f7F67a",
3325
+ layerZeroOft: "0x61FE2335508cB2Cf818b173d6900bAE8cC720eAf",
3326
+ ccip: "0xfA875b19C28d32eeebfc5cE2d33dF1Df634f06e9",
3327
+ morphoBorrow: "0xA89b35F26466d28D4270B728DA6B6643888707f0",
3328
+ erc8004: "0x40714A05fF27C0fF24106299b1b584BCaedAa76b",
3329
+ x402Escrow: "0x0fCB7f2e7023e94eCD7c31D831b3f172931723e1",
3330
+ x402: "0xa3e7A52413be4c050f9d613c00b614f5dc59cCEb",
3331
+ pauseGuard: "0x0a880ce9c5D521AC35Dd7215238a84EB715e8eb0",
3332
+ compound: "0xfd774AdE825d243B08b4e028B59216E39A0Cd4a0"
3262
3333
  };
3263
3334
  var deployBlock = 127492191n;
3264
3335
  var external = {
@@ -3812,6 +3883,16 @@ var signer = {
3812
3883
  initData: encodeAbiParameters([{ type: "bytes4" }, { type: "bytes1" }, { type: "bytes" }], ["0x84b0196e", "0xfe", "0x"])
3813
3884
  })
3814
3885
  };
3886
+ var pauseGuard = {
3887
+ setWatcher: (wallet, allowed) => call(mortise.pauseGuard, encodeFunctionData({ abi: pauseGuardAbi, functionName: "setWatcher", args: [wallet, allowed] })),
3888
+ /** Bounds are USD prices with 18 decimals; max 0 means no upper bound. Replaces the vault's trips. */
3889
+ setTrips: (trips) => call(mortise.pauseGuard, encodeFunctionData({ abi: pauseGuardAbi, functionName: "setTrips", args: [trips] })),
3890
+ pause: (vault) => call(mortise.pauseGuard, encodeFunctionData({ abi: pauseGuardAbi, functionName: "pause", args: [vault] })),
3891
+ trip: (vault, index) => call(mortise.pauseGuard, encodeFunctionData({ abi: pauseGuardAbi, functionName: "trip", args: [vault, index] }))
3892
+ };
3893
+ var x402Escrow = {
3894
+ reclaim: (nonce) => call(mortise.x402Escrow, encodeFunctionData({ abi: x402EscrowAbi, functionName: "reclaim", args: [nonce] }))
3895
+ };
3815
3896
  var funds = {
3816
3897
  sendEth: (to, amount) => ({ to, value: amount, data: "0x" }),
3817
3898
  sendToken: (token, to, amount) => call(token, encodeFunctionData({ abi: erc20Abi, functionName: "transfer", args: [to, amount] }))
@@ -3838,6 +3919,29 @@ var marketParamsType = {
3838
3919
  { name: "lltv", type: "uint256" }
3839
3920
  ]
3840
3921
  };
3922
+ var infinityPoolKeyType = {
3923
+ type: "tuple",
3924
+ components: [
3925
+ { name: "currency0", type: "address" },
3926
+ { name: "currency1", type: "address" },
3927
+ { name: "hooks", type: "address" },
3928
+ { name: "poolManager", type: "address" },
3929
+ { name: "fee", type: "uint24" },
3930
+ { name: "parameters", type: "bytes32" }
3931
+ ]
3932
+ };
3933
+ var changeType = {
3934
+ type: "tuple",
3935
+ components: [
3936
+ { name: "tokenId", type: "uint256" },
3937
+ { name: "liquidity", type: "uint128" },
3938
+ { name: "amount0", type: "uint256" },
3939
+ { name: "amount1", type: "uint256" },
3940
+ { name: "amount0Min", type: "uint256" },
3941
+ { name: "amount1Min", type: "uint256" }
3942
+ ]
3943
+ };
3944
+ var X402_SIGNATURE = `0x${"0".repeat(63)}1${"0".repeat(63)}11b`;
3841
3945
  function poolId(key) {
3842
3946
  return keccak256(encodeAbiParameters([poolKeyType], [key]));
3843
3947
  }
@@ -3959,8 +4063,144 @@ var actions = {
3959
4063
  args = encodeAbiParameters([{ type: "uint256" }, { type: "uint128" }, { type: "uint128" }], [a.tokenId, a.amount0Min, a.amount1Min]);
3960
4064
  }
3961
4065
  return { adapter: mortise.uniswapV4Liquidity, data: encodeAbiParameters([{ type: "uint8" }, { type: "bytes" }], [op, args]) };
3962
- }
4066
+ },
4067
+ /** Exact-input swap on one Uniswap v2 pair; address(0) is ETH. The minimum is raised to the vault's floor. */
4068
+ uniswapV2Swap: (a) => ({
4069
+ adapter: mortise.uniswapV2,
4070
+ data: encodeAbiParameters([{ type: "address" }, { type: "address" }, { type: "uint256" }, { type: "uint256" }], [a.tokenIn, a.tokenOut, a.amountIn, a.amountOutMinimum])
4071
+ }),
4072
+ /** Exact-input swap on one PancakeSwap v3 pool; address(0) is ETH. */
4073
+ pancakeV3Swap: (a) => ({
4074
+ adapter: mortise.pancakeV3,
4075
+ data: encodeAbiParameters([{ type: "address" }, { type: "address" }, { type: "uint24" }, { type: "uint128" }, { type: "uint128" }], [a.tokenIn, a.tokenOut, a.fee, a.amountIn, a.amountOutMinimum])
4076
+ }),
4077
+ /** Exact-input swap on one PancakeSwap Infinity CL pool. */
4078
+ pancakeInfinitySwap: (a) => ({
4079
+ adapter: mortise.pancakeInfinity,
4080
+ data: encodeAbiParameters([infinityPoolKeyType, { type: "bool" }, { type: "uint128" }, { type: "uint128" }], [a.key, a.zeroForOne, a.amountIn, a.amountOutMinimum])
4081
+ }),
4082
+ /** Exact-input swap on one Aero Slipstream (CL) pool, chosen by tick spacing; address(0) is ETH. */
4083
+ aeroSlipstreamSwap: (a) => ({
4084
+ adapter: mortise.aeroSlipstream,
4085
+ data: encodeAbiParameters([{ type: "address" }, { type: "address" }, { type: "int24" }, { type: "uint128" }, { type: "uint128" }], [a.tokenIn, a.tokenOut, a.tickSpacing, a.amountIn, a.amountOutMinimum])
4086
+ }),
4087
+ /** A 1inch v6 router call from 1inch's swap API (swap or unoswap); tokenOut is what the vault receives, ethIn the
4088
+ * ETH sent with it (0 for an ERC-20 input). The router must pay the vault. */
4089
+ oneInch: (a) => ({
4090
+ adapter: mortise.oneInch,
4091
+ data: encodeAbiParameters([{ type: "address" }, { type: "uint256" }, { type: "bytes" }], [a.tokenOut, a.ethIn, a.routerCalldata])
4092
+ }),
4093
+ /** A Sushi RedSnwapper snwap call from Sushi's swap API, as is. The recipient must be the vault. */
4094
+ sushi: (a) => ({ adapter: mortise.sushi, data: a.snwapCalldata }),
4095
+ /** Supply or withdraw the loan token of a listed Lista Lending (Moolah) market; give either assets or shares, the other 0. */
4096
+ listaLending: (a) => ({
4097
+ adapter: mortise.listaLending,
4098
+ data: encodeAbiParameters([{ type: "uint8" }, marketParamsType, { type: "uint256" }, { type: "uint256" }], [a.op === "supply" ? 0 : 1, a.market, a.assets, a.shares])
4099
+ }),
4100
+ /** Supply an asset to Aave v3 (Kaskad) or withdraw it; maxUint256 withdraws the whole position. */
4101
+ aaveV3: (a) => ({
4102
+ adapter: mortise.aaveV3,
4103
+ data: encodeAbiParameters([{ type: "uint8" }, { type: "address" }, { type: "uint256" }], [a.op === "supply" ? 0 : 1, a.asset, a.amount])
4104
+ }),
4105
+ /** The Priors credit pool: lend USDG (deposit, withdraw shares), or borrow on a listed agent identity and repay a loan. */
4106
+ priors: (a) => {
4107
+ const v = a.op === "deposit" ? [0, 0n, a.amount, a.minShares, 0n] : a.op === "withdraw" ? [1, 0n, a.shares, 0n, 0n] : a.op === "borrow" ? [2, a.agentId, a.amount, a.maxFee, a.term] : [3, a.loanId, 0n, 0n, 0n];
4108
+ return {
4109
+ adapter: mortise.priors,
4110
+ data: encodeAbiParameters([{ type: "uint8" }, { type: "uint256" }, { type: "uint256" }, { type: "uint256" }, { type: "uint64" }], v)
4111
+ };
4112
+ },
4113
+ /** Beefy: a Cowcentrated Liquidity Manager (clm*) or a Beefy vault (vault*), at a listed target. */
4114
+ beefy: (a) => {
4115
+ const v = a.op === "clmDeposit" ? [0, a.target, a.amount0, a.amount1, a.minShares] : a.op === "clmWithdraw" ? [1, a.target, a.shares, a.minAmount0, a.minAmount1] : a.op === "vaultDeposit" ? [2, a.target, a.amount, 0n, 0n] : [3, a.target, a.shares, 0n, 0n];
4116
+ return {
4117
+ adapter: mortise.beefy,
4118
+ data: encodeAbiParameters([{ type: "uint8" }, { type: "address" }, { type: "uint256" }, { type: "uint256" }, { type: "uint256" }], v)
4119
+ };
4120
+ },
4121
+ /** Pendle PT on a listed market: buy with a token, sell before maturity, redeem after. amountIn is the token for buy
4122
+ * and the PT for sell and redeem; the token must be one the market's SY takes directly. */
4123
+ pendle: (a) => ({
4124
+ adapter: mortise.pendle,
4125
+ data: encodeAbiParameters(
4126
+ [{ type: "uint8" }, { type: "address" }, { type: "address" }, { type: "uint256" }, { type: "uint256" }],
4127
+ [{ buy: 0, sell: 1, redeem: 2 }[a.op], a.market, a.token, a.amountIn, a.minOut]
4128
+ )
4129
+ }),
4130
+ /** Aero CL positions: Mint and Increase take up to amount0/amount1; Decrease takes `liquidity`. ERC-20 pairs only. */
4131
+ aeroLiquidity: (a) => {
4132
+ let op;
4133
+ let args;
4134
+ if (a.op === "mint") {
4135
+ op = 0;
4136
+ args = encodeAbiParameters(
4137
+ [{ type: "tuple", components: [{ name: "token0", type: "address" }, { name: "token1", type: "address" }, { name: "tickSpacing", type: "int24" }, { name: "tickLower", type: "int24" }, { name: "tickUpper", type: "int24" }, { name: "amount0", type: "uint256" }, { name: "amount1", type: "uint256" }, { name: "amount0Min", type: "uint256" }, { name: "amount1Min", type: "uint256" }] }],
4138
+ [a]
4139
+ );
4140
+ } else if (a.op === "increase" || a.op === "decrease") {
4141
+ op = a.op === "increase" ? 1 : 2;
4142
+ args = encodeAbiParameters([changeType], [a]);
4143
+ } else {
4144
+ op = a.op === "collect" ? 3 : 4;
4145
+ args = encodeAbiParameters([{ type: "uint256" }], [a.tokenId]);
4146
+ }
4147
+ return { adapter: mortise.aeroLiquidity, data: encodeAbiParameters([{ type: "uint8" }, { type: "bytes" }], [op, args]) };
4148
+ },
4149
+ /** USDG margin in the vault's own Lighter account: deposit (at least Lighter's 1 USDG minimum), withdraw (paid back to
4150
+ * the vault), claim a pending balance, or cancel every open order. Amounts in USDG raw units. */
4151
+ lighter: (a) => {
4152
+ const v = a.op === "deposit" ? [0, 0, a.amount] : a.op === "withdraw" ? [1, a.accountIndex, a.amount] : a.op === "claim" ? [2, 0, a.amount] : [3, a.accountIndex, 0n];
4153
+ return { adapter: mortise.lighter, data: encodeAbiParameters([{ type: "uint8" }, { type: "uint48" }, { type: "uint256" }], v) };
4154
+ },
4155
+ /** Send USDG over LayerZero (the USDG OFT) on a listed route; the native fee is paid from the vault's ETH. */
4156
+ layerZeroOft: (a) => ({
4157
+ adapter: mortise.layerZeroOft,
4158
+ data: encodeAbiParameters(
4159
+ [{ type: "uint32" }, { type: "bytes32" }, { type: "uint256" }, { type: "uint256" }, { type: "uint256" }, { type: "uint256" }],
4160
+ [a.dstEid, a.to, a.minRate, a.maxFee, a.amountLD, a.minAmountLD]
4161
+ )
4162
+ }),
4163
+ /** Send a token over Chainlink CCIP on a listed route to an EVM receiver; the fee is paid in ETH from the vault. */
4164
+ ccip: (a) => ({
4165
+ adapter: mortise.ccip,
4166
+ data: encodeAbiParameters(
4167
+ [{ type: "uint64" }, { type: "address" }, { type: "address" }, { type: "uint256" }, { type: "uint256" }],
4168
+ [a.destinationChainSelector, a.receiver, a.token, a.maxFee, a.amount]
4169
+ )
4170
+ }),
4171
+ /** Borrow on Morpho Blue below a listed loan-to-value ceiling (maxLtv, a 1e18 fraction): collateral in and out,
4172
+ * borrow and repay. maxUint256 repays the whole debt. */
4173
+ morphoBorrow: (a) => ({
4174
+ adapter: mortise.morphoBorrow,
4175
+ data: encodeAbiParameters(
4176
+ [{ type: "uint8" }, marketParamsType, { type: "uint256" }, { type: "uint256" }],
4177
+ [{ supplyCollateral: 0, withdrawCollateral: 1, borrow: 2, repay: 3 }[a.op], a.market, a.amount, a.maxLtv]
4178
+ )
4179
+ }),
4180
+ /** The vault's ERC-8004 agent identity: register one (uri), change its URI, or set a metadata entry. */
4181
+ erc8004: (a) => {
4182
+ const v = a.op === "register" ? [0, 0n, a.uri, "", "0x"] : a.op === "setUri" ? [1, a.agentId, a.uri, "", "0x"] : [2, a.agentId, "", a.key, a.value];
4183
+ return {
4184
+ adapter: mortise.erc8004,
4185
+ data: encodeAbiParameters([{ type: "uint8" }, { type: "uint256" }, { type: "string" }, { type: "string" }, { type: "bytes" }], v)
4186
+ };
4187
+ },
4188
+ /** Funds one x402 payment in MortiseX402Escrow, to a payee the owner listed: the fields of the server's payment
4189
+ * requirements and a fresh random nonce. Then send x402Payment(...) to the server. */
4190
+ x402: (a) => ({
4191
+ adapter: mortise.x402,
4192
+ data: encodeAbiParameters(
4193
+ [{ type: "address" }, { type: "uint256" }, { type: "uint256" }, { type: "uint256" }, { type: "bytes32" }],
4194
+ [a.to, a.value, a.validAfter, a.validBefore, a.nonce]
4195
+ )
4196
+ })
3963
4197
  };
4198
+ function x402Payment(a) {
4199
+ return {
4200
+ authorization: { from: mortise.x402Escrow, to: a.to, value: a.value.toString(), validAfter: a.validAfter.toString(), validBefore: a.validBefore.toString(), nonce: a.nonce },
4201
+ signature: X402_SIGNATURE
4202
+ };
4203
+ }
3964
4204
  var addressMarket = (a) => pad(a.toLowerCase(), { size: 32 });
3965
4205
  var pairHash = (a, b) => keccak256(encodeAbiParameters([{ type: "address" }, { type: "address" }], [a, b]));
3966
4206
  var markets = {
@@ -3979,6 +4219,29 @@ var markets = {
3979
4219
  /** The token allowed to move inside the family. */
3980
4220
  familyTransfer: (token) => addressMarket(token),
3981
4221
  weth: () => addressMarket(external.weth),
4222
+ uniswapV2Pair: (pair) => addressMarket(pair),
4223
+ pancakeV3Pool: (pool) => addressMarket(pool),
4224
+ pancakeInfinityPool: (key) => keccak256(encodeAbiParameters([infinityPoolKeyType], [key])),
4225
+ /** The pool address from the Aero CL factory (AeroSlipstreamAdapter and AeroLiquidityAdapter). */
4226
+ aeroPool: (pool) => addressMarket(pool),
4227
+ /** The pair as traded, tokenIn first, address(0) for ETH (OneInchAdapter and SushiAdapter). */
4228
+ swapPair: (tokenIn, tokenOut) => pairHash(tokenIn, tokenOut),
4229
+ listaLending: (m) => morphoMarketId(m),
4230
+ aaveV3: (asset) => addressMarket(asset),
4231
+ /** Lending to the Priors pool (deposit and withdraw). */
4232
+ priorsLend: () => keccak256(toHex("priors.lend")),
4233
+ /** Borrowing and repaying on one agent identity. */
4234
+ priorsBorrow: (agentId) => keccak256(encodeAbiParameters([{ type: "bytes32" }, { type: "uint256" }], [keccak256(toHex("priors.borrow")), agentId])),
4235
+ beefy: (target) => addressMarket(target),
4236
+ pendle: (market) => addressMarket(market),
4237
+ lighter: () => keccak256(toHex("lighter.usdg")),
4238
+ layerZeroRoute: (r) => keccak256(encodeAbiParameters([{ type: "uint32" }, { type: "bytes32" }, { type: "uint256" }, { type: "uint256" }], [r.dstEid, r.to, r.minRate, r.maxFee])),
4239
+ ccipRoute: (r) => keccak256(encodeAbiParameters([{ type: "uint64" }, { type: "address" }, { type: "address" }, { type: "uint256" }], [r.destinationChainSelector, r.receiver, r.token, r.maxFee])),
4240
+ /** A Morpho Blue market with the loan-to-value ceiling the owner allows on it. */
4241
+ morphoBorrow: (m, maxLtv) => keccak256(encodeAbiParameters([{ type: "bytes32" }, { type: "uint256" }], [morphoMarketId(m), maxLtv])),
4242
+ erc8004: () => keccak256(toHex("erc8004.identity")),
4243
+ /** An x402 payee; it must be listed even when the agent has open markets. */
4244
+ x402Payee: (to) => addressMarket(to),
3982
4245
  acrossRoute: (r) => keccak256(
3983
4246
  encodeAbiParameters(
3984
4247
  [{ type: "uint256" }, { type: "bytes32" }, { type: "address" }, { type: "bytes32" }, { type: "uint256" }],
@@ -4182,8 +4445,101 @@ var moduleState = {
4182
4445
  /** Up to eight tasks: scheduled, recurring or price-triggered actions, each run by its own keeper. */
4183
4446
  automation: (client, tasks) => client.readContract({ address: mortise.automation, abi: automationAbi, functionName: "encodeTasks", args: [tasks] }),
4184
4447
  /** Token pairs kept near a target share of their Chainlink value. */
4185
- rebalance: (client, pairs) => client.readContract({ address: mortise.rebalance, abi: rebalanceAbi, functionName: "encodePairs", args: [pairs] })
4448
+ rebalance: (client, pairs) => client.readContract({ address: mortise.rebalance, abi: rebalanceAbi, functionName: "encodePairs", args: [pairs] }),
4449
+ /**
4450
+ * Up to eight liquidity positions whose fees go back in, in two triggers per round: collect, then deposit what the
4451
+ * balances rose by. The deposit action is a template whose 32-byte words `word0` and `word1` hold zero; see
4452
+ * compoundWords. collectedAt, base0 and base1 must be zero.
4453
+ */
4454
+ compound: (client, positions) => client.readContract({ address: mortise.compound, abi: compoundAbi, functionName: "encodePositions", args: [positions] })
4186
4455
  };
4456
+ var compoundWords = { increase: { word0: 5, word1: 6 } };
4457
+
4458
+ // src/x402.ts
4459
+ var USDG = "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168";
4460
+ var NETWORKS = ["eip155:4663", "robinhood"];
4461
+ var toBase64 = (s) => btoa(Array.from(new TextEncoder().encode(s), (c) => String.fromCharCode(c)).join(""));
4462
+ var fromBase64 = (s) => new TextDecoder().decode(Uint8Array.from(atob(s), (c) => c.charCodeAt(0)));
4463
+ function x402Required(headers, body) {
4464
+ const header = headers.get("payment-required");
4465
+ const required = header ? JSON.parse(fromBase64(header)) : body;
4466
+ if (!required || !Array.isArray(required.accepts)) throw new Error("the answer carries no x402 payment requirements");
4467
+ return required;
4468
+ }
4469
+ function robinhoodUsdg(required) {
4470
+ const r = required.accepts.find((a) => a.scheme === "exact" && NETWORKS.includes(a.network) && a.asset.toLowerCase() === USDG.toLowerCase());
4471
+ if (!r) throw new Error(`the server takes no USDG on Robinhood Chain: ${required.accepts.map((a) => `${a.network} ${a.asset}`).join(", ")}`);
4472
+ return r;
4473
+ }
4474
+ function x402Terms(r, chainNow) {
4475
+ const value = BigInt(r.amount ?? r.maxAmountRequired ?? "0");
4476
+ if (value <= 0n) throw new Error("the requirement names no amount");
4477
+ const nonce = bytesToHex(crypto.getRandomValues(new Uint8Array(32)));
4478
+ const timeout = BigInt(Math.min(Math.max(Number(r.maxTimeoutSeconds ?? 300), 60), 3600));
4479
+ const wallNow = BigInt(Math.floor(Date.now() / 1e3));
4480
+ const earliest = chainNow < wallNow ? chainNow : wallNow;
4481
+ const latest = chainNow > wallNow ? chainNow : wallNow;
4482
+ return { to: getAddress(r.payTo), value, validAfter: earliest - 600n, validBefore: latest + timeout, nonce };
4483
+ }
4484
+ function x402Header(required, r, terms) {
4485
+ const payload = x402Payment(terms);
4486
+ if (required.x402Version === 1) return { "X-PAYMENT": toBase64(JSON.stringify({ x402Version: 1, scheme: "exact", network: r.network, payload })) };
4487
+ const body = { x402Version: required.x402Version, payload, resource: required.resource, accepted: r, ...required.extensions ? { extensions: required.extensions } : {} };
4488
+ return { "PAYMENT-SIGNATURE": toBase64(JSON.stringify(body)) };
4489
+ }
4490
+ function x402Settlement(headers) {
4491
+ const h = headers.get("payment-response") ?? headers.get("x-payment-response");
4492
+ if (!h) return void 0;
4493
+ try {
4494
+ return JSON.parse(fromBase64(h));
4495
+ } catch {
4496
+ return void 0;
4497
+ }
4498
+ }
4499
+ function x402Collected(client, nonce) {
4500
+ return client.readContract({
4501
+ address: USDG,
4502
+ abi: [{ type: "function", name: "authorizationState", inputs: [{ type: "address" }, { type: "bytes32" }], outputs: [{ type: "bool" }], stateMutability: "view" }],
4503
+ functionName: "authorizationState",
4504
+ args: [mortise.x402Escrow, nonce]
4505
+ });
4506
+ }
4507
+ var X402PaymentError = class extends Error {
4508
+ terms;
4509
+ constructor(message, terms, cause) {
4510
+ super(message, { cause });
4511
+ this.name = "X402PaymentError";
4512
+ this.terms = terms;
4513
+ }
4514
+ };
4515
+ async function payX402(client, wallet, vault, url, o) {
4516
+ const first = await fetch(url, o.init);
4517
+ if (first.status !== 402) throw new Error(`expected a 402 answer from ${url}, got ${first.status}`);
4518
+ let body;
4519
+ try {
4520
+ body = await first.json();
4521
+ } catch {
4522
+ body = void 0;
4523
+ }
4524
+ const required = x402Required(first.headers, body);
4525
+ const r = robinhoodUsdg(required);
4526
+ const terms = x402Terms(r, (await client.getBlock()).timestamp);
4527
+ if (terms.value > o.maxValue) throw new Error(`the price ${terms.value} is above the ${o.maxValue} USDG raw units allowed`);
4528
+ const listed = await client.readContract({ address: mortise.gate, abi: gateAbi, functionName: "isMarket", args: [vault, mortise.x402, markets.x402Payee(terms.to)] });
4529
+ if (!listed) throw new Error(`the payee ${terms.to} is not listed: the owner lists it with gate.setMarket(mortise.x402, markets.x402Payee(payee), true)`);
4530
+ let funding;
4531
+ try {
4532
+ funding = await actionReceipt(client, await sendActions(client, wallet, vault, [actions.x402(terms)], o.send));
4533
+ } catch (err) {
4534
+ throw new X402PaymentError(`funding the payment failed or was not confirmed: ${err.message}`, terms, err);
4535
+ }
4536
+ try {
4537
+ const paid = await fetch(url, { ...o.init, headers: { ...Object.fromEntries(new Headers(o.init?.headers).entries()), ...x402Header(required, r, terms) } });
4538
+ return { status: paid.status, body: await paid.text(), collected: await x402Collected(client, terms.nonce), settlement: x402Settlement(paid.headers), funding, terms };
4539
+ } catch (err) {
4540
+ throw new X402PaymentError(`the payment was funded but sending it failed: ${err.message}`, terms, err);
4541
+ }
4542
+ }
4187
4543
  export {
4188
4544
  BundlerError,
4189
4545
  ETH,
@@ -4191,14 +4547,23 @@ export {
4191
4547
  NEVER,
4192
4548
  RootCallError,
4193
4549
  TransactionRevertedError,
4550
+ X402PaymentError,
4551
+ X402_SIGNATURE,
4552
+ aaveV3Abi,
4194
4553
  accountAbi,
4195
4554
  acrossAbi,
4196
4555
  actionReceipt,
4197
4556
  actions,
4198
4557
  adapterAbi,
4558
+ aeroLiquidityAbi,
4559
+ aeroSlipstreamAbi,
4199
4560
  approveRecovery,
4200
4561
  automationAbi,
4562
+ beefyAbi,
4201
4563
  buildRootOp,
4564
+ ccipAbi,
4565
+ compoundAbi,
4566
+ compoundWords,
4202
4567
  createVault,
4203
4568
  dcaAbi,
4204
4569
  decodeMortiseError,
@@ -4214,6 +4579,7 @@ export {
4214
4579
  entryPointAbi,
4215
4580
  erc20Abi,
4216
4581
  erc4626Abi,
4582
+ erc8004Abi,
4217
4583
  executeActions,
4218
4584
  executeRecovery,
4219
4585
  external,
@@ -4223,24 +4589,37 @@ export {
4223
4589
  funds,
4224
4590
  gate,
4225
4591
  gateAbi,
4592
+ layerZeroOftAbi,
4593
+ lighterAbi,
4594
+ listaLendingAbi,
4226
4595
  markets,
4227
4596
  minRate,
4228
4597
  moduleState,
4229
4598
  morphoBlueAbi,
4599
+ morphoBorrowAbi,
4230
4600
  morphoMarketId,
4231
4601
  mortise,
4232
4602
  mortiseErrorName,
4603
+ oneInchAbi,
4233
4604
  opId,
4234
4605
  packUserOp,
4606
+ pancakeInfinityAbi,
4607
+ pancakeV3Abi,
4608
+ pauseGuard,
4609
+ pauseGuardAbi,
4610
+ payX402,
4611
+ pendleAbi,
4235
4612
  permissions,
4236
4613
  planAction,
4237
4614
  ponsAbi,
4238
4615
  poolId,
4239
4616
  predictVault,
4617
+ priorsAbi,
4240
4618
  rateOf,
4241
4619
  rebalanceAbi,
4242
4620
  revertData,
4243
4621
  robinhood,
4622
+ robinhoodUsdg,
4244
4623
  root,
4245
4624
  rootHash,
4246
4625
  rootNonce,
@@ -4258,15 +4637,26 @@ export {
4258
4637
  singleKeyRoot,
4259
4638
  subVaults,
4260
4639
  subVaultsAbi,
4640
+ sushiAbi,
4261
4641
  timelock,
4262
4642
  timelockAbi,
4263
4643
  transferAbi,
4264
4644
  triggerModule,
4645
+ uniswapV2Abi,
4265
4646
  uniswapV3Abi,
4266
4647
  uniswapV3LiquidityAbi,
4267
4648
  uniswapV4Abi,
4268
4649
  uniswapV4LiquidityAbi,
4269
4650
  userOpHash,
4270
4651
  vaultStatus,
4271
- wethAbi
4652
+ wethAbi,
4653
+ x402Abi,
4654
+ x402Collected,
4655
+ x402Escrow,
4656
+ x402EscrowAbi,
4657
+ x402Header,
4658
+ x402Payment,
4659
+ x402Required,
4660
+ x402Settlement,
4661
+ x402Terms
4272
4662
  };