Skip to content

Commit

Permalink
Update message AddAssetQuantity and SubtractAssetQuantity
Browse files Browse the repository at this point in the history
Updated in param's tables

Update docs/source/develop/api/commands.rst

Signed-off-by: dominious1 <[email protected]>
  • Loading branch information
dominious1 authored and Grzegorz Bazior (Yodiss PSA) committed Jan 26, 2024
1 parent 80c0636 commit feaa16d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/develop/api/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Schema
message AddAssetQuantity {
string asset_id = 1;
string amount = 2;
optional string description = 3;
}
.. note::
Expand All @@ -37,6 +38,7 @@ Structure

"Asset ID", "id of the asset", "<asset_name>#<domain_id>", "usd#morgan"
"Amount", "positive amount of the asset to add", "> 0", "200.02"
"Description", "description of the transaction", "Max length of description (set in genesis block, by default is 100*1024)", "Mint assets"

Validation
^^^^^^^^^^
Expand Down Expand Up @@ -793,6 +795,7 @@ Schema
message SubtractAssetQuantity {
string asset_id = 1;
string amount = 2;
optional string description = 3;
}
.. note::
Expand All @@ -808,6 +811,7 @@ Structure

"Asset ID", "id of the asset", "<asset_name>#<domain_id>", "usd#morgan"
"Amount", "positive amount of the asset to subtract", "> 0", "200"
"Description", "description of the transaction", "Max length of description (set in genesis block, by default is 100*1024)", "Burn assets"

Validation
^^^^^^^^^^
Expand Down

0 comments on commit feaa16d

Please sign in to comment.