forked from bcgov/bc-wallet-mobile
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bcgov/bc-wallet-mobile into… (
#82) Signed-off-by: Jean-Christophe Drouin <[email protected]>
- Loading branch information
1 parent
e6c48d0
commit 3f910d4
Showing
47 changed files
with
8,924 additions
and
9,820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
.yarn/patches/@aries-framework-anoncreds-npm-0.4.0-4d3b4e769d.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
.yarn/patches/@aries-framework-core-npm-0.3.3-dd6486de3d.patch
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
.yarn/patches/@aries-framework-indy-vdr-npm-0.4.0-b01067562c.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/build/pool/IndyVdrPool.js b/build/pool/IndyVdrPool.js | ||
index 0ec57415429a0b97844b2d65a8ee83f68ad10466..ff874884b2d740fc5b5a2c89a619942baf121e2b 100644 | ||
--- a/build/pool/IndyVdrPool.js | ||
+++ b/build/pool/IndyVdrPool.js | ||
@@ -25,6 +25,12 @@ class IndyVdrPool { | ||
}, | ||
}); | ||
} | ||
+ async refreshConnection() { | ||
+ await this.pool.refresh() | ||
+ } | ||
+ async getPoolTransactions(){ | ||
+ return this.pool.transactions | ||
+ } | ||
get pool() { | ||
if (!this._pool) | ||
this.connect(); | ||
diff --git a/build/pool/IndyVdrPoolService.js b/build/pool/IndyVdrPoolService.js | ||
index e5abc0d40cae5a4d5777220fd0c36d85496df313..366631ac8d8b6b093d8a8d849b587d3c55aaf10e 100644 | ||
--- a/build/pool/IndyVdrPoolService.js | ||
+++ b/build/pool/IndyVdrPoolService.js | ||
@@ -113,6 +113,18 @@ let IndyVdrPoolService = class IndyVdrPoolService { | ||
successful, | ||
}; | ||
} | ||
+ /** | ||
+ * Refresh the pool connections asynchronously | ||
+ */ | ||
+ refreshPoolConnections() { | ||
+ return Promise.allSettled(this.pools.map((pool) => pool.refreshConnection())) | ||
+ } | ||
+ /** | ||
+ * get the pool transactions asynchronously | ||
+ */ | ||
+ getPoolTransactions() { | ||
+ return Promise.all(this.pools.map(async (pool) => {return {config: pool.config, transactions: await pool.getPoolTransactions()}})) | ||
+ } | ||
/** | ||
* Get the most appropriate pool for the given indyNamespace | ||
*/ |
15 changes: 0 additions & 15 deletions
15
.yarn/patches/@aries-framework-react-native-npm-0.3.3-bb75ece22d.patch
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.1.0-10c696b320.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/build/ReactNativeIndyVdr.js b/build/ReactNativeIndyVdr.js | ||
index 11f1bf74b1e776401ca593acaf9dbce2b53871e5..c0cd20d3bd402b501b4ccf2e3a986c931455b98e 100644 | ||
--- a/build/ReactNativeIndyVdr.js | ||
+++ b/build/ReactNativeIndyVdr.js | ||
@@ -164,7 +164,7 @@ class ReactNativeIndyVdr { | ||
async poolGetTransactions(options) { | ||
const { poolHandle } = (0, serialize_1.serializeArguments)(options); | ||
const result = (0, indy_vdr_shared_1.handleInvalidNullResponse)(await this.promisifyWithResponse((cb) => this.indyVdr.poolGetTransactions({ cb, poolHandle }), true)); | ||
- return JSON.parse(result); | ||
+ return result; | ||
} | ||
async poolGetVerifiers(options) { | ||
const { poolHandle } = (0, serialize_1.serializeArguments)(options); |
Oops, something went wrong.