Skip to content

Commit

Permalink
Remove bash wrappers and invoke solidity compilation directly. (#16568)
Browse files Browse the repository at this point in the history
* Minor

* Minor
  • Loading branch information
pavel-raykov authored and krehermann committed Feb 27, 2025
1 parent d0aecdf commit 105f293
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 69 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-suits-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#removed Remove bash wrappers and call solidity compilation directly.
32 changes: 0 additions & 32 deletions core/gethwrappers/generation/compile_contracts.sh

This file was deleted.

34 changes: 0 additions & 34 deletions core/gethwrappers/generation/compile_event_mock_contract.sh

This file was deleted.

6 changes: 3 additions & 3 deletions core/gethwrappers/go_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package gethwrappers

// Make sure solidity compiler artifacts are up-to-date. Only output stdout on failure.
//go:generate ./generation/compile_contracts.sh
//go:generate ../../contracts/scripts/native_solc_compile_all

//go:generate go run ./generation/generate/wrap.go ../../contracts/solc/v0.8.19/Operator/Operator.abi ../../contracts/solc/v0.8.19/Operator/Operator.bin Operator operator_wrapper
//go:generate go run ./generation/generate/wrap.go ../../contracts/solc/v0.8.19/OperatorFactory/OperatorFactory.abi ../../contracts/solc/v0.8.19/OperatorFactory/OperatorFactory.bin OperatorFactory operator_factory
Expand Down Expand Up @@ -161,6 +161,6 @@ package gethwrappers
// The flow is as follows:
// 1. Compile all non events mock contracts.
// 2. Generate events mock .sol files based on ABI of compiled contracts.
// 3. Compile events mock contracts. ./generation/compile_event_mock_contract.sh calls contracts/scripts/native_solc_compile_all_events_mock to compile events mock contracts.
// 3. Compile mocks by calling contracts/scripts/native_solc_compile_all_events_mock to compile events mock contracts.
// 4. Generate wrappers for events mock contracts.
//go:generate ./generation/compile_event_mock_contract.sh
//go:generate ../../contracts/scripts/native_solc_compile_all_events_mock

0 comments on commit 105f293

Please sign in to comment.