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

update and cleanup #271

Merged
merged 5 commits into from
Dec 20, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 19.0.0
node-version: 20.10.0
- name: Build
run: yarn --frozen-lockfile --network-timeout 180000
- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v19.0.0
v20.10.0
21 changes: 17 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
[0.1.2] - Amun - 2023-12-12 (entropy-core compatibility: 0.0.9)
Added
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

At the moment this project **does not** adhere to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.2] Amun - 2023-12-12 (entropy-core compatibility: 0.0.9)

### Added

- now supports separate keys for registering and program management (#252)
- add entropy class type (#259)

Changed
### Changed

- register now returns the registration record from storage (#264)

Fixed
### Fixed
- entropy now validates proofs from tss nodes before returning signature. Will error if no valid proof is given (#230)
- Eth adapter (#260)
- getWallet no longer returns a nested signer (#263)
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"module": "dist/index.cjs",
"browser": "dist/index.js",
"scripts": {
"test": "yarn removedb && jest --runInBand --detectOpenHandles",
"test": "yarn test:setup && yarn removedb && jest --runInBand --detectOpenHandles",
"test:setup": "docker version && [ \"$(cat .nvmrc)\" = \"$(node --version)\" ] && echo \"\\nCORRECT NODE VERSION\\n\" || { echo \"\\nINCOREECT NODE VERSION\\n\"; exit 1; }",
"test:log": "yarn removedb && jest --runInBand --detectOpenHandles --silent=false --verbose",
"lint:ts": "tsc",
"lint:eslint": "eslint . --ext .ts",
Expand All @@ -22,7 +23,7 @@
"peek": "tsc --build --clean",
"burn": "rm -Rf node_modules && yarn cache clean --all && yarn install",
"removedb": "rm -rf .entropy",
"bundle": "tsup --dts --format cjs,esm src/index.ts",
"bundle": "tsup",
"bundle:watch": "tsup --watch",
"bundle:node": "tsup --platform node ",
"bundle:browser": "tsup --platform browser",
Expand Down Expand Up @@ -52,20 +53,14 @@
"@babel/preset-typescript": "^7.21.0",
"@changesets/cli": "^2.26.0",
"@polkadot/typegen": "^10.11.1",
"@swc/core": "^1.3.32",
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "^1.0.1",
"@types/jest": "^29.4.0",
"@types/mocha": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"chai": "^4.3.7",
"child_process": "^1.0.2",
"dotenv": "^16.0.3",
"eslint": "^8.27.0",
"jest": "^29.4.3",
"prettier": "2.2.1",
"rimraf": "^4.1.2",
"should": "^13.2.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"ts-prune": "^0.10.3",
Expand Down
8 changes: 3 additions & 5 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { defineConfig } from 'tsup'

export default defineConfig((options) => {
let path = `src/index.ts`
if (process.env.BUILD) path = `src/${process.env.BUILD}/index.ts`
return {
entry: [path],
entry: [`src/index.ts`, 'src/keys/index.ts', 'src/utils/index.ts', 'src/utils/crypto.ts'],
replaceNodeEnv: true,
format: ['esm'],
external: ['dotenv', 'node:fs', 'fs', '**/*.test.ts', 'src/utils/index.ts'],
dts: true,
sourcemap: true,
// todo: env var for this?
sourcemap: false,
clean: true,
target: 'es2022',
minify: options.minify,
Expand Down
Loading
Loading