Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: split chainprof command #10

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
.PHONY: clean generate regenerate test docs redocs hardhat bindings

build: hardhat bindings bin/game7
build: hardhat bindings bin/game7 bin/chainprof

rebuild: clean generate build

bin/game7:
mkdir -p bin
go build -o bin/game7 ./cmd/game7

bin/chainprof:
mkdir -p bin
go build -o bin/chainprof ./cmd/chainprof
karacurt marked this conversation as resolved.
Show resolved Hide resolved

bindings/Game7Token/Game7Token.go: hardhat
mkdir -p bindings/Game7Token
seer evm generate --package Game7Token --output bindings/Game7Token/Game7Token.go --hardhat web3/artifacts/contracts/Token/Game7Token.sol/Game7Token.json --cli --struct Game7Token
Expand Down
216 changes: 43 additions & 173 deletions bindings/Game7Token/Game7Token.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions chainprof/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,6 @@ import (
"github.com/spf13/cobra"
)

func CreateChainprofCommand() *cobra.Command {
chainprofCmd := &cobra.Command{
Use: "chainprof",
Short: "Chain profiler",
Long: "Chain profiler which can be used to profile the performance of a rollup.",
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}

accountsCmd := CreateAccountsCommand()
evaluateCmd := CreateEvaluateCommand()

chainprofCmd.AddCommand(accountsCmd, evaluateCmd)

return chainprofCmd
}

func CreateEvaluateCommand() *cobra.Command {
var accountsDir, calldataRaw, outfile, rpc, toRaw, valueRaw, password string
var transactionsPerAccount uint
Expand Down
Loading
Loading