Skip to content

Commit

Permalink
Merge pull request #10 from G7DAO/feat/split-chainprof
Browse files Browse the repository at this point in the history
Feat: split chainprof command
  • Loading branch information
karacurt authored Jun 10, 2024
2 parents 4a8fbea + c221db2 commit 4c7a2be
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 196 deletions.
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

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

0 comments on commit 4c7a2be

Please sign in to comment.