Skip to content
  1. Jan 16, 2023
    • Cameron Marshall's avatar
      feat: add nomination pools support (#1095) · 7534b1e9
      Cameron Marshall authored
      * nomination pools
      
      * chore(deps): updated polkadot-js deps
      
      * feat: support for nomination pools
      
      * update tests
      
      * update nomination pool service
      
      * update test
      
      * remove historicApi as param
      
      * removed historicApi param from nomination pool info service
      
      * lint
      
      * update param info
      
      * update metadata arg, remove legacy docs
      
      * update open-api yml
      
      * update open api refs
      
      * add nomination pools controller to kusama and polkadot controllers
      
      * add comments to nomination pool service fns
      
      * add nomination pool latest e2e test
      7534b1e9
  2. Jan 10, 2023
    • Tarik Gul's avatar
      feat: add `/paras/head/included-candidates` and `/paras/head/backed-candidates` (#1166) · eb4add7a
      Tarik Gul authored
      * feat: add /paras/head
      
      * backed candidates endpoint
      
      * finalize the backed-candidate logic
      
      * fix grumble with return type
      
      * fix types and complete /paras/head logic
      
      * cleanup
      
      * add test for parasHead, and add at field for responses
      
      * add test for backed candidates
      
      * add docs
      
      * add inline docs
      
      * rework the endpoints
      
      * update docs
      
      * remove mute mock data
      
      * update endpoint descriptions
      
      * leases to heads
      
      * adjust inline comment
      
      * add the endpoints to the latest e2e tests
      
      * fix spacing
      eb4add7a
    • Tarik Gul's avatar
      chore(release): 14.2.3 (#1182) · 6070552b
      Tarik Gul authored
      v14.2.3
      6070552b
  3. Jan 06, 2023
  4. Dec 27, 2022
  5. Dec 22, 2022
  6. Dec 14, 2022
  7. Dec 07, 2022
  8. Nov 24, 2022
  9. Nov 22, 2022
    • Tarik Gul's avatar
      fix docs (#1145) · 17f00d64
      Tarik Gul authored
      17f00d64
    • Tarik Gul's avatar
      feat: add support for ink! contracts (#1015) · f6499fae
      Tarik Gul authored
      
      
      * feat: contracts endpoint boilerplate
      
      * add @polkadot/api-contracts
      
      * set this as a post request
      
      * modify post request handler type
      
      * cleanup service
      
      * add contracts controller to the default controller
      
      * boilerplate tests
      
      * set mock data for contracts
      
      * expand request types to include generic P type
      
      * cleanup controlelr with expanded types and clean naming. Add query params
      
      * add query params
      
      * comment out some tests
      
      * expand query params, and fix logic
      
      * fix small grumble
      
      * add validateAddress middleware
      
      * pass the ContractPromise into the service to make testing possible
      
      * add test for contracts ink
      
      * fix versions
      
      * cleanup contract query calls
      
      * fix inline comments, and cleanup code
      
      * remove parseBNorThrow (only needed for contrcuting contract txs)
      
      * docs
      
      * update 400 errors
      
      Co-authored-by: default avatarmarshacb <[email protected]>
      f6499fae
    • dependabot[bot]'s avatar
      chore: bump loader-utils from 1.4.1 to 1.4.2 in /docs (#1140) · 71456c4d
      dependabot[bot] authored
      
      
      Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
      - [Release notes](https://github.com/webpack/loader-utils/releases)
      - [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
      - [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)
      
      ---
      updated-dependencies:
      - dependency-name: loader-utils
        dependency-type: indirect
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      71456c4d
  10. Nov 21, 2022
  11. Nov 11, 2022
  12. Nov 10, 2022
  13. Nov 03, 2022
    • Cameron Marshall's avatar
      chore(release): v14.1.0 (#1127) · 55868150
      Cameron Marshall authored
      * chore(release):v14.1.0
      
      * move ci commits to ci in changelog
      
      * correct version to 14.0.1
      
      * remove extra lines in changelog
      update release date
      
      * chore(release): v14.1.0
      
      * update compatibility changelog
      
      * compatibility changelog
      
      * update westend compatibility version
      v14.1.0
      55868150
  14. Oct 28, 2022
  15. Oct 19, 2022
  16. Oct 13, 2022
    • Dominique's avatar
      Changes in schema & guide (#1080) · 3fa96894
      Dominique authored
      - Moved the `AccountConvert` path so it is in alphabetical order.
      - Added the `AccountConvert` schema.
      - Small correction in `PalletStorageItem` schema.
      - Added swagger verification step in the CONTRIBUTING guide.
      3fa96894
  17. Oct 03, 2022
  18. Sep 28, 2022
  19. 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
  20. Sep 19, 2022
  21. Sep 06, 2022
  22. Aug 31, 2022
  23. Aug 09, 2022
  24. Aug 03, 2022
  25. Jul 28, 2022
  26. Jul 13, 2022
  27. Jul 07, 2022
    • Tarik Gul's avatar
      feat: support for `feeByEvent` query param which will abstract the fees by events (#970) · 92c155d8
      Tarik Gul authored
      * add query param feeByEvent to all applicable controllers
      
      * add compare integers
      
      * support for query param feeByEvent
      
      * fix grumble
      
      * fix compare.spec.ts
      
      * inline comments
      
      * add tests for getPartialFeeByEvents
      
      * change error message
      
      * create mock event data
      
      * remove unneccessary comments
      
      * add tests getPartialFeeInfo
      
      * export constructEvent
      
      * docs
      
      * provide a better description for feeByEvent in docs
      
      * create areFeesSimilar
      
      * create findEvent
      92c155d8
  28. Jul 06, 2022
  29. 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
  30. Jun 22, 2022
  31. 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
  32. Jun 14, 2022