-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.1.x #121
0.1.x #121
Conversation
Co-authored-by: Griko Nibras <[email protected]> Signed-off-by: Nur Fikri <[email protected]>
Co-authored-by: Griko Nibras <[email protected]> Signed-off-by: Nur Fikri <[email protected]>
Co-authored-by: Griko Nibras <[email protected]> Signed-off-by: Nur Fikri <[email protected]>
Co-authored-by: Griko Nibras <[email protected]> Signed-off-by: Nur Fikri <[email protected]>
With this change, where do we find gas prices? We must hardcode them in our app? Seems like they exist in chain-registry, so would be great if they can be fetched when setting up graz. |
@apollo-sturdy previously we need to hardcode too in graz chain. now you need to do this https://graz.sh/docs/migration-guide#removed-grazchain-type |
Is it worth updating the |
@apollo-sturdy We are still researching on another solution to generate chain info metadatas, which you can also check here: https://github.com/graz-sh/wadesta |
v0.1.0-beta.2: https://npmjs.com/package/graz/v/0.1.0-beta.2
docs: https://0-1-x-iteration-1.graz.pages.dev/docs/
Example :
0.1.0 Breaking Changes
<GrazProvider/>
grazOptions
is required to provide aChainInfo[]
to thechains
param. Read moredefaultChain
removed fromgrazOptions
Removed
GrazChain
typeWe are using
ChainInfo
from@keplr-wallet/types
instead ofGrazChain
Our initial intention having
GrazChain
is for adding and only using required value for interacting with signingClients. We adding rpcHeaders and gas in there for interacting with clients and signingClient for simplicity, but this can make a different problem when you already have a ChainInfo you will need to mutate those constants. Read RFC.For adding rpcHeaders and gas, we can add it in
GrazProvider
ongrazOptions.chainsConfig
to provide those values.When you connect you don't need
GrazChain
anymore, you only need thechainId
useConnect
ConnectResult
return type of
connect
inuseConnect
andonConnect
paramsuseBalance
useBalances
useBalanceStaked
useQuerySmart
useQueryRaw