Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: develop -> main #275

Merged
merged 43 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c9950fb
feat(feat): develop/main
cgilbe27 Dec 7, 2023
a67fc44
fix(fix): fix
cgilbe27 Dec 7, 2023
1bb5a56
fix(test): fix
cgilbe27 Dec 7, 2023
144216d
fix(nibijs): examples up-to-date + more docs + test examples in CI (#…
Unique-Divine Dec 7, 2023
d2a4311
fix(fix): markdown (#256)
cgilbe27 Dec 8, 2023
4c38b2d
fix(nibijs): NibiruQueryClient must expose methods from the Tendermin…
Unique-Divine Dec 8, 2023
ffc2060
refactor: custom chain for mainnet (#262)
CalicoNino Dec 12, 2023
0dc149c
ci: removing --watchall and --no-cache
CalicoNino Dec 12, 2023
b2b4b26
feat(nibijs): functions for humans + getTxByHash (exchange integratio…
Unique-Divine Dec 12, 2023
e5cb862
fix: fix merge
cgilbe27 Dec 12, 2023
c2a4891
fix: yarn merge
cgilbe27 Dec 12, 2023
9219a7e
fix: align chain id (#263)
cgilbe27 Dec 12, 2023
779a3cc
refactor(nibijs)!: NibiruSigningClient -> NibiruTxClient, NibiruQuery…
Unique-Divine Dec 13, 2023
ea490c7
fix(release): publish please
Unique-Divine Dec 13, 2023
d1ab644
Merge remote-tracking branch 'origin/main' into develop
Unique-Divine Dec 13, 2023
23db897
Merge branch 'main' into develop
Unique-Divine Dec 13, 2023
6e650cb
chore: rebuild docs with v0.21.43 (main)
Unique-Divine Dec 13, 2023
ae9ace9
feat(nibijs): mainnet custom chain function (#268)
Unique-Divine Dec 14, 2023
6a924b6
feat(triggering release): now
cgilbe27 Dec 20, 2023
6e9aeef
Merge branch 'main' into develop
cgilbe27 Dec 20, 2023
9c33d1b
fix: install error
cgilbe27 Dec 20, 2023
b09b5db
Merge branch 'main' into develop
cgilbe27 Jan 2, 2024
95e1c36
fix: fix
cgilbe27 Jan 4, 2024
4d3713f
fix: fix update
cgilbe27 Jan 4, 2024
2c11f86
Merge branch 'main' into develop
cgilbe27 Jan 4, 2024
b82a4e2
fix: fix build issue
cgilbe27 Jan 4, 2024
3908f41
fix(fix): merge
cgilbe27 Jan 4, 2024
da1b437
fix: fix
cgilbe27 Jan 4, 2024
9249e53
fix: fix
cgilbe27 Jan 4, 2024
b69cd4b
fix: fix
cgilbe27 Jan 4, 2024
5f85c34
fix(fi): fix
cgilbe27 Jan 4, 2024
7c4be1b
fix: fix
cgilbe27 Jan 4, 2024
7891168
fix: fix
cgilbe27 Jan 4, 2024
89f4b6e
fix: fix
cgilbe27 Jan 4, 2024
0cb33b9
fix: fix
cgilbe27 Jan 4, 2024
7eae536
fix: revert
cgilbe27 Jan 5, 2024
ac0e922
fix: more reverts
cgilbe27 Jan 5, 2024
5835628
fix: rev
cgilbe27 Jan 5, 2024
7fc57e8
fix: fix
cgilbe27 Jan 5, 2024
e50e6a2
fix: git push
cgilbe27 Jan 5, 2024
b01852d
fix: fix
cgilbe27 Jan 5, 2024
fd6747a
fix: fix
cgilbe27 Jan 5, 2024
02d4302
fix: fix
cgilbe27 Jan 5, 2024
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
46 changes: 24 additions & 22 deletions .github/workflows/test-ts-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,12 @@ on:
jobs:
checkout_cache_install:
runs-on: ubuntu-latest
env:
VALIDATOR_MNEMONIC: ${{ secrets.VALIDATOR_MNEMONIC }}
VALIDATOR_ADDRESS: ${{ secrets.VALIDATOR_ADDRESS }}
LCD_ENDPOINT: "http://127.0.0.1:1317"
GRPC_ENDPOINT: "127.0.0.1:9090"
TENDERMINT_RPC_ENDPOINT: "http://127.0.0.1:26657"
USE_LOCALNET: true
WEBSOCKET_ENDPOINT: "ws://127.0.0.1:26657/websocket"
CHAIN_ID: "nibiru-localnet-0"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Run Nibiru network in the background (scripts/localnet.sh)
run: |
# Install nibid CLI
# Use https://get.nibiru.fi/ to get the most recent release.
curl -s https://get.nibiru.fi/@v0.21.9! | bash
# Sanity check nibid CLI
nibid version
# Start local network
bash scripts/localnet.sh &

- name: Setup NodeJS with yarn caching
uses: actions/setup-node@v3
with:
Expand All @@ -43,7 +24,7 @@ jobs:
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
cmd: install:packages

- name: "Tar files"
run: tar -cf preview_image.tar ./
Expand Down Expand Up @@ -74,6 +55,15 @@ jobs:
test:
runs-on: ubuntu-latest
needs: [checkout_cache_install]
env:
VALIDATOR_MNEMONIC: ${{ secrets.VALIDATOR_MNEMONIC }}
VALIDATOR_ADDRESS: ${{ secrets.VALIDATOR_ADDRESS }}
LCD_ENDPOINT: "http://127.0.0.1:1317"
GRPC_ENDPOINT: "127.0.0.1:9090"
TENDERMINT_RPC_ENDPOINT: "http://127.0.0.1:26657"
USE_LOCALNET: true
WEBSOCKET_ENDPOINT: "ws://127.0.0.1:26657/websocket"
CHAIN_ID: "nibiru-localnet-0"
steps:
- name: Download preview_image
uses: actions/download-artifact@v4
Expand All @@ -83,14 +73,26 @@ jobs:
- name: Untar files
run: tar -xf preview_image.tar

- name: Run Nibiru network in the background (scripts/localnet.sh)
run: |
# Install nibid CLI
# Use https://get.nibiru.fi/ to get the most recent release.
curl -s https://get.nibiru.fi/@v0.21.9! | bash
# Sanity check nibid CLI
nibid version
# Start local network
bash scripts/localnet.sh &

- name: yarn test
uses: borales/actions-yarn@v4
with:
cmd: test

- name: "Run examples (packages/examples)"
- name: "Run examples"
run: |
yarn run tsx packages/examples/examples.test.ts
cd examples
yarn run:examples
cd ..
# tsx is a TS script executor similar to ts-node, except it runs more
# consistently and has a more lightweight implementation.

Expand Down
4 changes: 4 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
. "$(dirname -- "$0")/_/husky.sh"

yarn
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import {
newRandomWallet,
Localnet,
Chain,
TEST_ADDRESS,
TEST_MNEMONIC,
} from "@nibiruchain/nibijs"
import { StdFee, coin } from "@cosmjs/amino"
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"
import { TEST_ADDRESS, TEST_MNEMONIC } from "@nibiruchain/nibijs/dist/testutil"
import esMain from "es-main"

// -----------------------------------------------
Expand Down
13 changes: 8 additions & 5 deletions packages/examples/package.json → examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
"module": "examples.test.ts",
"type": "module",
"version": "0.0.1",
"dependencies": {
"@cosmjs/amino": "^0.32.1",
"@cosmjs/proto-signing": "^0.32.1",
"@nibiruchain/nibijs": "0.21.43"
},
"engines": {
"node": ">=18"
},
"scripts": {
"run:examples": "tsx ./examples.test.ts"
},
"dependencies": {
"@cosmjs/amino": "^0.31.0",
"@cosmjs/proto-signing": "^0.31.0",
"@nibiruchain/nibijs": "0.21.45"
},
"devDependencies": {
"es-main": "^1.3.0",
"tsx": "^4.6.2"
Expand Down
14 changes: 14 additions & 0 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"target": "ES6",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"rootDir": "./",
"outDir": "./dist",
"baseUrl": "./",
"paths": {}
},
"include": ["./examples.test.ts"],
"exclude": ["node_modules", "dist"]
}
Loading
Loading