Skip to content
  1. Aug 22, 2022
  2. Aug 19, 2022
  3. Aug 16, 2022
  4. Aug 15, 2022
  5. Aug 12, 2022
  6. Aug 11, 2022
    • Tarik Gul's avatar
      fix!(calc): fee calculation (#974) · b4a87819
      Tarik Gul authored
      
      
      * fix(fee): fee calculation
      
      * feat(calc): add calc_actual_fee
      
      * export mod
      
      * revert some changes
      
      * fix spacing
      
      * fix test warnings
      
      * cleanup
      
      * organize calculation
      
      * more cleanup
      
      * update sp_arithmetic to 5.0.0
      
      * fix small deprecation grumble in calc payout
      
      * cleanup implementation
      
      * Add failing fee calc examples to tests
      
      * more comments on test fee calcs
      
      * Fix up tests and fee calc
      
      * change to calc_partial_fee, and add acala test
      
      * remove calc_fee
      
      * update wasm
      
      * fix small comment blunder
      
      * update wasm-bindgen
      
      * remove impl, and unwraps, replace with Result
      
      * rebuild wasm
      
      Co-authored-by: default avatarJames Wilson <[email protected]>
      b4a87819
  7. Aug 09, 2022
  8. Aug 08, 2022
  9. Aug 03, 2022
  10. Aug 02, 2022
  11. Aug 01, 2022
  12. Jul 28, 2022
  13. Jul 27, 2022
  14. Jul 20, 2022
  15. Jul 13, 2022
  16. Jul 12, 2022
  17. 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
  18. Jul 06, 2022
  19. Jul 05, 2022
    • dependabot[bot]'s avatar
      chore(deps): bump regex from 1.4.3 to 1.5.6 in /calc (#951) · 2a3702e2
      dependabot[bot] authored
      
      
      Bumps [regex](https://github.com/rust-lang/regex) from 1.4.3 to 1.5.6.
      - [Release notes](https://github.com/rust-lang/regex/releases)
      - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/rust-lang/regex/compare/1.4.3...1.5.6)
      
      ---
      updated-dependencies:
      - dependency-name: regex
        dependency-type: indirect
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      2a3702e2
    • dependabot[bot]'s avatar
      chore(deps): bump crossbeam-utils from 0.8.1 to 0.8.8 in /calc (#949) · 747aa24c
      dependabot[bot] authored
      
      
      Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.1 to 0.8.8.
      - [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
      - [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.1...crossbeam-utils-0.8.8)
      
      ---
      updated-dependencies:
      - dependency-name: crossbeam-utils
        dependency-type: indirect
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      747aa24c
    • dependabot[bot]'s avatar
      chore(deps): bump crossbeam-deque from 0.8.0 to 0.8.1 in /calc (#948) · 423e01db
      dependabot[bot] authored
      
      
      Bumps [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) from 0.8.0 to 0.8.1.
      - [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
      - [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-deque-0.8.0...crossbeam-deque-0.8.1)
      
      ---
      updated-dependencies:
      - dependency-name: crossbeam-deque
        dependency-type: indirect
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      423e01db
    • Tarik Gul's avatar
      chore(dev): update @substrate/dev (#977) · 2c3ce3ed
      Tarik Gul authored
      2c3ce3ed
    • 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
  20. Jul 04, 2022
  21. Jun 28, 2022
  22. Jun 22, 2022
  23. Jun 21, 2022