Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

UP-42: Add API calls for frozen ledgers #2356

Merged
merged 12 commits into from
Feb 8, 2021

Conversation

adenishchenko
Copy link
Contributor

Signed-off-by: Anton Denishchenko [email protected]

adenishchenko and others added 5 commits January 22, 2021 02:43
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
@askolesov
Copy link

(ci) test this please

Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
Copy link
Contributor

@Toktar Toktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add

  • checks for the integration test for GET_FROZEN_LEDGERS
  • unit tests to services/ledger/mod.rs
  • unit tests to ledger service, cli(optional), wrappers(optional) for LEDGERS_FREEZE with sending
    -- an empty list of ledgers ids
    -- a list of ledgers ids in a string format
    -- request without ledgers' list
    -- request with None ledgers' list
  • test for GET_FROZEN_LEDGERS with getting empty map

cli/src/commands/ledger.rs Outdated Show resolved Hide resolved
cli/src/commands/ledger.rs Outdated Show resolved Hide resolved
cli/src/commands/ledger.rs Outdated Show resolved Hide resolved
Comment on lines 2100 to 2101
let key = kv.0;
let value = kv.1;
Copy link
Contributor

@Toktar Toktar Feb 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please rename them to ledger_id and ledger_info?
The next variable ledger_id can be renamed to json_ledger_id.

cli/src/commands/ledger.rs Outdated Show resolved Hide resolved
cli/src/commands/ledger.rs Outdated Show resolved Hide resolved
libindy/src/api/ledger.rs Outdated Show resolved Hide resolved
libindy/src/api/ledger.rs Show resolved Hide resolved
libindy/src/domain/ledger/ledgers_freeze.rs Outdated Show resolved Hide resolved
wrappers/rust/src/ledger.rs Outdated Show resolved Hide resolved
wrappers/python/indy/ledger.py Outdated Show resolved Hide resolved
@Toktar Toktar changed the title WIP: Add API calls for frozen ledgers [WIP] [UP-42] Add API calls for frozen ledgers Feb 1, 2021
@Toktar Toktar changed the title [WIP] [UP-42] Add API calls for frozen ledgers UP-42: Add API calls for frozen ledgers Feb 1, 2021
Signed-off-by: Anton Denishchenko <[email protected]>
Signed-off-by: Anton Denishchenko <[email protected]>
wrappers/rust/src/ledger.rs Outdated Show resolved Hide resolved
libindy/include/indy_ledger.h Show resolved Hide resolved
Signed-off-by: Anton Denishchenko <[email protected]>
@Toktar Toktar merged commit 8c669cf into hyperledger-archives:master Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants