Skip to content
  1. Jul 18, 2022
  2. 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
  3. Jun 03, 2022
    • Tarik Gul's avatar
      fix(calc): rework calculating fees (#937) · 33064669
      Tarik Gul authored
      * remove calcFee
      
      * remove all calcFee tests
      
      * remove all calcFee associated types
      
      * remove export for MetadataConsts
      
      * adjust mock response to reflect api.rpc.payment.queryInfo
      
      * remove ICalcFee
      
      * handle minCalcFeeRuntime
      
      * adjust minCalcFeeRuntime error message
      
      * fix e2e tests for kusama
      
      * adjust polkadot e2e-tests
      
      * add a check for rpc.payment
      33064669
  4. May 26, 2022
  5. May 18, 2022
    • Tarik Gul's avatar
      fix(dev): updates substrate-js-dev, and fixes latest eslint rules (#913) · 12c5914d
      Tarik Gul authored
      * fix(deps): update substrate-js-dev
      
      * fix no-unsafe-argument for specToControllers
      
      * ignore no-unsafe-argument for nodeUtils transformer
      
      * cleanup unsafe usage of optional chaining
      
      * fix unsafe argument of type GenericCall<any> with safe typecasting
      
      * fix This number literal will lose precision at runtime
      
      * fix tsc issue with scripts
      12c5914d
  6. May 17, 2022
  7. Apr 21, 2022
  8. Apr 13, 2022
  9. Apr 08, 2022
    • Tarik Gul's avatar
      fix: remove blockWeightsStore (#891) · ce701a0a
      Tarik Gul authored
      * fix: update polkadot-js api, and apps-config
      
      * fix(tests): remove createApiAugmentation for getWeights test
      
      * fix: remove metadata-consts, and adjust chains-config files
      
      * refactor controller and services using blockWeightStore
      
      * remove the test regarding blockWeightStore
      
      * remove blockWeightStore from chain fee guide
      
      * fix: inline docs
      
      * fix: cleanup unused types and docs
      
      * small grumble
      ce701a0a
  10. Apr 07, 2022
  11. Feb 16, 2022
  12. Feb 15, 2022
  13. Dec 21, 2021
    • Tarik Gul's avatar
      fix: bump polkadot-js deps (#796) · c79d1269
      Tarik Gul authored
      * fix: change registry used in operation from Block -> ApiDecoration<promise>
      
      * fix: bump polkadot-js deps
      
      * fix: add import @polkadot/api-augment; to entry
      
      * fix: update imports for Codecs
      
      * comment
      
      * bump apps-config
      
      * add comment
      
      * fix: inline doc comments
      
      * update apps-config
      c79d1269
  14. Dec 15, 2021
  15. Dec 08, 2021
    • Tarik Gul's avatar
      fix: bump polkadot-js deps (#786) · 072ef063
      Tarik Gul authored
      * bump polkadot-js deps
      
      * fix BN bug
      
      * fix build
      
      * lint
      
      * fix BN bug
      
      * temp fix block state trace
      
      * fix: blocksTrace
      
      * fix: .toNumber -> toString(10) for base10
      
      * fix update sanitize numbers to check superclass for BN
      
      * lint
      
      * fix: set resolution on bn.js, remove sanitizeNumbers unnecessary logic
      
      * revert changes on blocksTrace
      072ef063
  16. Dec 01, 2021
  17. Nov 01, 2021
  18. Oct 12, 2021
    • Tarik Gul's avatar
      fix(tests): restructure mockApi tests to integrate with historical api (#702) · 2bf71ada
      Tarik Gul authored
      * fix: refactor api.derive.chain in /blocks
      
      * add historicApi
      
      * remove bench test
      
      * tests: adjust tests to accept historicalApi
      
      * refactor blocks to use historicApi
      
      * fix: fetchevents bug
      
      * fix: update historic kusama blocks e2e tests
      
      * put back --silent
      
      * fix: lint
      
      * fix: tests for pallets staking progress
      
      * cleanup
      
      * fix: restructure block tests and mockApi
      
      * fix: change mockApi to defaultMockApi for BlocksTraceService
      
      * fix: add AccountsAssetsService.spec.ts refactoring to mockApi
      
      * lint and cleanup
      
      * refactor AccountsBalanceInfoService.spec.ts
      
      * refactor NodeNetworkService.spec.ts
      
      * refactor NodeTransactionPoolService.spec.ts
      
      * refactor NodeVersionService.spec.ts
      
      * restructure AccountsStakingInfoService.spec.ts
      
      * refactor AccountsVestingInfoService.spec.ts
      
      * refactor PalletsAssetsService.spec.ts
      
      * refactor PalletsStakingProgressService.spec.ts
      
      * refactor PalletsStorageService.spec.ts
      
      * cleanup
      
      * refactor ParasService.spec.ts
      
      * refactor RuntimeCodeService.spec.ts
      
      * refactor RuntimeMetadataService.spec.ts
      
      * refactor RuntimeSpecService.spec.ts
      
      * refactor TransactionFeeEstimateService.spec.ts
      
      * refactor TransactionMaterialService.spec.ts
      
      * refactor TransactionSubmitService.spec.ts
      
      * refactor mockApi to be defaultMockApi
      
      * lint
      
      * fix merge conflict with nextFeeMultiplier
      
      * historical -> historic
      2bf71ada
  19. Oct 11, 2021
    • Tarik Gul's avatar
      fix(BlocksService): refactor api.derive for performance, and add historicApi... · 5861cb1f
      Tarik Gul authored
      fix(BlocksService): refactor api.derive for performance, and add historicApi to BlocksService (#699)
      
      * fix: refactor api.derive.chain in /blocks
      
      * add historicApi
      
      * remove bench test
      
      * tests: adjust tests to accept historicalApi
      
      * refactor blocks to use historicApi
      
      * fix: fetchevents bug
      
      * fix: update historic kusama blocks e2e tests
      
      * put back --silent
      
      * fix: lint
      
      * fix: tests for pallets staking progress
      
      * cleanup
      
      * optimize getWeights, remove expandMetadata
      
      * fix: nexttFeeMultiplier get by parent hash
      
      * add ? to nextFeeMultiplier
      
      * lint
      5861cb1f
  20. Oct 05, 2021
  21. 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
  22. Sep 22, 2021
    • Tarik Gul's avatar
      fix: update polkadot-js deps (#677) · f14f2c2e
      Tarik Gul authored
      
      
      * bump polkadot-js deps
      
      * fix: AssetBalances -> PalletAssetsAssetBalances type
      
      * fix: BalanceOf -> u128 type
      
      * fix: metadataV12
      
      * fix test input values for account assets
      
      * add --silent to test
      
      * fix: bump polkadot/api 6.0.3
      
      * bump polkadot-js 6.0.5
      
      * Update src/services/accounts/AccountsAssetsService.ts
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * lint
      
      Co-authored-by: default avatarDavid <[email protected]>
      f14f2c2e
  23. Aug 21, 2021
  24. Aug 18, 2021
  25. Jul 27, 2021
  26. Jul 20, 2021
  27. Jul 13, 2021
  28. Jun 23, 2021
    • Tarik Gul's avatar
      fix: createCalcFee bug (#587) · 21a7e08c
      Tarik Gul authored
      * fix: fix createCalcFee bug
      
      * fix: error message
      
      * fix: error message
      
      * fix: refactor
      
      * fix: add historical block to e2e tests
      
      * fix: comment
      21a7e08c
  29. May 16, 2021
  30. May 12, 2021
  31. May 06, 2021
  32. Apr 19, 2021
  33. Mar 30, 2021
  34. Mar 29, 2021
  35. Mar 16, 2021
  36. Feb 09, 2021
  37. 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
  38. 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
  39. 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
      5ec24e63