Unverified Commit 77bf8edb authored by Tarik Gul's avatar Tarik Gul Committed by GitHub
Browse files

feat: add /accounts/:address/validate endpoint (#726)



* 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]>
parent 583936d8
Pipeline #163711 passed with stages
in 3 minutes and 31 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment