chore: add new status and type and network token type #20

Merged
mapoofano merged 1 commits from chore-new-asset-status into v2 2025-05-14 12:20:38 +00:00
Showing only changes of commit 90638e1354 - Show all commits

View File

@ -106,13 +106,38 @@ message Asset {
string updated_at = 28; string updated_at = 28;
string created_at = 29; string created_at = 29;
repeated string images = 30; repeated string images = 30;
int32 status = 31; AssetStatus status = 31;
AssetMeta meta = 32; AssetMeta meta = 32;
string type = 33; AssetTokenType token_type = 33;
AssetPrice price = 34; AssetPrice price = 34;
bool is_base_asset = 35; bool is_base_asset = 35;
bool is_locked = 36; bool is_locked = 36;
Commission commission = 37; Commission commission = 37;
AssetType type = 38;
}
enum AssetTokenType {
ASSET_NETWORK_TYPE_UNKNOWN = 0;
ASSET_NETWORK_TYPE_STELLAR_NATIVE = 1;
ASSET_NETWORK_TYPE_STELLAR_ALPHANUMERIC4 = 2;
ASSET_NETWORK_TYPE_STELLAR_ALPHANUMERIC12 = 3;
}
enum AssetStatus {
ASSET_STATUS_UNKNOWN = 0;
ASSET_STATUS_ACTIVE = 1;
ASSET_STATUS_INACTIVE = 2;
ASSET_STATUS_SOON = 3;
ASSET_STATUS_FINISHED = 4;
ASSET_STATUS_EVALUATION = 5;
ASSET_STATUS_SUSPENDED = 6;
}
enum AssetType {
ASSET_TYPE_UNKNOWN = 0;
ASSET_TYPE_PROJECT = 1;
ASSET_TYPE_CURRENCY = 2;
ASSET_TYPE_NETWORK_GAS = 3;
} }
message AssetDiscountReq { message AssetDiscountReq {