diff --git a/_typos.toml b/_typos.toml index 544784e57f..4e77c694a8 100644 --- a/_typos.toml +++ b/_typos.toml @@ -1,15 +1,7 @@ [files] -# Temporarily commenting a lot so that at least *.sol files are included. extend-exclude = [ - "CHANGELOG.md", - "*.go", - "*.html", - "*.md", - "*.ts", - "*.css", - "*.yaml", - "*.yml", - "*.json", - "**/automata-attestation/**", - "**/thirdparty/**", + "CHANGELOG.md", + "packages/protocol/contracts/automata-attestation/**", + "packages/protocol/contracts/thirdparty/**", + "packages/protocol/contracts/compiled/**", ] diff --git a/packages/blobstorage/cmd/main.go b/packages/blobstorage/cmd/main.go index 73f2e6c4eb..2301b2cd38 100644 --- a/packages/blobstorage/cmd/main.go +++ b/packages/blobstorage/cmd/main.go @@ -28,7 +28,7 @@ func main() { _ = godotenv.Load(envFile) app.Name = "Taiko Blob Catcher" - app.Usage = "The taiko blob catcher softwares command line interface" + app.Usage = "The taiko blob catcher software command line interface" app.Copyright = "Copyright 2021-2024 Taiko Labs" app.Description = "Blob catcher implementation in Golang for Taiko protocol" app.Authors = []*cli.Author{{Name: "Taiko Labs", Email: "info@taiko.xyz"}} diff --git a/packages/bridge-ui/scripts/utils/validateJson.ts b/packages/bridge-ui/scripts/utils/validateJson.ts index 0c34861d0a..3e9c5e4577 100644 --- a/packages/bridge-ui/scripts/utils/validateJson.ts +++ b/packages/bridge-ui/scripts/utils/validateJson.ts @@ -5,11 +5,11 @@ import { PluginLogger } from './PluginLogger'; const ajv = new Ajv({ strict: false }); -type SchmaWithId = Schema & { $id?: string }; +type SchemaWithId = Schema & { $id?: string }; const logger = new PluginLogger('json-validator'); -export const validateJsonAgainstSchema = (json: JSON, schema: SchmaWithId): boolean => { +export const validateJsonAgainstSchema = (json: JSON, schema: SchemaWithId): boolean => { logger.info(`Validating ${schema.$id}`); const validate = ajv.compile(schema); diff --git a/packages/bridge-ui/scripts/vite-plugins/generateBridgeConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateBridgeConfig.ts index 802bf01470..be01f28b6e 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateBridgeConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateBridgeConfig.ts @@ -38,7 +38,7 @@ export function generateBridgeConfig() { // Decode base64 encoded JSON string configuredBridgesConfigFile = decodeBase64ToJson(process.env.CONFIGURED_BRIDGES || ''); - // Valide JSON against schema + // Valid JSON against schema const isValid = validateJsonAgainstSchema(configuredBridgesConfigFile, configuredBridgesSchema); if (!isValid) { diff --git a/packages/bridge-ui/scripts/vite-plugins/generateChainConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateChainConfig.ts index b30131dcfa..e071fa988a 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateChainConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateChainConfig.ts @@ -35,7 +35,7 @@ export function generateChainConfig() { } // Decode base64 encoded JSON string configuredChainsConfigFile = decodeBase64ToJson(process.env.CONFIGURED_CHAINS || ''); - // Valide JSON against schema + // Valid JSON against schema const isValid = validateJsonAgainstSchema(configuredChainsConfigFile, configuredChainsSchema); if (!isValid) { diff --git a/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts index dc19bec786..3418b63f92 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts @@ -39,7 +39,7 @@ export function generateCustomTokenConfig() { // Decode base64 encoded JSON string configuredTokenConfigFile = decodeBase64ToJson(process.env.CONFIGURED_CUSTOM_TOKENS || ''); - // Valide JSON against schema + // Valid JSON against schema const isValid = validateJsonAgainstSchema(configuredTokenConfigFile, configuredChainsSchema); if (!isValid) { diff --git a/packages/bridge-ui/scripts/vite-plugins/generateEventIndexerConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateEventIndexerConfig.ts index 03eb9e4906..f9791030d7 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateEventIndexerConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateEventIndexerConfig.ts @@ -41,7 +41,7 @@ export function generateEventIndexerConfig() { // Decode base64 encoded JSON string configuredEventIndexerConfigFile = decodeBase64ToJson(process.env.CONFIGURED_EVENT_INDEXER || ''); - // Valide JSON against schema + // Valid JSON against schema const isValid = validateJsonAgainstSchema(configuredEventIndexerConfigFile, configuredEventIndexerSchema); if (!isValid) { throw new Error('encoded configuredEventIndexer.json is not valid.'); diff --git a/packages/bridge-ui/scripts/vite-plugins/generateRelayerConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateRelayerConfig.ts index f24de34911..d94739a367 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateRelayerConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateRelayerConfig.ts @@ -41,7 +41,7 @@ export function generateRelayerConfig() { // Decode base64 encoded JSON string configuredRelayerConfigFile = decodeBase64ToJson(process.env.CONFIGURED_RELAYER || ''); - // Valide JSON against schema + // Valid JSON against schema const isValid = validateJsonAgainstSchema(configuredRelayerConfigFile, configuredRelayerSchema); if (!isValid) { throw new Error('encoded configuredRelayer.json is not valid.'); diff --git a/packages/bridge-ui/src/app.config.ts b/packages/bridge-ui/src/app.config.ts index 4d68fd2de8..0afc7671bc 100644 --- a/packages/bridge-ui/src/app.config.ts +++ b/packages/bridge-ui/src/app.config.ts @@ -1,4 +1,4 @@ -export const recommentProcessingFee = { +export const recommendProcessingFeeConfig = { ethGasLimit: BigInt(900_000), erc20NotDeployedGasLimit: BigInt(1_650_000), erc20DeployedGasLimit: BigInt(1_100_000), diff --git a/packages/bridge-ui/src/i18n/en.json b/packages/bridge-ui/src/i18n/en.json index 2be5949142..4783d60613 100644 --- a/packages/bridge-ui/src/i18n/en.json +++ b/packages/bridge-ui/src/i18n/en.json @@ -353,7 +353,7 @@ "transactions": "Transactions" }, "paused_modal": { - "description": "The bridge is currently not available. Follow our official communcation channels for more information. ", + "description": "The bridge is currently not available. Follow our official communication channels for more information. ", "title": "Bridge under maintenance!" }, "processing_fee": { diff --git a/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.test.ts b/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.test.ts index c461acb74b..a4b2a45183 100644 --- a/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.test.ts +++ b/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.test.ts @@ -24,7 +24,7 @@ vi.mock('$libs/util/getLatestBlockTimestamp'); describe('getInvocationDelayForTx()', () => { it('should return the invocation delays for the transaction', async () => { const MOCK_BLOCK_TIMESTAMP = 1632787200n; - const MOCK_RECIEPT_TIMESTAMP = 1632787200n - 200n; + const MOCK_RECEIPT_TIMESTAMP = 1632787200n - 200n; const PREFERRED_CLAIMER_DELAY = 100n; const NOT_PREFERRED_CLAIMER_DELAY = 200n; const MOCK_DELAYS = [PREFERRED_CLAIMER_DELAY, NOT_PREFERRED_CLAIMER_DELAY] as const; @@ -32,15 +32,15 @@ describe('getInvocationDelayForTx()', () => { //Given vi.mocked(getInvocationDelaysForDestBridge).mockResolvedValue(MOCK_DELAYS); vi.mocked(getLatestBlockTimestamp).mockResolvedValue(MOCK_BLOCK_TIMESTAMP); - vi.mocked(getProofReceiptForMsgHash).mockResolvedValue([MOCK_RECIEPT_TIMESTAMP, ALICE]); + vi.mocked(getProofReceiptForMsgHash).mockResolvedValue([MOCK_RECEIPT_TIMESTAMP, ALICE]); //When const result = await getInvocationDelayForTx(MOCK_BRIDGE_TX_1); //Then expect(result).toStrictEqual({ - preferredDelay: PREFERRED_CLAIMER_DELAY - (MOCK_BLOCK_TIMESTAMP - MOCK_RECIEPT_TIMESTAMP), - notPreferredDelay: NOT_PREFERRED_CLAIMER_DELAY - (MOCK_BLOCK_TIMESTAMP - MOCK_RECIEPT_TIMESTAMP), + preferredDelay: PREFERRED_CLAIMER_DELAY - (MOCK_BLOCK_TIMESTAMP - MOCK_RECEIPT_TIMESTAMP), + notPreferredDelay: NOT_PREFERRED_CLAIMER_DELAY - (MOCK_BLOCK_TIMESTAMP - MOCK_RECEIPT_TIMESTAMP), }); expect(getInvocationDelaysForDestBridge).toHaveBeenCalledWith({ srcChainId: BigInt(L1_CHAIN_ID), diff --git a/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.ts b/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.ts index 08c89c647e..6c3b2e6b06 100644 --- a/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.ts +++ b/packages/bridge-ui/src/libs/bridge/getInvocationDelayForTx.ts @@ -20,13 +20,13 @@ export const getInvocationDelayForTx = async (tx: BridgeTransaction) => { throw new NoDelaysForBridgeError('Destination chain does not have delays'); } - const proofReciept = await getProofReceiptForMsgHash({ + const proofReceipt = await getProofReceiptForMsgHash({ msgHash: tx.msgHash, destChainId: tx.destChainId, srcChainId: tx.srcChainId, }); - if (proofReciept[0] === 0n) { + if (proofReceipt[0] === 0n) { // No proof receipt found, no delay (yet) return { preferredDelay: 0n, @@ -42,8 +42,8 @@ export const getInvocationDelayForTx = async (tx: BridgeTransaction) => { const latestBlockTimestamp = await getLatestBlockTimestamp(tx.destChainId); log('latestBlockTimestamp', latestBlockTimestamp); - const provenAt = proofReciept[0]; - // const provenBy = proofReciept[1]; + const provenAt = proofReceipt[0]; + // const provenBy = proofReceipt[1]; log('time since last claim', latestBlockTimestamp - provenAt); const delays = { diff --git a/packages/bridge-ui/src/libs/fee/recommendProcessingFee.ts b/packages/bridge-ui/src/libs/fee/recommendProcessingFee.ts index 11145f57b5..796ab923ae 100644 --- a/packages/bridge-ui/src/libs/fee/recommendProcessingFee.ts +++ b/packages/bridge-ui/src/libs/fee/recommendProcessingFee.ts @@ -1,6 +1,6 @@ import { getPublicClient } from '@wagmi/core'; -import { recommentProcessingFee } from '$config'; +import { recommendProcessingFeeConfig } from '$config'; import { NoCanonicalInfoFoundError } from '$libs/error'; import { type Token, TokenType } from '$libs/token'; import { getTokenAddresses } from '$libs/token/getTokenAddresses'; @@ -23,7 +23,7 @@ const { erc1155NotDeployedGasLimit, erc721DeployedGasLimit, erc721NotDeployedGasLimit, -} = recommentProcessingFee; +} = recommendProcessingFeeConfig; export async function recommendProcessingFee({ token, diff --git a/packages/bridge-ui/src/libs/util/logger.ts b/packages/bridge-ui/src/libs/util/logger.ts index fa4b5eebc6..ca093bf7cd 100644 --- a/packages/bridge-ui/src/libs/util/logger.ts +++ b/packages/bridge-ui/src/libs/util/logger.ts @@ -1,5 +1,5 @@ import debug from 'debug'; -export function getLogger(namesapce: string) { - return debug(`bridge:${namesapce}`); +export function getLogger(namespace: string) { + return debug(`bridge:${namespace}`); } diff --git a/packages/bridge-ui/src/stores/pendingTransactions.ts b/packages/bridge-ui/src/stores/pendingTransactions.ts index e96453e83a..5c1ed26abb 100644 --- a/packages/bridge-ui/src/stores/pendingTransactions.ts +++ b/packages/bridge-ui/src/stores/pendingTransactions.ts @@ -24,7 +24,7 @@ export const pendingTransactions = { /** * Custom method, which will help us add a new transaction to the store - * and get it removed onces the transaction is mined. + * and get it removed once the transaction is mined. */ add: (hash: Hex, chainId: number) => { const deferred = new Deferred(); diff --git a/packages/bridge-ui/src/styles/override.css b/packages/bridge-ui/src/styles/override.css index 25b834afe0..bff39df2b0 100644 --- a/packages/bridge-ui/src/styles/override.css +++ b/packages/bridge-ui/src/styles/override.css @@ -14,7 +14,7 @@ input[type='number'] { } /** - * Overrides the dafault color for the overlay component used + * Overrides the default color for the overlay component used * in DaisyUI's drawer. Unfortunately cannot be done via variables */ .drawer-toggle:checked ~ .drawer-side > .drawer-overlay { diff --git a/packages/eventindexer/cmd/flags/indexer.go b/packages/eventindexer/cmd/flags/indexer.go index bceefd0ee2..dfe8952cf7 100644 --- a/packages/eventindexer/cmd/flags/indexer.go +++ b/packages/eventindexer/cmd/flags/indexer.go @@ -76,7 +76,7 @@ var ( } IndexNFTs = &cli.BoolFlag{ Name: "indexNfts", - Usage: "Whether to index nft transfer events orn ot", + Usage: "Whether to index nft transfer events or not", Required: false, Category: indexerCategory, EnvVars: []string{"INDEX_NFTS"}, diff --git a/packages/eventindexer/cmd/main.go b/packages/eventindexer/cmd/main.go index eed9a84fb7..fac9c63679 100644 --- a/packages/eventindexer/cmd/main.go +++ b/packages/eventindexer/cmd/main.go @@ -29,7 +29,7 @@ func main() { _ = godotenv.Load(envFile) app.Name = "Taiko EventIndexer" - app.Usage = "The taiko eventindexing softwares command line interface" + app.Usage = "The taiko eventindexing software command line interface" app.Copyright = "Copyright 2021-2023 Taiko Labs" app.Description = "Eventindexer implementation in Golang for Taiko protocol" app.Authors = []*cli.Author{{Name: "Taiko Labs", Email: "info@taiko.xyz"}} diff --git a/packages/eventindexer/indexer/index_nft_transfers.go b/packages/eventindexer/indexer/index_nft_transfers.go index d1ae27f6a4..385d7441e5 100644 --- a/packages/eventindexer/indexer/index_nft_transfers.go +++ b/packages/eventindexer/indexer/index_nft_transfers.go @@ -85,7 +85,7 @@ func (i *Indexer) isERC721Transfer(ctx context.Context, vLog types.Log) bool { return true } -// saveNFTTrasnfer parses the event logs and saves either an ERC721 or ERC1155 event, updating +// saveNFTTransfer parses the event logs and saves either an ERC721 or ERC1155 event, updating // users balances func (i *Indexer) saveNFTTransfer(ctx context.Context, chainID *big.Int, vLog types.Log) error { if i.isERC721Transfer(ctx, vLog) { diff --git a/packages/eventindexer/pkg/http/get_nft_balances_by_address_and_chain_id.go b/packages/eventindexer/pkg/http/get_nft_balances_by_address_and_chain_id.go index 1befd1d164..45a017bd24 100644 --- a/packages/eventindexer/pkg/http/get_nft_balances_by_address_and_chain_id.go +++ b/packages/eventindexer/pkg/http/get_nft_balances_by_address_and_chain_id.go @@ -7,7 +7,7 @@ import ( "github.com/labstack/echo/v4" ) -// GetNFTBalancesByAddessAndChainID +// GetNFTBalancesByAddressAndChainID // // returns nft balances by address and chain ID // @@ -19,7 +19,7 @@ import ( // @Produce json // @Success 200 {object} paginate.Page // @Router /nftsByAddress [get] -func (srv *Server) GetNFTBalancesByAddessAndChainID(c echo.Context) error { +func (srv *Server) GetNFTBalancesByAddressAndChainID(c echo.Context) error { page, err := srv.nftBalanceRepo.FindByAddress( c.Request().Context(), c.Request(), diff --git a/packages/eventindexer/pkg/http/routes.go b/packages/eventindexer/pkg/http/routes.go index 3459212482..80fa90f6ed 100644 --- a/packages/eventindexer/pkg/http/routes.go +++ b/packages/eventindexer/pkg/http/routes.go @@ -10,7 +10,7 @@ func (srv *Server) configureRoutes() { srv.echo.GET("/events", srv.GetByAddressAndEventName) srv.echo.GET("/stats", srv.GetStats) srv.echo.GET("/assignedBlocks", srv.GetAssignedBlocksByProverAddress) - srv.echo.GET("/nftsByAddress", srv.GetNFTBalancesByAddessAndChainID) + srv.echo.GET("/nftsByAddress", srv.GetNFTBalancesByAddressAndChainID) galaxeAPI := srv.echo.Group("/api") diff --git a/packages/eventindexer/pkg/repo/account.go b/packages/eventindexer/pkg/repo/account.go index 579a441331..a8cf37a4b7 100644 --- a/packages/eventindexer/pkg/repo/account.go +++ b/packages/eventindexer/pkg/repo/account.go @@ -30,7 +30,7 @@ func (r *AccountRepository) Save( address common.Address, transactedAt time.Time, ) error { - // only inserte if addresss doesnt exist + // only insert if address doesn't exist a := &eventindexer.Account{} if err := r.db.GormDB().Where("address = ?", address.Hex()).First(a).Error; err != nil { diff --git a/packages/fork-diff/fork.yaml b/packages/fork-diff/fork.yaml index ff9707543a..6a87495dd6 100644 --- a/packages/fork-diff/fork.yaml +++ b/packages/fork-diff/fork.yaml @@ -187,7 +187,7 @@ def: # - "graphql/*" # - title: "Changes in internal" - # description: "This shows chnages to internal files" + # description: "This shows changes to internal files" # sub: # - title: "first layer" # globs: diff --git a/packages/guardian-prover-health-check-ui/src/styles/override.css b/packages/guardian-prover-health-check-ui/src/styles/override.css index 02961af8cf..89399e588f 100644 --- a/packages/guardian-prover-health-check-ui/src/styles/override.css +++ b/packages/guardian-prover-health-check-ui/src/styles/override.css @@ -14,7 +14,7 @@ input[type='number'] { } /** - * Overrides the dafault color for the overlay component used + * Overrides the default color for the overlay component used * in DaisyUI's drawer. Unfortunately cannot be done via variables */ .drawer-toggle:checked ~ .drawer-side > .drawer-overlay { diff --git a/packages/guardian-prover-health-check/cmd/main.go b/packages/guardian-prover-health-check/cmd/main.go index c29e1101fb..f9370e2770 100644 --- a/packages/guardian-prover-health-check/cmd/main.go +++ b/packages/guardian-prover-health-check/cmd/main.go @@ -27,7 +27,7 @@ func main() { _ = godotenv.Load(envFile) app.Name = "Taiko guardian-prover-health-check" - app.Usage = "The taiko guardian-prover-health-check softwares command line interface" + app.Usage = "The taiko guardian-prover-health-check software command line interface" app.Copyright = "Copyright 2021-2023 Taiko Labs" app.Description = "guardian-prover-health-check implementation in Golang for Taiko protocol" app.Authors = []*cli.Author{{Name: "Taiko Labs", Email: "info@taiko.xyz"}} diff --git a/packages/protocol/docs/contestable_validity_rollup.md b/packages/protocol/docs/contestable_validity_rollup.md index f48e89d8c8..11355ff644 100644 --- a/packages/protocol/docs/contestable_validity_rollup.md +++ b/packages/protocol/docs/contestable_validity_rollup.md @@ -16,7 +16,7 @@ For a given block, a transition can be uniquely identified by its _parent hash_. The _first transition_ of a block is reserved for the block's assigned prover. However, this exclusivity is contingent upon the assigned prover successfully proving the block within the stipulated proving window of the tier. If the assigned prover fails to meet this deadline, the transition is considered _open_. Upon its opening, the assigned prover is no longer allowed to prove the first transition. -For all other transitions, the proving window doesn't apply. Here, the principle is straightforward: the quickest prover takes the lead. Importantly, the assigned prover is not allowed to prove transtions other than the first one. +For all other transitions, the proving window doesn't apply. Here, the principle is straightforward: the quickest prover takes the lead. Importantly, the assigned prover is not allowed to prove transitions other than the first one. ## Proof Tier Selection diff --git a/packages/protocol/docs/native_token_support.md b/packages/protocol/docs/native_token_support.md index bf257fd364..0c58f5a7d1 100644 --- a/packages/protocol/docs/native_token_support.md +++ b/packages/protocol/docs/native_token_support.md @@ -6,7 +6,7 @@ Taiko's bridging concept is a lock-and-mint type. It simply means (the red path But there might be some incentives (e.g.: adoption, liquidity fragmentation, etc.) when deploying a native token on the destination chain is beneficial. For this reason Taiko introduced the possibility of deploying the canonical assets (together with all their sub/parent/proxy contracts) and plug it into our ERC20Vault via adapters (green path). -Important to note that while wrapped asset bridging is 'automatical', the native one requires the willingness and efforts from Taiko side (and maybe also original token issuer green light to recognise officially as "native"), to support that type of asset-transfer. +Important to note that while wrapped asset bridging is 'automatically', the native one requires the willingness and efforts from Taiko side (and maybe also original token issuer green light to recognise officially as "native"), to support that type of asset-transfer. ## Howto diff --git a/packages/protocol/utils/generate_genesis/taikoL2.ts b/packages/protocol/utils/generate_genesis/taikoL2.ts index c0fda6f3b0..e222008e08 100644 --- a/packages/protocol/utils/generate_genesis/taikoL2.ts +++ b/packages/protocol/utils/generate_genesis/taikoL2.ts @@ -217,7 +217,7 @@ async function generateContractConfigs( // Shared Contracts SharedAddressManagerImpl: { address: addressMap.SharedAddressManagerImpl, - deployedBytecode: replaceUUPSImmutableVaules( + deployedBytecode: replaceUUPSImmutableValues( contractArtifacts.SharedAddressManagerImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad( @@ -277,7 +277,7 @@ async function generateContractConfigs( BridgeImpl: { address: addressMap.BridgeImpl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.BridgeImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.BridgeImpl, 32), @@ -311,7 +311,7 @@ async function generateContractConfigs( ERC20VaultImpl: { address: addressMap.ERC20VaultImpl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.ERC20VaultImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.ERC20VaultImpl, 32), @@ -346,7 +346,7 @@ async function generateContractConfigs( ERC721VaultImpl: { address: addressMap.ERC721VaultImpl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.ERC721VaultImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.ERC721VaultImpl, 32), @@ -381,7 +381,7 @@ async function generateContractConfigs( ERC1155VaultImpl: { address: addressMap.ERC1155VaultImpl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.ERC1155VaultImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.ERC1155VaultImpl, 32), @@ -415,7 +415,7 @@ async function generateContractConfigs( }, BridgedERC20: { address: addressMap.BridgedERC20Impl, - deployedBytecode: replaceUUPSImmutableVaules( + deployedBytecode: replaceUUPSImmutableValues( contractArtifacts.BridgedERC20Impl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.BridgedERC20Impl, 32), @@ -423,7 +423,7 @@ async function generateContractConfigs( }, BridgedERC721: { address: addressMap.BridgedERC721Impl, - deployedBytecode: replaceUUPSImmutableVaules( + deployedBytecode: replaceUUPSImmutableValues( contractArtifacts.BridgedERC721Impl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.BridgedERC721Impl, 32), @@ -431,7 +431,7 @@ async function generateContractConfigs( }, BridgedERC1155: { address: addressMap.BridgedERC1155Impl, - deployedBytecode: replaceUUPSImmutableVaules( + deployedBytecode: replaceUUPSImmutableValues( contractArtifacts.BridgedERC1155Impl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.BridgedERC1155Impl, 32), @@ -440,7 +440,7 @@ async function generateContractConfigs( SignalServiceImpl: { address: addressMap.SignalServiceImpl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.SignalServiceImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.SignalServiceImpl, 32), @@ -479,7 +479,7 @@ async function generateContractConfigs( TaikoL2Impl: { address: addressMap.TaikoL2Impl, deployedBytecode: linkContractLibs( - replaceUUPSImmutableVaules( + replaceUUPSImmutableValues( contractArtifacts.TaikoL2Impl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad(addressMap.TaikoL2Impl, 32), @@ -522,7 +522,7 @@ async function generateContractConfigs( }, RollupAddressManagerImpl: { address: addressMap.RollupAddressManagerImpl, - deployedBytecode: replaceUUPSImmutableVaules( + deployedBytecode: replaceUUPSImmutableValues( contractArtifacts.RollupAddressManagerImpl, uupsImmutableReferencesMap, ethers.utils.hexZeroPad( @@ -631,7 +631,7 @@ function getUUPSImmutableReferences() { return references; } -function replaceUUPSImmutableVaules( +function replaceUUPSImmutableValues( artifact: any, references: any, value: string, diff --git a/packages/relayer/README.md b/packages/relayer/README.md index c52d8b1207..87e07dab3c 100644 --- a/packages/relayer/README.md +++ b/packages/relayer/README.md @@ -122,12 +122,12 @@ To review each sub-command's command line flags, use: Filter params: -Mandatory: +Mandatory: `address`: user's ethereum address who sent the message. Optional: `chainID`: chain ID of the source chain. Default: all chains. Options: any integer. -`msgHash`: filter events by message hash. Default: all msgHashs. Options: any hash. +`msgHash`: filter events by message hash. Default: all msgHashes. Options: any hash. `eventType`: filter events by event type. Default: all eventType. Options: Enum value, `0` for sendETH, `1` for sendERC20. `event`: filter events by event name. Default: all event names. Options: `MessageSent`, `MessageStatusChanged` diff --git a/packages/relayer/cmd/flags/indexer.go b/packages/relayer/cmd/flags/indexer.go index f5aa02dc24..45eb322c04 100644 --- a/packages/relayer/cmd/flags/indexer.go +++ b/packages/relayer/cmd/flags/indexer.go @@ -71,7 +71,7 @@ var ( } NumLatestBlocksToIgnoreWhenCrawling = &cli.Uint64Flag{ Name: "numLatestBlocksToIgnoreWhenCrawling", - Usage: "Number of blocks to ingore when crawling chain, should be higher for L2-L1 indexing due to delay", + Usage: "Number of blocks to ignore when crawling chain, should be higher for L2-L1 indexing due to delay", Value: 1000, Category: indexerCategory, EnvVars: []string{"NUM_LATEST_BLOCKS_TO_IGNORE_WHEN_CRAWLING"}, diff --git a/packages/relayer/cmd/main.go b/packages/relayer/cmd/main.go index 735652155e..694af278a4 100644 --- a/packages/relayer/cmd/main.go +++ b/packages/relayer/cmd/main.go @@ -31,7 +31,7 @@ func main() { _ = godotenv.Load(envFile) app.Name = "Taiko Relayer" - app.Usage = "The taiko relayer softwares command line interface" + app.Usage = "The taiko relayer software command line interface" app.Copyright = "Copyright 2021-2024 Taiko Labs" app.Description = "Bridge relayer implementation in Golang for Taiko protocol" app.Authors = []*cli.Author{{Name: "Taiko Labs", Email: "info@taiko.xyz"}} diff --git a/packages/relayer/pkg/utils/gas.go b/packages/relayer/pkg/utils/gas.go index 633950d5f5..92d6655e41 100644 --- a/packages/relayer/pkg/utils/gas.go +++ b/packages/relayer/pkg/utils/gas.go @@ -27,7 +27,7 @@ type ethClient interface { } // IsMaxPriorityFeePerGasNotFoundError returns true if the provided error -// signals that the backend does not support the eth_maxPrirorityFeePerGas +// signals that the backend does not support the eth_maxPriorityFeePerGas // method. In this case, the caller should fallback to using the constant above. func IsMaxPriorityFeePerGasNotFoundError(err error) bool { return strings.Contains( diff --git a/packages/relayer/processor/errors.go b/packages/relayer/processor/errors.go index 7b4fb23064..0eb7de1fea 100644 --- a/packages/relayer/processor/errors.go +++ b/packages/relayer/processor/errors.go @@ -19,7 +19,7 @@ var ( ) // IsMaxPriorityFeePerGasNotFoundError returns true if the provided error -// signals that the backend does not support the eth_maxPrirorityFeePerGas +// signals that the backend does not support the eth_maxPriorityFeePerGas // method. In this case, the caller should fallback to using the constant above. func IsMaxPriorityFeePerGasNotFoundError(err error) bool { return strings.Contains(