@atomicfinance/client 2.5.0 → 3.0.1
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/.turbo/turbo-build.log +1 -0
- package/.turbo/turbo-test.log +1 -0
- package/CHANGELOG.md +31 -0
- package/dist/Cfd.d.ts +2 -2
- package/dist/Cfd.js +8 -11
- package/dist/Cfd.js.map +1 -1
- package/dist/Chain.d.ts +29 -0
- package/dist/Chain.js +110 -0
- package/dist/Chain.js.map +1 -0
- package/dist/Client.d.ts +44 -7
- package/dist/Client.js +120 -32
- package/dist/Client.js.map +1 -1
- package/dist/Dlc.d.ts +5 -2
- package/dist/Dlc.js +113 -95
- package/dist/Dlc.js.map +1 -1
- package/dist/Wallet.d.ts +59 -4
- package/dist/Wallet.js +100 -17
- package/dist/Wallet.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +11 -23
- package/dist/index.js.map +0 -0
- package/dist/schema/Block.json +45 -0
- package/dist/schema/Transaction.json +45 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.js +11 -0
- package/dist/schema/index.js.map +1 -0
- package/lib/Cfd.ts +2 -1
- package/lib/Chain.ts +173 -0
- package/lib/Client.ts +153 -11
- package/lib/Dlc.ts +24 -1
- package/lib/Wallet.ts +129 -10
- package/lib/schema/Block.json +45 -0
- package/lib/schema/Transaction.json +45 -0
- package/lib/schema/index.ts +4 -0
- package/package.json +9 -11
- package/LICENSE +0 -674
- package/README.md +0 -11
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://dev.liquality.com/schema/block.json",
|
|
3
|
+
"title": "Block",
|
|
4
|
+
"description": "Blockchain block",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["number", "hash", "timestamp", "size"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"hash": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "Hash"
|
|
11
|
+
},
|
|
12
|
+
"number": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"title": "Number",
|
|
15
|
+
"minimum": 0
|
|
16
|
+
},
|
|
17
|
+
"timestamp": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"title": "Timestamp",
|
|
20
|
+
"minimum": 0
|
|
21
|
+
},
|
|
22
|
+
"difficulty": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"title": "Difficulty",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"title": "Size",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
},
|
|
32
|
+
"parentHash": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"title": "Parent Hash"
|
|
35
|
+
},
|
|
36
|
+
"nonce": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"title": "Nonce",
|
|
39
|
+
"minimum": 0
|
|
40
|
+
},
|
|
41
|
+
"_raw": {
|
|
42
|
+
"type": "object"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://dev.liquality.com/schema/transaction.json",
|
|
3
|
+
"title": "Transaction",
|
|
4
|
+
"description": "Blockchain transaction",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["hash", "value"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"blockHash": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "Block Hash"
|
|
11
|
+
},
|
|
12
|
+
"blockNumber": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"title": "Block Number",
|
|
15
|
+
"minimum": 0
|
|
16
|
+
},
|
|
17
|
+
"hash": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"title": "Transaction Hash"
|
|
20
|
+
},
|
|
21
|
+
"value": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"title": "Value",
|
|
24
|
+
"minimum": 0
|
|
25
|
+
},
|
|
26
|
+
"confirmations": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"title": "Confirmations",
|
|
29
|
+
"minimum": 0
|
|
30
|
+
},
|
|
31
|
+
"feePrice": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"title": "Fee Price",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"fee": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"title": "Fee",
|
|
39
|
+
"minimum": 0
|
|
40
|
+
},
|
|
41
|
+
"_raw": {
|
|
42
|
+
"type": "object"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicfinance/client",
|
|
3
3
|
"umdName": "Client",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
|
+
"description": "Bitcoin Abstraction Layer Provider",
|
|
6
6
|
"author": "Atomic Finance <info@atomic.finance>",
|
|
7
7
|
"homepage": "",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "../../node_modules/.bin/
|
|
11
|
+
"build": "../../node_modules/.bin/tsc --project tsconfig.json",
|
|
12
12
|
"prepublishOnly": "yarn run build",
|
|
13
13
|
"test": "yarn run build",
|
|
14
14
|
"lint": "../../node_modules/.bin/eslint --ignore-path ../../.eslintignore -c ../../.eslintrc.js .",
|
|
15
15
|
"lint:fix": "../../node_modules/.bin/eslint --fix --ignore-path ../../.eslintignore -c ../../.eslintrc.js ."
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atomicfinance/
|
|
19
|
-
"@atomicfinance/
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@liquality/provider": "1.1.5",
|
|
23
|
-
"@node-dlc/messaging": "0.18.3",
|
|
18
|
+
"@atomicfinance/errors": "^3.0.1",
|
|
19
|
+
"@atomicfinance/provider": "^3.0.1",
|
|
20
|
+
"@atomicfinance/types": "^3.0.1",
|
|
21
|
+
"@node-dlc/messaging": "0.19.1",
|
|
24
22
|
"@node-lightning/bitcoin": "0.26.1",
|
|
23
|
+
"ajv": "^6.10.0",
|
|
25
24
|
"lodash": "^4.17.20"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
@@ -30,6 +29,5 @@
|
|
|
30
29
|
},
|
|
31
30
|
"publishConfig": {
|
|
32
31
|
"access": "public"
|
|
33
|
-
}
|
|
34
|
-
"gitHead": "021537d74a46eb5bd578a7c4b122555e6b0a310f"
|
|
32
|
+
}
|
|
35
33
|
}
|