Skip to content
  1. Oct 03, 2022
  2. Sep 28, 2022
  3. Sep 27, 2022
  4. Sep 21, 2022
    • Dominique's avatar
      feat: add /accounts/:accountId/convert endpoint (#1007) · e2d6fae4
      Dominique authored
      
      
      * Added the `convert` endpoint
      - Controller, service, response type
      
      * Removed getPair
      
      * SS58 Address from Public key (hex)
      - Using the query param `publicKey` to output the SS58 address if the input/parameter that is given by the user is a Public Key (hex) and not an accountID.
      
      * Changes in validation code & Adding tests
      - Added specific types that the `RequestHandler` can accept.
      - Cleaned the code that validates the query params (and sets default values) in the Controller.
      - Added tests with different valid or invalid endpoints to check.
      
      * Updated the Docs
      - Updated the docs with the `convert` endpoint functionality &  path & query params.
      
      * Changes in the docs based on Tarik's feedback
      - Keeping the "AccountId" written with the same format.
      - Other minor changes in formatting.
      
      * Changes in code & formatting based on Tarik's feedback
      
      * Minor change in the docstrings
      
      * refactor controller to use validateBoolean
      
      Co-authored-by: default avatartarikgul <[email protected]>
      e2d6fae4
  5. Sep 19, 2022
  6. Sep 14, 2022
  7. Sep 13, 2022
    • Tarik Gul's avatar
      feat: validateBooleanMiddleware for controllers (#1023) · fc74d4ac
      Tarik Gul authored
      * add utility testing functions to util file
      
      * refactor address middleware tests with util functions
      
      * add validateBooleanMiddleware
      
      * validateBooleanMiddleware tests
      
      * export middleware
      
      * add validateBooleanMiddleware to controllers that use it
      
      * fix inline comments
      
      * remove hardcoded values
      
      * fix test
      
      * refactor middleware to be more efficient
      
      * fix query check
      fc74d4ac
  8. Sep 08, 2022
  9. Sep 06, 2022
  10. Sep 03, 2022
  11. Aug 31, 2022
  12. Aug 30, 2022
  13. Aug 29, 2022
  14. Aug 24, 2022
  15. Aug 22, 2022
  16. Aug 19, 2022
  17. Aug 16, 2022
  18. Aug 15, 2022
  19. Aug 12, 2022
  20. Aug 11, 2022
    • Tarik Gul's avatar
      fix!(calc): fee calculation (#974) · b4a87819
      Tarik Gul authored
      
      
      * fix(fee): fee calculation
      
      * feat(calc): add calc_actual_fee
      
      * export mod
      
      * revert some changes
      
      * fix spacing
      
      * fix test warnings
      
      * cleanup
      
      * organize calculation
      
      * more cleanup
      
      * update sp_arithmetic to 5.0.0
      
      * fix small deprecation grumble in calc payout
      
      * cleanup implementation
      
      * Add failing fee calc examples to tests
      
      * more comments on test fee calcs
      
      * Fix up tests and fee calc
      
      * change to calc_partial_fee, and add acala test
      
      * remove calc_fee
      
      * update wasm
      
      * fix small comment blunder
      
      * update wasm-bindgen
      
      * remove impl, and unwraps, replace with Result
      
      * rebuild wasm
      
      Co-authored-by: default avatarJames Wilson <[email protected]>
      b4a87819
  21. Aug 09, 2022
  22. Aug 08, 2022
  23. Aug 03, 2022
  24. Aug 02, 2022
  25. Aug 01, 2022
  26. Jul 28, 2022
  27. Jul 27, 2022