near / near-api-rs

Apache License 2.0
8 stars 2 forks source link

Decouple near-primitives. #5

Open akorchyn opened 2 weeks ago

akorchyn commented 2 weeks ago

Currently, developing an app requires near-primitives to interact with the result types of transactions as near-api propagates them.

As for me, it's pretty inconvenient, and would be better if we created some own wrapper type as near-workspaces does

### Tasks
- [x] CryptoHash
- [ ] Result types
- [ ] Query outputs
- [ ] ...
akorchyn commented 2 days ago

I updated the issue as we have a lot of types coming from near-primitives when querying the chain. It's mandatory to replace them with our types and not export them to have a more robust API overall.

The motivation is simple. We don't want to have a breaking release on each near-primitives release as it's not that convenient to use. To have that, near-api should have all the parts wrapped :)