cosmology-tech / telescope

A TypeScript Transpiler for Cosmos Protobufs ⚛️
https://cosmology.zone/products/telescope
Apache License 2.0
145 stars 43 forks source link

high-level API #117

Open pyramation opened 2 years ago

pyramation commented 2 years ago

inspired by secret, a nice API for query and tx:

https://github.com/scrtlabs/secret.js/tree/49bb8a43d061ee7c366e495fc074f8586f7b7a34#secretjsqueryauthaccount

queries:

secretjs.query.bank.allBalances()
secretjs.query.bank.totalSupply()
secretjs.query.bank.supplyOf()

tx:

secretjs.tx.authz.exec()
secretjs.tx.authz.exec.simulate()
secretjs.tx.authz.grant()
secretjs.tx.authz.grant.simulate()
daniel-farina commented 2 years ago

This would be such a nice improvement to add.