Skip to content

Commit

Permalink
Add new functions and error handling to JSON artifacts for bridging a…
Browse files Browse the repository at this point in the history
…nd address management, update contract addresses.
  • Loading branch information
ylv-io committed Nov 15, 2024
1 parent c157983 commit ca79962
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 8 deletions.
125 changes: 121 additions & 4 deletions artifacts/42161.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down
125 changes: 121 additions & 4 deletions artifacts/8453.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down

0 comments on commit ca79962

Please sign in to comment.