Return address in the api
@@ -50,17 +50,21 @@ pub trait Rpc {
#[rpc(name = "tokens", returns = "Token")]
fn tokens(&self) -> FutureResp<HashMap<String, Token>>;
+ // _address argument is left for the backward compatibility.
#[rpc(name = "get_tx_fee", returns = "Fee")]
fn get_tx_fee(
&self,
tx_type: TxFeeTypes,
+ _address: Address,
token_like: TokenLike,
) -> FutureResp<Fee>;
+ // _addresses argument is left for the backward compatibility.
#[rpc(name = "get_txs_batch_fee_in_wei", returns = "BatchFee")]
fn get_txs_batch_fee_in_wei(
&self,
tx_types: Vec<TxFeeTypes>,
+ _addresses: Vec<Address>,
token_like: TokenLike,
) -> FutureResp<BatchFee>;
@@ -151,6 +155,7 @@ impl Rpc for RpcApp {
fn get_tx_fee(
&self,
tx_type: TxFeeTypes,
+ _address: Address,
token_like: TokenLike,
) -> FutureResp<Fee> {
let handle = self.runtime_handle.clone();
@@ -167,6 +172,7 @@ impl Rpc for RpcApp {
fn get_txs_batch_fee_in_wei(
&self,
tx_types: Vec<TxFeeTypes>,
+ _addresses: Vec<Address>,
token_like: TokenLike,
) -> FutureResp<BatchFee> {
let handle = self.runtime_handle.clone();
