Skip to content
Verified contractExactMIT

EarnBridge

Address0x3d1f7e14a13845be4e18fb53bc8fc4e2eaeaae6d
Balance

0 ETH

 

Transactions

362

 

Compiler

solc 0.8.20

 

Same code

1 more contract

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
Yes, 12 runs
EVM version
paris
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
20,117,800
Creation transaction
0x33f8b53bd1…bb86ddda33

Read4

  • isEarnBridgeAsset(address) → (uint8)
  • isNonceUsed(uint256) → (bool)
  • stakingManager() → (address)
  • supportsInterface(bytes4) → (bool)

Write5

  • bridgeFrom(tuple,bytes)
  • bridgeTo(tuple,bytes)
  • onERC1155BatchReceived(address,address,uint256[],uint256[],bytes) → (bytes4)
  • onERC1155Received(address,address,uint256,uint256,bytes) → (bytes4)
  • onERC721Received(address,address,uint256,bytes) → (bytes4)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_earnStakingManager",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "bridgeFrom",
    "type": "function",
    "inputs": [
      {
        "name": "swapConfig",
        "type": "tuple",
        "components": [
          {
            "name": "source",
            "type": "tuple",
            "components": [
              {
                "name": "chainBridgeConfig",
                "type": "tuple",
                "components": [
                  {
                    "name": "chainId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "bridgeContractAddress",
                    "type": "address",
                    "internalType": "address"
                  }
                ],
                "internalType": "struct ChainBridgeConfig"
              },
              {
                "name": "asset",
                "type": "tuple",
                "components": [
                  {
                    "name": "assetAddress",
                    "type": "address",
                    "internalType": "address"
                  },
                  {
                    "name": "erc1155TokenId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "assetType",
                    "type": "uint8",
                    "internalType": "enum AssetType"
                  }
                ],
                "internalType": "struct Asset"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "feeAmount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "erc721TokenIds",
                "type": "uint256[]",
                "internalType": "uint256[]"
              }
            ],
            "internalType": "struct PathConfig"
          },
          {
            "name": "destination",
            "type": "tuple",
            "components": [
              {
                "name": "chainBridgeConfig",
                "type": "tuple",
                "components": [
                  {
                    "name": "chainId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "bridgeContractAddress",
                    "type": "address",
                    "internalType": "address"
                  }
                ],
                "internalType": "struct ChainBridgeConfig"
              },
              {
                "name": "asset",
                "type": "tuple",
                "components": [
                  {
                    "name": "assetAddress",
                    "type": "address",
                    "internalType": "address"
                  },
                  {
                    "name": "erc1155TokenId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "assetType",
                    "type": "uint8",
                    "internalType": "enum AssetType"
                  }
                ],
                "internalType": "struct Asset"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "feeAmount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "erc721TokenIds",
                "type": "uint256[]",
                "internalType": "uint256[]"
              }
            ],
            "internalType": "struct PathConfig"
          },
          {
            "name": "executor",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "deadline",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct SwapConfig"
      },
      {
        "name": "signerSignature",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "bridgeTo",
    "type": "function",
    "inputs": [
      {
        "name": "swapConfig",
        "type": "tuple",
        "components": [
          {
            "name": "source",
            "type": "tuple",
            "components": [
              {
                "name": "chainBridgeConfig",
                "type": "tuple",
                "components": [
                  {
                    "name": "chainId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "bridgeContractAddress",
                    "type": "address",
                    "internalType": "address"
                  }
                ],
                "internalType": "struct ChainBridgeConfig"
              },
              {
                "name": "asset",
                "type": "tuple",
                "components": [
                  {
                    "name": "assetAddress",
                    "type": "address",
                    "internalType": "address"
                  },
                  {
                    "name": "erc1155TokenId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "assetType",
                    "type": "uint8",
                    "internalType": "enum AssetType"
                  }
                ],
                "internalType": "struct Asset"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "feeAmount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "erc721TokenIds",
                "type": "uint256[]",
                "internalType": "uint256[]"
              }
            ],
            "internalType": "struct PathConfig"
          },
          {
            "name": "destination",
            "type": "tuple",
            "components": [
              {
                "name": "chainBridgeConfig",
                "type": "tuple",
                "components": [
                  {
                    "name": "chainId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "bridgeContractAddress",
                    "type": "address",
                    "internalType": "address"
                  }
                ],
                "internalType": "struct ChainBridgeConfig"
              },
              {
                "name": "asset",
                "type": "tuple",
                "components": [
                  {
                    "name": "assetAddress",
                    "type": "address",
                    "internalType": "address"
                  },
                  {
                    "name": "erc1155TokenId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "assetType",
                    "type": "uint8",
                    "internalType": "enum AssetType"
                  }
                ],
                "internalType": "struct Asset"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "feeAmount",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "erc721TokenIds",
                "type": "uint256[]",
                "internalType": "uint256[]"
              }
            ],
            "internalType": "struct PathConfig"
          },
          {
            "name": "executor",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "deadline",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct SwapConfig"
      },
      {
        "name": "signerSignature",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "isEarnBridgeAsset",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "enum IsEarnBridgeAsset"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isNonceUsed",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "onERC1155BatchReceived",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "onERC1155Received",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "onERC721Received",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "stakingManager",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IEarnStakingManager"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "supportsInterface",
    "type": "function",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.