@@ -11,6 +11,7 @@ const DEFAULT_ETH_WS_CONNECTION_PORT: u16 = 8545; // same as RPC
11
11
const DEFAULT_ETH_INITIATOR_CONTRACT : & str = "Oxeee" ;
12
12
const DEFAULT_ETH_COUNTERPARTY_CONTRACT : & str = "0xccc" ;
13
13
const DEFAULT_ETH_WETH_CONTRACT : & str = "0xe3e3" ;
14
+ const DEFAULT_ASSET : & str = "MOVE" ;
14
15
15
16
#[ derive( Clone , Debug , Serialize , Deserialize ) ]
16
17
pub struct EthConfig {
@@ -48,6 +49,9 @@ pub struct EthConfig {
48
49
pub gas_limit : u64 ,
49
50
#[ serde( default = "default_transaction_send_retries" ) ]
50
51
pub transaction_send_retries : u32 ,
52
+
53
+ #[ serde( default = "default_asset" ) ]
54
+ pub asset : String ,
51
55
}
52
56
53
57
env_default ! (
@@ -71,6 +75,8 @@ env_default!(
71
75
DEFAULT_ETH_WETH_CONTRACT . to_string( )
72
76
) ;
73
77
78
+ env_default ! ( default_asset, "ASSET" , String , DEFAULT_ASSET . to_string( ) ) ;
79
+
74
80
env_short_default ! ( default_time_lock_secs, u64 , 48 * 60 * 60 as u64 ) ; //48h by default
75
81
76
82
env_short_default ! ( default_gas_limit, u64 , 10_000_000_000_000_000 as u64 ) ;
@@ -182,6 +188,8 @@ impl Default for EthConfig {
182
188
signer_private_key : default_signer_private_key ( ) ,
183
189
gas_limit : default_gas_limit ( ) ,
184
190
transaction_send_retries : default_transaction_send_retries ( ) ,
191
+
192
+ asset : default_asset ( ) ,
185
193
}
186
194
}
187
195
}
0 commit comments