@agg-build/hooks 4.7.0 → 4.7.4
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/{chunk-ZHCJYQSA.mjs → chunk-DUZ3EJUK.mjs} +1 -1
- package/dist/{chunk-XYQDTF7M.mjs → chunk-FPBMOHIA.mjs} +1 -1
- package/dist/{chunk-TVLLWCK7.mjs → chunk-HDPVTROR.mjs} +7 -3
- package/dist/deposit.js +2 -1
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/index.mjs +3 -3
- package/dist/withdraw.js +2 -1
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useOnWithdrawalLifecycle,
|
|
12
12
|
useSyncBalances,
|
|
13
13
|
useWithdrawManaged
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HDPVTROR.mjs";
|
|
15
15
|
|
|
16
16
|
// src/withdraw/use-withdraw-flow.ts
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
@@ -62,6 +62,7 @@ var Venue = /* @__PURE__ */ ((Venue2) => {
|
|
|
62
62
|
Venue2["myriad"] = "myriad";
|
|
63
63
|
Venue2["hyperliquid"] = "hyperliquid";
|
|
64
64
|
Venue2["novig"] = "novig";
|
|
65
|
+
Venue2["prophetx"] = "prophetx";
|
|
65
66
|
return Venue2;
|
|
66
67
|
})(Venue || {});
|
|
67
68
|
var ACTIVE_VENUES = [
|
|
@@ -72,9 +73,10 @@ var ACTIVE_VENUES = [
|
|
|
72
73
|
"predict" /* predict */,
|
|
73
74
|
"probable" /* probable */,
|
|
74
75
|
"myriad" /* myriad */,
|
|
75
|
-
"hyperliquid" /* hyperliquid
|
|
76
|
+
"hyperliquid" /* hyperliquid */,
|
|
77
|
+
"novig" /* novig */
|
|
76
78
|
];
|
|
77
|
-
var INACTIVE_VENUES = ["
|
|
79
|
+
var INACTIVE_VENUES = ["prophetx" /* prophetx */];
|
|
78
80
|
var ACTIVE_VENUE_SET = new Set(ACTIVE_VENUES);
|
|
79
81
|
var INACTIVE_VENUE_SET = new Set(INACTIVE_VENUES);
|
|
80
82
|
|
|
@@ -249,7 +251,8 @@ var enUsLabels = {
|
|
|
249
251
|
probable: "Probable",
|
|
250
252
|
myriad: "Myriad",
|
|
251
253
|
hyperliquid: "Hyperliquid",
|
|
252
|
-
novig: "Novig"
|
|
254
|
+
novig: "Novig",
|
|
255
|
+
prophetx: "ProphetX"
|
|
253
256
|
},
|
|
254
257
|
auth: {
|
|
255
258
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
|
@@ -3757,6 +3760,7 @@ var executeWalletAuthFlow = (input) => __async(null, null, function* () {
|
|
|
3757
3760
|
statement: (_c = startResult.statement) != null ? _c : input.options.statement
|
|
3758
3761
|
}) : input.client.buildSiweMessage({
|
|
3759
3762
|
domain: location.domain,
|
|
3763
|
+
// Any casing: `buildSiweMessage` applies the EIP-55 checksum itself.
|
|
3760
3764
|
address,
|
|
3761
3765
|
uri: location.uri,
|
|
3762
3766
|
nonce: startResult.nonce,
|
package/dist/deposit.js
CHANGED
|
@@ -172,7 +172,8 @@ var enUsLabels = {
|
|
|
172
172
|
probable: "Probable",
|
|
173
173
|
myriad: "Myriad",
|
|
174
174
|
hyperliquid: "Hyperliquid",
|
|
175
|
-
novig: "Novig"
|
|
175
|
+
novig: "Novig",
|
|
176
|
+
prophetx: "ProphetX"
|
|
176
177
|
},
|
|
177
178
|
auth: {
|
|
178
179
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DUZ3EJUK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
useAggAuthState,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useDepositAddresses,
|
|
12
12
|
useOptionalAggClient,
|
|
13
13
|
useSyncBalances
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HDPVTROR.mjs";
|
|
15
15
|
|
|
16
16
|
// src/deposit/normalize-wallet-error.ts
|
|
17
17
|
function normalizeWalletError(error, supportedChains) {
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -241,6 +241,7 @@ var Venue = /* @__PURE__ */ ((Venue2) => {
|
|
|
241
241
|
Venue2["myriad"] = "myriad";
|
|
242
242
|
Venue2["hyperliquid"] = "hyperliquid";
|
|
243
243
|
Venue2["novig"] = "novig";
|
|
244
|
+
Venue2["prophetx"] = "prophetx";
|
|
244
245
|
return Venue2;
|
|
245
246
|
})(Venue || {});
|
|
246
247
|
var ACTIVE_VENUES = [
|
|
@@ -251,9 +252,10 @@ var ACTIVE_VENUES = [
|
|
|
251
252
|
"predict" /* predict */,
|
|
252
253
|
"probable" /* probable */,
|
|
253
254
|
"myriad" /* myriad */,
|
|
254
|
-
"hyperliquid" /* hyperliquid
|
|
255
|
+
"hyperliquid" /* hyperliquid */,
|
|
256
|
+
"novig" /* novig */
|
|
255
257
|
];
|
|
256
|
-
var INACTIVE_VENUES = ["
|
|
258
|
+
var INACTIVE_VENUES = ["prophetx" /* prophetx */];
|
|
257
259
|
var ACTIVE_VENUE_SET = new Set(ACTIVE_VENUES);
|
|
258
260
|
var INACTIVE_VENUE_SET = new Set(INACTIVE_VENUES);
|
|
259
261
|
|
|
@@ -550,6 +552,7 @@ var executeWalletAuthFlow = (input) => __async(null, null, function* () {
|
|
|
550
552
|
statement: (_c = startResult.statement) != null ? _c : input.options.statement
|
|
551
553
|
}) : input.client.buildSiweMessage({
|
|
552
554
|
domain: location.domain,
|
|
555
|
+
// Any casing: `buildSiweMessage` applies the EIP-55 checksum itself.
|
|
553
556
|
address,
|
|
554
557
|
uri: location.uri,
|
|
555
558
|
nonce: startResult.nonce,
|
|
@@ -600,7 +603,8 @@ var enUsLabels = {
|
|
|
600
603
|
probable: "Probable",
|
|
601
604
|
myriad: "Myriad",
|
|
602
605
|
hyperliquid: "Hyperliquid",
|
|
603
|
-
novig: "Novig"
|
|
606
|
+
novig: "Novig",
|
|
607
|
+
prophetx: "ProphetX"
|
|
604
608
|
},
|
|
605
609
|
auth: {
|
|
606
610
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DUZ3EJUK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useWithdrawEstimate,
|
|
7
7
|
useWithdrawFlow,
|
|
8
8
|
useWithdrawPreview,
|
|
9
9
|
useWithdrawalLifecycle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FPBMOHIA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
AggAuthContext,
|
|
13
13
|
AggBalanceProvider,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
useSyncBalances,
|
|
98
98
|
useWithdrawManaged,
|
|
99
99
|
userActivityQueryKeys
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-HDPVTROR.mjs";
|
|
101
101
|
|
|
102
102
|
// src/index.ts
|
|
103
103
|
import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
package/dist/withdraw.js
CHANGED
|
@@ -102,7 +102,8 @@ var enUsLabels = {
|
|
|
102
102
|
probable: "Probable",
|
|
103
103
|
myriad: "Myriad",
|
|
104
104
|
hyperliquid: "Hyperliquid",
|
|
105
|
-
novig: "Novig"
|
|
105
|
+
novig: "Novig",
|
|
106
|
+
prophetx: "ProphetX"
|
|
106
107
|
},
|
|
107
108
|
auth: {
|
|
108
109
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
package/dist/withdraw.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
useWithdrawFlow,
|
|
4
4
|
useWithdrawPreview,
|
|
5
5
|
useWithdrawalLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FPBMOHIA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useDepositAddresses,
|
|
9
9
|
useManagedBalances,
|
|
10
10
|
useWithdrawManaged
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HDPVTROR.mjs";
|
|
12
12
|
export {
|
|
13
13
|
useDepositAddresses,
|
|
14
14
|
useManagedBalances,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/hooks",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "React hooks and providers for the AGG prediction market aggregator. Wraps @agg-build/sdk with TanStack Query, shared session state, and live WebSocket data.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react": "^18.0.0 || ^19.0.0",
|
|
84
84
|
"viem": "^2.0.0",
|
|
85
85
|
"wagmi": "^3.0.0 || ^2.0.0",
|
|
86
|
-
"@agg-build/sdk": "^4.7.
|
|
86
|
+
"@agg-build/sdk": "^4.7.4"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
|
89
89
|
"@solana/wallet-adapter-react": {
|