@@ -16,7 +16,7 @@ use tap_core::{
1616 signed_message:: EIP712SignedMessage ,
1717 tap_eip712_domain,
1818} ;
19- use thegraph_core:: DeploymentId ;
19+ use thegraph_core:: { deployment_id , DeploymentId } ;
2020use tokio:: sync:: Notify ;
2121use typed_builder:: TypedBuilder ;
2222
@@ -110,31 +110,31 @@ pub const ESCROW_QUERY_RESPONSE: &str = r#"
110110"# ;
111111
112112lazy_static ! {
113- pub static ref NETWORK_SUBGRAPH_DEPLOYMENT : DeploymentId = DeploymentId :: from_str ( "QmU7zqJyHSyUP3yFii8sBtHT8FaJn2WmUnRvwjAUTjwMBP" ) . unwrap ( ) ;
114- pub static ref ESCROW_SUBGRAPH_DEPLOYMENT : DeploymentId = DeploymentId :: from_str ( "Qmb5Ysp5oCUXhLA8NmxmYKDAX2nCMnh7Vvb5uffb9n5vss" ) . unwrap ( ) ;
113+ pub static ref NETWORK_SUBGRAPH_DEPLOYMENT : DeploymentId = deployment_id! ( "QmU7zqJyHSyUP3yFii8sBtHT8FaJn2WmUnRvwjAUTjwMBP" ) ;
114+ pub static ref ESCROW_SUBGRAPH_DEPLOYMENT : DeploymentId = deployment_id! ( "Qmb5Ysp5oCUXhLA8NmxmYKDAX2nCMnh7Vvb5uffb9n5vss" ) ;
115115
116116 pub static ref INDEXER_MNEMONIC : Mnemonic = Mnemonic :: from_str(
117117 "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" ,
118118 ) . unwrap( ) ;
119119
120120 pub static ref INDEXER_ADDRESS : Address =
121- Address :: from_str ( "0xd75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) . unwrap ( ) ;
121+ address! ( "d75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) ;
122122
123123 pub static ref DISPUTE_MANAGER_ADDRESS : Address =
124- Address :: from_str ( "0xdeadbeefcafebabedeadbeefcafebabedeadbeef" ) . unwrap ( ) ;
124+ address! ( "deadbeefcafebabedeadbeefcafebabedeadbeef" ) ;
125125
126126
127127 pub static ref ALLOCATION_ID_0 : Address =
128- Address :: from_str ( "0xfa44c72b753a66591f241c7dc04e8178c30e13af" ) . unwrap ( ) ;
128+ address! ( "fa44c72b753a66591f241c7dc04e8178c30e13af" ) ;
129129
130130 pub static ref ALLOCATION_ID_1 : Address =
131- Address :: from_str ( "0xdd975e30aafebb143e54d215db8a3e8fd916a701" ) . unwrap ( ) ;
131+ address! ( "dd975e30aafebb143e54d215db8a3e8fd916a701" ) ;
132132
133133 pub static ref ALLOCATION_ID_2 : Address =
134- Address :: from_str ( "0xa171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" ) . unwrap ( ) ;
134+ address! ( "a171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" ) ;
135135
136136 pub static ref ALLOCATION_ID_3 : Address =
137- Address :: from_str ( "0x69f961358846fdb64b04e1fd7b2701237c13cd9a" ) . unwrap ( ) ;
137+ address! ( "69f961358846fdb64b04e1fd7b2701237c13cd9a" ) ;
138138
139139
140140
@@ -145,7 +145,7 @@ lazy_static! {
145145 * ALLOCATION_ID_0 ,
146146 Allocation {
147147 id: * ALLOCATION_ID_0 ,
148- indexer: Address :: from_str ( "0xd75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) . unwrap ( ) ,
148+ indexer: address! ( "d75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) ,
149149 allocated_tokens: U256 :: from_str( "5081382841000000014901161" ) . unwrap( ) ,
150150 created_at_block_hash:
151151 "0x99d3fbdc0105f7ccc0cd5bb287b82657fe92db4ea8fb58242dafb90b1c6e2adf" . to_string( ) ,
@@ -169,7 +169,7 @@ lazy_static! {
169169 * ALLOCATION_ID_1 ,
170170 Allocation {
171171 id: * ALLOCATION_ID_1 ,
172- indexer: Address :: from_str ( "0xd75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) . unwrap ( ) ,
172+ indexer: address! ( "d75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) ,
173173 allocated_tokens: U256 :: from_str( "601726452999999979510903" ) . unwrap( ) ,
174174 created_at_block_hash:
175175 "0x99d3fbdc0105f7ccc0cd5bb287b82657fe92db4ea8fb58242dafb90b1c6e2adf" . to_string( ) ,
@@ -193,7 +193,7 @@ lazy_static! {
193193 * ALLOCATION_ID_2 ,
194194 Allocation {
195195 id: * ALLOCATION_ID_2 ,
196- indexer: Address :: from_str ( "0xd75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) . unwrap ( ) ,
196+ indexer: address! ( "d75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) ,
197197 allocated_tokens: U256 :: from_str( "5247998688000000081956387" ) . unwrap( ) ,
198198 created_at_block_hash:
199199 "0x6e7b7100c37f659236a029f87ce18914643995120f55ab5d01631f11f40fd887" . to_string( ) ,
@@ -217,7 +217,7 @@ lazy_static! {
217217 * ALLOCATION_ID_3 ,
218218 Allocation {
219219 id: * ALLOCATION_ID_3 ,
220- indexer: Address :: from_str ( "0xd75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) . unwrap ( ) ,
220+ indexer: address! ( "d75c4dbcb215a6cf9097cfbcc70aab2596b96a9c" ) ,
221221 allocated_tokens: U256 :: from_str( "2502334654999999795109034" ) . unwrap( ) ,
222222 created_at_block_hash:
223223 "0x6e7b7100c37f659236a029f87ce18914643995120f55ab5d01631f11f40fd887" . to_string( ) ,
@@ -240,43 +240,43 @@ lazy_static! {
240240 ] ) ;
241241
242242 pub static ref ESCROW_ACCOUNTS_BALANCES : HashMap <Address , U256 > = HashMap :: from( [
243- ( Address :: from_str ( "0x9858EfFD232B4033E47d90003D41EC34EcaEda94" ) . unwrap ( ) , U256 :: from( 24 ) ) , // TAP_SENDER
244- ( Address :: from_str ( "0x22d491bde2303f2f43325b2108d26f1eaba1e32b" ) . unwrap ( ) , U256 :: from( 42 ) ) ,
245- ( Address :: from_str ( "0x192c3B6e0184Fa0Cc5B9D2bDDEb6B79Fb216a002" ) . unwrap ( ) , U256 :: from( 2975 ) ) ,
243+ ( address! ( "9858EfFD232B4033E47d90003D41EC34EcaEda94" ) , U256 :: from( 24 ) ) , // TAP_SENDER
244+ ( address! ( "22d491bde2303f2f43325b2108d26f1eaba1e32b" ) , U256 :: from( 42 ) ) ,
245+ ( address! ( "192c3B6e0184Fa0Cc5B9D2bDDEb6B79Fb216a002" ) , U256 :: from( 2975 ) ) ,
246246 ] ) ;
247247
248248
249249 /// Maps signers back to their senders
250250 pub static ref ESCROW_ACCOUNTS_SIGNERS_TO_SENDERS : HashMap <Address , Address > = HashMap :: from( [
251251 (
252- Address :: from_str ( "0x533661F0fb14d2E8B26223C86a610Dd7D2260892" ) . unwrap ( ) , // TAP_SIGNER
253- Address :: from_str ( "0x9858EfFD232B4033E47d90003D41EC34EcaEda94" ) . unwrap ( ) , // TAP_SENDER
252+ address! ( "533661F0fb14d2E8B26223C86a610Dd7D2260892" ) , // TAP_SIGNER
253+ address! ( "9858EfFD232B4033E47d90003D41EC34EcaEda94" ) , // TAP_SENDER
254254 ) ,
255255 (
256- Address :: from_str ( "0x2740f6fA9188cF53ffB6729DDD21575721dE92ce" ) . unwrap ( ) ,
257- Address :: from_str ( "0x9858EfFD232B4033E47d90003D41EC34EcaEda94" ) . unwrap ( ) , // TAP_SENDER
256+ address! ( "2740f6fA9188cF53ffB6729DDD21575721dE92ce" ) ,
257+ address! ( "9858EfFD232B4033E47d90003D41EC34EcaEda94" ) , // TAP_SENDER
258258 ) ,
259259 (
260- Address :: from_str ( "0x245059163ff6ee14279aa7b35ea8f0fdb967df6e" ) . unwrap ( ) ,
261- Address :: from_str ( "0x22d491bde2303f2f43325b2108d26f1eaba1e32b" ) . unwrap ( ) ,
260+ address! ( "245059163ff6ee14279aa7b35ea8f0fdb967df6e" ) ,
261+ address! ( "22d491bde2303f2f43325b2108d26f1eaba1e32b" ) ,
262262 ) ,
263263 ] ) ;
264264
265265
266266 pub static ref ESCROW_ACCOUNTS_SENDERS_TO_SIGNERS : HashMap <Address , Vec <Address >> = HashMap :: from( [
267267 (
268- Address :: from_str ( "0x9858EfFD232B4033E47d90003D41EC34EcaEda94" ) . unwrap ( ) , // TAP_SENDER
268+ address! ( "9858EfFD232B4033E47d90003D41EC34EcaEda94" ) , // TAP_SENDER
269269 vec![
270- Address :: from_str ( "0x533661F0fb14d2E8B26223C86a610Dd7D2260892" ) . unwrap ( ) , // TAP_SIGNER
271- Address :: from_str ( "0x2740f6fA9188cF53ffB6729DDD21575721dE92ce" ) . unwrap ( ) ,
270+ address! ( "533661F0fb14d2E8B26223C86a610Dd7D2260892" ) , // TAP_SIGNER
271+ address! ( "2740f6fA9188cF53ffB6729DDD21575721dE92ce" ) ,
272272 ] ,
273273 ) ,
274274 (
275- Address :: from_str ( "0x22d491bde2303f2f43325b2108d26f1eaba1e32b" ) . unwrap ( ) ,
276- vec![ Address :: from_str ( "0x245059163ff6ee14279aa7b35ea8f0fdb967df6e" ) . unwrap ( ) ] ,
275+ address! ( "22d491bde2303f2f43325b2108d26f1eaba1e32b" ) ,
276+ vec![ address! ( "245059163ff6ee14279aa7b35ea8f0fdb967df6e" ) ] ,
277277 ) ,
278278 (
279- Address :: from_str ( "0x192c3B6e0184Fa0Cc5B9D2bDDEb6B79Fb216a002" ) . unwrap ( ) ,
279+ address! ( "192c3B6e0184Fa0Cc5B9D2bDDEb6B79Fb216a002" ) ,
280280 vec![ ] ,
281281 ) ,
282282 ] ) ;
@@ -317,7 +317,7 @@ lazy_static! {
317317
318318use std:: time:: { SystemTime , UNIX_EPOCH } ;
319319
320- use alloy:: primitives:: Address ;
320+ use alloy:: primitives:: { address , Address } ;
321321
322322#[ derive( TypedBuilder ) ]
323323pub struct SignedReceiptRequest {
0 commit comments