- 10 Feb, 2022 15 commits
-
-
Conner Fromknecht authored
This commit adds a new SendState struct, which is used internally by the txmgr to determine if we should give up on a particular tx at the given nonce due to ErrNonceTooLow failures. To do so, we track the set of mined txns at any particular time, which are updated via asynchronous calls to TxMined and TxNotMined by each of the spawned goroutines. The presence of a mined txn supercedes any of the errors returned, and will cause the txmgr to wait for full confirmation. However, if we observe multiple ErrNonceTooLows, the SendState will wait for a configurable safe abort count to ensure that the reading wasn't due to being in a transient state, as we don't have exact guarantees on the execution ordering of various goroutines. With this change, the test added in the prior commit now succeeds.
-
Conner Fromknecht authored
This commit adds a test case for the following scenario: 1. The first few publications succeed with err == nil. 2. One of the txs is mined. 3. Subsequent publications start failing because they are using the same nonce as the tx mined in (2). This edge case is currently overlooked in the txmgr, and will cause the shouldAbortImmediately method to return true and not wait for the appropriate confirmations.
-
Conner Fromknecht authored
Rather than having a combined update the gas price and publish the tx, we split this this into two methods: UpdateGasPrice and SendTransaction. This will allow the txmgr to obtain the txHash before publishing the tx.
-
Matthew Slipper authored
Version Packages
-
github-actions[bot] authored
-
Matthew Slipper authored
Develop -> Master
-
smartcontracts authored
fix: skip an unreliable integration test
-
Kelvin Fichter authored
Skips the unreliable timestamp/blocknumber test which would often be off by one or two. Creates an annoying habit of having to rerun the integration tests until the test passes, which isn't how integration tests should work.
-
Matthew Slipper authored
go/proxyd: Handle nil responses better
-
Conner Fromknecht authored
fix: use correct token for label-requires-review
-
Conner Fromknecht authored
This check is the only one we have that uses PERSONAL_ACCESS_TOKEN, perhaps it's expired or not present.
-
Matthew Slipper authored
fix: make relayer work again
-
Matthew Slipper authored
-
Matthew Slipper authored
fix: remove extra space in BSS metric names
-
Conner Fromknecht authored
-
- 09 Feb, 2022 23 commits
-
-
Kelvin Fichter authored
Fixes a bug where the relayer package was not correctly running the start script since the start script updated recently.
-
Matthew Slipper authored
feat: unify BSS metric name format, switch num_elements_per_batch to Summary
-
Matthew Slipper authored
bss: properly set gas limit on clearing txs
-
Matthew Slipper authored
feat: add LOG_TERMINAL flag, default to JSON
-
smartcontracts authored
test(integration): replace watcher with sdk CrossChainMessenger
-
Johns authored
-
Conner Fromknecht authored
The histogram doesn't seem to render too well on Grafana, but the batch_size_bytes one does. This commit modifies the num_elements_per_batch to also use a Summary with the same buckets.
-
Conner Fromknecht authored
This commit: - Ensures each bss metric is prefixed by "batch_submitter_". - Ensures that Sequencer/Proposer name is made lowercase. - Ensures all units are present and positioned as a suffix.
-
Conner Fromknecht authored
This commit modifies the BSS to default to JSON logs, which are more useful in production. This can be overridden by setting LOG_TERMINAL to true for debugging locally.
-
smartcontracts authored
feat(sdk): have SDK sort messages descending by bn
-
Conner Fromknecht authored
Fixes a bug where clearing txs are rejected on startup if the gas limit is not set.
-
Conner Fromknecht authored
This was overlooked when https://github.com/ethereum-optimism/optimism/pull/2107 was merged.
-
Conner Fromknecht authored
-
Kelvin Fichter authored
Has the SDK sort messages (deposits/withdrawals) descending by block number. Makes for a better experience when presenting this data to users.
-
smartcontracts authored
feat(sdk): remove getTokenBridgeMessages function
-
Kelvin Fichter authored
Removes the getTokenBridgeMessagesByAddress function from the SDK. This function is not particularly useful and its behavior is confusing. It's much easier for users of the package to simply use getDepositsByAddress and getWithdrawalsByAddress separately, since this is already what getTokenBridgeMessagesByAddress was doing under the hood.
-
smartcontracts authored
refactor: improve core-utils folder structure
-
Kelvin Fichter authored
Improves the folder structure within the core-utils to make it more intuitive. core-utils is now split into three primary folders, "common", "external", and "optimism". "common" includes TypeScript/JavaScript utilities not necessarily meant to be used with any particular package (like hex string utilities). "external" includes utilities that are meant to be used in conjunction with some other particular piece of tooling (ethers provider utilities, geth typings). "optimism" includes any utilities that are specifically meant to be used in the context of Optimism (like address aliasing utils, batch encoding utils).
-
smartcontracts authored
test: misc.ts in core-utils
-
Lord of the dance authored
-
smartcontracts authored
maintenance: remove regenesis-surgery package
-
Kelvin Fichter authored
Removes the regenesis-surgery package. The contents of this package are not being actively used in any capacity. We can look at Git history if we ever want to access the code again, but it's unlikely that we'll need this code because we've committed to not doing another regenesis.
-
smartcontracts authored
feat(sdk): implement asL2Provider
-
- 08 Feb, 2022 2 commits
-
-
Kelvin Fichter authored
Replaces usage of injectL2Context with the new asL2Provider function which is intended to eventually replace injectL2Context entirely.
-
Kelvin Fichter authored
Implements the asL2Provider function as well as various other useful functions for making queries about L2 transaction gas usage.
-