From 0ab540e9c0facd42d1db17bfe6180678bd48856c Mon Sep 17 00:00:00 2001 From: nfel Date: Mon, 23 Dec 2024 17:41:45 +0330 Subject: [PATCH] issue: /#11 network list added Signed-off-by: nfel --- wallet/v1/msg.proto | 28 ++++++++++++++++++++++++++++ wallet/v1/srv.proto | 2 ++ 2 files changed, 30 insertions(+) diff --git a/wallet/v1/msg.proto b/wallet/v1/msg.proto index f800d8e..5cef4f4 100644 --- a/wallet/v1/msg.proto +++ b/wallet/v1/msg.proto @@ -396,3 +396,31 @@ message GetPublicKeyByNationalIDReq { message GetPublicKeyByNationalIDRes { string pub_key = 1; } + +/* + Network Details +*/ +enum NetworkType { + UNKNOWN_NETWORK_TYPE = 0; + ETH = 1; + XLM = 2; + BTC = 3; +} + +message Network { + int64 id = 1; + string name = 2; + string code = 3; + string explorer = 4; + int64 gas_asset_id = 5; + string description = 6; + NetworkType type = 7; + bool is_active = 8; + + string updated_at = 9; + string created_at = 10; +} + +message NetworkList { + repeated Network list = 1; +} diff --git a/wallet/v1/srv.proto b/wallet/v1/srv.proto index acc11e1..4d36ee2 100644 --- a/wallet/v1/srv.proto +++ b/wallet/v1/srv.proto @@ -13,6 +13,8 @@ service WalletService { rpc AdminGetFederation(GetFederationReq) returns (Federation); rpc UserGetFederation(auth.v1.InternalIAM) returns (Federation); + rpc GetNetworkList(base.v1.Empty) returns (NetworkList); + rpc UserGetAssetList(base.v1.Empty) returns (AssetList); rpc AdminGetAssetList(base.v1.Empty) returns (AssetList); rpc GetAsset(GetAssetReq) returns (Asset);