diff --git a/packages/bridge-ui/src/components/Toast.svelte b/packages/bridge-ui/src/components/Toast.svelte index 82f83809b07..a29e5a3ec50 100644 --- a/packages/bridge-ui/src/components/Toast.svelte +++ b/packages/bridge-ui/src/components/Toast.svelte @@ -31,7 +31,7 @@ pausable: false, }; - // TODO: props to control its possition: + // TODO: props to control its position: // top, bottom, left, right... diff --git a/packages/bridge-ui/src/i18n.ts b/packages/bridge-ui/src/i18n.ts index 8227ae4c6e0..052d91a5560 100644 --- a/packages/bridge-ui/src/i18n.ts +++ b/packages/bridge-ui/src/i18n.ts @@ -24,7 +24,7 @@ function setupI18n({ withLocale: _locale } = { withLocale: 'en' }) { toast: { transactionSent: 'Transaction sent', errorSendingTransaction: 'Error sending transaction', - errorDisconneting: 'Could not disconnect', + errorDisconnecting: 'Could not disconnect', }, switchChainModal: { title: 'Not on the right network', diff --git a/packages/eventindexer/prometheus.go b/packages/eventindexer/prometheus.go index b12557a2fcb..5c5df06eb25 100644 --- a/packages/eventindexer/prometheus.go +++ b/packages/eventindexer/prometheus.go @@ -20,6 +20,6 @@ var ( }) ErrorsEncounteredDuringSubscription = promauto.NewCounter(prometheus.CounterOpts{ Name: "errors_encountered_during_subscription_opts_total", - Help: "The total number of errors that occured during active subscription", + Help: "The total number of errors that occurred during active subscription", }) ) diff --git a/packages/eventindexer/repo/block.go b/packages/eventindexer/repo/block.go index 159700dd609..0203c34a2c4 100644 --- a/packages/eventindexer/repo/block.go +++ b/packages/eventindexer/repo/block.go @@ -28,7 +28,7 @@ func (r *BlockRepository) startQuery() *gorm.DB { func (r *BlockRepository) Save(opts eventindexer.SaveBlockOpts) error { exists := &eventindexer.Block{} _ = r.startQuery().Where("block_height = ?", opts.Height).Where("chain_id = ?", opts.ChainID.Int64()).First(exists) - // block procesed already + // block processed already if exists.Height == opts.Height { return nil } diff --git a/packages/protocol/contracts/libs/LibInvalidTxList.sol b/packages/protocol/contracts/libs/LibInvalidTxList.sol index 3ba9aa1e9c3..cb688031fdc 100644 --- a/packages/protocol/contracts/libs/LibInvalidTxList.sol +++ b/packages/protocol/contracts/libs/LibInvalidTxList.sol @@ -39,7 +39,7 @@ library LibInvalidTxList { error ERR_PARAMS_NOT_DEFAULTS(); error ERR_INVALID_TX_IDX(); error ERR_INVALID_HINT(); - error ERR_VERIFICAITON_FAILURE(); + error ERR_VERIFICATION_FAILURE(); enum Hint { NONE, @@ -93,7 +93,7 @@ library LibInvalidTxList { return; } - revert ERR_VERIFICAITON_FAILURE(); + revert ERR_VERIFICATION_FAILURE(); } catch (bytes memory) { _checkParams(hint, txIdx); } diff --git a/packages/protocol/contracts/libs/LibTxUtils.sol b/packages/protocol/contracts/libs/LibTxUtils.sol index b99706f92f4..eb37d2df7ac 100644 --- a/packages/protocol/contracts/libs/LibTxUtils.sol +++ b/packages/protocol/contracts/libs/LibTxUtils.sol @@ -21,7 +21,7 @@ library LibTxUtils { internal pure returns ( - // transaction hash (without singature values) + // transaction hash (without signature values) bytes32 hash ) { diff --git a/packages/protocol/contracts/thirdparty/LibBlockHeaderDecoder.sol b/packages/protocol/contracts/thirdparty/LibBlockHeaderDecoder.sol index 17215c4b28d..74c2a4e9686 100644 --- a/packages/protocol/contracts/thirdparty/LibBlockHeaderDecoder.sol +++ b/packages/protocol/contracts/thirdparty/LibBlockHeaderDecoder.sol @@ -154,7 +154,7 @@ library LibBlockHeaderDecoder { } // decodes all RLP encoded data and stores their DATA items - // [length, calldata offset] in a continous memory region. + // [length, calldata offset] in a continuous memory region. // Expects that the RLP starts with a list that defines the length // of the whole RLP region. function decodeFlat(_ptr) -> ptr, memStart, nItems, hash { diff --git a/packages/protocol/test/L1/TaikoL1.integration.test.ts b/packages/protocol/test/L1/TaikoL1.integration.test.ts index c60d55e0807..165a61168b7 100644 --- a/packages/protocol/test/L1/TaikoL1.integration.test.ts +++ b/packages/protocol/test/L1/TaikoL1.integration.test.ts @@ -119,7 +119,7 @@ describe("integration:TaikoL1", function () { ); }); - it("should return valid block if it's been commmited and proposed", async function () { + it("should return valid block if it's been committed and proposed", async function () { const commitSlot = 0; const { proposedEvent } = await commitAndProposeLatestBlock( taikoL1, diff --git a/packages/protocol/test/bridge/Bridge.test.ts b/packages/protocol/test/bridge/Bridge.test.ts index d77430cf3b4..a3f6287553f 100644 --- a/packages/protocol/test/bridge/Bridge.test.ts +++ b/packages/protocol/test/bridge/Bridge.test.ts @@ -208,7 +208,7 @@ describe("Bridge", function () { }); describe("context()", function () { - it("returns unitialized context", async () => { + it("returns uninitialized context", async () => { const ctx = await l1Bridge.context(); expect(ctx[0]).to.be.eq(ethers.constants.HashZero); expect(ctx[1]).to.be.eq(ethers.constants.AddressZero); diff --git a/packages/protocol/test/libs/LibTrieProof.test.ts b/packages/protocol/test/libs/LibTrieProof.test.ts index 097b339d751..f42c74be528 100644 --- a/packages/protocol/test/libs/LibTrieProof.test.ts +++ b/packages/protocol/test/libs/LibTrieProof.test.ts @@ -7,7 +7,7 @@ import { EthGetProofResponse } from "../utils/rpc"; import { deploySignalService } from "../utils/signal"; // TODO(roger): this test shall not use any file in contracts/bridge/*.sol -// Instead, it should use the `writeStorageAt` function to manipulate stroage +// Instead, it should use the `writeStorageAt` function to manipulate storage // values then verify the proof. describe("integration:LibTrieProof", function () { async function deployLibTrieProofFixture() { @@ -112,7 +112,7 @@ describe("integration:LibTrieProof", function () { msgHash ); - // use this instead of ethers.provider.getBlock() beccause it doesnt have stateRoot + // use this instead of ethers.provider.getBlock() because it doesnt have stateRoot // in the response const block: { stateRoot: string; number: string; hash: string } = await ethers.provider.send("eth_getBlockByNumber", [ diff --git a/packages/relayer/README.md b/packages/relayer/README.md index 1b9d1c4c136..340cc2983cd 100644 --- a/packages/relayer/README.md +++ b/packages/relayer/README.md @@ -80,7 +80,7 @@ Optional: `event`: filter events by event name. Default: all event names. Options: `MessageSent`, `MessageStatusChanged` Pagination: -`page`: page number to retrive. Default: 0. +`page`: page number to retrieve. Default: 0. `size`: size to retrieve per page. Default: 100 Example: diff --git a/packages/relayer/contracts/taikol2/TaikoL2.go b/packages/relayer/contracts/taikol2/TaikoL2.go index f9c6d49c45d..1e1de851ce1 100644 --- a/packages/relayer/contracts/taikol2/TaikoL2.go +++ b/packages/relayer/contracts/taikol2/TaikoL2.go @@ -60,7 +60,7 @@ type TaikoDataConfig struct { // TaikoL2MetaData contains all meta data concerning the TaikoL2 contract. var TaikoL2MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addressManager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ERR_INVALID_HINT\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_INVALID_TX_IDX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_PARAMS_NOT_DEFAULTS\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_VERIFICAITON_FAILURE\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_CHAIN_ID\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_GAS_PRICE\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_SENDER\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_PUBLIC_INPUT_HASH_MISMATCH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RESOLVER_DENIED\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RESOLVER_INVALID_ADDR\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txListHash\",\"type\":\"bytes32\"}],\"name\":\"BlockInvalidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"srcHeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"srcHash\",\"type\":\"bytes32\"}],\"name\":\"HeaderSynced\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"addressManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"l1Height\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"l1Hash\",\"type\":\"bytes32\"}],\"name\":\"anchor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxNumBlocks\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockHashHistory\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxVerificationsPerTx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitConfirmations\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockMaxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTransactionsPerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBytesPerTxList\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"anchorTxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slotSmoothingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardBurnBips\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"proposerDepositPctg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeBaseMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimeMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"proofTimeMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"rewardMultiplierPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"feeGracePeriodPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"feeMaxPeriodPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blockTimeCap\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"proofTimeCap\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"bootstrapDiscountHalvingPeriod\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"enableTokenomics\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enablePublicInputsCheck\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enableAnchorValidation\",\"type\":\"bool\"}],\"internalType\":\"structTaikoData.Config\",\"name\":\"config\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLatestSyncedHeader\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"getSyncedHeader\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"txList\",\"type\":\"bytes\"},{\"internalType\":\"enumLibInvalidTxList.Hint\",\"name\":\"hint\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"txIdx\",\"type\":\"uint256\"}],\"name\":\"invalidateBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestSyncedL1Height\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"allowZeroAddress\",\"type\":\"bool\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"allowZeroAddress\",\"type\":\"bool\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", + ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addressManager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ERR_INVALID_HINT\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_INVALID_TX_IDX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_PARAMS_NOT_DEFAULTS\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERR_VERIFICATION_FAILURE\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_CHAIN_ID\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_GAS_PRICE\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_INVALID_SENDER\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L2_PUBLIC_INPUT_HASH_MISMATCH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RESOLVER_DENIED\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RESOLVER_INVALID_ADDR\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txListHash\",\"type\":\"bytes32\"}],\"name\":\"BlockInvalidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"srcHeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"srcHash\",\"type\":\"bytes32\"}],\"name\":\"HeaderSynced\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"addressManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"l1Height\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"l1Hash\",\"type\":\"bytes32\"}],\"name\":\"anchor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxNumBlocks\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockHashHistory\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxVerificationsPerTx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commitConfirmations\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockMaxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTransactionsPerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBytesPerTxList\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"anchorTxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slotSmoothingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardBurnBips\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"proposerDepositPctg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeBaseMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimeMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"proofTimeMAF\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"rewardMultiplierPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"feeGracePeriodPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"feeMaxPeriodPctg\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"blockTimeCap\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"proofTimeCap\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"bootstrapDiscountHalvingPeriod\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"enableTokenomics\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enablePublicInputsCheck\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enableAnchorValidation\",\"type\":\"bool\"}],\"internalType\":\"structTaikoData.Config\",\"name\":\"config\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLatestSyncedHeader\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"getSyncedHeader\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"txList\",\"type\":\"bytes\"},{\"internalType\":\"enumLibInvalidTxList.Hint\",\"name\":\"hint\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"txIdx\",\"type\":\"uint256\"}],\"name\":\"invalidateBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestSyncedL1Height\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"allowZeroAddress\",\"type\":\"bool\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"allowZeroAddress\",\"type\":\"bool\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", } // TaikoL2ABI is the input ABI used to generate the binding from. diff --git a/packages/relayer/message/wait_header_synced.go b/packages/relayer/message/wait_header_synced.go index 22c67e0e287..9c9cdd79c78 100644 --- a/packages/relayer/message/wait_header_synced.go +++ b/packages/relayer/message/wait_header_synced.go @@ -21,7 +21,7 @@ func (p *Processor) waitHeaderSynced(ctx context.Context, event *bridge.BridgeMe return ctx.Err() case <-ticker.C: log.Infof( - "msgHash: %v, txHash: %v is waiting to be processable. occured in block %v", + "msgHash: %v, txHash: %v is waiting to be processable. occurred in block %v", common.Hash(event.MsgHash).Hex(), event.Raw.TxHash.Hex(), event.Raw.BlockNumber, @@ -41,7 +41,7 @@ func (p *Processor) waitHeaderSynced(ctx context.Context, event *bridge.BridgeMe // header is caught up and processible if header.Number.Uint64() >= event.Raw.BlockNumber { log.Infof( - "msgHash: %v, txHash: %v is processable. occured in block %v, latestSynced is block %v", + "msgHash: %v, txHash: %v is processable. occurred in block %v, latestSynced is block %v", common.Hash(event.MsgHash).Hex(), event.Raw.TxHash.Hex(), event.Raw.BlockNumber, @@ -52,7 +52,7 @@ func (p *Processor) waitHeaderSynced(ctx context.Context, event *bridge.BridgeMe } log.Infof( - "msgHash: %v, txHash: %v is waiting to be processable. occured in block %v, latestSynced is block %v", + "msgHash: %v, txHash: %v is waiting to be processable. occurred in block %v, latestSynced is block %v", common.Hash(event.MsgHash).Hex(), event.Raw.TxHash.Hex(), event.Raw.BlockNumber, diff --git a/packages/relayer/prometheus.go b/packages/relayer/prometheus.go index 7bd34c0d285..b732c469ea5 100644 --- a/packages/relayer/prometheus.go +++ b/packages/relayer/prometheus.go @@ -40,6 +40,6 @@ var ( }) ErrorsEncounteredDuringSubscription = promauto.NewCounter(prometheus.CounterOpts{ Name: "errors_encountered_during_subscription_opts_total", - Help: "The total number of errors that occured during active subscription", + Help: "The total number of errors that occurred during active subscription", }) ) diff --git a/packages/relayer/repo/block.go b/packages/relayer/repo/block.go index 3527206b065..4ee757b2644 100644 --- a/packages/relayer/repo/block.go +++ b/packages/relayer/repo/block.go @@ -28,7 +28,7 @@ func (r *BlockRepository) startQuery() *gorm.DB { func (r *BlockRepository) Save(opts relayer.SaveBlockOpts) error { exists := &relayer.Block{} _ = r.startQuery().Where("block_height = ?", opts.Height).Where("chain_id = ?", opts.ChainID.Int64()).First(exists) - // block procesed already + // block processed already if exists.Height == opts.Height { return nil } diff --git a/packages/starter-dapp/src/i18n.js b/packages/starter-dapp/src/i18n.js index 0b74a127e59..dba54653632 100644 --- a/packages/starter-dapp/src/i18n.js +++ b/packages/starter-dapp/src/i18n.js @@ -24,7 +24,7 @@ function setupI18n({ withLocale: _locale } = { withLocale: "en" }) { toast: { transactionSent: "Transaction sent", errorSendingTransaction: "Error sending transaction", - errorDisconneting: "Could not disconnect", + errorDisconnecting: "Could not disconnect", }, switchChainModal: { title: "Not on the right network", diff --git a/packages/status-page/src/i18n.js b/packages/status-page/src/i18n.js index 8f994bd81b8..b2e76cb012e 100644 --- a/packages/status-page/src/i18n.js +++ b/packages/status-page/src/i18n.js @@ -23,7 +23,7 @@ function setupI18n({ withLocale: _locale } = { withLocale: "en" }) { toast: { transactionSent: "Transaction sent", errorSendingTransaction: "Error sending transaction", - errorDisconneting: "Could not disconnect", + errorDisconnecting: "Could not disconnect", }, switchChainModal: { title: "Not on the right network", diff --git a/packages/website/pages/docs/concepts/taiko-nodes.mdx b/packages/website/pages/docs/concepts/taiko-nodes.mdx index e0937fb1bb4..b9264b9ffb0 100644 --- a/packages/website/pages/docs/concepts/taiko-nodes.mdx +++ b/packages/website/pages/docs/concepts/taiko-nodes.mdx @@ -78,7 +78,7 @@ To propose a block, the `proposer`: 2. If there are too many pending transactions in the L2 execution engine, splits them into several smaller `txLists`. This is because the Taiko protocol restricts the max size of each proposed `txList`. 3. Commits hashes of the `txLists` by sending `TaikoL1.commitBlock` transactions to L1. 4. Waits for `TaikoData.Config.commitConfirmations` (currently `0`) L1 blocks confirmations. -5. Proposse all splitted `txLists` by sending `TaikoL1.proposeBlock` transactions. +5. Proposes all splitted `txLists` by sending `TaikoL1.proposeBlock` transactions. Read more about proposing blocks on Taiko [here](https://taiko.xyz/docs/concepts/creating-taiko-blocks/proposing-blocks) or see `5.2 Proposing Blocks` in the [whitepaper](https://taikoxyz.github.io/taiko-mono/taiko-whitepaper.pdf). diff --git a/packages/website/pages/docs/guides/build-a-dapp.mdx b/packages/website/pages/docs/guides/build-a-dapp.mdx index 43a69c514f8..e90b072ecc9 100644 --- a/packages/website/pages/docs/guides/build-a-dapp.mdx +++ b/packages/website/pages/docs/guides/build-a-dapp.mdx @@ -2,7 +2,7 @@ This guide will help you build a dapp on Taiko (Askja testnet)! The starter dapp ## Prerequisites -- A curiousity to learn and build 🙃. +- A curiosity to learn and build 🙃. ## Steps 1. Visit the [dapp-slaps starter template](https://github.com/d1onys1us/dapp-slaps) to create an Ethereum dapp with one-click. diff --git a/packages/website/pages/docs/guides/run-a-node.mdx b/packages/website/pages/docs/guides/run-a-node.mdx index b17dcc51b15..36568b160e7 100644 --- a/packages/website/pages/docs/guides/run-a-node.mdx +++ b/packages/website/pages/docs/guides/run-a-node.mdx @@ -178,7 +178,7 @@ The port is already in use by another service. You can either shut down the othe #### `error parsing HTTP 403 response body: invalid character '<' looking for beginning of value` Your IP address is being geo-blocked due to sanctions lists. If you're affected, try changing hosting locations or utilize a VPN to change your IP address. -#### `ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for some_serivce 'pull_policy'` +#### `ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for some_service 'pull_policy'` Your docker installation is out of date. You need to update your docker compose installation: https://docs.docker.com/compose/install/. #### `daemon docker is not running`

`Cannot connect to the Docker daemon`