diff --git a/artifacts/42161.json b/artifacts/42161.json index f9d7960f..75c9ad1c 100644 --- a/artifacts/42161.json +++ b/artifacts/42161.json @@ -1271,10 +1271,28 @@ "name": "poolAddressProvider_", "type": "address", "internalType": "address" + }, + { + "name": "bridger_", + "type": "address", + "internalType": "address" } ], "stateMutability": "nonpayable" }, + { + "type": "function", + "name": "bridger", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IBridger" + } + ], + "stateMutability": "view" + }, { "type": "function", "name": "poolAddressProvider", @@ -1301,18 +1319,117 @@ "name": "amount", "type": "uint256", "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawAndBridge", + "inputs": [ + { + "name": "asset", + "type": "address", + "internalType": "address" }, { - "name": "receiver", + "name": "amount", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "kintoWallet", "type": "address", "internalType": "address" + }, + { + "name": "bridgeData", + "type": "tuple", + "internalType": "struct IBridger.BridgeData", + "components": [ + { + "name": "vault", + "type": "address", + "internalType": "address" + }, + { + "name": "gasFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgGasLimit", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "connector", + "type": "address", + "internalType": "address" + }, + { + "name": "execPayload", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ] } ], - "outputs": [], - "stateMutability": "nonpayable" + "outputs": [ + { + "name": "amountOut", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "payable" + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] } ], - "address": "0x10ed00FDb26Ec6BE0183e6f14D8275d5898B0721" + "address": "0xef4D6687372172c4af1802C208Ab40673b014309" }, "BridgeWorkflow": { "abi": [ diff --git a/artifacts/8453.json b/artifacts/8453.json index e5b33bcf..8b0d8802 100644 --- a/artifacts/8453.json +++ b/artifacts/8453.json @@ -1271,10 +1271,28 @@ "name": "poolAddressProvider_", "type": "address", "internalType": "address" + }, + { + "name": "bridger_", + "type": "address", + "internalType": "address" } ], "stateMutability": "nonpayable" }, + { + "type": "function", + "name": "bridger", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IBridger" + } + ], + "stateMutability": "view" + }, { "type": "function", "name": "poolAddressProvider", @@ -1301,18 +1319,117 @@ "name": "amount", "type": "uint256", "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawAndBridge", + "inputs": [ + { + "name": "asset", + "type": "address", + "internalType": "address" }, { - "name": "receiver", + "name": "amount", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "kintoWallet", "type": "address", "internalType": "address" + }, + { + "name": "bridgeData", + "type": "tuple", + "internalType": "struct IBridger.BridgeData", + "components": [ + { + "name": "vault", + "type": "address", + "internalType": "address" + }, + { + "name": "gasFee", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgGasLimit", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "connector", + "type": "address", + "internalType": "address" + }, + { + "name": "execPayload", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "options", + "type": "bytes", + "internalType": "bytes" + } + ] } ], - "outputs": [], - "stateMutability": "nonpayable" + "outputs": [ + { + "name": "amountOut", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "payable" + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] } ], - "address": "0x6cffCa3cE5285Aa7FEef445E8dd37F7E4cb24Dc9" + "address": "0xe307f7bf3fBfBB187f6870b6ad6b393f824e49e6" }, "BridgeWorkflow": { "abi": [