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

Metadata hips 646 657 765 #319

Merged
11 changes: 11 additions & 0 deletions services/state/token/token.proto
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,15 @@ message Token {
* (Optional) The custom fees of this token.
*/
repeated CustomFee custom_fees = 26;

/**
* Metadata of the created token definition
*/
bytes metadata = 27;

/**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
steven-sheehy marked this conversation as resolved.
Show resolved Hide resolved
*/
Key metadata_key = 28;
}
4 changes: 2 additions & 2 deletions services/token_create.proto
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ message TokenCreateTransactionBody {
Key pause_key = 22;

/**
* Metadata of the created token definition.
*/
* Metadata of the created token definition.
*/
bytes metadata = 23;

/**
Expand Down
11 changes: 11 additions & 0 deletions services/token_get_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ message TokenInfo {
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*/
bytes ledger_id = 26;

/**
* Represents the metadata of the token definition.
*/
bytes metadata = 27;

/**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*/
Key metadata_key = 28;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions services/token_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,7 @@ service TokenService {

// Unpause the token
rpc unpauseToken (Transaction) returns (TransactionResponse);

// Update an NFT
rpc updateNft (Transaction) returns (TransactionResponse);
}
2 changes: 1 addition & 1 deletion services/token_update.proto
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ message TokenUpdateTransactionBody {
/**
* Metadata of the created token definition
*/
google.protobuf.BytesValue metadata = 16;
bytes metadata = 16;
thomas-swirlds-labs marked this conversation as resolved.
Show resolved Hide resolved

/**
* The key which can change the metadata of a token
Expand Down
2 changes: 1 addition & 1 deletion services/token_update_nft.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ message TokenUpdateNftTransactionBody {
/**
* The new metadata of the NFT
*/
google.protobuf.BytesValue metadata = 2;
bytes metadata = 2;
}