-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
26 lines (23 loc) · 1.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
mock: ## generate mock
mockery --output internal/mocks/types --dir internal/types --name IListener
mockery --output internal/mocks/types --dir internal/types --name ITransaction
mockery --output internal/mocks/types --dir internal/types --name ILog
mockery --output internal/mocks/types --dir internal/types --name IReceipt
mockery --output internal/mocks/types --dir internal/types --name IBlock
mockery --output internal/mocks/types --dir internal/types --name IJob
mockery --output internal/mocks/utils --dir internal/utils --name IUtils
mockery --output internal/mocks/utils --dir internal/utils --name EthClient
abigen:
abigen --abi=./contracts/common/BridgeAdmin.abi --pkg=common --out=generated_contracts/ethereum/common/bridge_admin.go
abigen --abi=./contracts/common/BridgeAdmin.abi --pkg=common --out=generated_contracts/ronin/common/bridge_admin.go
abigen --abi=./contracts/ethereum/MainchainGatewayV2.abi --pkg=gateway --out=./generated_contracts/ethereum/gateway/mainchain_gateway_v2.go
abigen --abi=./contracts/ronin/RoninGatewayV2.abi --pkg=gateway --out=./generated_contracts/ronin/gateway/ronin_gateway_v2.go
abigen --abi=./contracts/ronin/RoninTrustedOrganization.abi --pkg=gateway --out=./generated_contracts/ronin/trusted_org/ronin_trusted_org.go
abigen --abi=./contracts/ronin/RoninGovernanceAdmin.abi --pkg=gateway --out=./generated_contracts/ronin/governance/ronin_governance_admin.go
abigen --abi=./contracts/common/RoninValidator.abi --pkg=validator --out=./generated_contracts/ronin/validator/ronin_validator.go
bridge:
go install ./cmd/bridge
@echo "Done building."
@echo "Run \"bridge\" to launch bridge."
run:
@cd cmd/bridge && go run main.go