MarketPlace: lock and freeze asset added

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-02-23 13:37:27 +03:30
parent b774a4602d
commit 37363534c6
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
2 changed files with 10 additions and 0 deletions

View File

@ -470,3 +470,10 @@ message Commission {
string updated_at = 10;
string created_at = 11;
}
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
}

View File

@ -46,4 +46,7 @@ service WalletService {
// Assets routing
rpc InternalTransferAsset(TransferAssetReq) returns (TransferAssetRes);
rpc ExternalTransferAsset(TransferAssetReq) returns (TransferAssetRes);
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
}