git.delta.rocks / unique-network / refs/commits / 77688fbffa89

difftreelog

source

Makefile2.8 KiBsourcehistory
1.PHONY: _help2_help:3	@echo "regenerate_solidity - generate stubs/interfaces for contracts defined in native (via evm-coder)"4	@echo "evm_stubs - recompile contract stubs"5	@echo "bench - run frame-benchmarking"6	@echo "  bench-evm-migration"7	@echo "  bench-unique"89.PHONY: regenerate_solidity10regenerate_solidity:11	PACKAGE=pallet-fungible NAME=erc::gen_iface OUTPUT=./tests/src/eth/api/UniqueFungible.sol ./.maintain/scripts/generate_api.sh12	PACKAGE=pallet-nonfungible NAME=erc::gen_iface OUTPUT=./tests/src/eth/api/UniqueNFT.sol ./.maintain/scripts/generate_api.sh13	PACKAGE=pallet-evm-contract-helpers NAME=eth::contract_helpers_iface OUTPUT=./tests/src/eth/api/ContractHelpers.sol ./.maintain/scripts/generate_api.sh1415	PACKAGE=pallet-fungible NAME=erc::gen_impl OUTPUT=./pallets/fungible/src/stubs/UniqueFungible.sol ./.maintain/scripts/generate_api.sh16	PACKAGE=pallet-nonfungible NAME=erc::gen_impl OUTPUT=./pallets/nonfungible/src/stubs/UniqueNFT.sol ./.maintain/scripts/generate_api.sh17	PACKAGE=pallet-evm-contract-helpers NAME=eth::contract_helpers_impl OUTPUT=./pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol ./.maintain/scripts/generate_api.sh1819FUNGIBLE_EVM_STUBS=./pallets/fungible/src/stubs20NONFUNGIBLE_EVM_STUBS=./pallets/nonfungible/src/stubs21CONTRACT_HELPERS_STUBS=./pallets/evm-contract-helpers/src/stubs/2223$(FUNGIBLE_EVM_STUBS)/UniqueFungible.raw: $(FUNGIBLE_EVM_STUBS)/UniqueFungible.sol24	INPUT=$< OUTPUT=$@ ./.maintain/scripts/compile_stub.sh25$(NONFUNGIBLE_EVM_STUBS)/UniqueNFT.raw: $(NONFUNGIBLE_EVM_STUBS)/UniqueNFT.sol26	INPUT=$< OUTPUT=$@ ./.maintain/scripts/compile_stub.sh27$(CONTRACT_HELPERS_STUBS)/ContractHelpers.raw: $(CONTRACT_HELPERS_STUBS)/ContractHelpers.sol28	INPUT=$< OUTPUT=$@ ./.maintain/scripts/compile_stub.sh2930evm_stubs: $(FUNGIBLE_EVM_STUBS)/UniqueFungible.raw $(NONFUNGIBLE_EVM_STUBS)/UniqueNFT.raw $(CONTRACT_HELPERS_STUBS)/ContractHelpers.raw3132.PHONY: _bench33_bench:34	cargo run --release --features runtime-benchmarks,unique-runtime -- \35	benchmark pallet --pallet pallet-$(PALLET) \36	--wasm-execution compiled --extrinsic '*' \37	--template .maintain/frame-weight-template.hbs --steps=50 --repeat=200 --heap-pages=4096 \38	--output=./pallets/$(PALLET)/src/weights.rs3940.PHONY: bench-evm-migration41bench-evm-migration:42	make _bench PALLET=evm-migration4344.PHONY: bench-common45bench-common:46	make _bench PALLET=common4748.PHONY: bench-unique49bench-unique:50	make _bench PALLET=unique5152.PHONY: bench-fungible53bench-fungible:54	make _bench PALLET=fungible5556.PHONY: bench-refungible57bench-refungible:58	make _bench PALLET=refungible5960.PHONY: bench-nonfungible61bench-nonfungible:62	make _bench PALLET=nonfungible6364.PHONY: bench-structure65bench-structure:66	make _bench PALLET=structure6768.PHONY: bench69bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible