Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 7501463 | 173 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AvalancheBridgeDecoderAndSanitizer
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;
contract AvalancheBridgeDecoderAndSanitizer {
//============================== AVALANCHE BRIDGE ===============================
//@dev specific to USDC only on ETH mainnet
function transferTokens(uint256 /*amount*/, uint32 destinationDomain, address mintRecipient, address burnToken) external pure virtual returns (bytes memory addressesFound) {
addressesFound = abi.encodePacked(address(uint160(destinationDomain)), mintRecipient, burnToken);
}
//function unwrap(uint256 /*amount*/, uint256 chainId) external pure virtual returns (bytes memory addressesFound) {
// addressesFound = abi.encodePacked(address(uint160(chainId)));
//}
}{
"remappings": [
"@solmate/=lib/solmate/src/",
"@forge-std/=lib/forge-std/src/",
"@ds-test/=lib/forge-std/lib/ds-test/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"@ccip/=lib/ccip/",
"@oapp-auth/=lib/OAppAuth/src/",
"@devtools-oapp-evm/=lib/OAppAuth/lib/devtools/packages/oapp-evm/contracts/oapp/",
"@layerzerolabs/lz-evm-messagelib-v2/=lib/OAppAuth/node_modules/@layerzerolabs/lz-evm-messagelib-v2/",
"@layerzerolabs/lz-evm-protocol-v2/=lib/OAppAuth/lib/LayerZero-V2/packages/layerzero-v2/evm/protocol/",
"@layerzerolabs/oapp-evm/=lib/OAppAuth/lib/devtools/packages/oapp-evm/",
"@lz-oapp-evm/=lib/OAppAuth/lib/LayerZero-V2/packages/layerzero-v2/evm/oapp/contracts/oapp/",
"@sbu/=lib/OAppAuth/lib/solidity-bytes-utils/",
"LayerZero-V2/=lib/OAppAuth/lib/",
"OAppAuth/=lib/OAppAuth/",
"ccip/=lib/ccip/contracts/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/OAppAuth/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"solidity-bytes-utils/=lib/OAppAuth/node_modules/solidity-bytes-utils/",
"solmate/=lib/solmate/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint32","name":"destinationDomain","type":"uint32"},{"internalType":"address","name":"mintRecipient","type":"address"},{"internalType":"address","name":"burnToken","type":"address"}],"name":"transferTokens","outputs":[{"internalType":"bytes","name":"addressesFound","type":"bytes"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061019d806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806328fca00c14610030575b600080fd5b61008f61003e3660046100c1565b6040805163ffffffff60601b606095861b16602082015292841b6bffffffffffffffffffffffff1990811660348501529190931b1660488201528151603c818303018152605c909101909152919050565b60405161009c9190610119565b60405180910390f35b80356001600160a01b03811681146100bc57600080fd5b919050565b600080600080608085870312156100d757600080fd5b84359350602085013563ffffffff811681146100f257600080fd5b9250610100604086016100a5565b915061010e606086016100a5565b905092959194509250565b600060208083528351808285015260005b818110156101465785810183015185820160400152820161012a565b506000604082860101526040601f19601f830116850101925050509291505056fea264697066735822122017054d3b8a2ac8f101e25f4b917c9b9150ea52691515b00237fd85bb344954f564736f6c63430008150033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806328fca00c14610030575b600080fd5b61008f61003e3660046100c1565b6040805163ffffffff60601b606095861b16602082015292841b6bffffffffffffffffffffffff1990811660348501529190931b1660488201528151603c818303018152605c909101909152919050565b60405161009c9190610119565b60405180910390f35b80356001600160a01b03811681146100bc57600080fd5b919050565b600080600080608085870312156100d757600080fd5b84359350602085013563ffffffff811681146100f257600080fd5b9250610100604086016100a5565b915061010e606086016100a5565b905092959194509250565b600060208083528351808285015260005b818110156101465785810183015185820160400152820161012a565b506000604082860101526040601f19601f830116850101925050509291505056fea264697066735822122017054d3b8a2ac8f101e25f4b917c9b9150ea52691515b00237fd85bb344954f564736f6c63430008150033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.