forked from hyperledger-indy/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Add docs for fees requests #9
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
Open
adenishchenko
wants to merge
4
commits into
Toktar:up-41-set-fees
Choose a base branch
from
adenishchenko:up-41-set-fees
base: up-41-set-fees
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
| * [TRANSACTION_AUTHOR_AGREEMENT_AML](#transaction_author_agreement_AML) | ||
| * [TRANSACTION_AUTHOR_AGREEMENT_DISABLE](#transaction_author_agreement_disable) | ||
| * [LEDGERS_FREEZE](#ledgers_freeze) | ||
| * [SET_FEES](#set_fees) | ||
|
|
||
|
|
||
| * [Read Requests](#read-requests) | ||
|
|
@@ -45,6 +46,8 @@ | |
| * [GET_RICH_SCHEMA](#get_rich_schema) | ||
| * [GET_TXN](#get_txn) | ||
| * [GET_FROZEN_LEDGERS](#get_frozen_ledgers) | ||
| * [GET_FEES](#get_fees) | ||
| * [GET_FEE](#get_fee) | ||
|
|
||
| * [Action Requests](#action-requests) | ||
|
|
||
|
|
@@ -3014,6 +3017,31 @@ The request has static and dynamic validations. Static validation checks to avoi | |
| } | ||
| ``` | ||
|
|
||
| ## SET_FEES | ||
|
|
||
| Set fees value. Fees have follow structure: | ||
|
|
||
| ``` | ||
| "fees": { | ||
| <str: feesAlias>: <int: amount>, | ||
| } | ||
| ``` | ||
|
|
||
| *Transaction Example*: | ||
| ``` | ||
| { | ||
| "reqId": 1527801087197612, | ||
| "protocolVersion": 1, | ||
| "operation": { | ||
| "type": "20000", | ||
| "fees": { | ||
| "1": 4, | ||
| "10001": 8 | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Read Requests | ||
|
|
||
| ### GET_NYM | ||
|
|
@@ -4307,6 +4335,108 @@ Get whole list of frozen ledgers. Reply has follow state format data: | |
| } | ||
| ``` | ||
|
|
||
| ## GET_FEES | ||
|
|
||
| Get whole list of fees. Reply has follow state format data: | ||
|
|
||
| ``` | ||
| "fees": | ||
| { | ||
| <str: feesAlias>: <int: amount>, | ||
| }, | ||
| ``` | ||
|
|
||
| *Request Example*: | ||
| ``` | ||
| { | ||
| "identifier": "6ouriXMZkLeHsuXrN1X1fd", | ||
| "reqId": 47660, | ||
| "protocolVersion": 1, | ||
| "operation": { | ||
| "type": "20001" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| *Reply Example*: | ||
| ``` | ||
| { | ||
| "op": "REPLY", | ||
| "result": | ||
| { | ||
| "identifier": "6ouriXMZkLeHsuXrN1X1fd", | ||
| "reqId": 10378, | ||
| "type": "20001", | ||
| "fees": | ||
| { | ||
| "1": 4, | ||
| "10001": 8 | ||
| }, | ||
| "state_proof": | ||
| { | ||
| "multi_signature":{ | ||
| "value":{ | ||
| "pool_state_root_hash":"4bCEk76QsB6p3yCiDntMedpeZmiQtdH9NRpcFyvaLHhc", | ||
| "state_root_hash":"HUv35b31eqncHZ1R8xMQW9pJnCBqAaUVrfCA8AeTtx6u", | ||
| "timestamp":1613736202, | ||
| "ledger_id":2, | ||
| "txn_root_hash":"BY6PV9SrV1dgQgxy2kpeTLESQfazTYoLdLZfjzVmcLeV" | ||
| }, | ||
| "signature":"R8FRHVg51YiY5nS8Hh8iXNa1ZPKjrQMmurnrGek2A7QMKq79Pws4DLhgcVgf66PSJGEPjmyASYxFziEnubY1RFHQiE7ZToLZqW4oJt11hhL1XgXwrdswyqTQjuyxx5nzjyE4AzyTvs3BywD54s3w3mUhLG3QWwBp1uTX8agLEKZDkK", | ||
| "participants":[ | ||
| "Gamma", | ||
| "Delta", | ||
| "Beta" | ||
| ] | ||
| }, | ||
| "proof_nodes": "29qFIGZlZXOT0pF7IjEiOjQsIjEwMDAxIjo4fQ==", | ||
| "root_hash": "5BU5Rc3sRtTJB6tVprGiTSqiRaa9o6ei11MjH4Vu16ms" | ||
| }, | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## GET_FEE | ||
|
|
||
| Get a fee value by a fee alias: | ||
|
|
||
| ``` | ||
| "fee": <int: amount> | ||
| ``` | ||
|
|
||
| *Request Example*: | ||
| ``` | ||
| { | ||
| "identifier": "6ouriXMZkLeHsuXrN1X1fd", | ||
| "reqId": 47660, | ||
| "protocolVersion": 1, | ||
| "operation": { | ||
| "type": "20001", | ||
| "alias": "nym_fees" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| *Reply Example*: | ||
| ``` | ||
| { | ||
| "op": "REPLY", | ||
| "result": | ||
| { | ||
| "identifier": "6ouriXMZkLeHsuXrN1X1fd", | ||
| "reqId": 10378, | ||
| "type": "20001", | ||
| "fee": 10, | ||
| "state_proof": | ||
| { | ||
| "multi_signature": {//TODO add valid json string in here}, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, replace "TODO" with |
||
| "proof_nodes": "29qFIGZlZXOT0pF7IjEiOjQsIjEwMDAxIjo4fQ==", | ||
| "root_hash": "5BU5Rc3sRtTJB6tVprGiTSqiRaa9o6ei11MjH4Vu16ms" | ||
| }, | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Action Requests | ||
|
|
||
| ### POOL_RESTART | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a response example?