Skip to content
  1. Nov 23, 2021
  2. Nov 16, 2021
  3. Nov 15, 2021
  4. Nov 11, 2021
  5. Nov 10, 2021
  6. 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
  7. Nov 08, 2021
  8. Nov 04, 2021
  9. Oct 28, 2021
  10. Oct 27, 2021
    • Tarik Gul's avatar
      fix(e2e-tests): add e2e-tests for `/accounts/{accoundId}/validate` (#731) · 2f115b35
      Tarik Gul authored
      
      
      * add ValidateAddressService
      
      * add ValidateAddressController
      
      * add AccountsValidate to polkadot, westend, and kusama
      
      * imports
      
      * add kusama chain config
      
      * fix response
      
      * fix networkInfo bug
      
      * lint
      
      * get tests started
      
      * change the name of the service
      
      * cleanup, lint, fix build, test boilerplate
      
      * update the tests
      
      * more tests
      
      * use hexToU8a for hex conversion
      
      * add tests for hex values
      
      * cleanup
      
      * docs
      
      * e2e tests for validate
      
      * update e2e responses
      
      * update docs
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * docs
      
      Co-authored-by: default avatarDavid <[email protected]>
      2f115b35
    • Tarik Gul's avatar
      feat: add /accounts/:address/validate endpoint (#726) · 77bf8edb
      Tarik Gul authored
      
      
      * add ValidateAddressService
      
      * add ValidateAddressController
      
      * add AccountsValidate to polkadot, westend, and kusama
      
      * imports
      
      * add kusama chain config
      
      * fix response
      
      * fix networkInfo bug
      
      * lint
      
      * get tests started
      
      * change the name of the service
      
      * cleanup, lint, fix build, test boilerplate
      
      * update the tests
      
      * more tests
      
      * use hexToU8a for hex conversion
      
      * add tests for hex values
      
      * cleanup
      
      * docs
      
      * add AccountsValidate controller to other chains-config
      
      * remove networkId
      
      * update tests
      
      * ValidateAddrResponse -> IValidateAddrResponse
      
      * typos
      
      * ss58Decoded -> ss58Prefix
      
      * inline docs for validate address
      
      * update docs
      
      * cleanup testws
      
      * Update src/services/accounts/AccountsValidateService.spec.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/accounts/AccountsValidateService.spec.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/accounts/AccountsValidateService.spec.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/accounts/AccountsValidateService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * update docs
      
      * add proper error handling for base58decode
      
      * docs
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      77bf8edb
  11. Oct 26, 2021
  12. Oct 20, 2021
  13. Oct 14, 2021
    • Tarik Gul's avatar
      fix!: change the response for vesting-info (#717) · 8b9866d0
      Tarik Gul authored
      * BREAKING CHANGE: default return value is an array instead of an object
      
      * add docs
      
      * fix: vesting-info tests, add another test as well
      
      * docs
      
      * lint
      
      * add test
      
      * lint
      
      * refactor to avoid duplicate unwrap calls
      8b9866d0
  14. Oct 13, 2021
  15. Oct 06, 2021
  16. Oct 02, 2021
    • Tarik Gul's avatar
      feat: add `era` to `blocks/{blockId}` response for extrinsics (#685) · 43623471
      Tarik Gul authored
      
      
      * fix: add eraInfo as a field in extrinsics response
      
      * docs: update docs with GenericExtrinsicEra
      
      * fix: switch eraInfo to era
      
      * docs: update docs
      
      * fix: refactor
      
      * fix: lint
      
      * fix: update mock data, and adjust unit tests
      
      * docs: update GenericExtrinsicEra description
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * docs: adjust docs
      
      * tests(e2e): update kusama e2e test responses for /blocks
      
      * tests(e2e): update the polkadot e2e tests for /blocks
      
      * tests(e2e): update westend e2e responses for /blocks
      
      * fix: space at end of file
      
      Co-authored-by: default avatarDavid <[email protected]>
      43623471
  17. Sep 27, 2021
  18. Sep 24, 2021
  19. Sep 17, 2021
  20. Aug 02, 2021
  21. Jul 29, 2021
  22. Jul 27, 2021
  23. Jul 20, 2021
  24. Jun 30, 2021
    • Tarik Gul's avatar
      fix: add `vrfDelay` as a `phase` return value for ongoing auctions to reflect... · b4d86620
      Tarik Gul authored
      fix: add `vrfDelay` as a `phase` return value for ongoing auctions to reflect VRFdelays in polkadot (#593)
      
      * fix: update tests for auctions
      
      * docs: auctions
      
      * fix: add `delay` as a phase result
      
      * fix: change delay to vrfDelay
      
      * docs: update for vrfDelay
      
      * fix: starting => startPeriod, ending => endPeriod
      
      * docs: reflect startPeriod and endPeriod
      b4d86620
  25. May 31, 2021
  26. May 12, 2021
  27. May 11, 2021
  28. Apr 19, 2021
  29. Mar 29, 2021
  30. Mar 08, 2021
  31. Mar 04, 2021
  32. Mar 02, 2021
  33. Jan 27, 2021
  34. 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 <[email protected]>
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update docs/src/openapi-v1.yaml
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * 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 <[email protected]>
      
      * fix: getExtrinsicByExtrinsicIndex => getExtrinsicByIndex
      
      * fix: getExtrinsicByIndex => getExtrinsicByTimepoint
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      6507ce70
  35. Jan 20, 2021
    • Tarik Gul's avatar
      feat: add finalized tag when querying blocks (#386) · b95f9131
      Tarik Gul authored
      
      
      * Import Compact, BlockNumber Types: Create isFinalizedBlock method
      
      * Add finalized tag type
      
      * Cleanup isFinalizedBlock, add comments, add finalized tag
      
      * Run lint --fix
      
      * Parallelize rpc query
      
      * Update isFinalized to account for fork edgecase
      
      * Refactor promises, and lint
      
      * Optimize and refactor rpc calls
      
      * Update blocks controller to accomodate fetchBlock params
      
      * Refactor initial Promise.all()
      
      * Update fetchBlock in test suites to fit updated params
      
      * Add finalized tag with boolean tru
      
      * Mock data for testing queried hashs on forks
      
      * Add tests for isFinalizedBlock: (2 tests, one is a queried hash is on a fork, and another to confirm a finalized block)
      
      * export mock json data
      
      * Run lint --fix
      
      * Update grammar
      
      * Update src/services/blocks/BlocksService.spec.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update src/services/blocks/BlocksService.spec.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Resolve comment formatting
      
      * Update src/controllers/blocks/BlocksController.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update params for fetchBlock to an options object
      
      * BlockService resolve merge conflicts
      
      * More merge conflicts resolved
      
      * Revert changes
      
      * Remove BlockNumber
      
      * Revert test
      
      * fix: Conflicts resolved, and up to date with master
      
      * feat: omit finalized tag when running against a PoW chain
      
      * update: update the docs
      
      * feat: add testing for omiting the finalized tag
      
      * DRY test suite
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * fix: lint
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update src/controllers/blocks/BlocksController.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * fix: omitFinalizeTag => omitFinalizedTag
      
      * fix: DRY finalized
      
      * fix: check for undefined finalizedHeadBlockNumber
      
      * Update docs
      
      * fix: docs, and update the finalized description
      
      * Update src/controllers/blocks/BlocksController.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * fix: DRY test code
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * fix: docs on interface
      
      * fix: lint
      
      * fix: queryFinalized should be false
      
      * fix: queryFinalized should be false
      
      fix: when querying for blockId and on a PoW chain omit finalized tag
      
      * fix: lint
      
      Co-authored-by: default avatarDavid <[email protected]>
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      b95f9131