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

feat: Update cosm-js to the latest version, add pnft module, and perform code refactoring #77

Merged
merged 5 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

40 changes: 21 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
rules: {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-inner-declarations': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-var-requires': 'off',
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
env: {
node: true,
jest: true,
}
plugins: ["@typescript-eslint"],
rules: {},
};
55 changes: 20 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,33 @@ name: ci

on:
push:
branches: # only for pushes on master
- master
pull_request: # for all PRs regardless of its base branch
branches: # only for pushes on master
- master
pull_request: # for all PRs regardless of its base branch

jobs:
build-test:

runs-on: ubuntu-latest

env:
CHAIN_ID: testing
MNEMONIC: ${{ secrets.TEST_MNEMONIC }}

steps:
- uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Run a panacea-core docker container
run: |
docker run --rm -d \
-e CHAIN_ID="${CHAIN_ID}" \
-e MNEMONIC="${MNEMONIC}" \
-p 26657:26657 \
-v $(pwd)/scripts:/root/scripts \
--name core \
ghcr.io/medibloc/panacea-core:master \
bash /root/scripts/panacea-core/init.sh

wget -qO- https://raw.githubusercontent.com/eficode/wait-for/v2.1.2/wait-for | sh -s -- localhost:26657 -t 30

- name: Run tests
env:
PANACEAD_ENABLED: true
TENDERMINT_URL: http://localhost:26657
run: yarn test
- uses: actions/checkout@v2

- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Run tests
env:
PANACEAD_ENABLED: true
run: yarn test
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules

build

*.js

src/proto
third_party
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@

TBD

### Features

- []() feat:

## [v2.0.4](https://github.com/medibloc/panacea-js/releases/tag/v2.0.4) - 2023-07-05

### Features

- [\#71](https://github.com/medibloc/panacea-js/pull/71) feat: export jwt in index.ts

## [v2.0.3](https://github.com/medibloc/panacea-js/releases/tag/v2.0.3) - 2023-03-13
Expand All @@ -15,35 +20,30 @@ TBD

- [\#68](https://github.com/medibloc/panacea-js/pull/68) feat: add DID Auth in JWT


## [v2.0.2](https://github.com/medibloc/panacea-js/releases/tag/v2.0.2) - 2022-08-18

### Features

- [\#64](https://github.com/medibloc/panacea-js/pull/64) feat: implement a function to convert a mnemonic to a secp256k1 private key


## [v2.0.1](https://github.com/medibloc/panacea-js/releases/tag/v2.0.1) - 2022-06-03

### Features

- [\#60](https://github.com/medibloc/panacea-js/pull/60) feat: add explicit `fee` parameters


## [v2.0.0](https://github.com/medibloc/panacea-js/releases/tag/v2.0.0) - 2021-07-20

### Features

- [\#37](https://github.com/medibloc/panacea-js/pull/37) feat: Support Panacea v2 based on Cosmos v0.42 Stargate


## [v1.3.1](https://github.com/medibloc/panacea-js/releases/tag/v1.3.1) - 2020-11-25

### Bug fixes

- [\#24](https://github.com/medibloc/panacea-js/pull/24) Follow up the new Cosmos REST spec for DID operations


## [v1.3.0](https://github.com/medibloc/panacea-js/releases/tag/v1.3.0) - 2020-10-30

### Features
Expand Down
3 changes: 0 additions & 3 deletions CODEOWNERS

This file was deleted.

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

Loading
Loading