V2: updating to new proto schema. domain seperated packages #36

Merged
nfel merged 327 commits from v2 into dev 2026-07-21 10:59:54 +00:00
2 changed files with 15 additions and 2 deletions
Showing only changes of commit f523644804 - Show all commits
+13 -2
View File
@@ -79,7 +79,6 @@ message Asset {
AssetPrice price = 34;
}
message AssetPrice {
string updated_at = 1;
double market_price = 2;
@@ -479,9 +478,21 @@ message Commission {
string created_at = 11;
}
message LockAssetReq{
message LockAssetReq {
int64 asset_id = 1;
double amount = 2;
auth.v1.InternalIAM iam = 3;
optional auth.v1.TFA tfa = 4; // if request is not internal
}
message AssetDiscountReq {
string code = 1;
string asset_id = 2;
}
message AssetDiscountRes {
string code = 1;
string expires_at = 2;
double static_amount = 3;
double percentage = 4;
}
+2
View File
@@ -50,4 +50,6 @@ service WalletService {
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
rpc AssetDiscount(AssetDiscountReq) returns (AssetDiscountRes);
}