Skip to content

Commit

Permalink
refactor: remove traces of yul
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Hwan <jkim@polygon.technology>
  • Loading branch information
jhkimqd committed May 9, 2024
1 parent a26726b commit c2efd21
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 27 deletions.
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
3 changes: 1 addition & 2 deletions contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ help: ## Display this help.

.PHONY: build
build: ## Build the smart contracts
FOUNDRY_PROFILE=lite forge build --force --skip *.yul
FOUNDRY_PROFILE=yul forge build --force --skip *.sol
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
11 changes: 2 additions & 9 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +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

[profile.yul]
src = 'src/yul'
out = 'out/yul'
libs = ['lib']
remappings = []
auto_detect_remappings = 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: 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

0 comments on commit c2efd21

Please sign in to comment.