Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions packages/bandchainjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
</p>

<p align="center" width="100%">
<a href="https://github.com/bandprotocol/bandchain.js/actions/workflows/run-tests.yml">
<img height="20" src="https://github.com/bandprotocol/bandchain.js/actions/workflows/run-tests.yml/badge.svg" />
</a>
<a href="https://github.com/bandprotocol/bandchain.js/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
</p>

Expand All @@ -26,7 +23,6 @@ npm install @bandprotocol/bandchain.js
- [Usage](#usage)
- [RPC Clients](#rpc-clients)
- [Composing Messages](#composing-messages)
- [CosmWasm Messages](#cosmwasm-messages)
- [IBC Messages](#ibc-messages)
- [Cosmos Messages](#cosmos-messages)
- [Connecting with Wallets and Signing Messages](#connecting-with-wallets-and-signing-messages)
Expand Down Expand Up @@ -59,7 +55,9 @@ const balance = await client.cosmos.bank.v1beta1.allBalances({
});

// you can also query the band modules
const balances = await client.band.exchange.v1beta1.exchangeBalances();
const oracleScript = await client.band.oracle.v1.oracleScript({
oracleScriptId: BigInt(37),
});
```

### Composing Messages
Expand All @@ -69,23 +67,8 @@ Import the `band` object from `@bandprotocol/bandchain.js`.
```js
import { band } from "@bandprotocol/bandchain.js";

const { createSpotLimitOrder, createSpotMarketOrder, deposit } =
band.exchange.v1beta1.MessageComposer.withTypeUrl;
```

#### CosmWasm Messages

```js
import { cosmwasm } from "@bandprotocol/bandchain.js";

const {
clearAdmin,
executeContract,
instantiateContract,
migrateContract,
storeCode,
updateAdmin,
} = cosmwasm.wasm.v1.MessageComposer.withTypeUrl;
const { requestData, reportData, createDataSource } =
band.oracle.v1.MessageComposer.withTypeUrl;
```

#### IBC Messages
Expand Down