Skip to content

Commit

Permalink
feat: sync with chain version v0.19.0 + oracle extension (#86)
Browse files Browse the repository at this point in the history
* feat!(protojs): sync with v0.19.0

* successfully ran build (nibijs) #wip

* feat,test(nibijs): oracle extension and tests

* docs(nibijs): docgen md

* ci: use node 16 and set check-files flag on yarn install

* ci: #wip try the --include-dependencies flag on yarn build

* build(nibijs): increment protojs version
  • Loading branch information
Unique-Divine authored Feb 18, 2023
1 parent d8cd31f commit 0a99491
Show file tree
Hide file tree
Showing 60 changed files with 862 additions and 5,172 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const common = {
"camelcase": "off",
"consistent-return": "off",
"eqeqeq": "off",
"no-unreachable-loop": ["off"],
"import/extensions": "off",
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"import/no-named-as-default": "off",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
- name: Setup NodeJS and npm
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "16"
- name: Install yarn using npm
run: npm install -g yarn
- name: Setup NodeJS with yarn caching
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn --prefer-offline
run: yarn --prefer-offline --check-files
- name: Build the application
run: yarn build || yarn build --parallel
run: yarn build --include-dependencies || yarn build --parallel --include-dependencies
- name: Run all tests
run: yarn test --verbose --coverage --testPathIgnorePatterns faucet.test.ts

Expand Down
20 changes: 10 additions & 10 deletions packages/nibijs/docs/classes/MsgFactory.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / MsgFactory
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / MsgFactory

# Class: MsgFactory

Expand All @@ -11,8 +11,8 @@
### Properties

- [bank](MsgFactory.md#bank)
- [dex](MsgFactory.md#dex)
- [perp](MsgFactory.md#perp)
- [spot](MsgFactory.md#spot)
- [staking](MsgFactory.md#staking)

## Constructors
Expand All @@ -29,27 +29,27 @@

#### Defined in

[msg/index.ts:7](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/msg/index.ts#L7)
[msg/index.ts:7](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/msg/index.ts#L7)

___

### dex
### perp

**dex**: typeof `DexMsgs` = `DexMsgs`
**perp**: typeof `PerpMsgs` = `PerpMsgs`

#### Defined in

[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/msg/index.ts#L9)
[msg/index.ts:11](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/msg/index.ts#L11)

___

### perp
### spot

**perp**: typeof `PerpMsgs` = `PerpMsgs`
**spot**: typeof `SpotMsgs` = `SpotMsgs`

#### Defined in

[msg/index.ts:11](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/msg/index.ts#L11)
[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/msg/index.ts#L9)

___

Expand All @@ -59,4 +59,4 @@ ___

#### Defined in

[msg/index.ts:13](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/msg/index.ts#L13)
[msg/index.ts:13](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/msg/index.ts#L13)
12 changes: 6 additions & 6 deletions packages/nibijs/docs/classes/QueryCmd.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / QueryCmd
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / QueryCmd

# Class: QueryCmd

Expand Down Expand Up @@ -37,7 +37,7 @@

#### Defined in

[query/query.ts:77](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/query/query.ts#L77)
[query/query.ts:77](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/query/query.ts#L77)

## Properties

Expand All @@ -54,7 +54,7 @@ E.g. nibiru-testnet-1, nibiru-localnet-42

#### Defined in

[query/query.ts:75](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/query/query.ts#L75)
[query/query.ts:75](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/query/query.ts#L75)

___

Expand All @@ -71,7 +71,7 @@ It contains queries for all of the active modules of Nibiru Chain.

#### Defined in

[query/query.ts:71](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/query/query.ts#L71)
[query/query.ts:71](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/query/query.ts#L71)

___

Expand All @@ -85,7 +85,7 @@ ___

#### Defined in

[query/query.ts:73](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/query/query.ts#L73)
[query/query.ts:73](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/query/query.ts#L73)

## Methods

Expand All @@ -103,4 +103,4 @@ IQueryCmd.disconnect

#### Defined in

[query/query.ts:93](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/query/query.ts#L93)
[query/query.ts:93](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/query/query.ts#L93)
12 changes: 6 additions & 6 deletions packages/nibijs/docs/classes/Sdk.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / Sdk
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / Sdk

# Class: Sdk

Expand Down Expand Up @@ -63,7 +63,7 @@ Creates an instance of Sdk.

#### Defined in

[sdk.ts:71](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/sdk.ts#L71)
[sdk.ts:71](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/sdk.ts#L71)

## Properties

Expand All @@ -77,7 +77,7 @@ Creates an instance of Sdk.

#### Defined in

[sdk.ts:57](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/sdk.ts#L57)
[sdk.ts:57](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/sdk.ts#L57)

___

Expand All @@ -91,7 +91,7 @@ ___

#### Defined in

[sdk.ts:61](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/sdk.ts#L61)
[sdk.ts:61](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/sdk.ts#L61)

___

Expand All @@ -105,7 +105,7 @@ ___

#### Defined in

[sdk.ts:63](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/sdk.ts#L63)
[sdk.ts:63](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/sdk.ts#L63)

___

Expand All @@ -119,4 +119,4 @@ ___

#### Defined in

[sdk.ts:59](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/sdk.ts#L59)
[sdk.ts:59](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/sdk.ts#L59)
28 changes: 14 additions & 14 deletions packages/nibijs/docs/classes/TxCmd.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / TxCmd
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / TxCmd

# Class: TxCmd

Expand Down Expand Up @@ -47,7 +47,7 @@ TxCmd is analagous to the 'nibid tx' command of the nibid CLI.

#### Defined in

[tx/tx.ts:49](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L49)
[tx/tx.ts:49](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L49)

## Properties

Expand All @@ -57,7 +57,7 @@ TxCmd is analagous to the 'nibid tx' command of the nibid CLI.

#### Defined in

[tx/tx.ts:41](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L41)
[tx/tx.ts:41](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L41)

___

Expand All @@ -67,7 +67,7 @@ ___

#### Defined in

[tx/tx.ts:39](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L39)
[tx/tx.ts:39](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L39)

___

Expand All @@ -77,7 +77,7 @@ ___

#### Defined in

[tx/tx.ts:45](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L45)
[tx/tx.ts:45](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L45)

___

Expand All @@ -87,7 +87,7 @@ ___

#### Defined in

[tx/tx.ts:43](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L43)
[tx/tx.ts:43](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L43)

___

Expand All @@ -97,7 +97,7 @@ ___

#### Defined in

[tx/tx.ts:47](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L47)
[tx/tx.ts:47](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L47)

## Methods

Expand All @@ -117,7 +117,7 @@ ___

#### Defined in

[tx/tx.ts:108](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L108)
[tx/tx.ts:108](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L108)

___

Expand All @@ -131,7 +131,7 @@ ___

#### Defined in

[tx/tx.ts:135](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L135)
[tx/tx.ts:135](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L135)

___

Expand All @@ -151,7 +151,7 @@ ___

#### Defined in

[tx/tx.ts:99](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L99)
[tx/tx.ts:99](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L99)

___

Expand All @@ -172,7 +172,7 @@ ___

#### Defined in

[tx/tx.ts:129](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L129)
[tx/tx.ts:129](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L129)

___

Expand All @@ -192,7 +192,7 @@ ___

#### Defined in

[tx/tx.ts:80](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L80)
[tx/tx.ts:80](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L80)

___

Expand All @@ -219,7 +219,7 @@ returns an estimate of how many gas units are required.

#### Defined in

[tx/tx.ts:75](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L75)
[tx/tx.ts:75](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L75)

___

Expand All @@ -240,4 +240,4 @@ ___

#### Defined in

[tx/tx.ts:62](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/tx.ts#L62)
[tx/tx.ts:62](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/tx.ts#L62)
14 changes: 7 additions & 7 deletions packages/nibijs/docs/enums/BECH32_PREFIX.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / BECH32\_PREFIX
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / BECH32\_PREFIX

# Enumeration: BECH32\_PREFIX

Expand All @@ -23,7 +23,7 @@ ADDR defines the Bech32 prefix of an account address

#### Defined in

[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L12)
[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L12)

___

Expand All @@ -35,7 +35,7 @@ ADDR_VAL defines the Bech32 prefix of an validator's operator address

#### Defined in

[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L14)
[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L14)

___

Expand All @@ -47,7 +47,7 @@ ADDR_VALCONS defines the Bech32 prefix of a consensus node address

#### Defined in

[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L16)
[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L16)

___

Expand All @@ -59,7 +59,7 @@ PUB defines the Bech32 prefix of an account's public key

#### Defined in

[tx/signer.ts:18](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L18)
[tx/signer.ts:18](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L18)

___

Expand All @@ -71,7 +71,7 @@ PUB_VAL defines the Bech32 prefix of an validator's operator public key

#### Defined in

[tx/signer.ts:20](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L20)
[tx/signer.ts:20](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L20)

___

Expand All @@ -83,4 +83,4 @@ PUB_VALCONS defines the Bech32 prefix of a consensus node public key

#### Defined in

[tx/signer.ts:22](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L22)
[tx/signer.ts:22](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L22)
6 changes: 3 additions & 3 deletions packages/nibijs/docs/enums/Signer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.8.6](../intro.md) / [Exports](../modules.md) / Signer
[NibiJS Documentation - v0.19.0](../intro.md) / [Exports](../modules.md) / Signer

# Enumeration: Signer

Expand All @@ -17,7 +17,7 @@

#### Defined in

[tx/signer.ts:71](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L71)
[tx/signer.ts:71](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L71)

___

Expand All @@ -27,4 +27,4 @@ ___

#### Defined in

[tx/signer.ts:70](https://github.com/NibiruChain/ts-sdk/blob/c16f844/packages/nibijs/src/tx/signer.ts#L70)
[tx/signer.ts:70](https://github.com/NibiruChain/ts-sdk/blob/462c731/packages/nibijs/src/tx/signer.ts#L70)
Loading

0 comments on commit 0a99491

Please sign in to comment.