@connect-xyz/withdraw-react 0.49.2 → 0.50.1
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.d.ts +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
|
|
3
|
-
declare type Amount = {
|
|
4
|
-
amount: string;
|
|
5
|
-
notional_amount?: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
3
|
/**
|
|
9
4
|
* Generic app event structure
|
|
10
5
|
* @template TType - Event type string
|
|
@@ -153,8 +148,8 @@ declare type Theme = 'auto' | 'light' | 'dark';
|
|
|
153
148
|
*/
|
|
154
149
|
export declare const Withdraw: default_2.FC<WithdrawWrapperProps>;
|
|
155
150
|
|
|
151
|
+
/** Payload reported when a withdrawal reaches a terminal state. */
|
|
156
152
|
declare type WithdrawalCompletedPayload = {
|
|
157
|
-
/** Data associated with the withdrawal */
|
|
158
153
|
data: {
|
|
159
154
|
/** Unique identifier for the withdrawal */
|
|
160
155
|
withdrawalId: string;
|
|
@@ -167,12 +162,17 @@ declare type WithdrawalCompletedPayload = {
|
|
|
167
162
|
/** Amount being withdrawn */
|
|
168
163
|
amount?: string;
|
|
169
164
|
/** Blockchain network transaction fee charged for processing the withdrawal */
|
|
170
|
-
network_fee?:
|
|
165
|
+
network_fee?: WithdrawalFeeAmount;
|
|
171
166
|
/** Connect service fee charged for facilitating the withdrawal */
|
|
172
|
-
withdrawal_fee?:
|
|
167
|
+
withdrawal_fee?: WithdrawalFeeAmount;
|
|
173
168
|
};
|
|
174
169
|
};
|
|
175
170
|
|
|
171
|
+
declare type WithdrawalFeeAmount = {
|
|
172
|
+
amount: string;
|
|
173
|
+
notional_amount?: string;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
176
|
/**
|
|
177
177
|
* Withdrawal initiated event data
|
|
178
178
|
*/
|