Comments (4)
Any kind of automation depends on the implementation of ADR 024: Coin Metadata.
from cosmjs.
Good approach for the connection. However, the problem is we also need it in the codec, which is synchonous and can exist without a connection.
I don't see a big issue in passing a TokenConfiguration
when creating a connection. That happens in one place per application.
from cosmjs.
Okay, yeah, this is going to be a nightmare to untangle. Like you need this before you connect, but you need a connection to get this info...
I would like to revisit this later once we have a stable app on top to reduce overhead, but not worth putting in more than an hour now.
from cosmjs.
Closing since TokenInfo does not exist anymore in CosmJS. App developers are now responsible for finding a representation of a amount/denom pair that is intuitive depending on the use case. This can be done by hardcoding supported tokens or using ADR 024: Coin Metadata. The Decimal
class from @cosmjs/math
make this easy.
from cosmjs.
Related Issues (20)
- Can cosmjs be used to send ics20 tokens for IBC swaps to Osmosis ?
- Allow simulation of messages without private key access
- Uncaught (in promise) Error: Broadcasting transaction failed with code 18 (codespace: sdk). Log: must contain at least one message: invalid request HOT 4
- @cosmjs/encoding/build/utf8.d.ts:1:1 - error TS1490: File appears to be binary. HOT 3
- SyntaxError: Unexpected token '.' while deploying faucet service
- How to vote with cosmosjs HOT 1
- I canβt write a script for the evm-cosmos network (for example Evmos) HOT 1
- Broadcasting transaction failed with code 7 HOT 3
- Failed to get block time HOT 2
- feature request: add support for comparsion operator to SearchPair
- DirectSecp256k1HdWallet.fromMnemonic error HOT 1
- React Native Expo build error
- Replace most of libsodium with Noble cryptography HOT 1
- Hi help me create code please HOT 2
- Module ctypto issue when vite build
- Can the verification of denom be rolled back?
- How to create correct amino-converter for Duration type HOT 3
- Cannot decode height 1 - Error in parsing for rollapps
- `StargateClient.GetBalanceStaked` for noble never fires the actual query (noble doesnt have staking module, but should still fire query, like neutron)
- cosmos.staking.v1beta1.MsgCancelUnbondingDelegation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmjs.