@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.
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ import Block from './Block.json';
2
+ import Transaction from './Transaction.json';
3
+
4
+ export { Block, Transaction };
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@atomicfinance/client",
3
3
  "umdName": "Client",
4
- "version": "2.5.0",
5
- "description": "CAL Finance Client Provider",
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/swc lib --out-dir=dist --config-file=../../.swcrc",
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/provider": "^2.5.0",
19
- "@atomicfinance/types": "^2.5.0",
20
- "@liquality/client": "1.1.5",
21
- "@liquality/errors": "1.1.5",
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
  }