- Jul 18, 2022
- Jul 07, 2022
-
-
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
-
- Jul 05, 2022
-
-
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
-
- Jun 28, 2022
-
-
Tarik Gul authored
* fix(deps): update polkadot.js deps and fix type compilation * fix: pallets storage query type compilation * cleanup logic
-
- Jun 06, 2022
-
-
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
-
- Jun 03, 2022
-
-
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
-
- May 26, 2022
- May 18, 2022
-
-
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
-
- May 17, 2022
-
-
CurlyBracketEffect authored
-
- May 16, 2022
-
-
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
-
- Apr 21, 2022
-
-
Tarik Gul authored
* fix: add v9190 polkadot metadata * fix: add polkadot registry for v9190 * fix: create getPerByte to properly handle lengthToFee * cleanup inline comments
-
- Apr 13, 2022
-
-
Tarik Gul authored
* fix: update polkadotjs common, api, and wasm-crypto * fix: transactionByeFee typecast to Balance * lint * update resolutions to solve build issue * fix: update apps-config * fix: update pjs api 8.0.2
-
- Apr 08, 2022
-
-
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
-
- Apr 07, 2022
-
-
Tarik Gul authored
* fix: update polkadot-js api, and apps-config * fix(tests): remove createApiAugmentation for getWeights test
-
- Feb 16, 2022
-
-
Jose authored
* Abstract error handling for addresses into AbstractService * Add yarn cache, jest cov and fixed unit test
-
- Feb 15, 2022
-
-
Tarik Gul authored
* fix serializing wrapperkeepopaque and wrapperopaque * add e2e test for v9151 which contains an WrapperKeepOpaque<Call> * cleanup comments * refactor code
-
- Feb 01, 2022
-
-
Tarik Gul authored
* fix: current auction endingOffset bug * fix: header bug * update tests to accurately test the updates * add vrfDelay to endingOffset * refactor logic to make it cleaner * Update src/services/paras/ParasService.ts Co-authored-by: Zeke Mostov <[email protected]> * Update src/services/paras/ParasService.ts Co-authored-by: Zeke Mostov <[email protected]> * remove vrfDelay from offset calculation * update docs with vrfDelay info * add tests for startPeriod, endPeriod and vrfDelay * inline docs * fix some grumbles for vrfDelay, and endPeriod sample * Update src/services/paras/ParasService.ts * Update docs * Update src/services/paras/ParasService.ts Co-authored-by: James Wilson <[email protected]> * fix naming in test * set the vrfDelay test to use the finishEnd block * update docs Co-authored-by: Zeke Mostov <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
- Jan 21, 2022
-
-
Tarik Gul authored
* update polkadot-js api to 7.2.1 * update PalletAssetsAssetBalance -> Account * refactor the mock data for assets to keep things DRY * lint and set proper return types for exported mock test-helpers * fix: comment * fix logic to avoid breaking changes * fix pallet testing refactor * refactor logic to avoid breaking changes * cleanup code readability in asset-balances service * Update return type and return value * update inline docs * update comment grumbles * update inline docs for added asset types
-
- Jan 19, 2022
-
-
Tarik Gul authored
* add error handling on account balances * add better error handling for ethereum accounts in AccountsBalanceService * lint
-
- Dec 24, 2021
-
-
sawvox authored
* fix: add leaseOffset to leasesCurrent end calc * fix: eslint fix by using --fix flag
-
- Dec 21, 2021
-
-
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
-
- Dec 15, 2021
-
-
Tarik Gul authored
-
- Dec 08, 2021
-
-
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
-
- Dec 01, 2021
-
-
Tarik Gul authored
* fix: bump polakdot api * fix: imports for StorageEntryBase and AugmentedConst * @polkadot/[email protected]
-
- Nov 29, 2021
-
-
Tarik Gul authored
* fix: update polkadot-js deps * fix: change with PalletsPalletAssetsBalance as u128, instead of TAssetBalance u64 * fix pallet assets * lint
-
- Nov 23, 2021
-
-
Tarik Gul authored
* staking payouts historicApi * start tests * boilerplate for tests * mock data and types for tests * stakingPayouts reponse * mock data for staking payouts * lint eraRewardPoints * setup main test * adjust custom response * generate correct types for mock data * correct nominator data * correct eraRewardPoints * add error tests * fix eraRewardPoints types * add test for extractTotalValidatorRewardPoints * replace EraRewardPoints type * lint * clean empty line * tests for eraExposure * add deriveNominatorExposures for vals and noms * general cleanup, and DRY * add polkadot v9122 registry * add docs and switch things over to polkadotV9122registry * lint * fix doc grumbles * Update src/services/accounts/AccountsStakingPayoutsService.spec.ts Co-authored-by: Niklas Adolfsson <[email protected]> * cleanup comments * mapToBe -> mockEraRewardsMap * lint * Update src/services/accounts/AccountsStakingPayoutsService.spec.ts Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: David <[email protected]>
-
- Nov 11, 2021
-
-
Tarik Gul authored
* update pallets staking progress to use historicApi * lint
-
- Nov 10, 2021
-
-
Tarik Gul authored
* add historicApi to crowdloans-info * add assertQueryModule check * add historicApi to crowdloans * add historicApi to leases-info and leases/current * add historicApi to auctions-current * add historicApi to paras * fix endingOffset bug * adjust tests to reflect historicApi * cleanup * inline docs * lint * Update src/services/paras/ParasService.ts Co-authored-by: Zeke Mostov <[email protected]> * adjust lease_period_index * lease period index edgecase * adjust leasePeriodIndex to be null not BN_ZERO * update docs Co-authored-by: Zeke Mostov <[email protected]>
-
- Nov 09, 2021
-
-
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
-
- Nov 01, 2021
- Oct 27, 2021
-
-
Tarik Gul authored
* update deps * bump deps * bump deps * update /runtime/code test
-
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: Zeke Mostov <[email protected]> * Update src/services/accounts/AccountsValidateService.spec.ts Co-authored-by: Zeke Mostov <[email protected]> * Update src/services/accounts/AccountsValidateService.spec.ts Co-authored-by: Zeke Mostov <[email protected]> * Update src/services/accounts/AccountsValidateService.ts Co-authored-by: David <[email protected]> * update docs * add proper error handling for base58decode * docs Co-authored-by: Zeke Mostov <[email protected]> Co-authored-by: David <[email protected]>
-
- Oct 26, 2021
-
-
Tarik Gul authored
* switch asset service to historicApi * fix: bug * throw appropriate error for missing pallet * lint * asset-balance e2e tests for statemint * add more tests for asset balances * e2e for statemine * lint * Update src/services/accounts/AccountsAssetsService.ts Co-authored-by: David <[email protected]> * adjust the returned error when assets pallets doesnt exist * fix comment Co-authored-by: David <[email protected]>
-
- Oct 22, 2021
-
-
Tarik Gul authored
-
- Oct 18, 2021
-
-
Tarik Gul authored
* polkadot e2e-vesting-info * update tests for vesting info * refactor balance-info * lint * return error when vesting info pallet doesnt exist * kusama e2e tests for vesting info, adjust polkadot ones * add westend and lint * cleanup
-