You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to allow an additional way of connecting to the contract, by contract URL. We should add gcclient.forContractUrl(url) method which accepts just a contract URL, like: https://gateway.stage.galachain.com/api/hackathon03/gc-8c757ffb9ac963b04e45b5e6e8a298992c530c23-GalaChainToken. Then it would use a similar flow as RestApiClient, just with no need of fetching contract API.
Probably the best way to approach is to:
add gcclient.forContractUrl(url) method
copy RestApiClientBuilder and remove non relevant code (duplication is good here)
copy RestApiClient and remove non relevant code (also duplication is good)
Then we can use this way of connecting to the contract with @gala-chain/connect
The text was updated successfully, but these errors were encountered:
Currently
gcclient
allows to connect to GC gateway withforApiConfig
method, which requires the following parameters (assuming #231 is resolved):We would like to allow an additional way of connecting to the contract, by contract URL. We should add
gcclient.forContractUrl(url)
method which accepts just a contract URL, like:https://gateway.stage.galachain.com/api/hackathon03/gc-8c757ffb9ac963b04e45b5e6e8a298992c530c23-GalaChainToken
. Then it would use a similar flow asRestApiClient
, just with no need of fetching contract API.Probably the best way to approach is to:
gcclient.forContractUrl(url)
methodRestApiClientBuilder
and remove non relevant code (duplication is good here)RestApiClient
and remove non relevant code (also duplication is good)Then we can use this way of connecting to the contract with
@gala-chain/connect
The text was updated successfully, but these errors were encountered: