Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 0f64808

Browse files
authored
Merge pull request #102 from cosmostation/add-cosmostation
add cosmostation
2 parents 5c8964b + e2f5b93 commit 0f64808

File tree

7 files changed

+12175
-2536
lines changed

7 files changed

+12175
-2536
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,25 @@ async function main() {
8686
main();
8787
```
8888

89+
### Connect with Cosmostation and get a signing starget client
90+
91+
```ts
92+
import { setupCosmostation } from "cosmwasm";
93+
94+
const config = {
95+
chainId: "cliffnet-1",
96+
rpcEndpoint: "https://rpc.cliffnet.cosmwasm.com:443/",
97+
prefix: "wasm",
98+
};
99+
100+
async function main() {
101+
const client = await setupCosmostation(config);
102+
console.log(client);
103+
}
104+
105+
main();
106+
```
107+
89108
### Interacting with contracts
90109

91110
```ts

docs/clients/writing/CosmWasmSigningClient/setup.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Basically there are currently 4 different setup functions:
2020
| setupWebLedger | This function is used to log in to web-based dApps with a ledger. (Without Keplr) |
2121
| setupNodeLocal | Herewith a local mnemonic can be used for signing. |
2222
| setupNodeLedger | With the help of this function, a ledger device can be used in a node environment. |
23+
| setupCosmostation | This function is used to log in to dApps with Cosmostation. |
24+
2325

2426
## Configuration
2527

@@ -117,4 +119,23 @@ const config = {
117119
async function getClient() {
118120
return await setupWebLedger(config, TransportNodeHid);
119121
}
122+
```
123+
124+
### Setup Web/Cosmostation
125+
126+
```ts
127+
import { setupCosmostation } from "cosmwasm";
128+
129+
const config = {
130+
chainId: "cliffnet-1",
131+
rpcEndpoint: "https://rpc.cliffnet.cosmwasm.com:443/",
132+
prefix: "wasm",
133+
};
134+
135+
async function main() {
136+
const client = await setupCosmostation(config);
137+
console.log(client);
138+
}
139+
140+
main();
120141
```

0 commit comments

Comments
 (0)