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

refactor: remove polycli rpc method #272

Merged
merged 3 commits into from
May 20, 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
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ Note: Do not modify this section! It is auto-generated by `cobra` using `make ge

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

- [polycli rpc](doc/polycli_rpc.md) - Wrapper for making RPC requests.

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

- [polycli signer](doc/polycli_signer.md) - Utilities for security signing transactions
Expand Down
2 changes: 1 addition & 1 deletion bindings/tester/LoadTester.bin

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/tester/loadTester.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/loadtest/loadtestUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ polycli loadtest --verbosity 700 --chain-id 1256 --concurrency 1 --requests 50

### Load Test Contract

The codebase has a contract that used for load testing. It's written in Yul and Solidity. The workflow for modifying this contract is.
The codebase has a contract that used for load testing. It's written in Solidity. The workflow for modifying this contract is.

1. Make changes to <file:contracts/LoadTester.sol>
2. Compile the contracts:
Expand Down
2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/maticnetwork/polygon-cli/cmd/mnemonic"
"github.com/maticnetwork/polygon-cli/cmd/monitor"
"github.com/maticnetwork/polygon-cli/cmd/nodekey"
"github.com/maticnetwork/polygon-cli/cmd/rpc"
"github.com/maticnetwork/polygon-cli/cmd/rpcfuzz"
"github.com/maticnetwork/polygon-cli/cmd/signer"
"github.com/maticnetwork/polygon-cli/cmd/version"
Expand Down Expand Up @@ -121,7 +120,6 @@ func NewPolycliCommand() *cobra.Command {
nodekey.NodekeyCmd,
p2p.P2pCmd,
parseethwallet.ParseETHWalletCmd,
rpc.RpcCmd,
rpcfuzz.RPCFuzzCmd,
signer.SignerCmd,
version.VersionCmd,
Expand Down
93 changes: 0 additions & 93 deletions cmd/rpc/rpc.go

This file was deleted.

9 changes: 0 additions & 9 deletions cmd/rpc/usage.md

This file was deleted.

2 changes: 1 addition & 1 deletion contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ help: ## Display this help.

.PHONY: build
build: ## Build the smart contracts
FOUNDRY_PROFILE=lite forge build --force
forge build --force

##@ Gen go bindings

Expand Down
2 changes: 1 addition & 1 deletion contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Smart contracts used to perform different types of tests:

- `tester/` to call various opcodes, precompiles, and store random data with `LoadTester` and test revert reason string with `ConformanceTester`.
- `tokens/` to perform ERC20 transfers or ERC721 mints for example.
- Other: `asm/` and `yul/`, contracts written in other languages than Solidity.
- Other: `asm/` contracts written in other languages than Solidity.

## Generate go bindings

Expand Down
4 changes: 2 additions & 2 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ remappings = [
]
solc_version = "0.8.23" # https://github.com/ethereum/solidity/releases

# Lite profile with Yul optimiser disabled.
[profile.lite.optimizer_details]
# default profile with Yul optimiser disabled.
[profile.default.optimizer_details]
yul = false

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
2 changes: 1 addition & 1 deletion contracts/src/tester/LoadTester.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract LoadTester {

// A few op codes that aren't being tested specifically
// 0x00 STOP - 0 Gas and doesn't do anything
// 0x50 POP - exists in the Yul instructions, but is so low level that an empty for loop would test it
// 0x50 POP
// 0x56 JUMP
// 0x57 JUMPI
// 0x58 PC - Is disallowed
Expand Down
10 changes: 0 additions & 10 deletions contracts/src/yul/test.yul

This file was deleted.

2 changes: 0 additions & 2 deletions doc/polycli.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ Polycli is a collection of tools that are meant to be useful while building, tes

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

- [polycli rpc](polycli_rpc.md) - Wrapper for making RPC requests.

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

- [polycli signer](polycli_signer.md) - Utilities for security signing transactions
Expand Down
2 changes: 1 addition & 1 deletion doc/polycli_loadtest.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $ polycli loadtest --verbosity 700 --chain-id 1256 --concurrency 1 --requests 50

### Load Test Contract

The codebase has a contract that used for load testing. It's written in Yul and Solidity. The workflow for modifying this contract is.
The codebase has a contract that used for load testing. It's written in Solidity. The workflow for modifying this contract is.

1. Make changes to <file:contracts/LoadTester.sol>
2. Compile the contracts:
Expand Down
55 changes: 0 additions & 55 deletions doc/polycli_rpc.md

This file was deleted.