mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
751f62615d
This request implements an end to end Polygon state sync in the devnet. It does this by deploying smart contracts ont the L2 & L2 chain which follow the polygon fx portal model with security checks removed to simplify the code. The sync events generated are routed through a local mock heimdal - to avoid the consensus process for testing purposes. The commit also includes support code to help the delivery of additional contract based scenratios.
18 lines
1018 B
Go
18 lines
1018 B
Go
package contracts
|
|
|
|
// rootsender.sol
|
|
//go:generate solc --allow-paths ., --abi --bin --overwrite --optimize -o build rootsender.sol
|
|
//go:generate abigen -abi build/RootSender.abi -bin build/RootSender.bin -pkg contracts -type RootSender -out ./gen_rootsender.go
|
|
|
|
// teststatesender.sol
|
|
//go:generate solc --allow-paths ., --abi --bin --overwrite --optimize -o build teststatesender.sol
|
|
//go:generate abigen -abi build/TestStateSender.abi -bin build/TestStateSender.bin -pkg contracts -type TestStateSender -out ./gen_teststatesender.go
|
|
|
|
// childreceiver.sol
|
|
//go:generate solc --allow-paths ., --abi --bin --overwrite --optimize -o build childreceiver.sol
|
|
//go:generate abigen -abi build/ChildReceiver.abi -bin build/ChildReceiver.bin -pkg contracts -type ChildReceiver -out ./gen_childreceiver.go
|
|
|
|
// faucet.sol
|
|
//go:generate solc --allow-paths ., --abi --bin --overwrite --optimize -o build faucet.sol
|
|
//go:generate abigen -abi build/Faucet.abi -bin build/Faucet.bin -pkg contracts -type Faucet -out ./gen_faucet.go
|