Splits ProtocolMessages exceeding NIP-44's 65,535-byte plaintext ceiling across multiple gift-wrapped events. Symmetric (both directions), fire-and-forget, backward-compatible via a new transport-level \`extensions\` field on \`dapp_ready\` and \`wallet_ready\`. Resolves the \"Failed to swap: invalid plaintext size\" error on aggregated swap requests and enables signed-tx responses up to the 1 MB BCH consensus limit (~2 MB hex).
34 lines
1,001 B
JSON
34 lines
1,001 B
JSON
{
|
|
"name": "@wizardconnect/dapp",
|
|
"version": "0.2.0",
|
|
"type": "module",
|
|
"description": "Dapp-side integration helpers for WizardConnect",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
|
"directory": "packages/dapp"
|
|
},
|
|
"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": {
|
|
"@wizardconnect/core": "*",
|
|
"eventemitter3": "^5.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.6.2",
|
|
"vitest": "^3.2.3"
|
|
}
|
|
}
|