Canonical encoding for BigInt (<bigint: Xn>) and Uint8Array (hex or <Uint8Array: 0x...>) used in the relay protocol. Provides both serialization (sourceOutputToRelay, transactionToHex) and deserialization (parseExtendedJson, toUint8Array, toBigInt) so dapps and wallets don't have to implement this independently.
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"name": "@wizardconnect/core",
|
|
"version": "0.1.2",
|
|
"type": "module",
|
|
"description": "Transport and protocol primitives for WizardConnect",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
|
"directory": "packages/core"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./hdwalletv1-serialize": {
|
|
"types": "./dist/protocols/hdwalletv1-serialize.d.ts",
|
|
"default": "./dist/protocols/hdwalletv1-serialize.js"
|
|
}
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest --config vitest.config.ts --run --passWithNoTests",
|
|
"lint:prettier": "prettier --ignore-path ../../.gitignore . --list-different",
|
|
"lint:eslint": "eslint .",
|
|
"lint": "npm run lint:eslint && npm run lint:prettier",
|
|
"fix": "npm run fix:eslint && npm run fix:prettier",
|
|
"fix:prettier": "prettier --ignore-path ../../.gitignore . --write",
|
|
"fix:eslint": "npm run lint:eslint -- --fix"
|
|
},
|
|
"dependencies": {
|
|
"@bch-wc2/interfaces": "^0.0.8",
|
|
"@nostr-dev-kit/ndk": "^2.18.1",
|
|
"@bitauth/libauth": "^3.1.0-next.2",
|
|
"eventemitter3": "^5.0.1",
|
|
"isomorphic-ws": "^5.0.0",
|
|
"lossless-json": "^4.3.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.6.2",
|
|
"vitest": "^3.2.3"
|
|
}
|
|
}
|