-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (72 loc) · 4.21 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-include .env
# Build contracts
build :; forge build
# Run tests
run-tests :; forge test
# Clean build contracts
clean :; forge clean
# Generate coverage stats using lcov and genhtml
# See https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/solidity/coverage.sh
tests-coverage :; ./script/coverage.sh
# Deploys the {InvoiceCollection} peripheral
#
# Update the following configs before running the script:
# - {RELAYER} with the address of the Relayer responsible to mint the invoice NFTs
# - {NAME} with the name of the ERC-721 {InvoiceCollection} contract
# - {SYMBOL} with symbol of the ERC-721 {InvoiceCollection} contract
# - {RPC_URL} with the network RPC used for deployment
deploy-invoice-collection:
forge script script/DeployInvoiceCollection.s.sol:DeployInvoiceCollection \
{RELAYER} {NAME} {SYMBOL} \
--sig "run(address,string,string)" --rpc-url {RPC_URL} --account dev --etherscan-api-key $(ETHERSCAN_API_KEY)
--broadcast --verify
# Deploys the {ModuleKeeper} contract deterministically
# Update the following configs before running the script:
# - {INITIAL_OWNER} with the address of the initial owner
# - {RPC_URL} with the network RPC used for deployment
deploy-deterministic-module-keeper:
forge script script/DeployDeterministicModuleKeeper.s.sol:DeployDeterministicModuleKeeper \
$(CREATE2SALT) {INITIAL_OWNER} \
--sig "run(string,address)" --rpc-url {RPC_URL} \
--account dev --etherscan-api-key $(ETHERSCAN_API_KEY) \
--broadcast --verify
# Deploys the {StationRegistry} contract deterministically
# Update the following configs before running the script:
# - {INITIAL_OWNER} with the address of the initial owner
# - {ENTRYPOINT} with the address of the {Entrypoint} contract (currently v6)
# - {MODULE_KEEPER} with the address of the {ModuleKeeper} deployment
# - {RPC_URL} with the network RPC used for deployment
deploy-deterministic-station-registry:
forge script script/DeployDeterministicStationRegistry.s.sol:DeployDeterministicStationRegistry \
$(CREATE2SALT) {INITIAL_OWNER} {ENTRYPOINT} {MODULE_KEEPER} \
--sig "run(string,address,address,address)" --rpc-url {RPC_URL} \
--account dev --etherscan-api-key $(ETHERSCAN_API_KEY) \
--broadcast --verify --ffi
# Deploys the {PaymentModule} contract deterministically
#
# Update the following configs before running the script:
# - {SABLIER_LOCKUP_LINEAR} with the according {SablierV2LockupLinear} deployment address
# - {SABLIER_LOCKUP_TRANCHED} with the according {SablierV2LockupTranched} deployment address
# - {INITIAL_OWNER} with the address of the initial admin of the {PaymentModule}
# - {BROKER_ACCOUNT} with the address of the account responsible for collecting the broker fees (multisig vault)
# - {RPC_URL} with the network RPC used for deployment
deploy-payment-module:
forge script script/DeployDeterministicPaymentModule.s.sol:DeployDeterministicPaymentModule \
$(CREATE2SALT) {SABLIER_LOCKUP_LINEAR} {SABLIER_LOCKUP_TRANCHED} {INITIAL_OWNER} {BROKER_ACCOUNT} \
--sig "run(string,address,address,address,address)" --rpc-url {RPC_URL} --account dev --etherscan-api-key $(ETHERSCAN_API_KEY)
--broadcast --verify
# Deploys the {PaymentModule} contract deterministically
# Deploys the core contracts deterministically
#
# Update the following configs before running the script:
# - {SABLIER_LOCKUP_LINEAR} with the according {SablierV2LockupLinear} deployment address
# - {SABLIER_LOCKUP_TRANCHED} with the according {SablierV2LockupTranched} deployment address
# - {INITIAL_OWNER} with the address of the initial admin of the {StationRegistry} and {PaymentModule}
# - {BROKER_ACCOUNT} with the address of the account responsible for collecting the broker fees (multisig vault)
# - {ENTRYPOINT} with the address of the {Entrypoint} contract (currently v6)
# - {RPC_URL} with the network RPC used for deployment
deploy-core:
forge script script/DeployDeterministicCore.s.sol:DeployDeterministicCore \
$(CREATE2SALT) {SABLIER_LOCKUP_LINEAR} {SABLIER_LOCKUP_TRANCHED} {INITIAL_OWNER} {BROKER_ACCOUNT} {ENTRYPOINT} \
--sig "run(string,address,address,address,address,address)" --rpc-url {RPC_URL} --account dev \
--broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) --ffi