interlay / interbtc-api

interBTC TypeScript SDK
https://app.interlay.io/
Apache License 2.0
25 stars 21 forks source link

Use parachain RPCs for complex functionality #447

Open gregdhill opened 2 years ago

gregdhill commented 2 years ago

Instead of re-implementing (and testing) complex parachain logic, we should switch to using RPCs.

See: https://github.com/interlay/interbtc/issues/695

theodorebugnet commented 2 years ago

Note that on Issue and Redeem, the lib implements extra lib-only functionality (namely, support for batching). I don't think we had any plans for implementing batching in the parachain directly, so these would not be replaceable by RPCs.