@requestnetwork/transaction-manager 0.26.10-next.1612 → 0.26.10-next.1622
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/CHANGELOG.md +137 -571
- package/README.md +4 -2
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ const transactionManager = new TransactionManager(dataAccess);
|
|
|
50
50
|
|
|
51
51
|
const data = '{ what: "ever", it: "is,", this: "must", work: true }';
|
|
52
52
|
const channelId = 'myRequest';
|
|
53
|
-
const channelTopics = ['stakeholder1','stakeholder2'];
|
|
53
|
+
const channelTopics = ['stakeholder1', 'stakeholder2'];
|
|
54
54
|
|
|
55
55
|
const { result } = await transactionManager.persistTransaction(data, channelId, channelTopics);
|
|
56
56
|
```
|
|
@@ -103,7 +103,9 @@ const transactionManager = new TransactionManager(dataAccess, decryptionProvider
|
|
|
103
103
|
|
|
104
104
|
const channelId = 'myRequest';
|
|
105
105
|
|
|
106
|
-
const {
|
|
106
|
+
const {
|
|
107
|
+
result: { transactions },
|
|
108
|
+
} = await transactionManager.getTransactionsByChannelId(channelId);
|
|
107
109
|
```
|
|
108
110
|
|
|
109
111
|
### Get Transactions from topic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requestnetwork/transaction-manager",
|
|
3
|
-
"version": "0.26.10-next.
|
|
3
|
+
"version": "0.26.10-next.1622+5d2ed2c3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,14 +33,15 @@
|
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsc -b",
|
|
35
35
|
"clean": "shx rm -rf dist tsconfig.tsbuildinfo",
|
|
36
|
-
"lint": "eslint
|
|
36
|
+
"lint": "eslint . --fix",
|
|
37
|
+
"lint:check": "eslint .",
|
|
37
38
|
"test": "jest",
|
|
38
39
|
"test:watch": "yarn test --watch"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@requestnetwork/multi-format": "0.15.10-next.
|
|
42
|
-
"@requestnetwork/types": "0.35.1-next.
|
|
43
|
-
"@requestnetwork/utils": "0.35.1-next.
|
|
42
|
+
"@requestnetwork/multi-format": "0.15.10-next.1622+5d2ed2c3",
|
|
43
|
+
"@requestnetwork/types": "0.35.1-next.1622+5d2ed2c3",
|
|
44
|
+
"@requestnetwork/utils": "0.35.1-next.1622+5d2ed2c3",
|
|
44
45
|
"tslib": "2.3.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"ts-node": "9.0.0",
|
|
55
56
|
"typescript": "4.4.4"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5d2ed2c3966572f7f9760706e9eb9c8d8d79a4a7"
|
|
58
59
|
}
|