From 645736dfa00508cbaa7ba84b4e1a19f03b09fa7f Mon Sep 17 00:00:00 2001 From: 0xshanks <46660741+hourglasshoro@users.noreply.github.com> Date: Tue, 5 Mar 2024 20:29:59 +0900 Subject: [PATCH] feat(cli): add a RPC batch option to cli (#2322) Co-authored-by: Kevin Ingersoll --- .changeset/angry-buses-dress.md | 5 +++++ docs/pages/cli/deploy.mdx | 1 + packages/cli/src/commands/dev-contracts.ts | 1 + packages/cli/src/runDeploy.ts | 13 ++++++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .changeset/angry-buses-dress.md diff --git a/.changeset/angry-buses-dress.md b/.changeset/angry-buses-dress.md new file mode 100644 index 0000000000..ac7b4e2238 --- /dev/null +++ b/.changeset/angry-buses-dress.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/cli": minor +--- + +Added an `--rpcBatch` option to `mud deploy` command to batch RPC calls for rate limited RPCs. diff --git a/docs/pages/cli/deploy.mdx b/docs/pages/cli/deploy.mdx index 568bc921dd..083c64b80d 100644 --- a/docs/pages/cli/deploy.mdx +++ b/docs/pages/cli/deploy.mdx @@ -43,6 +43,7 @@ These are the command line options you can specify on `mud deploy`: | `--saveDeployment | Save the deployment info to a file | boolean | `true` | | `--profile` | The foundry profile to use | string | `local` | | `--rpc`1 | The RPC URL to use | string | RPC url from `foundry.toml` | +| `--rpcBatch` | Enable batch processing of RPC requests | boolean | `false` | | `--worldAddress` | Deploy to an existing World at the given address | string | Empty, deploy new `World` | | `--srcDir` | Source directory | string | Foundry `src` directory | | `--skipBuild` | Skip rebuilding the contracts before deploying | boolean | `false` | diff --git a/packages/cli/src/commands/dev-contracts.ts b/packages/cli/src/commands/dev-contracts.ts index 23b7b1d03c..61b6b75431 100644 --- a/packages/cli/src/commands/dev-contracts.ts +++ b/packages/cli/src/commands/dev-contracts.ts @@ -83,6 +83,7 @@ const commandModule: CommandModule