Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
030967e
feat: convert mint precompile testing to go
JonathanOppenheimer Nov 21, 2025
b7eec85
Add abi files back
JonathanOppenheimer Nov 21, 2025
5a0ccbb
restore files
JonathanOppenheimer Nov 21, 2025
ef32f2f
restore name
JonathanOppenheimer Nov 21, 2025
3359ca9
remove from compile
JonathanOppenheimer Nov 21, 2025
5c6d601
Merge branch 'master' into JonathanOppenheimer/convert-native-minter-…
JonathanOppenheimer Nov 21, 2025
6a0d4b8
add submodules
JonathanOppenheimer Nov 21, 2025
f88e5b2
remove old contract
JonathanOppenheimer Nov 21, 2025
2db1281
shell-check modificaiton
JonathanOppenheimer Nov 21, 2025
561029d
test: remove openzeppelin and erc20 tests
JonathanOppenheimer Nov 24, 2025
679e30e
test: remove openzeppelin
JonathanOppenheimer Nov 24, 2025
87f3bd5
Merge branch 'master' into JonathanOppenheimer/convert-native-minter-…
JonathanOppenheimer Nov 24, 2025
4225a1a
test: remove old compile from CI
JonathanOppenheimer Nov 24, 2025
d42393a
test: define allowlist helpers
JonathanOppenheimer Nov 24, 2025
e0d7787
test: get rid of solidity folder
JonathanOppenheimer Nov 24, 2025
56bf03c
chore: regenerate bindings
JonathanOppenheimer Nov 24, 2025
a924883
chore: lint
JonathanOppenheimer Nov 24, 2025
e33233f
chore: license header
JonathanOppenheimer Nov 24, 2025
7deeb4e
restructure test folders
ceyonur Nov 26, 2025
89b2cde
fix linter
ceyonur Nov 26, 2025
2bb0ca6
fix compiles
ceyonur Nov 26, 2025
83fa482
regen bindings
ceyonur Nov 26, 2025
5bd8dd5
Restructure Precompile Test Packages and Folders (#1878)
JonathanOppenheimer Dec 1, 2025
becd145
test: change to cancun for compile
JonathanOppenheimer Dec 1, 2025
8734a30
Merge remote-tracking branch 'origin' into JonathanOppenheimer/conver…
JonathanOppenheimer Dec 1, 2025
7f4e0b9
chore: revert name changes
JonathanOppenheimer Dec 1, 2025
d578932
test: break import cycle
JonathanOppenheimer Dec 1, 2025
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
Expand Down Expand Up @@ -45,6 +47,8 @@ jobs:
os: [macos-latest, ubuntu-22.04, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
Expand Down
627 changes: 0 additions & 627 deletions contracts/bindings/gen_exampledeployerlist.go

This file was deleted.

3 changes: 1 addition & 2 deletions contracts/contracts/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package contracts

// Step 1: Compile Solidity contracts to generate ABI and bin files
//go:generate solc-v0.8.30 -o ../artifacts --overwrite --abi --bin --base-path . @openzeppelin/contracts/=../node_modules/@openzeppelin/contracts/ AllowList.sol ERC20NativeMinter.sol ExampleFeeManager.sol ExampleRewardManager.sol ExampleTxAllowList.sol ExampleWarp.sol
//go:generate solc-v0.8.30 -o ../artifacts --overwrite --abi --bin --base-path . @openzeppelin/contracts/=../node_modules/@openzeppelin/contracts/ AllowList.sol ExampleFeeManager.sol ExampleRewardManager.sol ExampleTxAllowList.sol ExampleWarp.sol

// Step 2: Generate Go bindings from the compiled artifacts
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg bindings --type AllowList --abi ../artifacts/AllowList.abi --bin ../artifacts/AllowList.bin --out ../bindings/gen_allowlist.go
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg bindings --type ERC20NativeMinter --abi ../artifacts/ERC20NativeMinter.abi --bin ../artifacts/ERC20NativeMinter.bin --out ../bindings/gen_erc20nativeminter.go
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg bindings --type ExampleFeeManager --abi ../artifacts/ExampleFeeManager.abi --bin ../artifacts/ExampleFeeManager.bin --out ../bindings/gen_examplefeemanager.go
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg bindings --type ExampleRewardManager --abi ../artifacts/ExampleRewardManager.abi --bin ../artifacts/ExampleRewardManager.bin --out ../bindings/gen_examplerewardmanager.go
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg bindings --type ExampleTxAllowList --abi ../artifacts/ExampleTxAllowList.abi --bin ../artifacts/ExampleTxAllowList.bin --out ../bindings/gen_exampletxallowlist.go
Expand Down
144 changes: 0 additions & 144 deletions contracts/contracts/test/ERC20NativeMinterTest.sol

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/scripts/deployERC20NativeMinter.ts

This file was deleted.

64 changes: 0 additions & 64 deletions contracts/test/README.md

This file was deleted.

63 changes: 0 additions & 63 deletions contracts/test/contract_native_minter.ts

This file was deleted.

4 changes: 3 additions & 1 deletion precompile/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
artifacts/
**/artifacts/
**/artifacts/*.abi
**/artifacts/*.bin
2 changes: 1 addition & 1 deletion precompile/allowlist/allowlisttest/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package allowlisttest

// Step 1: Compile Solidity contracts to generate ABI and bin files
//go:generate solc-v0.8.30 -o artifacts --overwrite --abi --bin --base-path . precompile/=../../ --evm-version paris AllowListTest.sol
//go:generate solc-v0.8.30 -o artifacts --overwrite --abi --bin --base-path . precompile/=../../ --evm-version paris solidity/AllowListTest.sol
// Step 2: Generate Go bindings from the compiled artifacts
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg allowlisttest --type IAllowList --abi artifacts/IAllowList.abi --bin artifacts/IAllowList.bin --out gen_allowlist_binding.go
//go:generate go run github.com/ava-labs/libevm/cmd/abigen --pkg allowlisttest --type AllowListTest --abi artifacts/AllowListTest.abi --bin artifacts/AllowListTest.bin --out gen_allowlisttest_binding.go
Expand Down
Loading
Loading