@bananapus/nana-sdk-react 63.0.0 → 65.0.0
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/contexts/JBContractContext/JBContractContext.d.ts.map +1 -1
- package/dist/contexts/JBRulesetContext/JBRulesetContext.d.ts.map +1 -1
- package/dist/contexts/JBTerminalContext/JBPrimaryNativeTerminalProvider.d.ts.map +1 -1
- package/dist/contexts/JBTerminalContext/JBTerminalContext.d.ts +6 -1
- package/dist/contexts/JBTerminalContext/JBTerminalContext.d.ts.map +1 -1
- package/dist/contexts/JBTokenContext/JBTokenContext.d.ts.map +1 -1
- package/dist/contexts/types.d.ts +20 -0
- package/dist/contexts/types.d.ts.map +1 -1
- package/dist/index.js +129 -74
- package/dist/index.js.map +1 -1
- package/dist/lib/relayr/hooks/useGetRelayrTxBundle.d.ts +10 -1
- package/dist/lib/relayr/hooks/useGetRelayrTxBundle.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { type RelayrProgressSummary } from "@bananapus/nana-sdk-core/review/relayr";
|
|
1
2
|
import { RelayrGetBundleResponse } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Polls one Relayr bundle until every transaction succeeded (`expectedCount`
|
|
5
|
+
* of them, when given), one failed, or five minutes passed. A failed read is
|
|
6
|
+
* polled again; `error` is the last one.
|
|
7
|
+
*/
|
|
2
8
|
export declare function useGetRelayrTxBundle(): {
|
|
3
|
-
startPolling: (bundleUuid: string) => void;
|
|
9
|
+
startPolling: (bundleUuid: string, expectedCount?: number) => void;
|
|
4
10
|
isComplete: boolean;
|
|
5
11
|
hasFailed: boolean;
|
|
12
|
+
/** Polling stopped after five minutes with the bundle still unfinished. */
|
|
13
|
+
timedOut: boolean;
|
|
14
|
+
progress: RelayrProgressSummary;
|
|
6
15
|
uuid: string | undefined;
|
|
7
16
|
response: RelayrGetBundleResponse | undefined;
|
|
8
17
|
isPolling: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetRelayrTxBundle.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useGetRelayrTxBundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetRelayrTxBundle.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useGetRelayrTxBundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAC;AAIhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAqCnD;;;;GAIG;AACH,wBAAgB,oBAAoB;+BAmCnB,MAAM,kBAAkB,MAAM;;;IAuB3C,2EAA2E;;;;;;;;EAS9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananapus/nana-sdk-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "65.0.0",
|
|
4
4
|
"description": "Wagmi hooks for Juicebox",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "^18.3.1 || ^19.0.0",
|
|
27
27
|
"viem": "^2.14.1",
|
|
28
28
|
"wagmi": "^2.10.2",
|
|
29
|
-
"@bananapus/nana-sdk-core": "^
|
|
29
|
+
"@bananapus/nana-sdk-core": "^6.1.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@graphql-codegen/cli": "^5.0.2",
|