1. 26 Sep, 2021 1 commit
  2. 03 Aug, 2021 2 commits
  3. 25 Jul, 2021 2 commits
  4. 13 Jul, 2021 1 commit
    • Moul's avatar
      [mod] #403: Apply pyupgrade · c5f32115
      Moul authored
      Apply with --py36-plus, remove await in f-string changes, run hook with --py3-plus.
      c5f32115
  5. 07 Jun, 2021 1 commit
  6. 13 May, 2021 1 commit
  7. 24 Mar, 2021 1 commit
  8. 23 Mar, 2021 2 commits
  9. 22 Mar, 2021 3 commits
  10. 17 Jan, 2021 1 commit
  11. 10 Dec, 2020 2 commits
  12. 09 Dec, 2020 2 commits
  13. 11 Oct, 2020 2 commits
    • matograine's avatar
      [enh] #301 display the checksum in the tx command · 4c0d3756
      matograine authored
         * for each pubkey in the tx confirmation
         * when sending the transaction
      
         * modify the function display_pubkey() and related tests
      4c0d3756
    • matograine's avatar
      [mod] #320 #301 split check_public_key() · c919f8f7
      matograine authored
          check_public_key() was used for money- and wot- related commands that have differend needs.
          * remove check_public_key()
          * create is_pubkey_and_check(), check_pubkey_format() and validate_checksum()
          * create related tests
          * modify tx, balance and history commands.
          * use is_pubkey_and_check() in `id` command and solve #320
      
          * change imports in silkaj.money to prevent loop dependency
      c919f8f7
  14. 03 Oct, 2020 1 commit
  15. 08 Sep, 2020 1 commit
  16. 29 Jul, 2020 1 commit
  17. 07 Jul, 2020 1 commit
  18. 05 Jun, 2020 2 commits
    • Moul's avatar
      [fix] #323: Handle recipients pubkey with a checksum · 664c4430
      Moul authored
      Passed pubkeys with a checksum wasn't returned without the checksum
      
      recipient/outputAddresses: Click stores the arguments in a tuple which
      is immutable. Convert it to a list in order to be able to change it.
      Though it is not necessary to return the value since it's a list.
      
      outputAddresses: use enumerate in order to assign the pubkeys without the
      checksum
      
      ouputBackChange: remove duplicate call to check_public_key()
      store pubkey in case it get erased by a boolean
      Return the value as a string is not a pointer and does not get modified
      in the parent scope as a list or a dict.
      
      Add comments in check_transaction_values()
      
      This feature was broken and forgotten since v0.5.0 release
      664c4430
    • Moul's avatar
      [mod] #237: Move back to ':' pubkey and checksum delimiter · 71dddfb1
      Moul authored
      Update parsing, help. Change word
      71dddfb1
  19. 01 Jun, 2020 1 commit
  20. 21 Apr, 2020 2 commits
  21. 07 Apr, 2020 6 commits
    • 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
  22. 08 Jan, 2020 1 commit
  23. 24 Nov, 2019 1 commit
    • 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
  24. 22 Nov, 2019 1 commit
  25. 03 Nov, 2019 1 commit
    • 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