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

feat: add support for ink! contracts (#1015)



* feat: contracts endpoint boilerplate

* add @polkadot/api-contracts

* set this as a post request

* modify post request handler type

* cleanup service

* add contracts controller to the default controller

* boilerplate tests

* set mock data for contracts

* expand request types to include generic P type

* cleanup controlelr with expanded types and clean naming. Add query params

* add query params

* comment out some tests

* expand query params, and fix logic

* fix small grumble

* add validateAddress middleware

* pass the ContractPromise into the service to make testing possible

* add test for contracts ink

* fix versions

* cleanup contract query calls

* fix inline comments, and cleanup code

* remove parseBNorThrow (only needed for contrcuting contract txs)

* docs

* update 400 errors

Co-authored-by: default avatarmarshacb <[email protected]>
parent 71456c4d
Pipeline #228288 passed with stages
in 18 minutes and 16 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