@volr/react 0.1.98 → 0.1.100
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/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -114,9 +114,8 @@ interface UserDto {
|
|
|
114
114
|
projectId: string;
|
|
115
115
|
projectName: string;
|
|
116
116
|
email: string;
|
|
117
|
-
|
|
117
|
+
authWallet?: string;
|
|
118
118
|
evmAddress?: `0x${string}`;
|
|
119
|
-
authWalletAddress?: string;
|
|
120
119
|
keyStorageType?: KeyStorageType$1;
|
|
121
120
|
signerType?: 'passkey' | 'external_wallet' | 'mpc';
|
|
122
121
|
walletConnector?: string;
|
|
@@ -206,9 +205,8 @@ interface VolrUser {
|
|
|
206
205
|
projectId?: string;
|
|
207
206
|
projectName?: string;
|
|
208
207
|
email?: string;
|
|
209
|
-
|
|
208
|
+
authWallet?: string;
|
|
210
209
|
evmAddress?: `0x${string}`;
|
|
211
|
-
authWalletAddress?: string;
|
|
212
210
|
keyStorageType?: KeyStorageType;
|
|
213
211
|
signerType?: SignerType;
|
|
214
212
|
walletConnector?: string;
|
|
@@ -879,6 +877,10 @@ interface UseVolrPaymentApiReturn {
|
|
|
879
877
|
* Cancel a pending payment
|
|
880
878
|
*/
|
|
881
879
|
cancelPayment: (paymentId: string) => Promise<PaymentResult>;
|
|
880
|
+
/**
|
|
881
|
+
* Mark a pending payment as failed (before transaction was sent)
|
|
882
|
+
*/
|
|
883
|
+
failPendingPayment: (paymentId: string) => Promise<PaymentResult>;
|
|
882
884
|
/**
|
|
883
885
|
* Poll payment status until completion
|
|
884
886
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -114,9 +114,8 @@ interface UserDto {
|
|
|
114
114
|
projectId: string;
|
|
115
115
|
projectName: string;
|
|
116
116
|
email: string;
|
|
117
|
-
|
|
117
|
+
authWallet?: string;
|
|
118
118
|
evmAddress?: `0x${string}`;
|
|
119
|
-
authWalletAddress?: string;
|
|
120
119
|
keyStorageType?: KeyStorageType$1;
|
|
121
120
|
signerType?: 'passkey' | 'external_wallet' | 'mpc';
|
|
122
121
|
walletConnector?: string;
|
|
@@ -206,9 +205,8 @@ interface VolrUser {
|
|
|
206
205
|
projectId?: string;
|
|
207
206
|
projectName?: string;
|
|
208
207
|
email?: string;
|
|
209
|
-
|
|
208
|
+
authWallet?: string;
|
|
210
209
|
evmAddress?: `0x${string}`;
|
|
211
|
-
authWalletAddress?: string;
|
|
212
210
|
keyStorageType?: KeyStorageType;
|
|
213
211
|
signerType?: SignerType;
|
|
214
212
|
walletConnector?: string;
|
|
@@ -879,6 +877,10 @@ interface UseVolrPaymentApiReturn {
|
|
|
879
877
|
* Cancel a pending payment
|
|
880
878
|
*/
|
|
881
879
|
cancelPayment: (paymentId: string) => Promise<PaymentResult>;
|
|
880
|
+
/**
|
|
881
|
+
* Mark a pending payment as failed (before transaction was sent)
|
|
882
|
+
*/
|
|
883
|
+
failPendingPayment: (paymentId: string) => Promise<PaymentResult>;
|
|
882
884
|
/**
|
|
883
885
|
* Poll payment status until completion
|
|
884
886
|
*/
|
package/dist/index.js
CHANGED
|
@@ -18686,9 +18686,8 @@ function useVolrLogin() {
|
|
|
18686
18686
|
projectId: u.projectId,
|
|
18687
18687
|
projectName: u.projectName,
|
|
18688
18688
|
email: u.email,
|
|
18689
|
-
|
|
18689
|
+
authWallet: u.authWallet ?? void 0,
|
|
18690
18690
|
evmAddress: u.evmAddress,
|
|
18691
|
-
authWalletAddress: u.authWalletAddress ?? void 0,
|
|
18692
18691
|
keyStorageType: u.keyStorageType ?? void 0,
|
|
18693
18692
|
signerType: u.signerType ?? void 0,
|
|
18694
18693
|
walletConnector: u.walletConnector ?? void 0,
|
|
@@ -18904,7 +18903,7 @@ function useVolrAuthCallback(options = {}) {
|
|
|
18904
18903
|
projectId: u.projectId,
|
|
18905
18904
|
projectName: u.projectName,
|
|
18906
18905
|
email: u.email,
|
|
18907
|
-
|
|
18906
|
+
authWallet: u.authWallet ?? void 0,
|
|
18908
18907
|
evmAddress: u.evmAddress,
|
|
18909
18908
|
keyStorageType: u.keyStorageType ?? void 0,
|
|
18910
18909
|
signerType: u.signerType ?? void 0,
|
|
@@ -19657,6 +19656,12 @@ function useVolrPaymentApi() {
|
|
|
19657
19656
|
},
|
|
19658
19657
|
[client]
|
|
19659
19658
|
);
|
|
19659
|
+
const failPendingPayment = useCallback(
|
|
19660
|
+
async (paymentId) => {
|
|
19661
|
+
return client.post(`/payments/${paymentId}/fail`, {});
|
|
19662
|
+
},
|
|
19663
|
+
[client]
|
|
19664
|
+
);
|
|
19660
19665
|
const pollPaymentStatus = useCallback(
|
|
19661
19666
|
async (paymentId) => {
|
|
19662
19667
|
let attempts = 0;
|
|
@@ -19678,6 +19683,7 @@ function useVolrPaymentApi() {
|
|
|
19678
19683
|
getPaymentHistory,
|
|
19679
19684
|
updatePaymentToProcessing,
|
|
19680
19685
|
cancelPayment,
|
|
19686
|
+
failPendingPayment,
|
|
19681
19687
|
pollPaymentStatus,
|
|
19682
19688
|
isLoading
|
|
19683
19689
|
};
|