Skip to content

Commit

Permalink
Merge pull request #34 from zkLinkProtocol/issue-33
Browse files Browse the repository at this point in the history
make items in EthPropertyResp public
  • Loading branch information
zkbenny authored Oct 16, 2023
2 parents 7049974 + 3a8962c commit 7c96aa9
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 7c96aa9

Please sign in to comment.