@ape.swap/bonds-sdk 2.0.4 → 2.0.5
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/dist/main.js +7 -5
- package/package.json +2 -3
package/dist/main.js
CHANGED
|
@@ -67333,7 +67333,7 @@ function parseUnits$1(value, unitName) {
|
|
|
67333
67333
|
|
|
67334
67334
|
const PUBLIC_RPC_URLS = {
|
|
67335
67335
|
[types.ChainId.BSC]: [
|
|
67336
|
-
'https://bsc-dataseed.
|
|
67336
|
+
'https://bsc-dataseed.binanc123e.org/',
|
|
67337
67337
|
'https://bsc-dataseed1.defibit.io',
|
|
67338
67338
|
'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
|
|
67339
67339
|
],
|
|
@@ -71159,10 +71159,12 @@ function useUserBonds() {
|
|
|
71159
71159
|
}
|
|
71160
71160
|
const getUserBonds = (account, bondList) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
71161
71161
|
try {
|
|
71162
|
-
|
|
71163
|
-
|
|
71164
|
-
|
|
71165
|
-
|
|
71162
|
+
const results = yield Promise.allSettled(MAINNET_CHAINS.map((chain) => fetchUserOwnedBillsDataAsync(chain, account, bondList)));
|
|
71163
|
+
// Filter out only fulfilled promises
|
|
71164
|
+
const fulfilledResults = results
|
|
71165
|
+
.filter((result) => result.status === 'fulfilled')
|
|
71166
|
+
.map((result) => result.value);
|
|
71167
|
+
return fulfilledResults.flat().flatMap((result) => result.userOwnedBills);
|
|
71166
71168
|
}
|
|
71167
71169
|
catch (_a) {
|
|
71168
71170
|
return [];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.5",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -79,6 +79,5 @@
|
|
|
79
79
|
"last 1 firefox version",
|
|
80
80
|
"last 1 safari version"
|
|
81
81
|
]
|
|
82
|
-
}
|
|
83
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
82
|
+
}
|
|
84
83
|
}
|