-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release/v0.3.0 Bactrian Camel (#434)
* Fix Layer Zero monitor (#359) * Fix database typo * Fix the env * Fix Layer Zero monitor * Reduce logs * Fix typo Co-authored-by: Ino Murko <[email protected]> Co-authored-by: Ino Murko <[email protected]> (cherry picked from commit c1c144b) * 1. fix blank page on unknown routes (#379) 2. move routes path to const and ref in menuitem, route) 3. fix caniuse-lite terminal warnigng. (cherry picked from commit f53ae8c) * Add links to Boba multi-chains in the gateway (#384) * Links to Boba multi-chains * updated costant * Add Boba Eth and Boba Fantom Co-authored-by: Sahil Kashetwar <[email protected]> (cherry picked from commit de21c96) * Fix ABI and length of result for Layer Zero monitor (#376) * Fix ABI and length * Add layer zero contracts * Fix bridge tag * Update MySQL query (cherry picked from commit 8b14503) * rm bedrock - use v3-repos instead (#389) (cherry picked from commit 0eac030) * Gateway : Bridge to Alt L1s (#297) * change: 1. added tab in history for bridge between l1 & update history page. 2. added action button to token list l1 layer bridge to alt l1 3. inputStepMultiChain popup for bridging to alt l1s. * updated the button style and remove tooltip. * added networkservice func for multi chain deposit * 1.Added abi, Deposit function. * added bridge trnsfer from l1 to alt l1 * Add multichain bridge addresses (#310) * change: - added loader when initiate briding - disabling bridge button in case of false conditions - commented unused contract initiation from depositErc20 to alt L1. - using the address added into the chainRinkeby. * change: - Added actions, reducer, state to get the estimated - Showing estimated fees on UI for briding boba to alt l1. * change: cleanup * Clean the gateway for supporting multi-chains (#314) * Support bridge between Eth and Moonbeam in gateway (#315) * Support bridge between Eth and Moonbeam * Remove console.log * Fix contract address * change: 1. fix for the failing import for rinkebny 2. updated get transaction to load the data for bridge between l1's 3. representation tx details on history page. 4. warning fix for coinImage breakstatement. 5. removed consoles. * fix for warning * change: 1. added boba to amount 2. showing destination chain & EventType on UI * fix for the amout to be show on UI for txs. * Update L0 contract addresses Co-authored-by: Boyuan-Chen <[email protected]> Co-authored-by: cby3149 <[email protected]> (cherry picked from commit 4640621) * Fix Layer Zero fee and deploy API endpoint (#401) * Fix Layer Zero fee and deploy API endpoint * Disable button if warning is true (cherry picked from commit 78b450c) * Have verifier node sync in parallel with dtl to save time. (#394) (cherry picked from commit 0ffde99) * Edit beamer ecosystem entry (#411) * Update project.list.js We want to update the link to lead directly to the Beamer app now that we're live on Mainnet. * Add files via upload Replacement of Beamer Logo (cherry picked from commit aa22ec3) * Gateway : Vote & Dao Page. (#292) Dao Page: Create proposal with the option to select the Lock Boba (vBoba) Show proposal list Voting on proposal (abstain / against/ for) Vote Page: Showing available balance of vBoba. Listing pools and available (vBoba) tokens Way to vote on pools w.r.to. selected (vBoba) tokens. updated contracts along with redux state/ actions / selectors (cherry picked from commit dfb71a0) * changes: (#410) - updated the gas poll interval to 30000 - moved fetchGasPrice calls to gasSwitcher component - removed unused gasReducer, gasSelector - updated readme (cherry picked from commit 2dbe326) * Enable whitelist for message relayer (#416) (cherry picked from commit a06c58a) * A global way to get token info in gateway (#408) * A global way to get token info in gateway * Rename file name and move tokenInfo outside * Use a single file to store token info (cherry picked from commit 48ce0f6) * fix: revert nft for failing mint (#419) * revert nft for failing mint * update tests * update README * add timeout * Apply suggestions from code review Co-authored-by: Ino Murko <[email protected]> * fix: flaky test Co-authored-by: Ino Murko <[email protected]> (cherry picked from commit 5f1d0f2) * Add Sushiswap link (#430) (cherry picked from commit 784c364) * Add L2StandardTokenFactory address (#427) (cherry picked from commit 33f6a50) Co-authored-by: Boyuan-Chen <[email protected]> Co-authored-by: Sahil K <[email protected]> Co-authored-by: Riedl Kevin, Bsc <[email protected]> Co-authored-by: DBecane <[email protected]> Co-authored-by: Souradeep Das <[email protected]>
- Loading branch information
1 parent
bfbf2b4
commit 1abd873
Showing
121 changed files
with
8,124 additions
and
1,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule erigon
deleted from
587af3
Submodule reference-optimistic-geth
deleted from
b888ba
28 changes: 28 additions & 0 deletions
28
integration-tests/contracts/TestFailingMintL1StandardERC721.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >0.7.5; | ||
|
||
import "@boba/contracts/contracts/standards/L1StandardERC721.sol"; | ||
|
||
/** | ||
* A Failing mint L1ERC721 contract | ||
*/ | ||
contract TestFailingMintL1StandardERC721 is L1StandardERC721 { | ||
/** | ||
* @param _l1Bridge Address of the L1 standard bridge. | ||
* @param _l2Contract Address of the corresponding L2 NFT contract. | ||
* @param _name ERC721 name. | ||
* @param _symbol ERC721 symbol. | ||
*/ | ||
constructor( | ||
address _l1Bridge, | ||
address _l2Contract, | ||
string memory _name, | ||
string memory _symbol, | ||
string memory _baseTokenURI | ||
) | ||
L1StandardERC721(_l1Bridge, _l2Contract, _name, _symbol, _baseTokenURI) {} | ||
|
||
function mint(address _to, uint256 _tokenId, bytes memory _data) public virtual override onlyL1Bridge { | ||
revert("mint failing"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
integration-tests/contracts/TestFailingMintL2StandardERC721.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >0.7.5; | ||
|
||
import "@boba/contracts/contracts/standards/L2StandardERC721.sol"; | ||
|
||
/** | ||
* A Failing mint L2ERC721 contract | ||
*/ | ||
contract TestFailingMintL2StandardERC721 is L2StandardERC721 { | ||
/** | ||
* @param _l2Bridge Address of the L2 standard bridge. | ||
* @param _l1Contract Address of the corresponding L1 NFT contract. | ||
* @param _name ERC721 name. | ||
* @param _symbol ERC721 symbol. | ||
*/ | ||
constructor( | ||
address _l2Bridge, | ||
address _l1Contract, | ||
string memory _name, | ||
string memory _symbol, | ||
string memory _baseTokenURI | ||
) | ||
L2StandardERC721(_l2Bridge, _l1Contract, _name, _symbol, _baseTokenURI) {} | ||
|
||
function mint(address _to, uint256 _tokenId, bytes memory _data) public virtual override onlyL2Bridge { | ||
revert("mint failing"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
package rcfg | ||
|
||
import ( | ||
"math/big" | ||
"os" | ||
|
||
"github.com/ethereum-optimism/optimism/l2geth/common" | ||
) | ||
|
||
// SystemAddress0 is the first deployable system address. | ||
var SystemAddress0 = common.HexToAddress("0x4200000000000000000000000000000000000042") | ||
|
||
// SystemAddress1 is the second deployable system address. | ||
var SystemAddress1 = common.HexToAddress("0x4200000000000000000000000000000000000014") | ||
|
||
// ZeroSystemAddress is the emprt system address. | ||
var ZeroSystemAddress common.Address | ||
|
||
// SystemAddressDeployer is a tuple containing the deployment | ||
// addresses for SystemAddress0 and SystemAddress1. | ||
type SystemAddressDeployer [2]common.Address | ||
|
||
// SystemAddressFor returns the system address for a given deployment | ||
// address. If no system address is configured for this deployer, | ||
// ZeroSystemAddress is returned. | ||
func (s SystemAddressDeployer) SystemAddressFor(addr common.Address) common.Address { | ||
if s[0] == addr { | ||
return SystemAddress0 | ||
} | ||
|
||
if s[1] == addr { | ||
return SystemAddress1 | ||
} | ||
|
||
return ZeroSystemAddress | ||
} | ||
|
||
// SystemAddressFor is a convenience method that returns an environment-based | ||
// system address if the passed-in chain ID is not hardcoded. | ||
func SystemAddressFor(chainID *big.Int, addr common.Address) common.Address { | ||
sysDeployer, hasHardcodedSysDeployer := SystemAddressDeployers[chainID.Uint64()] | ||
if !hasHardcodedSysDeployer { | ||
sysDeployer = envSystemAddressDeployer | ||
} | ||
|
||
return sysDeployer.SystemAddressFor(addr) | ||
} | ||
|
||
// SystemAddressDeployers maintains a hardcoded map of chain IDs to | ||
// system addresses. | ||
var SystemAddressDeployers = map[uint64]SystemAddressDeployer{ | ||
// Mainnet | ||
10: { | ||
common.HexToAddress("0xcDE47C1a5e2d60b9ff262b0a3b6d486048575Ad9"), | ||
common.HexToAddress("0x53A6eecC2dD4795Fcc68940ddc6B4d53Bd88Bd9E"), | ||
}, | ||
|
||
// Kovan | ||
69: { | ||
common.HexToAddress("0xd23eb5c2dd7035e6eb4a7e129249d9843123079f"), | ||
common.HexToAddress("0xa81224490b9fa4930a2e920550cd1c9106bb6d9e"), | ||
}, | ||
|
||
// Goerli | ||
420: { | ||
common.HexToAddress("0xc30276833798867c1dbc5c468bf51ca900b44e4c"), | ||
common.HexToAddress("0x5c679a57e018f5f146838138d3e032ef4913d551"), | ||
}, | ||
|
||
// Goerli nightly | ||
421: { | ||
common.HexToAddress("0xc30276833798867c1dbc5c468bf51ca900b44e4c"), | ||
common.HexToAddress("0x5c679a57e018f5f146838138d3e032ef4913d551"), | ||
}, | ||
} | ||
|
||
var envSystemAddressDeployer SystemAddressDeployer | ||
|
||
func initEnvSystemAddressDeployer() { | ||
deployer0Env := os.Getenv("SYSTEM_ADDRESS_0_DEPLOYER") | ||
deployer1Env := os.Getenv("SYSTEM_ADDRESS_1_DEPLOYER") | ||
|
||
if deployer0Env == "" && deployer1Env == "" { | ||
return | ||
} | ||
if !common.IsHexAddress(deployer0Env) { | ||
panic("SYSTEM_ADDRESS_0_DEPLOYER specified but invalid") | ||
} | ||
if !common.IsHexAddress(deployer1Env) { | ||
panic("SYSTEM_ADDRESS_1_DEPLOYER specified but invalid") | ||
} | ||
envSystemAddressDeployer[0] = common.HexToAddress(deployer0Env) | ||
envSystemAddressDeployer[1] = common.HexToAddress(deployer1Env) | ||
} | ||
|
||
func init() { | ||
initEnvSystemAddressDeployer() | ||
} |
Oops, something went wrong.