diff --git a/README.md b/README.md index 7dfa505..eaf35d4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ BandChain.js is a library for interacting with BandChain in browser and Node.js ## 📦 Installation -BandChain.js is currently supported on NodeJS 16.x, and 18.x. +BandChain.js is currently supported on Node.js 16.x, >= 18.x. ### NPM @@ -26,33 +26,6 @@ yarn add @bandprotocol/bandchain.js ## Compatibility -Band 2.2.0, Cosmos SDK 0.44.0, IBC-go 1.1.0 +BandChain v3.0.0, Cosmos SDK v0.50.0, IBC-go v8.5.2 ## Usage - -#### Retrieving Price Data - -```js -const { Client } = require('@bandprotocol/bandchain.js') - -// BandChain's Proof-of-Authority REST endpoint -const endpoint = 'https://laozi-testnet6.bandchain.org/grpc-web' -const client = new Client(endpoint) - -// This example demonstrates how to query price data from -// Band's standard dataset -async function exampleGetReferenceData() { - const rate = await client.getReferenceData( - ['BTC/USD', 'BTC/ETH', 'EUR/USD', 'EUR/ETH'], - 3, - 4, - ) - return rate -} - -;(async () => { - console.log(await exampleGetReferenceData()) -})() -``` - -For more examples, please see [`example`](example/) folder. diff --git a/package.json b/package.json index b13938a..33d0dfb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bandprotocol/bandchain.js", - "version": "2.5.0-alpha", + "version": "2.5.0", "description": "Library for interacting with BandChain in browser and Node.js environments", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/proto/chain b/proto/chain new file mode 160000 index 0000000..21710ba --- /dev/null +++ b/proto/chain @@ -0,0 +1 @@ +Subproject commit 21710ba551618fd55a027f9fc2e24dd428fb788d diff --git a/proto/cosmos-proto b/proto/cosmos-proto new file mode 160000 index 0000000..3e53812 --- /dev/null +++ b/proto/cosmos-proto @@ -0,0 +1 @@ +Subproject commit 3e53812559a5f89540930b1a40f16266a73ce1c9 diff --git a/proto/cosmos-sdk b/proto/cosmos-sdk new file mode 160000 index 0000000..b45cf75 --- /dev/null +++ b/proto/cosmos-sdk @@ -0,0 +1 @@ +Subproject commit b45cf753a7a344a275e0489c03360fc91663c220 diff --git a/proto/ibc-go b/proto/ibc-go new file mode 160000 index 0000000..a766bce --- /dev/null +++ b/proto/ibc-go @@ -0,0 +1 @@ +Subproject commit a766bce91b4a2bb469d6a572cba0f0d2351d2cdd