@@ -5,7 +5,7 @@ from utils import get_json_field
55
66module near_module :
77 snakefile : "near.smk"
8- use rule * from near_module as near_ *
8+ use rule * from near_module
99
1010EVM_NETWORKS = [network for network in EN ]
1111
@@ -48,15 +48,15 @@ def get_full_path(file_name):
4848
4949
5050# Rule to deploy all networks
51- rule deploy_all :
51+ rule evm_deploy_all :
5252 input :
5353 f"{ get_evm_deploy_results_dir (EN .ETH_SEPOLIA )} /{ network_deployed_stamp } " ,
5454 f"{ get_evm_deploy_results_dir (EN .ARBITRUM_SEPOLIA )} /{ network_deployed_stamp } " ,
5555 f"{ get_evm_deploy_results_dir (EN .BASE_SEPOLIA )} /{ network_deployed_stamp } " ,
5656 default_target : True
5757
5858
59- rule build :
59+ rule evm_build :
6060 message : "Building EVM contracts"
6161 output : evm_build_stamp
6262 shell : f"""
@@ -67,7 +67,7 @@ rule build:
6767 touch {{output}}
6868 """
6969
70- rule create_eoa_account :
70+ rule evm_create_eoa_account :
7171 message : "Creating EOA account"
7272 output : pathlib .Path (get_evm_account_dir ("{network}" )) / "{account}.json"
7373 params :
@@ -78,7 +78,7 @@ rule create_eoa_account:
7878 {params.create_cmd} 2>/dev/stderr 1> {output}
7979 """
8080
81- rule deploy_fake_prover :
81+ rule evm_deploy_fake_prover :
8282 message : "Deploying fake prover to {wildcards.network}"
8383 input :
8484 build_stamp = evm_build_stamp
@@ -92,10 +92,10 @@ rule deploy_fake_prover:
9292 """
9393
9494
95- rule create_enear_creation_file :
95+ rule evm_create_enear_creation_file :
9696 message : "Creating eNear creation file for {wildcards.network}"
9797 input :
98- fake_prover = rules .deploy_fake_prover .output ,
98+ fake_prover = rules .evm_deploy_fake_prover .output ,
9999 template = evm_enear_creation_template_file
100100 output : get_full_path (enear_creation_file )
101101 params :
@@ -107,7 +107,7 @@ rule create_enear_creation_file:
107107 """
108108
109109
110- rule deploy_enear :
110+ rule evm_deploy_enear :
111111 message : "Deploying eNear to {wildcards.network}"
112112 input :
113113 creation_file = get_full_path (enear_creation_file ),
@@ -122,11 +122,11 @@ rule deploy_enear:
122122 """
123123
124124
125- rule deploy_enear_proxy :
125+ rule evm_deploy_enear_proxy :
126126 message : "Deploying eNear proxy to {wildcards.network}"
127127 input :
128- rules .build .output ,
129- enear = rules .deploy_enear .output
128+ rules .evm_build .output ,
129+ enear = rules .evm_deploy_enear .output
130130 output : get_full_path (f"{ EC .ENEAR_PROXY } .json" )
131131 params :
132132 mkdir = get_mkdir_cmd ,
@@ -137,10 +137,10 @@ rule deploy_enear_proxy:
137137 """
138138
139139
140- rule deploy_token_impl :
140+ rule evm_deploy_token_impl :
141141 message : "Deploying token implementation to {wildcards.network}"
142142 input :
143- rules .build .output
143+ rules .evm_build .output
144144 output : get_full_path (f"{ EC .TOKEN_IMPL } .json" )
145145 params :
146146 mkdir = get_mkdir_cmd ,
@@ -151,11 +151,11 @@ rule deploy_token_impl:
151151 """
152152
153153
154- rule deploy_bridge :
154+ rule evm_deploy_bridge :
155155 message : "Deploying bridge contract to {wildcards.network}"
156156 input :
157- rules .build .output ,
158- token_impl = rules .deploy_token_impl .output ,
157+ rules .evm_build .output ,
158+ token_impl = rules .evm_deploy_token_impl .output ,
159159 near_bridge_file = near_bridge_file ,
160160 output : get_full_path (f"{ EC .OMNI_BRIDGE } .json" )
161161 params :
@@ -169,7 +169,7 @@ rule deploy_bridge:
169169 """
170170
171171
172- rule deploy_test_token :
172+ rule evm_deploy_test_token :
173173 message : "Deploying test token to {wildcards.network}"
174174 input :
175175 const .common_tools_compile_stamp
@@ -186,12 +186,12 @@ rule deploy_test_token:
186186
187187
188188# Aggregate rules for each network
189- rule deploy_to_network :
189+ rule evm_deploy_to_network :
190190 message : "Deploying network {wildcards.network}"
191191 input :
192- bridge = rules .deploy_bridge .output ,
193- enear_proxy = rules .deploy_enear_proxy .output ,
194- test_token = rules .deploy_test_token .output
192+ bridge = rules .evm_deploy_bridge .output ,
193+ enear_proxy = rules .evm_deploy_enear_proxy .output ,
194+ test_token = rules .evm_deploy_test_token .output
195195 output :
196196 touch (f"{ const .evm_deploy_results_dir } /{{network}}/{ network_deployed_stamp } " )
197197 params :
0 commit comments