Skip to content
Snippets Groups Projects
  1. May 12, 2021
  2. May 06, 2021
  3. Apr 19, 2021
  4. Mar 30, 2021
  5. Mar 29, 2021
  6. Mar 16, 2021
  7. Feb 09, 2021
  8. Jan 26, 2021
    • Tarik Gul's avatar
      feat: add route /blocks/{blockId}/extrinsics/{extrinsicIndex} (#400) · 6507ce70
      Tarik Gul authored
      
      * Add new /blocks/{blockId}/extrinsics/{extrinsicsIndex} endpoint
      
      * Add endpoint to chains-config endpoints
      
      * Add exports to entry files
      
      * Add request validations
      
      * Abstract logic from BlocksExtrinsicsController into BlocksServices
      
      * Refactor index, and add await t async call
      
      * Add types
      
      * fix: revert back to original method and cleanup index param
      
      fix: destructure
      
      fix: reorder index
      
      * fix: add options for PoW chains, adjust options passed into fetchBlock
      
      * feat: block 789629 extrinsic responce json file
      
      * fix: modify types for at[object]
      
      * fix: revert types for IExtrinsicIndex at:[object]
      
      * fix: mock json extrinsic data
      
      * fix: working fetchExtrinsicByIndex test
      
      * feat: Test extrinisics error
      
      * fix: change error type
      
      * fix: async/await functionality across fetch extrinsics, fix tests, lint
      
      * feat: docs
      
      * fix: docs
      
      * fix: (docs) events, extrinsics
      
      * fix: docs responses
      
      * fix: docs ExtrinsicIndex
      
      * fix: bugs in docs
      
      * fix: change thrown error to BadRequest for 400 error
      
      * fix: lint
      
      * fix: docs description for ExtrinsicIndex, organize BadRequest import
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <32168567+emostov@users.noreply.github.com>
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <32168567+emostov@users.noreply.github.com>
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <32168567+emostov@users.noreply.github.com>
      
      * fix: extrinsicsIndex -> extriniscIndex (singular)
      
      fix: typos, naming, add parseNumberOrThrow
      
      fix: revert to parseInt
      
      * fix: typos, IAt type, docs, error messages
      
      * fix: lint
      
      * fix: fix error messaging, and docs
      
      fix: cleanup block extrinsics controller
      
      fix: omitFinalized -> true
      
      fix: add test to check parseNumberOrThrow will throw an error if a negative is passed in.
      
      Yarn fix
      
      * fix: remove async
      
      * fix: remove async
      
      fix: update extrinsic index test to query extrinsic 2
      
      fix: lint
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <32168567+emostov@users.noreply.github.com>
      
      * fix: getExtrinsicByExtrinsicIndex => getExtrinsicByIndex
      
      * fix: getExtrinsicByIndex => getExtrinsicByTimepoint
      
      Co-authored-by: default avatarZeke Mostov <32168567+emostov@users.noreply.github.com>
  9. Jan 20, 2021
  10. Jan 18, 2021
    • Zeke Mostov's avatar
      fix: Update fee calc to use... · 5ec24e63
      Zeke Mostov authored
      fix: Update fee calc to use `system::constants::BlockWeights.per_class.normal.base_extrinsic` (#388)
      
      * fix: Update fee calc to use system::blockWeight
      
      * WIP
      
      * Use blockweights constant in metadata
      
      * Add comment
      
      * Bump deps
      
      * New metadata WIP
      
      * Add tests to show how constants are used
      
      * Pre-merge
      
      * Ensure correct constants based on runtime version
      
      * Grammar
      
      * Update specs
  11. Jan 15, 2021
  12. Jan 07, 2021
  13. Dec 18, 2020
  14. Dec 09, 2020
  15. Nov 24, 2020
  16. Nov 17, 2020
  17. Oct 21, 2020
  18. Sep 22, 2020
  19. Sep 17, 2020
  20. Sep 16, 2020
  21. Sep 11, 2020
  22. Sep 07, 2020
  23. Aug 31, 2020
  24. Aug 28, 2020
  25. Aug 25, 2020
  26. Aug 24, 2020
  27. Aug 22, 2020
  28. Aug 01, 2020
  29. Jul 31, 2020
  30. Jul 30, 2020
  31. Jul 29, 2020
  32. Jul 28, 2020
  33. Jul 25, 2020
    • Zeke Mostov's avatar
      Unit test `calc_fee`; Refactor `fetchBlock` (#187) · 908fce52
      Zeke Mostov authored
      * Refactor partial fee calculation to make it testable
      
      Correct name
      
      Create mock api skeletion
      
      save changes
      
      refactor fetch blocks
      
      * Add dummy header
      
      * test createCalcFee
      
      * More refactors of fetchBlock
      
      * Rename constants.ts => mock.ts
      
      * Move mockApi to mock file
      
      * Move header to its own file
      
      * Update commetn
      
      * Update comment
  34. Jul 22, 2020