Skip to content
  1. Jul 06, 2022
  2. Jul 05, 2022
    • Dominique's avatar
      feat: Added the `network` and `accountId` to the response of `validate` endpoint (#926) · ef513cc7
      Dominique authored
      * Added networkName in the response of validate address endpoint
      
      * Added the 'accountId' in the endpoint response
      - If the address given is not a hex value then it returns the hex value of the related registry type
      - If the address given is a hex value then it returns the same as the 'accountId'
      - The tests were updated based on this logic
      
      * Changes in `validateAddress` function, tests & docs
      - Replaced `filter` with a `for..of` loop when retrieving the `network`.
      - Replaced `new TypeRegistry` with `this.api.registry` when retrieving the `accountID`.
      - Renamed `networkName` to `network` so it is aligned with the key naming in the SS58 registry.
      - Updated the JSDocs of the function `validateAddress`.
      - Added the default mock api into the service in the tests.
      - Updated the docs.
      
      * Code changes & built docs
      - Changes in code based on Tarik's feedback.
      - Run `yarn build:docs`.
      
      * Removed unnecessary variable
      
      * Fix for accountId & corresponding tests
      - Fix for accountId when the input from user is an address in hex (from u8 array) format.
      - Corrected the output of the corresponding tests also.
      
      * Returns  in all other fields if isValid is false
      
      * Code changes based on James feedback
      
      * yarn lint
      ef513cc7
  3. Jun 22, 2022
  4. Jun 17, 2022
    • Tarik Gul's avatar
      feat: add `/blocks` that enforces `range` query param. (#954) · f8ab1ec9
      Tarik Gul authored
      * Add range query param type
      
      * correctly parse a range or throw an error
      
      * create new endpoint to query a range of blocks using an async generator
      
      * lint, add `/blocks` route
      
      * fix grumbles
      
      * fix blunder
      
      * sort collection of responses, add comments for range algorithm
      
      * add return types
      
      * cleanup QueueNext type
      
      * port runTasks to AbstractController, and make it generic
      
      * add PromiseQueue
      
      * fix memory allocation, and remove async generator
      
      * add PromiseQueue
      
      * use PromiseQueue
      
      * lint
      
      * remove console
      
      * fix verifyInt
      
      * add /blocks to docs
      
      * change BlockRange to Blocks
      
      * set a max range, extra error handling
      
      * add verifyUInt within util
      
      * remove this.verifyInt and replace it with verifyUInt and verifyNonZeroUInt
      
      * correct error message
      
      * fix small async await grumble
      
      * refactor calling each promise
      
      * allow parseNumberOrThrow to accept zeroes
      
      * fix comment grumble
      f8ab1ec9
    • Tarik Gul's avatar
      docs: fix `includeFee` query param (#965) · b7a5843e
      Tarik Gul authored
      b7a5843e
  5. Jun 14, 2022
  6. Jun 07, 2022
  7. Jun 06, 2022
    • Tarik Gul's avatar
      feat: add query param `includeFee` to add a `tip`, `partialFee`, and... · 8241d340
      Tarik Gul authored
      feat: add query param `includeFee` to add a `tip`, `partialFee`, and `priority` field to each extrinsic for `/node/transaction-pool` (#931)
      
      * add test response
      
      * update controller to include tip query parameter
      
      * create tests that include tip query param
      
      * update the return type to include tip
      
      * update dervice logic to handle tip inclusion
      
      * update the docs
      
      * fix grumble
      
      * switch the naming in the controller from tip to fee
      
      * add partial fee functionality
      
      * handle priority correctly
      
      * fix some linting errors
      
      * update response type for partialfee
      
      * set query param as includeFee
      
      * update normal extrinsic response
      
      * add const values to defaultMockApi
      
      * add computation logic to calculate priority
      
      * update docs
      
      * add test suite for operational transactions
      
      * lint
      
      * remove commented import
      
      * rename maxBlock to maxBlockWeight
      
      * add end line
      
      * fix priority type decsription
      
      * cleanup small grumbles
      
      * fix comment
      
      * fix some comments
      8241d340
  8. Jun 03, 2022
  9. May 24, 2022
  10. May 18, 2022
  11. May 16, 2022
    • Tarik Gul's avatar
      feat(balance-info): add query param to convert free balance to human (#914) · f1e03d6c
      Tarik Gul authored
      * update the balance key in IAccountsBalanceInfo to also be a string
      
      * accept a query param for converting the balance
      
      * add private convertBalance
      
      * add tests for convertBalance
      
      * change convert to denominate
      
      * switch all over to denomination
      
      * inline comments
      
      * handle zero values, and cleanup code
      
      * handle all balance values
      
      * add IBalanceLock type
      
      * add denominateLocks
      
      * update docs
      
      * add error handling for a chain with no decimal
      
      * correct the docs
      
      * cleanup code
      
      * cover edgecase where decimal is 0
      
      * set api to historicApi
      
      * fix decimal selection
      
      * detail dec value in applyDenominationBalance
      f1e03d6c
  12. May 10, 2022
  13. May 03, 2022
  14. Apr 21, 2022
  15. Apr 13, 2022
  16. Mar 30, 2022
  17. Mar 16, 2022
  18. Mar 08, 2022
  19. Feb 28, 2022
  20. Feb 24, 2022
  21. Feb 22, 2022
  22. Feb 16, 2022
  23. Feb 10, 2022
  24. Feb 02, 2022
  25. Feb 01, 2022
  26. Jan 26, 2022
  27. Jan 13, 2022
  28. Dec 21, 2021
  29. Dec 16, 2021
  30. Dec 09, 2021
  31. Dec 02, 2021
  32. Nov 23, 2021
  33. Nov 16, 2021
  34. Nov 15, 2021
  35. Nov 11, 2021
  36. Nov 10, 2021
  37. Nov 09, 2021
    • Tarik Gul's avatar
      feat: add query param `metadata` (#746) · 273cac2a
      Tarik Gul authored
      * add query param decodeMeta
      
      * update docs
      
      * fix test description
      
      * lint
      
      * fix up the query param to have both noMeta and metadata without introducing breaking changes
      
      * update logic, and clean it up
      
      * lint
      
      * change ifs to switch
      
      * update the docs
      
      * update more docs
      
      * build:docs
      
      * inline comment
      273cac2a