@arkade-os/lnurl-client 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +499 -3
- package/dist/addresses-CPAzIbJ_.d.ts +514 -0
- package/dist/arkade.d.ts +333 -0
- package/dist/arkade.js +558 -0
- package/dist/browser.d.ts +6 -0
- package/dist/browser.js +60 -0
- package/dist/chunk-4ELYU6DY.js +1417 -0
- package/dist/chunk-H7W5RHP2.js +58 -0
- package/dist/hd.d.ts +16 -0
- package/dist/hd.js +389 -0
- package/dist/index.d.ts +796 -0
- package/dist/index.js +86 -0
- package/package.json +59 -6
package/dist/index.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONFIRMATION_TIMEOUT_MS,
|
|
3
|
+
batchVerify,
|
|
4
|
+
browserPaymentStore,
|
|
5
|
+
clearLnurlPaymentsForReset,
|
|
6
|
+
createLnurlClient,
|
|
7
|
+
createLnurlPaymentRepository,
|
|
8
|
+
createPendingConfirmations,
|
|
9
|
+
deriveSessionId,
|
|
10
|
+
deriveSessionToken,
|
|
11
|
+
deriveSessionTokenWithSigner,
|
|
12
|
+
domainCapabilities,
|
|
13
|
+
forgetStoredPayments,
|
|
14
|
+
formatUnitAmount,
|
|
15
|
+
isLnAddress,
|
|
16
|
+
isLnUrl,
|
|
17
|
+
isTokenAddress,
|
|
18
|
+
isValidLnUrl,
|
|
19
|
+
listAddresses,
|
|
20
|
+
listHdAllocations,
|
|
21
|
+
listPayments,
|
|
22
|
+
normalizeTokenQuote,
|
|
23
|
+
openSession,
|
|
24
|
+
openVerifyBatchStream,
|
|
25
|
+
parseUnitAmount,
|
|
26
|
+
payableTokenUri,
|
|
27
|
+
pollVerify,
|
|
28
|
+
registerAddress,
|
|
29
|
+
registerArkadeIdentity,
|
|
30
|
+
requestInvoice,
|
|
31
|
+
resolve,
|
|
32
|
+
revokeAddress,
|
|
33
|
+
storedPayments,
|
|
34
|
+
syncPayments,
|
|
35
|
+
toPayRequestUrl,
|
|
36
|
+
tokenOptions,
|
|
37
|
+
upgradeAddress,
|
|
38
|
+
verifyStatusIsFor
|
|
39
|
+
} from "./chunk-4ELYU6DY.js";
|
|
40
|
+
import {
|
|
41
|
+
LnurlError,
|
|
42
|
+
LnurlTimeoutError,
|
|
43
|
+
LnurlTransportError
|
|
44
|
+
} from "./chunk-H7W5RHP2.js";
|
|
45
|
+
export {
|
|
46
|
+
CONFIRMATION_TIMEOUT_MS,
|
|
47
|
+
LnurlError,
|
|
48
|
+
LnurlTimeoutError,
|
|
49
|
+
LnurlTransportError,
|
|
50
|
+
batchVerify,
|
|
51
|
+
browserPaymentStore,
|
|
52
|
+
clearLnurlPaymentsForReset,
|
|
53
|
+
createLnurlClient,
|
|
54
|
+
createLnurlPaymentRepository,
|
|
55
|
+
createPendingConfirmations,
|
|
56
|
+
deriveSessionId,
|
|
57
|
+
deriveSessionToken,
|
|
58
|
+
deriveSessionTokenWithSigner,
|
|
59
|
+
domainCapabilities,
|
|
60
|
+
forgetStoredPayments,
|
|
61
|
+
formatUnitAmount,
|
|
62
|
+
isLnAddress,
|
|
63
|
+
isLnUrl,
|
|
64
|
+
isTokenAddress,
|
|
65
|
+
isValidLnUrl,
|
|
66
|
+
listAddresses,
|
|
67
|
+
listHdAllocations,
|
|
68
|
+
listPayments,
|
|
69
|
+
normalizeTokenQuote,
|
|
70
|
+
openSession,
|
|
71
|
+
openVerifyBatchStream,
|
|
72
|
+
parseUnitAmount,
|
|
73
|
+
payableTokenUri,
|
|
74
|
+
pollVerify,
|
|
75
|
+
registerAddress,
|
|
76
|
+
registerArkadeIdentity,
|
|
77
|
+
requestInvoice,
|
|
78
|
+
resolve,
|
|
79
|
+
revokeAddress,
|
|
80
|
+
storedPayments,
|
|
81
|
+
syncPayments,
|
|
82
|
+
toPayRequestUrl,
|
|
83
|
+
tokenOptions,
|
|
84
|
+
upgradeAddress,
|
|
85
|
+
verifyStatusIsFor
|
|
86
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@arkade-os/lnurl-client",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@arkade-os/lnurl-client",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Full-duplex client for the lnurl-server protocol (payer and receiver)",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/ArkLabsHQ/lnurl-server.git",
|
|
8
|
+
"directory": "packages/client"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./arkade": {
|
|
20
|
+
"types": "./dist/arkade.d.ts",
|
|
21
|
+
"import": "./dist/arkade.js",
|
|
22
|
+
"default": "./dist/arkade.js"
|
|
23
|
+
},
|
|
24
|
+
"./hd": {
|
|
25
|
+
"types": "./dist/hd.d.ts",
|
|
26
|
+
"import": "./dist/hd.js",
|
|
27
|
+
"default": "./dist/hd.js"
|
|
28
|
+
},
|
|
29
|
+
"./browser": {
|
|
30
|
+
"types": "./dist/browser.d.ts",
|
|
31
|
+
"import": "./dist/browser.js",
|
|
32
|
+
"default": "./dist/browser.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@scure/bip32": "2.4.0",
|
|
44
|
+
"@noble/curves": "2.4.0",
|
|
45
|
+
"@noble/hashes": "2.4.0",
|
|
46
|
+
"@scure/base": "^2.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@arkade-os/sdk": ">=0.5.0-rc.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"@arkade-os/sdk": {
|
|
53
|
+
"optional": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=22.12.0"
|
|
58
|
+
}
|
|
59
|
+
}
|