Skip to content

Commit

Permalink
make items in EthPropertyResp public
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred0327 committed Oct 16, 2023
1 parent 7049974 commit 3a8962c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions provider/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,24 +285,24 @@ pub struct ZkLinkTxHistory {
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct EthPropertyResp {
gateways: Vec<GateWayInfo>,
pub gateways: Vec<GateWayInfo>,
}

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct GateWayInfo {
chain_id: ChainId,
l1_gateway_contract: ZkLinkAddress,
l2_gateway_contract: ZkLinkAddress,
tokens: Vec<TokenInfo>,
pub chain_id: ChainId,
pub l1_gateway_contract: ZkLinkAddress,
pub l2_gateway_contract: ZkLinkAddress,
pub tokens: Vec<TokenInfo>,
}

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct TokenInfo {
token_id: TokenId,
token_address: ZkLinkAddress,
decimal: u8,
pub token_id: TokenId,
pub token_address: ZkLinkAddress,
pub decimal: u8,
}

#[cfg(test)]
Expand Down

0 comments on commit 3a8962c

Please sign in to comment.