witnet / witnet-solidity-bridge

Witnet Bridge for EVM-compatible blockchains
MIT License
60 stars 24 forks source link

Deploy on Scroll Mainnet #381

Closed guidiaz closed 10 months ago

guidiaz commented 11 months ago

https://scroll.io/portal

guidiaz commented 10 months ago

Bridging 0.25 ETH from Ethereum Mainnet -> Scroll Mainnet:

guidiaz commented 10 months ago

https://docs.scroll.io/en/developers/ethereum-and-scroll-differences/#evm-precompiles:

"The SHA2-256 (address 0x2), RIPEMD-160 (address 0x3), and blake2f (address 0x9) precompiles are currently not supported. Calls to these precompiled contracts will revert. We plan to enable these three precompiles in a future hard fork."

guidiaz commented 10 months ago

Deployed WSB v0.7.15:

            "WitnetProxy": "0x0Dd81412825b9C3960195ab47F14dFa9Fd70e36e",
            "Create2Factory": "0xDe312a6f7fA35320E8DD109c8ea42e82806DC45b",
            "WitnetBytecodes": "0x0000000e3a3d22d7510B36BdC88994dab11eadc8",
            "WitnetPriceFeeds": "0x9999999d139bdBFbF25923ba39F63bBFc7593400",
            "WitnetPriceRouter": "0x0d13c6058DDE86da77565ED6038C065Af71e9208",
            "WitnetRandomness": "0x0123456fbBC59E181D76B6Fe8771953d1953B51a",
            "WitnetRequestBoard": "0x777777772C24e6CD34B464D1d71616C444254537",
            "WitnetRequestFactory": "0x1111111FDE7dC956E3d7922Bc779D9E2349Afb63",
            "WitnetErrorsLib": "0x1225A47bC743199dFef9FEEf065b3B76695AaaaC",
            "WitnetEncodingLib": "0x30e7D86b3DcdC0CC90509b1F7C27eA8e5481FAc5",
            "WitnetPriceFeedsLib": "0xe33bD10fb2f1C5F4c6eF4259aAd4cE8A5868c222",
            "WitnetBytecodesImplementation": "0x5832e99368877a63dd1c2cea941C2b43E1F6b16A",
            "WitnetPriceFeedsImplementation": "0x4756097b9184327713D07b3ac4C2a898468220B1",
            "WitnetRandomnessImplementation": "0x92a68143Ee3C2527C2B07e4354efAF89fd75a359",
            "WitnetRequestBoardImplementation": "0x0e4F5763f417BB13AF759da4d36af50d13F02730",
            "WitnetRequestFactoryImplementation": "0xc42656C501623859565C6d080a7Feb1f2B72b55a"
guidiaz commented 10 months ago

All contracts were successfully verified on scrollscan.com.

guidiaz commented 10 months ago

There seems to be some ip banning on the official eth/rpc provider at https://rpc.scroll.io. Other options exist:

guidiaz commented 10 months ago

Deployed data requests for WitnetPriceFeeds:

                "WitnetRequestPriceBtcUsd6": "0x0A4007DdeFECd13964183d2FDE38a63f6Af69B15",
                "WitnetRequestPriceEthUsd6": "0xb1582f9a9CB402781C02558289989ff27b63d320",
                "WitnetRequestPriceUniUsd6": "0xce77F28d65D1A52B354e32325C977C016D534812",
                "WitnetRequestPriceUsdcUsd6": "0x627A6A49d2bBbdd71D3C89A672319F3FF77bA1fb"
guidiaz commented 10 months ago

Bypassed pfs on WitnetPriceRouter:

            "BtcUsdPriceFeed": "0x2FBA3Aad4F2e2BBC562b4fdA76D82e8036dbEd3c",
            "EthUsdPriceFeed": "0x6C74Aa59D58c0C2A26B07845dC607CD3fECF6B90",
            "UniUsdPriceFeed": "0x96a215587C06EeAADDc51feDF8C5918a59970CE3",
            "UsdcUsdPriceFeed": "0x0dAc06Ca814b6238524FcB2044108fa112aDf199",
            "WitnetPriceFeedBypass": "0xC467B6E0F700D3E044C9F20BB76957eEC0B33c8C"
guidiaz commented 10 months ago

Related PRs:

guidiaz commented 10 months ago

Added Scroll Mainnet to:

guidiaz commented 10 months ago

Added Ethereum Sepolia to:

guidiaz commented 10 months ago

Replaced Scroll Alpha with Scroll Sepolia to: