-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
22 lines (17 loc) · 2.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
contract_path = ../ronin-dpos-contracts
katana_contract_path=../dapps-smart-contracts
generate:
solc --abi --bin "${contract_path}/contracts/ronin/RoninGovernanceAdmin.sol" -o "./contracts/ronin" --include-path "${contract_path}/node_modules/" --base-path ${contract_path} --overwrite --optimize
abigen --abi "./contracts/ronin/RoninGovernanceAdmin.abi" --bin "./contracts/ronin/RoninGovernanceAdmin.bin" --pkg "governance" --out "./generated_contracts/ronin/governance/ronin_governance_admin.go"
solc --abi --bin "${contract_path}/contracts/mainchain/MainchainGovernanceAdmin.sol" -o "./contracts/ethereum" --include-path "${contract_path}/node_modules/" --base-path ${contract_path} --overwrite --optimize
abigen --abi "./contracts/ethereum/MainchainGovernanceAdmin.abi" --bin "./contracts/ethereum/MainchainGovernanceAdmin.bin" --pkg "governance" --out "./generated_contracts/ethereum/governance/mainchain_governance_admin.go"
solc --abi --bin "${contract_path}/contracts/multi-chains/RoninTrustedOrganization.sol" -o "./contracts/ronin" --include-path "${contract_path}/node_modules/" --base-path ${contract_path} --overwrite --optimize
abigen --abi "./contracts/ronin/RoninTrustedOrganization.abi" --bin "./contracts/ronin/RoninTrustedOrganization.bin" --pkg "trusted_organization" --out "./generated_contracts/ronin/trusted_organization/ronin_trusted_organization.go"
solc --abi --bin "${contract_path}/contracts/ronin/validator/RoninValidatorSet.sol" -o "./contracts/ronin" --include-path "${contract_path}/node_modules/" --base-path ${contract_path} --overwrite --optimize
abigen --abi "./contracts/ronin/RoninValidatorSet.abi" --bin "./contracts/ronin/RoninValidatorSet.bin" --pkg "validator" --out "./generated_contracts/ronin/validator/ronin_validator.go" --alias _isPeriodEnding=IsPeriodEndingInternal
generate_katana:
abigen --abi "./contracts/katana/KatanaRouter.abi" --pkg "katana" --type KatanaRouter --out "./generated_contracts/ronin/katana/katana_router.go"
abigen --abi "./contracts/katana/KatanaPair.abi" --pkg "katana" --type KatanaPair --out "./generated_contracts/ronin/katana/katana_pair.go"
abigen --abi "./contracts/katana/KatanaRouterV3.abi" --pkg "katana" --type KatanaRouterV3 --out "./generated_contracts/ronin/katana/katana_router_v3.go"
abigen --abi "./contracts/katana/KatanaPairV3.abi" --pkg "katana" --type KatanaPairV3 --out "./generated_contracts/ronin/katana/katana_pair_v3.go"
abigen --abi "./contracts/ronin/WRON.abi" --pkg "wron" --type WRON --out "./generated_contracts/ronin/wron/wron.go"