Skip to content

Conversation

@JonathanOppenheimer
Copy link
Member

Why this should be merged

Replaces reward manager allowlist e2e hardhat tests with golang bindings and a simulated backend test.

Part of #1228

How this works

Generates relevant golang bindings from sol files for the testing. Mirrors the hardhat test to a golang test using simulated backend.

How this was tested

CI

Need to be documented?

No

Need to update RELEASES.md?

No

@JonathanOppenheimer JonathanOppenheimer self-assigned this Dec 3, 2025
@JonathanOppenheimer JonathanOppenheimer added javascript Pull requests that update Javascript code ci testing This primarly focuses on testing labels Dec 3, 2025
return addr, contract
}

func TestRewardManager(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests look good? got the blackhole stuff in here

// SendSimpleTx sends a simple ETH transfer transaction
// See ethclient/simulated/backend_test.go newTx() for the source of this code
// TODO(jonathanoppenheimer): after libevmifiying the geth code, investigate whether we can use the same code for both
func SendSimpleTx(t *testing.T, b *sim.Backend, key *ecdsa.PrivateKey) *types.Transaction {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not happy with adding this, would prefer to use an existing function...

@JonathanOppenheimer JonathanOppenheimer added DO NOT MERGE This PR is not meant to be merged in its current state blocked Blocked by another issue or pull request labels Dec 3, 2025
@JonathanOppenheimer JonathanOppenheimer changed the base branch from master to JonathanOppenheimer/convert-tx-allow-list-test December 4, 2025 21:17
@JonathanOppenheimer JonathanOppenheimer removed DO NOT MERGE This PR is not meant to be merged in its current state blocked Blocked by another issue or pull request labels Dec 4, 2025
@JonathanOppenheimer
Copy link
Member Author

This should automatically rebase to target master after #1900 is merged, at which point it can be reviewed.

@JonathanOppenheimer JonathanOppenheimer marked this pull request as ready for review December 4, 2025 21:40
@JonathanOppenheimer JonathanOppenheimer requested review from a team and maru-ava as code owners December 4, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci javascript Pull requests that update Javascript code testing This primarly focuses on testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants