Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AccountAsset protobuf #172

Merged
merged 2 commits into from
Aug 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,37 @@ message Account {
repeated Permission active_permission = 33;
}

/* AccountAsset */
message AccountAsset {

/* frozen balance */
message Frozen {
int64 frozen_balance = 1; // the frozen trx balance
int64 expire_time = 2; // the expire time
}

// the create address
bytes address = 1;

// the other asset owned by this account
map<string, int64> asset = 2;

// the other asset owned by this account,key is assetId
map<string, int64> assetV2 = 3;

bytes asset_issued_name = 4;
bytes asset_issued_ID = 5;

map<string, int64> latest_asset_operation_time = 6;
map<string, int64> latest_asset_operation_timeV2 = 7;

map<string, int64> free_asset_net_usage = 8;
map<string, int64> free_asset_net_usageV2 = 9;

// frozen asset(for asset issuer)
repeated Frozen frozen_supply = 10;
}


message Key {
bytes address = 1;
Expand Down