33.3k txs
144.4k calls
constructor
constructor(uint256 chainId_, uint256 chainPrecision)
functions
chainData
viewfunction chainData(uint256 chainId) view returns (uint128 price, uint128 gasPrice)
chainId
viewfunction chainId() view returns (uint256)
crossRate
viewfunction crossRate(uint256 otherChainId) view returns (uint256)
getTransactionGasCostInNativeToken
viewfunction getTransactionGasCostInNativeToken(uint256 otherChainId, uint256 gasAmount) view returns (uint256)
getTransactionGasCostInUSD
viewfunction getTransactionGasCostInUSD(uint256 otherChainId, uint256 gasAmount) view returns (uint256)
owner
viewfunction owner() view returns (address)
price
viewfunction price(uint256 chainId_) view returns (uint256)
renounceOwnership
nonpayablefunction renounceOwnership()
setChainData
nonpayablefunction setChainData(uint256 chainId_, uint128 price_, uint128 gasPrice)
setGasPrice
nonpayablefunction setGasPrice(uint256 chainId_, uint128 gasPrice)
setPrice
nonpayablefunction setPrice(uint256 chainId_, uint128 price_)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
errors
No errors.
creation bytecode
0x60c06040523480156200001157600080fd5b5060405162000b7138038062000b718339810160408190526200003491620000ba565b6200003f336200006a565b60a082905262000051816012620000f5565b6200005e90600a6200020e565b60805250620002239050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000ce57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b818103818111156200010b576200010b620000df565b92915050565b600181815b8085111562000152578160001904821115620001365762000136620000df565b808516156200014457918102915b93841c939080029062000116565b509250929050565b6000826200016b575060016200010b565b816200017a575060006200010b565b81600181146200019357600281146200019e57620001be565b60019150506200010b565b60ff841115620001b257620001b2620000df565b50506001821b6200010b565b5060208310610133831016604e8410600b8410161715620001e3575081810a6200010b565b620001ef838362000111565b8060001904821115620002065762000206620000df565b029392505050565b60006200021c83836200015a565b9392505050565b60805160a05161091a620002576000396000818161025b0152818161042f01526104a0015260006104d8015261091a6000f3fe6080604052600436106100cb5760003560e01c8063915ac9e711610074578063e59f69c21161004e578063e59f69c21461029d578063f00eb5a4146102fe578063f2fde38b1461031e5761010b565b8063915ac9e7146102295780639a8a059214610249578063ca24994c1461027d5761010b565b806358c09b8f116100a557806358c09b8f146101cc578063715018a6146101ec5780638da5cb5b146102015761010b565b806304d535f01461014157806326a49e371461016357806353e07938146101ac5761010b565b3661010b5760405162461bcd60e51b815260206004820152600b60248201526a155b9cdd5c1c1bdc9d195960aa1b60448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152600b60248201526a155b9cdd5c1c1bdc9d195960aa1b6044820152606401610102565b34801561014d57600080fd5b5061016161015c3660046106d2565b61033e565b005b34801561016f57600080fd5b5061019961017e3660046106fe565b6000908152600160205260409020546001600160801b031690565b6040519081526020015b60405180910390f35b3480156101b857600080fd5b506101616101c73660046106d2565b610372565b3480156101d857600080fd5b506101996101e7366004610717565b6103c0565b3480156101f857600080fd5b50610161610419565b34801561020d57600080fd5b506000546040516001600160a01b0390911681526020016101a3565b34801561023557600080fd5b506101996102443660046106fe565b61042d565b34801561025557600080fd5b506101997f000000000000000000000000000000000000000000000000000000000000000081565b34801561028957600080fd5b50610199610298366004610717565b61049e565b3480156102a957600080fd5b506102de6102b83660046106fe565b6001602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101a3565b34801561030a57600080fd5b50610161610319366004610739565b610530565b34801561032a57600080fd5b50610161610339366004610775565b610564565b6103466105f4565b60009182526001602052604090912080546001600160801b03928316600160801b029216919091179055565b61037a6105f4565b60009182526001602052604090912080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b03909216919091179055565b60006103ce6012600a61089f565b6000848152600160205260409020546001600160801b03808216916103fc918691600160801b9004166108ab565b61040691906108ab565b61041091906108c2565b90505b92915050565b6104216105f4565b61042b600061064e565b565b7f00000000000000000000000000000000000000000000000000000000000000006000908152600160205260408120546001600160801b03166104726012600a61089f565b60008481526001602052604090205461049491906001600160801b03166108ab565b61041391906108c2565b7f000000000000000000000000000000000000000000000000000000000000000060009081526001602052604080822054848352908220547f0000000000000000000000000000000000000000000000000000000000000000916001600160801b03908116918082169161051c918791600160801b909104166108ab565b61052691906108ab565b61040691906108c2565b6105386105f4565b6000928352600160205260409092206001600160801b03928316600160801b0292909116919091179055565b61056c6105f4565b6001600160a01b0381166105e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610102565b6105f18161064e565b50565b6000546001600160a01b0316331461042b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610102565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160801b03811681146106cd57600080fd5b919050565b600080604083850312156106e557600080fd5b823591506106f5602084016106b6565b90509250929050565b60006020828403121561071057600080fd5b5035919050565b6000806040838503121561072a57600080fd5b50508035926020909101359150565b60008060006060848603121561074e57600080fd5b8335925061075e602085016106b6565b915061076c604085016106b6565b90509250925092565b60006020828403121561078757600080fd5b81356001600160a01b038116811461079e57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156107f65781600019048211156107dc576107dc6107a5565b808516156107e957918102915b93841c93908002906107c0565b509250929050565b60008261080d57506001610413565b8161081a57506000610413565b8160018114610830576002811461083a57610856565b6001915050610413565b60ff84111561084b5761084b6107a5565b50506001821b610413565b5060208310610133831016604e8410600b8410161715610879575081810a610413565b61088383836107bb565b8060001904821115610897576108976107a5565b029392505050565b600061041083836107fe565b8082028115828204841417610413576104136107a5565b6000826108df57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220d1b31e9a99be1604e7ba1986cc54e0536c6b88831af216857d0a66aab498b0c664736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012