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

Development #108

Merged
merged 84 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
2b8352c
adjust getKeys
callebtc Nov 29, 2023
a5affdc
mint works
callebtc Nov 29, 2023
f790539
add some tests
callebtc Nov 29, 2023
35a7455
try docker-compose
callebtc Nov 29, 2023
d071952
remove node version
callebtc Nov 29, 2023
00f1c0d
try again
callebtc Nov 29, 2023
aaf7842
remove newkeys
callebtc Nov 29, 2023
6d04486
slowly fixing tests
callebtc Nov 29, 2023
7630d74
generate only hex secrets
callebtc Nov 29, 2023
a94e42c
mostly working but something is wrong with crypto
callebtc Nov 29, 2023
83b1693
load keys before receive
callebtc Nov 29, 2023
a84cc18
generate 64 character hex string
callebtc Nov 29, 2023
100ae41
renamed requestTokens->mintTokens and payLnInvoice->meltTokens
callebtc Nov 29, 2023
f3a998a
remove unused imports
callebtc Nov 29, 2023
0f46b99
check docker
callebtc Nov 29, 2023
dc507b6
start mint?
callebtc Nov 29, 2023
6b7887b
fix
callebtc Nov 29, 2023
a109881
fix
callebtc Nov 29, 2023
5945e3e
add curl
callebtc Nov 29, 2023
042c8d0
trigger CI
callebtc Nov 29, 2023
8215328
trigger CI
callebtc Nov 29, 2023
6e6fdf0
trigger CI
callebtc Nov 29, 2023
d0b28d4
gotta try it
callebtc Nov 29, 2023
a891cc5
gotta try it
callebtc Nov 29, 2023
a5615d6
trigger CI
callebtc Nov 29, 2023
077697d
trigger CI
callebtc Nov 29, 2023
11b32d5
trigger CI
callebtc Nov 29, 2023
36b326c
trigger CI
callebtc Nov 29, 2023
0e2c951
trigger CI
callebtc Nov 29, 2023
0d16b3f
trigger CI
callebtc Nov 29, 2023
fbb8395
trigger CI
callebtc Nov 29, 2023
0093db0
trigger CI
callebtc Nov 29, 2023
5f34392
trigger CI
callebtc Nov 29, 2023
fc38b0f
trigger CI
callebtc Nov 29, 2023
3508bbf
trigger CI
callebtc Nov 29, 2023
90c7a31
trigger CI
callebtc Nov 29, 2023
f1685ed
trigger CI
callebtc Nov 29, 2023
22242bc
trigger CI
callebtc Nov 29, 2023
84d6cfa
try macos
callebtc Nov 29, 2023
3f2e8a0
try macos
callebtc Nov 29, 2023
66be50b
disable docker pipeline
callebtc Nov 29, 2023
848a0f5
tests on push
callebtc Nov 30, 2023
5ccf8ba
fix h2c
gandlafbtc Feb 16, 2024
e4b6691
add hashes dep and upgrade other deps
gandlafbtc Feb 19, 2024
b275740
format
gandlafbtc Feb 19, 2024
cb1bfa2
switch to hex secrets
gandlafbtc Feb 19, 2024
0ae8726
fix variables as per review
gandlafbtc Feb 20, 2024
f7ffde4
Merge pull request #102 from cashubtc/fix-h2c
gandlafbtc Feb 20, 2024
87934b1
Merge pull request #104 from cashubtc/add-noble-hashes
gandlafbtc Feb 20, 2024
f8c9fe5
pipeline for npm release
gandlafbtc Feb 20, 2024
c8385d8
Merge pull request #107 from cashubtc/cd-pipeline
gandlafbtc Feb 20, 2024
8501953
Merge branch 'development' into remove-b64-secrets
gandlafbtc Feb 20, 2024
d95438c
Merge pull request #105 from cashubtc/remove-b64-secrets
gandlafbtc Feb 20, 2024
b76e01e
update test vector
gandlafbtc Feb 21, 2024
2fce7d7
Merge branch 'main' into v1_api
callebtc Feb 23, 2024
a1f3e31
add output dirs to prettierignore
gandlafbtc Feb 24, 2024
e13a9ab
add provenance to workflow
gandlafbtc Feb 24, 2024
6008309
fix version workflow
gandlafbtc Feb 24, 2024
e53a248
Merge branch 'staging' into v1_api
callebtc Feb 24, 2024
91a66cb
merge staging
callebtc Feb 24, 2024
f9f56e2
Merge branch 'development' into v1_api
callebtc Feb 24, 2024
43fea05
reenable integration test
callebtc Feb 24, 2024
77702da
Node JS CI for all pushes
callebtc Feb 24, 2024
0a7a546
try integration test without docker compose
callebtc Feb 24, 2024
a39c058
try system docker
callebtc Feb 24, 2024
fa6b149
add sleep
callebtc Feb 24, 2024
40b5f81
CI
callebtc Feb 24, 2024
2f4d58c
fix all API changes
callebtc Feb 24, 2024
f57757f
format
gandlafbtc Feb 27, 2024
6bee3b3
fix custom requests
gandlafbtc Feb 27, 2024
60ddb73
add keyset test and type
gandlafbtc Feb 27, 2024
77c8b5f
change param to keysetId for consistencey
gandlafbtc Feb 27, 2024
598ec08
Token state check with Y, https://github.com/cashubtc/nuts/pull/93
callebtc Mar 7, 2024
a2c3954
rename integration test
callebtc Mar 7, 2024
31c1af3
Merge branch 'v1_api' of https://github.com/cashubtc/cashu-ts into v1…
callebtc Mar 7, 2024
f46001b
fix Y response
callebtc Mar 7, 2024
086f896
use nutshell 0.15.1
callebtc Mar 17, 2024
6a2544b
fixes for keyset
gandlafbtc Mar 21, 2024
b2fe1d2
remove some unused imports
gandlafbtc Mar 21, 2024
8d92c51
fix info response type
gandlafbtc Mar 23, 2024
322a7f0
add doc to new type
gandlafbtc Mar 23, 2024
152ade8
format
gandlafbtc Mar 23, 2024
ef13d93
Merge pull request #110 from cashubtc/v1_api
gandlafbtc Mar 25, 2024
c69d358
get keys from mint if getKeys is called with different keyset id
gandlafbtc Mar 25, 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
8 changes: 2 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@

name: Node.js CI

on:
pull_request:
types:
- ready_for_review
- opened
on: [push, pull_request]

jobs:
build:
tests:
runs-on: ubuntu-latest

strategy:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/nutshell-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Nutshell integration

on: [push, pull_request]

jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Pull and start mint
run: |
docker run -d -p 3338:3338 --name nutshell -e MINT_LIGHTNING_BACKEND=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:0.15.1 poetry run mint

- name: Check running containers
run: docker ps

# - name: Sleep 5 seconds and curl on localhost:3338/v1/info
# run: |
# sleep 5
# curl localhost:3338/v1/info

- name: Checkout cashu-ts repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: 'npm'

- run: npm ci
- run: npm run compile
- run: npm run test-integration
21 changes: 21 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Package to npmjs
permissions:
contents: read
id-token: write
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm run compile
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dist
node_modules
package-lock.json
package-lock.json
coverage
docs
87 changes: 44 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"scripts": {
"compile": "rm -rf dist/lib && tsc && tsc --build tsconfig.es5.json",
"test": "jest --coverage",
"test": "jest --coverage --testPathIgnorePatterns ./test/integration.test.ts",
"test-integration": "jest --coverage --testPathPattern ./test/integration.test.ts",
"dev": "tsc --watch",
"lint": "eslint --ext .js,.ts . --fix",
"format": "prettier --write .",
Expand Down Expand Up @@ -46,9 +47,10 @@
},
"dependencies": {
"@gandlaf21/bolt11-decode": "^3.0.6",
"@noble/curves": "^1.0.0",
"@scure/bip32": "^1.3.2",
"@scure/bip39": "^1.2.1",
"@noble/curves": "^1.3.0",
"@noble/hashes": "^1.3.3",
"@scure/bip32": "^1.3.3",
"@scure/bip39": "^1.2.2",
"buffer": "^6.0.3"
}
}
Loading
Loading