Skip to content

Commit 32397ff

Browse files
authored
Merge branch 'main' into thiago/load-testing-guide
2 parents b4b8fef + 582a90b commit 32397ff

File tree

26 files changed

+2272
-426
lines changed

26 files changed

+2272
-426
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
GO_VERSION: "1.23" # https://go.dev/dl/
17+
GO_VERSION: "1.24.1" # https://go.dev/dl/
1818
FOUNDRY_VERSION: stable
1919

2020
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: write
1111

1212
env:
13-
GO_VERSION: "1.23"
13+
GO_VERSION: "1.24.1"
1414

1515
jobs:
1616
manual-release:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Note: Do not modify this section! It is auto-generated by `cobra` using `make ge
7575

7676
- [polycli parseethwallet](doc/polycli_parseethwallet.md) - Extract the private key from an eth wallet.
7777

78+
- [polycli publish](doc/polycli_publish.md) - Publish transactions to the network with high-throughput
79+
7880
- [polycli retest](doc/polycli_retest.md) - Convert the standard ETH test fillers into something to be replayed against an RPC
7981

8082
- [polycli rpcfuzz](doc/polycli_rpcfuzz.md) - Continually run a variety of RPC calls and fuzzers.

cmd/fund/cmd.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package fund
22

33
import (
44
"errors"
5-
"math"
65

76
_ "embed"
87

@@ -28,7 +27,7 @@ type cmdFundParams struct {
2827
WalletsNumber *uint64
2928
UseHDDerivation *bool
3029
WalletAddresses *[]string
31-
FundingAmountInEth *float64
30+
FundingAmountInWei *uint64
3231
OutputFile *string
3332

3433
FunderAddress *string
@@ -68,7 +67,7 @@ func init() {
6867
p.WalletsNumber = flagSet.Uint64P("number", "n", 10, "The number of wallets to fund")
6968
p.UseHDDerivation = flagSet.Bool("hd-derivation", true, "Derive wallets to fund from the private key in a deterministic way")
7069
p.WalletAddresses = flagSet.StringSlice("addresses", nil, "Comma-separated list of wallet addresses to fund")
71-
p.FundingAmountInEth = flagSet.Float64P("eth-amount", "a", 0.05, "The amount of ether to send to each wallet")
70+
p.FundingAmountInWei = flagSet.Uint64P("eth-amount", "a", 50000000000000000, "The amount of wei to send to each wallet")
7271
p.OutputFile = flagSet.StringP("file", "f", "wallets.json", "The output JSON file path for storing the addresses and private keys of funded wallets")
7372

7473
// Marking flags as mutually exclusive
@@ -99,8 +98,8 @@ func checkFlags() error {
9998
if params.WalletsNumber != nil && *params.WalletsNumber == 0 {
10099
return errors.New("the number of wallets to fund is set to zero")
101100
}
102-
if params.FundingAmountInEth != nil && math.Abs(*params.FundingAmountInEth) <= 1e-9 {
103-
return errors.New("the amount of eth to send to each wallet is set to zero")
101+
if params.FundingAmountInWei != nil && *params.FundingAmountInWei <= 1000000000 {
102+
return errors.New("the funding amount must be greater than 1000000000")
104103
}
105104
if params.OutputFile != nil && *params.OutputFile == "" {
106105
return errors.New("the output file is not specified")

cmd/fund/fund.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func deployOrInstantiateFunderContract(ctx context.Context, c *ethclient.Client,
128128
if *params.FunderAddress == "" {
129129
// Deploy the Funder contract.
130130
// Note: `fundingAmountInWei` reprensents the amount the Funder contract will send to each newly generated wallets.
131-
fundingAmountInWei := util.EthToWei(*params.FundingAmountInEth)
131+
fundingAmountInWei := new(big.Int).SetUint64(*params.FundingAmountInWei)
132132
contractAddress, _, _, err = funder.DeployFunder(tops, c, fundingAmountInWei)
133133
if err != nil {
134134
log.Error().Err(err).Msg("Unable to deploy Funder contract")

0 commit comments

Comments
 (0)