Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #115 from getwax/start-scripts-docs
Browse files Browse the repository at this point in the history
Add docs for start scripts
  • Loading branch information
blakecduncan authored Oct 10, 2023
2 parents c038e3b + 35a3968 commit fd7bbeb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account-integrations/safe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ To run the hardhat tests, you'll need to run a node and a bundler as some of the
1. Start a geth node, fund accounts and deploy Safe contracts:

```bash
# Note: This uses geth. There is also start-hardhat.sh for using hardhat. See
# docs inside each script for more information.
./script/start.sh
```

Expand Down
12 changes: 12 additions & 0 deletions account-integrations/safe/script/start-hardhat.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/bash

# Runs a hardhat node and deploys contracts in one script, ensuring proper
# cleanup when errors occur.
#
# Advantages of using hardhat:
# - Good debug output
# - Support for console.log
#
# Disadvantages:
# - Bundler needs to be run in unsafe mode, so its restrictions on user ops
# are not tested
# - Slower than geth

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

set -meuo pipefail
Expand Down
8 changes: 8 additions & 0 deletions account-integrations/safe/script/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

# Runs a geth node and deploys contracts in one script, ensuring proper cleanup
# when errors occur.
#
# Advantages of using geth:
# - Exposes special trace methods needed to run the bundler, enabling testing of
# the bundler's restrictions on user ops
# - Fast

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

set -meuo pipefail
Expand Down

0 comments on commit fd7bbeb

Please sign in to comment.