Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1757d4

Browse files
authored
Merge pull request #40 from flitvious/DOCS-68-sync-RU
DOCS-68: Sync with RU
2 parents 5d5bc05 + 39d9bb7 commit b1757d4

File tree

4 files changed

+101
-14
lines changed

4 files changed

+101
-14
lines changed

source/reference/api2.rst

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ Request
432432
433433
* *key_id*
434434

435-
account id can be specified in any format - ``int64, uint64, XXXX-...-XXXX``. This wallet will be searched for in the ecosystem, which the user is currently logged in.
435+
Account id. Can be specified in any format: ``int64, uint64, XXXX-...-XXXX``. This wallet will be searched for in the ecosystem where the user is currently logged in.
436436

437437

438438
Response
@@ -467,6 +467,66 @@ Errors
467467

468468

469469

470+
keyinfo
471+
-------
472+
473+
**GET**/ Returns a list of ecosystems with roles where the specified key is registered.
474+
475+
This request does not require authorization.
476+
477+
478+
Request
479+
"""""""
480+
481+
.. code-block:: default
482+
483+
GET
484+
/api/v2/keyinfo/{key_id}
485+
486+
487+
* *key_id*
488+
489+
Account identifier. Can be specified in any format: ``int64, uint64, XXXX-...-XXXX``.
490+
491+
The search is performed in all ecosystems.
492+
493+
494+
Response
495+
""""""""
496+
497+
* *ecosystem*
498+
499+
Ecosystem identifier.
500+
501+
* *name*
502+
503+
Ecosystem name.
504+
505+
* *roles*
506+
507+
List of roles in the ecosystem with *id* and *name* fields.
508+
509+
510+
Response example
511+
""""""""""""""""
512+
513+
.. code-block:: default
514+
515+
200 (OK)
516+
Content-Type: application/json
517+
[{
518+
"ecosystem":"1",
519+
"name":"platform ecosystem",
520+
"roles":[{"id":"1","name":"Admin"},{"id":"2","name":"Developer"}]
521+
}]
522+
523+
Errors
524+
""""""
525+
526+
*E_SERVER, E_INVALIDWALLET*
527+
528+
529+
470530
Working with ecosystems
471531
=======================
472532

source/reference/desync_monitor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The file path can be changed using the configPath flag.
6464
nodes_list = ["http://127.0.0.1:7079", "http://127.0.0.1:7002"]
6565
6666
[daemon]
67-
daemon_mode = false
67+
daemon = false
6868
querying_period = 1
6969
7070
[alert_message]

source/topics/script.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,8 +3068,6 @@ UpdateNotifications
30683068

30693069
Obtains a list of notifications for the specified keys from the database, and sends the obtained notifications to Centrifugo.
30703070

3071-
The list of notifications is taken from the blocks that are already processed.
3072-
30733071

30743072
Syntax
30753073
""""""
@@ -3104,8 +3102,6 @@ UpdateRolesNotifications
31043102

31053103
Obtains a list of notifications for all keys with specified role identifiers from the database, and sends the obtained notifications to Centrifugo.
31063104

3107-
The list of notifications is taken from the blocks that are already processed.
3108-
31093105

31103106
Syntax
31113107
""""""
@@ -3515,24 +3511,24 @@ Parameters:
35153511
* *Conditions string "optional"* - rights for contract change.
35163512

35173513

3518-
ActivateContract
3519-
----------------
3514+
BindWallet
3515+
----------
35203516

3521-
Binding of a contract to the account in the current ecosystem. Contracts can be tied only from the account, which was specified when the contract was created. After the contract is tied, this account will pay for execution of this contract.
3517+
Binds a contract to an account in the current ecosystem. Contracts can be bound only from the account that was specified when the contract was created. After the contract is bound to an account, this account will pay for the execution of this contract.
35223518

35233519
Parameters:
35243520

3525-
* *Id int* - ID of the contract to activate.
3521+
* *Id int* - identifier of the contract to bind.
35263522

35273523

3528-
DeactivateContract
3529-
------------------
3524+
UnbindWallet
3525+
------------
35303526

3531-
Unbinds a contract from an account in the current ecosystem. Only the account which the contract is currently bound to can unbind it. After the contract is unbound, its execution will be paid by a user that executes it.
3527+
Unbinds a contract from an account in the current ecosystem. Only the account that is bound to the contract can unbind it. After the contract is unbound, a user that executes the contract will pay for the execution.
35323528

35333529
Parameters:
35343530

3535-
* *Id int* - identifier of the tied contract.
3531+
* *Id int* - identifier of the bound contract.
35363532

35373533

35383534
NewParameter

source/topics/templates2.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Receiving data
257257
:columns: 3
258258

259259
- :ref:`protypo-Address`
260+
- :ref:`protypo-AddressToId`
260261
- :ref:`protypo-AppParam`
261262
- :ref:`protypo-Data`
262263
- :ref:`protypo-DBFind`
@@ -349,6 +350,36 @@ Example
349350
Span(Your wallet: Address(#account#))
350351
351352
353+
.. _protypo-AddressToId:
354+
355+
AddressToId
356+
-----------
357+
358+
Returns the account identifier for the specified account address in the ``1234-5678-...-7990`` format.
359+
360+
Syntax
361+
""""""
362+
363+
.. code-block:: text
364+
365+
AddressToId(Wallet)
366+
367+
368+
.. describe:: AddressToId
369+
370+
.. describe:: Wallet
371+
372+
Account address in the ``XXXX-...-XXXX`` format or as a number.
373+
374+
375+
Example
376+
"""""""
377+
378+
.. code:: js
379+
380+
AddressToId(#wallet#)
381+
382+
352383
353384
.. _protypo-AddToolButton:
354385

0 commit comments

Comments
 (0)