From 573d86537d49d206fba2dfcccb00891a127dac70 Mon Sep 17 00:00:00 2001 From: Fred Date: Sat, 23 Dec 2023 10:00:48 +0800 Subject: [PATCH] update interface name --- provider/src/rpc_client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provider/src/rpc_client.rs b/provider/src/rpc_client.rs index d536838a..6f4e18e6 100644 --- a/provider/src/rpc_client.rs +++ b/provider/src/rpc_client.rs @@ -170,7 +170,7 @@ impl RpcClient { Ok(resp) } - pub async fn account_snapshot( + pub async fn get_account_snapshot( &self, account_query: AccountQuery, sub_account_id: Option, @@ -187,7 +187,7 @@ impl RpcClient { Ok(resp) } - pub async fn tx_info(&self, hash: TxHash, include_update: bool) -> RpcResult { + pub async fn get_tx_info(&self, hash: TxHash, include_update: bool) -> RpcResult { let method = "getTransactionByHash"; let resp = self .inner @@ -196,7 +196,7 @@ impl RpcClient { Ok(resp) } - pub async fn tx_history( + pub async fn get_account_tx_history( &self, tx_type: ZkLinkTxType, address: ZkLinkAddress, @@ -211,7 +211,7 @@ impl RpcClient { Ok(resp) } - pub async fn tx_withdraw( + pub async fn get_withdraw_txs( &self, last_tx_timestamp_micro: u64, max_txs: u32,