From aa6ecf7b1157a61c21e0bb15c060eb2fc5936e12 Mon Sep 17 00:00:00 2001 From: Ori Pomerantz Date: Fri, 12 Apr 2024 09:32:14 +0300 Subject: [PATCH] feat(create-mud): change `anvil` to create a block every two seconds (#2635) Co-authored-by: Kevin Ingersoll --- .changeset/polite-dots-tell.md | 5 +++++ examples/minimal/mprocs.yaml | 2 +- examples/multiple-accounts/mprocs.yaml | 2 +- templates/phaser/mprocs.yaml | 2 +- templates/react-ecs/mprocs.yaml | 2 +- templates/react/mprocs.yaml | 2 +- templates/threejs/mprocs.yaml | 2 +- templates/vanilla/mprocs.yaml | 2 +- 8 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/polite-dots-tell.md diff --git a/.changeset/polite-dots-tell.md b/.changeset/polite-dots-tell.md new file mode 100644 index 0000000000..7c9c21a5a4 --- /dev/null +++ b/.changeset/polite-dots-tell.md @@ -0,0 +1,5 @@ +--- +"create-mud": patch +--- + +Updated `anvil` args with two second block time to better reflect L2s diff --git a/examples/minimal/mprocs.yaml b/examples/minimal/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/examples/minimal/mprocs.yaml +++ b/examples/minimal/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/examples/multiple-accounts/mprocs.yaml b/examples/multiple-accounts/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/examples/multiple-accounts/mprocs.yaml +++ b/examples/multiple-accounts/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/templates/phaser/mprocs.yaml b/templates/phaser/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/templates/phaser/mprocs.yaml +++ b/templates/phaser/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/templates/react-ecs/mprocs.yaml b/templates/react-ecs/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/templates/react-ecs/mprocs.yaml +++ b/templates/react-ecs/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/templates/react/mprocs.yaml b/templates/react/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/templates/react/mprocs.yaml +++ b/templates/react/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/templates/threejs/mprocs.yaml b/templates/threejs/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/templates/threejs/mprocs.yaml +++ b/templates/threejs/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2 diff --git a/templates/vanilla/mprocs.yaml b/templates/vanilla/mprocs.yaml index f01b91a0a9..3f9ca198e3 100644 --- a/templates/vanilla/mprocs.yaml +++ b/templates/vanilla/mprocs.yaml @@ -7,4 +7,4 @@ procs: shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545 anvil: cwd: packages/contracts - shell: anvil --base-fee 0 + shell: anvil --base-fee 0 --block-time 2