UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

323 lines (322 loc) 6.2 kB
[ { "inputs": [ { "internalType": "contract IERC20", "name": "token", "type": "address" }, { "internalType": "bool", "name": "holdNative", "type": "bool" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "BridgeAddressCannotBeZero", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "wanted", "type": "uint256" }, { "internalType": "uint256", "name": "got", "type": "uint256" } ], "name": "InsufficientEthValue", "type": "error" }, { "inputs": [], "name": "InsufficientLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidFinalizationAction", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "MsgShouldNotContainValue", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "msgValue", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "MsgValueDoesNotMatchAmount", "type": "error" }, { "inputs": [], "name": "NativeSendFailed", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "nonce", "type": "uint256" } ], "name": "NonceAlreadyUsed", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "nonce", "type": "uint256" } ], "name": "NonceNotProven", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LiquidityAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LiquidityRemoved", "type": "event" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct MockL1BridgeAdapter.FinalizePayload", "name": "payload", "type": "tuple" } ], "name": "encodeFinalizePayload", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "enum MockL1BridgeAdapter.FinalizationAction", "name": "action", "type": "uint8" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct MockL1BridgeAdapter.Payload", "name": "payload", "type": "tuple" } ], "name": "encodePayload", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "nonce", "type": "uint256" } ], "internalType": "struct MockL1BridgeAdapter.ProvePayload", "name": "payload", "type": "tuple" } ], "name": "encodeProvePayload", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "localReceiver", "type": "address" }, { "internalType": "bytes", "name": "bridgeSpecificPayload", "type": "bytes" } ], "name": "finalizeWithdrawERC20", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getBridgeFeeInNative", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "provideLiquidity", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "localToken", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "sendERC20", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdrawLiquidity", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ]