Skip to content
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ packages/explorer
packages/nodejs-template
packages/TBC20
packages/TBC20-app
packages/TBC404-app
packages/TBC721
packages/TBC721-app
packages/wallet
Expand Down
44,231 changes: 19,916 additions & 24,315 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"scripts": {
"build-node": "docker build -t bitcoin-computer-node .",
"check-obfuscation": "./scripts/check-obfuscation.sh",
"create-version": "lerna version --force-publish",
"down": "cd packages/node && npm run down",
"fund-ltc": "cd packages/node && npm run fund-ltc",
"fund-btc": "cd packages/node && npm run fund-btc",
Expand All @@ -44,16 +43,15 @@
"up": "cd packages/node && npm run up"
},
"dependencies": {
"@endo/static-module-record": "^0.7.6"
"@endo/static-module-record": "^1.0.4"
},
"devDependencies": {
"@types/node": "^17.0.35",
"edit-json-file": "^1.7.0",
"husky": "^8.0.1",
"lerna": "5.1.2",
"@types/node": "^20.11.21",
"edit-json-file": "^1.8.0",
"husky": "^9.0.11",
"path": "^0.12.7",
"ts-node": "^10.8.0",
"ts-node": "^10.9.2",
"typescript": "^4.9.5",
"url": "^0.11.0"
"url": "^0.11.3"
}
}
32 changes: 16 additions & 16 deletions packages/TBC20-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
"private": true,
"dependencies": {
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.2.0",
"@types/jest": "^26.0.24",
"@types/node": "^16.4.2",
"@types/react": "^17.0.15",
"@types/react-dom": "^18.0.6",
"@types/styled-components": "^5.1.11",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prop-types": "^15.7.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.21",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@types/styled-components": "^5.1.34",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
"react-router-dom": "^6.4.2",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.1",
"react-scripts": "5.0.1",
"styled-components": "^5.2.0",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"styled-components": "^6.1.8",
"typescript": "~5.3.3",
"web-vitals": "^3.5.2"
},
"scripts": {
"start": "react-scripts start",
Expand Down
37 changes: 16 additions & 21 deletions packages/TBC20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@
"private": true,
"type": "module",
"devDependencies": {
"@types/bitcoin-computer__lib": "^0.17.1",
"@types/chai": "^4.3.1",
"@types/bitcoin-computer__lib": "^0.17.2",
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/node": "~17.0.36",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.29.0",
"chai": "^4.3.6",
"chai-exclude": "^2.1.0",
"dotenv": "^16.0.0",
"eslint": "^8.7.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-import": "^2.25.4",
"mocha": "^10.0.0",
"prettier": "~2.6.2",
"rimraf": "~3.0.2",
"tsutils": "~3.21.0",
"typescript": "~4.7.2"
"@types/mocha": "^10.0.6",
"@types/node": "~20.11.21",
"chai": "^5.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-import": "^2.29.1",
"mocha": "^10.3.0",
"prettier": "~3.2.5",
"typescript": "~5.3.3"
},
"scripts": {
"start": "node build/src/main.js",
Expand All @@ -39,9 +34,9 @@
"license": "Apache-2.0",
"dependencies": {
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"eslint-plugin-prettier": "^4.0.0",
"ts-node": "^10.8.1",
"tslib": "~2.4.0"
"eslint-plugin-prettier": "^5.1.3",
"ts-node": "^10.9.2",
"tslib": "~2.6.2"
},
"volta": {
"node": "16.13.0"
Expand Down
54 changes: 24 additions & 30 deletions packages/TBC404-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,38 @@
"dependencies": {
"@bitcoin-computer/components": "^0.17.2-beta.0",
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/bitcoin-computer__lib": "^0.10.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.16",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"flowbite": "^2.2.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/bitcoin-computer__lib": "^0.17.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.21",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"flowbite": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.8.0",
"react-router-dom": "^6.9.0",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.1",
"react-scripts": "5.0.1",
"tailwindcss": "^3.2.7",
"tailwindcss": "^3.4.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"web-vitals": "^3.5.2"
},
"devDependencies": {
"@types/bitcoin-computer__lib": "0.15.0",
"@types/chai": "^4.3.1",
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/mocha": "^10.0.6",
"@types/node": "~18.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"chai": "^4.3.6",
"chai-exclude": "^2.1.0",
"dotenv": "^16.0.0",
"eslint": "^8.7.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-import": "^2.25.4",
"mocha": "^10.0.0",
"prettier": "~2.7.1",
"rimraf": "~3.0.2",
"tsutils": "~3.21.0",
"typescript": "~4.7.2"
"chai": "^5.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-import": "^2.29.1",
"mocha": "^10.3.0",
"prettier": "~3.2.5",
"typescript": "~5.3.3"
},
"scripts": {
"start": "react-scripts start",
Expand Down
6 changes: 3 additions & 3 deletions packages/TBC721-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
"react-router-dom": "^6.4.2",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
"web-vitals": "^3.5.2"
},
"scripts": {
"start": "react-scripts start",
Expand Down
37 changes: 16 additions & 21 deletions packages/TBC721/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,25 @@
],
"dependencies": {
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"eslint-plugin-prettier": "^4.0.0",
"ts-node": "^10.8.1",
"tslib": "~2.4.0"
"eslint-plugin-prettier": "^5.1.3",
"ts-node": "^10.9.2",
"tslib": "~2.6.2"
},
"devDependencies": {
"@types/bitcoin-computer__lib": "^0.17.1",
"@types/chai": "^4.3.1",
"@types/bitcoin-computer__lib": "^0.17.2",
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/node": "~18.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"chai": "^4.3.6",
"chai-exclude": "^2.1.0",
"dotenv": "^16.0.0",
"eslint": "^8.7.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-import": "^2.25.4",
"mocha": "^10.0.0",
"prettier": "~2.7.1",
"rimraf": "~3.0.2",
"tsutils": "~3.21.0",
"typescript": "~4.7.2"
"@types/mocha": "^10.0.6",
"@types/node": "~20.11.21",
"chai": "^5.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-import": "^2.29.1",
"mocha": "^10.3.0",
"prettier": "~3.2.5",
"typescript": "~5.3.3"
},
"author": "Clemens Ley <clemens@bitcoincomputer.io>",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions packages/TBC721/test/nft.test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/* eslint-disable no-unused-expressions */
// eslint-disable-next-line import/no-extraneous-dependencies
import chai, { expect } from 'chai'
import * as chai from 'chai'
import { Computer } from '@bitcoin-computer/lib'
import { NFT } from '../src/nft'
import chaiMatchPattern from 'chai-match-pattern'

const { expect } = chai
chai.use(chaiMatchPattern)
const _ = chaiMatchPattern.getLodashModule()

/**
* To run the tests with the Bitcoin Computer testnet node remove the opts argument.
*/
const RLTC: {
network: 'regtest',
chain: 'LTC',
network: 'regtest'
chain: 'LTC'
url: string
} = {
network: 'regtest',
Expand All @@ -38,7 +39,7 @@ describe('Non-Fungible Token (NFT)', () => {
let initialRoot: string
let sender = new Computer(RLTC)
let receiver = new Computer(RLTC)

before("Fund sender's wallet", async () => {
await sender.faucet(0.001e8)
})
Expand Down Expand Up @@ -67,7 +68,6 @@ describe('Non-Fungible Token (NFT)', () => {
})
})


describe('Transferring an NFT', async () => {
it('Sender transfers the NFT to receiver', async () => {
await nft.transfer(receiver.getPublicKey())
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "ISC",
"dependencies": {
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"flowbite": "^2.2.1",
"flowbite": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
54 changes: 24 additions & 30 deletions packages/cra-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,38 @@
"dependencies": {
"@bitcoin-computer/components": "^0.17.2-beta.0",
"@bitcoin-computer/lib": "^0.17.2-beta.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/bitcoin-computer__lib": "^0.17.1",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.16",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"flowbite": "^2.2.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/bitcoin-computer__lib": "^0.17.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.21",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"flowbite": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.8.0",
"react-router-dom": "^6.9.0",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.1",
"react-scripts": "5.0.1",
"tailwindcss": "^3.2.7",
"tailwindcss": "^3.4.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"web-vitals": "^3.5.2"
},
"devDependencies": {
"@types/bitcoin-computer__lib": "0.15.0",
"@types/chai": "^4.3.1",
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/mocha": "^10.0.6",
"@types/node": "~18.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"chai": "^4.3.6",
"chai-exclude": "^2.1.0",
"dotenv": "^16.0.0",
"eslint": "^8.7.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-import": "^2.25.4",
"mocha": "^10.0.0",
"prettier": "~2.7.1",
"rimraf": "~3.0.2",
"tsutils": "~3.21.0",
"typescript": "~4.7.2"
"chai": "^5.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-import": "^2.29.1",
"mocha": "^10.3.0",
"prettier": "~3.2.5",
"typescript": "~5.3.3"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Loading