- 08 Sep, 2022 3 commits
-
-
Matthew Slipper authored
* op-bindings: Add storage layout generation * semgrep * add forgotten files * fix op-node, remove deprecated script * Remove deployed * Remove targets * go mod tidy * goimports * imports * devnet fix * parallelize bindgen, fix diff
-
protolambda authored
* op-node: buffer unsafe payloads with priority queue, pop lowest number to maintain max size, and do not drop if the first payload is in the future * payload queue testing * op-node: payload queue metrics, error handling * op-node: fix payloads queue test missing pop * op-node: payloads queue false semgrep case Co-authored-by:
Matthew Slipper <me@matthewslipper.com>
-
Matthew Slipper authored
-
- 07 Sep, 2022 2 commits
-
-
Matthew Slipper authored
-
protolambda authored
* bedrock: update to latest op-geth, based on geth master, after v1.10.23 * op-chain-ops: fix test deep equal check Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- 06 Sep, 2022 1 commit
-
-
smartcontracts authored
Significantly improves the bundle size of the contracts package by exporting deployments more intentionally and by removing certain unnecessary exports.
-
- 29 Aug, 2022 1 commit
-
-
Matthew Slipper authored
We're moving to Bedrock, so these nightlies aren't used anymore. Additionally, they were pushing directly to our Docker Hub repository. If we need to bring these back, we'll need to update them to push to GCR instead.
-
- 27 Aug, 2022 7 commits
-
-
protolambda authored
Co-authored-by:
Matthew Slipper <me@matthewslipper.com>
-
protolambda authored
* style(batch-submitter): fix lint * style(bss-core): fix lint * chore(proxyd): use io and os instead of deprecated ioutil methods, fixes lint
-
protolambda authored
-
protolambda authored
-
Javed Khan authored
-
Matthew Slipper authored
Fixes withdrawals by specifying the correct storage slot. Note that this does not fix the op-e2e tests, which were incorrectly passing. @protolambda is working on this.
-
Javed Khan authored
-
- 26 Aug, 2022 7 commits
-
-
Javed Khan authored
-
protolambda authored
-
protolambda authored
-
smartcontracts authored
merge Master into Develop
-
smartcontracts authored
-
github-actions[bot] authored
-
smartcontracts authored
develop => master
-
- 25 Aug, 2022 9 commits
-
-
Mark Tyneway authored
contracts-bedrock: use `MemorySafeCall`
-
Mark Tyneway authored
-
Mark Tyneway authored
-
Mark Tyneway authored
Replace `ExcessivelySafeCall` with a local `SafeCall` that does not copy any calldata back. We do not care about returndata being returned so this prevents returndata bombs.
-
Ben Wilson authored
Co-authored-by:
Matthew Slipper <me@matthewslipper.com>
-
Mark Tyneway authored
contracts-bedrock: add gpo to Predeploys.sol
-
Mark Tyneway authored
This bumps the open zeppelin contracts used in bedrock to the latest release. This bump is happening because `Ownable` becomes more flexible, allowing you to overwrite the logic for `onlyOwner`. This would enable writing a `CrossDomainOwnable` contract like so: ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.15; import { AddressAliasHelper } from "../vendor/AddressAliasHelper.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; abstract contract CrossDomainOwnable is Ownable { /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view { address sender = AddressAliasHelper.undoL1ToL2Alias(msg.sender); require(owner() == sender, "Ownable: caller is not the owner"); } } ``` The main diff to the `Ownable` contract is that is now looks like this: ```solidity /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } ``` The older version of the contracts doesn't have the `virtual` `_checkOwner` function. This does add some additional gas overhead as seen in the `.gas-snapshot`.
-
mergify[bot] authored
-
Javed Khan authored
* indexer: upgrade bridge contracts to bedrock * indexer: go mod tidy * indexer: rm bindings; use pkg op-bindings Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- 24 Aug, 2022 10 commits
-
-
Mark Tyneway authored
This hardhat task mirrors functionality of `forge inspect` where you can pass a contract name and a compiler output field and it will print that field for you. This will be useful for building sets of `storageLayout`s and `methodIdentifiers` to compare against the bedrock contracts. Example usage: ``` $ npx hardhat inspect AddressDictator storageLayout ``` Where `AddressDictator` can be any contract in the package and `storageLayout` can be one of the following: - abi - bytecode - deployedBytecode - storageLayout - methodIdentifiers This is one of the more useful features of foundry so porting it to hardhat will make storageLayout inspections much easier. Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
protolambda authored
* op-node,specs: batches track parent-hash, refactor+test batch queue, update specs * op-node,specs: implement review suggestions * op-node,specs: implement suggestions/fixes based on review from mark Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
Mark Tyneway authored
This file was missing the `GAS_PRICE_ORACLE` value, this commit adds in a constant for it.
-
Matthew Slipper authored
-
Mark Tyneway authored
Deduplicates some code for a common pattern. Callers will usually pass a network and a path to a deploy config directory. This comes from the way that `hardhat-deploy-config` works. The config directory must include a JSON file that is named after the network.
-
Diederik Loerakker authored
* op-node: l2 rpc refactor * op-node: implement l2 rpc review suggestions Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
Mark Tyneway authored
* op-chain-ops: some cleanup and modularization * op-node: add `op-node genesis devnet-l1` command * contracts-bedrock: delete L1 genesis hh task * ops-bedrock: use new go based L1 genesis generation * genesis: clean up L1 genesis creation * Update setters.go Co-authored-by:
Matthew Slipper <me@matthewslipper.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
Maurelian authored
Co-authored-by:
Mark Tyneway <mark.tyneway@gmail.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
Javed Khan authored
-
Mark Tyneway authored
Add documentation on how to use the `op-node` to generate L2 devnet genesis blocks. This will be expanded in the future to include upgrading pre-bedrock databases. Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-