Verified contractPartialGPL-2.0-or-later
Fraxferry
Address0xfe7eba20c20c8ff12a337f940ce7a97c6e2594de
- Balance
0 ETH
- Transactions
38
- Compiler
solc 0.8.17
- Same code
23 more contracts
Details
- Compiler
- solc 0.8.17+commit.8df45f5f
- Language
- solidity
- Optimization
- Yes, 100,000 runs
- EVM version
- london
- License
- GPL-2.0-or-later
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,638,006
- Creation transaction
- 0x76cc36e6d2…83c7446737
- Main copy (most transactions)
- 0x86e71075…8310c98a
Read27
- FEE_MAX() → (uint256)
- FEE_MIN() → (uint256)
- FEE_RATE() → (uint256)
- MIN_WAIT_PERIOD_ADD() → (uint256)
- MIN_WAIT_PERIOD_EXECUTE() → (uint256)
- REDUCED_DECIMALS() → (uint256)
- batches(uint256) → (uint64,uint64,uint64,uint64,bytes32)
- cancelled(uint256) → (bool)
- captain() → (address)
- chainid() → (uint256)
- crewmembers(address) → (bool)
- executeIndex() → (uint256)
- fee_exempt_addrs(address) → (bool)
- firstOfficer() → (address)
- getBatchAmount(uint256,uint256) → (uint256)
- getBatchData(uint256,uint256) → (tuple)
- getNextBatch(uint256,uint256) → (uint256,uint256,bytes32)
- getTransactionsHash(uint256,uint256) → (bytes32)
- noBatches() → (uint256)
- noTransactions() → (uint256)
- nominatedOwner() → (address)
- owner() → (address)
- paused() → (bool)
- targetChain() → (uint256)
- targetToken() → (address)
- token() → (address)
- transactions(uint256) → (address,uint64,uint32)
Write21
- acceptOwnership()
- depart(uint256,uint256,bytes32)
- disembark(tuple)
- disputeBatch(uint256,bytes32)
- embark(uint256)
- embarkWithRecipient(uint256,address)
- embarkWithSignature(uint256,address,uint256,bool,uint8,bytes32,bytes32)
- execute(address,uint256,bytes) → (bool,bytes)
- jettison(uint256,bool)
- jettisonGroup(uint256[],bool)
- nominateNewOwner(address)
- pause()
- removeBatches(uint256)
- sendTokens(address,uint256)
- setCaptain(address)
- setCrewmember(address,bool)
- setFee(uint256,uint256,uint256)
- setFirstOfficer(address)
- setMinWaitPeriods(uint256,uint256)
- toggleFeeExemptAddr(address)
- unPause()
Events15
- Cancelled(uint256,bool)
- Depart(uint256,uint256,uint256,bytes32)
- Disembark(uint256,uint256,bytes32)
- DisputeBatch(uint256,bytes32)
- Embark(address,uint256,uint256,uint256,uint256)
- FeeExemptToggled(address,bool)
- OwnerChanged(address,address)
- OwnerNominated(address)
- Pause(bool)
- RemoveBatch(uint256)
- SetCaptain(address,address)
- SetCrewmember(address,bool)
- SetFee(uint256,uint256,uint256,uint256,uint256,uint256)
- SetFirstOfficer(address,address)
- SetMinWaitPeriods(uint256,uint256,uint256,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "address"
},
{
"name": "_chainid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_targetToken",
"type": "address",
"internalType": "address"
},
{
"name": "_targetChain",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "Cancelled",
"type": "event",
"inputs": [
{
"name": "index",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "cancel",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "Depart",
"type": "event",
"inputs": [
{
"name": "batchNo",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "start",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "Disembark",
"type": "event",
"inputs": [
{
"name": "start",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "DisputeBatch",
"type": "event",
"inputs": [
{
"name": "batchNo",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "Embark",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "index",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amountAfterFee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "FeeExemptToggled",
"type": "event",
"inputs": [
{
"name": "addr",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "is_fee_exempt",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "OwnerChanged",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnerNominated",
"type": "event",
"inputs": [
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Pause",
"type": "event",
"inputs": [
{
"name": "paused",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "RemoveBatch",
"type": "event",
"inputs": [
{
"name": "batchNo",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetCaptain",
"type": "event",
"inputs": [
{
"name": "previousCaptain",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newCaptain",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "SetCrewmember",
"type": "event",
"inputs": [
{
"name": "crewmember",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "set",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "SetFee",
"type": "event",
"inputs": [
{
"name": "previousFeeRate",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "feeRate",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "previousFeeMin",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "feeMin",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "previousFeeMax",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "feeMax",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetFirstOfficer",
"type": "event",
"inputs": [
{
"name": "previousFirstOfficer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newFirstOfficer",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "SetMinWaitPeriods",
"type": "event",
"inputs": [
{
"name": "previousMinWaitAdd",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "previousMinWaitExecute",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "minWaitAdd",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "minWaitExecute",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "FEE_MAX",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FEE_MIN",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FEE_RATE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MIN_WAIT_PERIOD_ADD",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MIN_WAIT_PERIOD_EXECUTE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "REDUCED_DECIMALS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "batches",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "start",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "end",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "departureTime",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "status",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "cancelled",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "captain",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "chainid",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "crewmembers",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "depart",
"type": "function",
"inputs": [
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "disembark",
"type": "function",
"inputs": [
{
"name": "batchData",
"type": "tuple",
"components": [
{
"name": "startTransactionNo",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "transactions",
"type": "tuple[]",
"components": [
{
"name": "user",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Fraxferry.Transaction[]"
}
],
"internalType": "struct Fraxferry.BatchData"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "disputeBatch",
"type": "function",
"inputs": [
{
"name": "batchNo",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "embark",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "embarkWithRecipient",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "embarkWithSignature",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "approveMax",
"type": "bool",
"internalType": "bool"
},
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "execute",
"type": "function",
"inputs": [
{
"name": "_to",
"type": "address",
"internalType": "address"
},
{
"name": "_value",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
},
{
"name": "",
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "nonpayable"
},
{
"name": "executeIndex",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "fee_exempt_addrs",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "firstOfficer",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "getBatchAmount",
"type": "function",
"inputs": [
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "totalAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getBatchData",
"type": "function",
"inputs": [
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "data",
"type": "tuple",
"components": [
{
"name": "startTransactionNo",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "transactions",
"type": "tuple[]",
"components": [
{
"name": "user",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Fraxferry.Transaction[]"
}
],
"internalType": "struct Fraxferry.BatchData"
}
],
"stateMutability": "view"
},
{
"name": "getNextBatch",
"type": "function",
"inputs": [
{
"name": "_start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "max",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "getTransactionsHash",
"type": "function",
"inputs": [
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "jettison",
"type": "function",
"inputs": [
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "cancel",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "jettisonGroup",
"type": "function",
"inputs": [
{
"name": "indexes",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "cancel",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "noBatches",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "noTransactions",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "nominateNewOwner",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "nominatedOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "removeBatches",
"type": "function",
"inputs": [
{
"name": "batchNo",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "sendTokens",
"type": "function",
"inputs": [
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setCaptain",
"type": "function",
"inputs": [
{
"name": "newCaptain",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setCrewmember",
"type": "function",
"inputs": [
{
"name": "crewmember",
"type": "address",
"internalType": "address"
},
{
"name": "set",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setFee",
"type": "function",
"inputs": [
{
"name": "_FEE_RATE",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_FEE_MIN",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_FEE_MAX",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setFirstOfficer",
"type": "function",
"inputs": [
{
"name": "newFirstOfficer",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMinWaitPeriods",
"type": "function",
"inputs": [
{
"name": "_MIN_WAIT_PERIOD_ADD",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_MIN_WAIT_PERIOD_EXECUTE",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "targetChain",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "targetToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "toggleFeeExemptAddr",
"type": "function",
"inputs": [
{
"name": "addr",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "token",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "transactions",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"name": "unPause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.