Skip to content
Snippets Groups Projects
  1. Sep 08, 2020
    • Moul's avatar
      [feat] #88: Add membership command · 8d661407
      Moul authored
      - #314: dry-run option
      8d661407
    • Moul's avatar
      [enh] #140: wot: Add choose_identity() · 6abc9dcd
      Moul authored
      to choose identity among identities from wot/lookup
      Display the uid, pubkey and the blockstamp to choose
      Add tests on choose_identity()
      
      Delete get_information_for_identity() based on top of the lookup
      
      Allow to pass pubkey to the following commands:
      The uid was the only identifier before
      Adapt 'wot' and 'cert' commands to choose_identity()
      
      Import silkaj.wot and click directly
      Import directly bma otherwise there is a namespace conflict on 'wot'
      on silkaj.wot and bma.wot
      6abc9dcd
  2. Jul 07, 2020
  3. Jun 05, 2020
  4. Jun 01, 2020
  5. Apr 07, 2020
    • matograine's avatar
      [test] #111: create a unit test for get_list_input_for_transaction() · 1cb34ad2
      matograine authored
      * create a patched get_sources() function
      1cb34ad2
    • matograine's avatar
      [feat] #111: modify transaction_confirmation() function · e46ed618
      matograine authored
          * use display_amount() to display pubkey's amounts
      
      * modify test_transaction_confirmation() to match new behavior
          * add new test case
          * remove useless float()
      e46ed618
    • matograine's avatar
      [feat] #111: change functions to handle amounts list. · b39bed50
      matograine authored
      * modify
          * handle_intpermediary_transaction(),
          * generate_and_send_transaction(),
          * generate_transaction_document()
      * all will now use tx_amounts list
      
      * create a unit test for generate_transaction_document()
      * create a patched head_block() function.
      
      /!\ the created patched function does not return a whole fake block, only relevant infos for now.
      b39bed50
    • matograine's avatar
      [feat] #111: modification of transaction_amount() function · 65211508
      matograine authored
      * transaction_amount() now returns the amounts list.
      
      * modify tests in tests_tx.py for transaction_amount to match new behavior
      * create unit tests in tests_unit_tx.py
      65211508
    • matograine's avatar
      [enh] #111: create compute_amounts() function · 5e583b73
      matograine authored
      * Uses a list of user amounts and a multiplicator (should be CENT_MULT_TO_UNIT or UD_Value).
      * Multiplies the given amounts(UD) to get usable int() amounts for Duniter.
      * Makes sure that each amountUD is superior to the minimal amount.
          * Absolute amounts are in FloatRange(MINIMAL_AMOUNT), so they have already been checked.
          * This check should be updated when solving issue #306 / DUBP v13.
      * Returns list of amounts.
      5e583b73
    • matograine's avatar
      [mod] #111: create MINIMAL_TX_AMOUNT, CENT_MULT_TO_UNIT constants · 303e4f2c
      matograine authored
      * both constants imported to tx.py
      * MINIMAL_TX_AMOUNT used in --amount click option
      * import silkaj.money and change related functions calls
      
      * introduce one test case for send_transaction()
      303e4f2c
    • matograine's avatar
      [feat] #111: Send multiple outputs: change click options: · bb34cbbb
      matograine authored
      * Breaking change: Rename `--output` option to `--recipient`
      * Add extra small options to ease passing multiple amounts and recipients:
        * `-a/--amount`
        * `-d/--amountUD`
        * `-r/--recipient`
      * Add possibility to pass multiple options:
        * Breaking change: recipients public keys are no longer `:` separated: `-r A -r B`
      * Store the options in variables names in plural for preciseness
      * Fix: Handle the case when no option specifying the amount is passed
      * Restrict `--allSources` option to a single recipient, case not handle for now
      * Extend tests with two upper checks
      * Improve help
      bb34cbbb
  6. Feb 23, 2020
  7. Jan 28, 2020
  8. Nov 24, 2019
    • matograine's avatar
      [enh] #255 modify Balance display · 5ea02661
      matograine authored
      * change the balance display to a table
      * use display_amount() and tabulate in the balance display
      * mod tests_end_to_end.py to match new display
      5ea02661
    • matograine's avatar
      [mod] creating tui.py · 87132337
      matograine authored
      * create tui.py with license statement
      * move display_amount() and display_pubkey() to tui.py to prevent circular dependencies
      * change display_amount() to prevent circular dependency with money.py.
          * Now display_amount() needs the ud_value parameter.
          * display_amount() is no more async
      * mod tx.py and test_unit_tx.py to match new location of the two features.
      87132337
  9. Nov 14, 2019
  10. Nov 08, 2019
  11. Nov 03, 2019
    • matograine's avatar
      [test] #236: add tests for tx confirmation, mock functions: · 5b990cb5
      matograine authored and Moul's avatar Moul committed
      * add tests for display_pubkey(), display_amount() and transaction_confirmation() in tests/test_unit_tx.py.
      * patch async functions.
      * create the patched.py module containing patched/mocked functions.
      * modify silkaj/tx.py to match patch requirements:
        * `from silkaj.wot import is_member` -> `from silkaj import wot`
        * `await is_member()` -> `await wot.is_member()`
      5b990cb5
  12. Oct 29, 2019
  13. Sep 08, 2019
  14. May 12, 2019
  15. May 11, 2019
  16. Jan 28, 2019
  17. Dec 06, 2018
Loading