@b3dotfun/sdk 0.0.49 → 0.0.50-alpha.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.
Files changed (155) hide show
  1. package/dist/cjs/anyspend/constants/index.d.ts +1 -0
  2. package/dist/cjs/anyspend/constants/index.js +12 -2
  3. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +2 -1
  4. package/dist/cjs/anyspend/react/components/AnySpend.js +18 -5
  5. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +12 -3
  6. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +11 -4
  7. package/dist/cjs/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  8. package/dist/cjs/anyspend/react/components/common/CryptoPaySection.js +2 -2
  9. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  10. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.js +17 -11
  11. package/dist/cjs/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  12. package/dist/cjs/anyspend/react/components/common/FeeBreakDown.js +19 -0
  13. package/dist/cjs/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  14. package/dist/cjs/anyspend/react/components/common/FeeDetailPanel.js +116 -0
  15. package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  16. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +6 -6
  17. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  18. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +3 -2
  19. package/dist/cjs/anyspend/react/components/common/OrderToken.js +1 -1
  20. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +1 -1
  21. package/dist/cjs/anyspend/react/components/common/OrderTokenAmountFiat.js +1 -1
  22. package/dist/cjs/anyspend/react/components/common/OrderTokenAmountNew.js +1 -1
  23. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  24. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +36 -21
  25. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +2 -1
  26. package/dist/cjs/anyspend/react/components/common/PointsDetailPanel.js +1 -2
  27. package/dist/cjs/anyspend/react/contexts/FeatureFlagsContext.js +1 -1
  28. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  29. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.js +1 -0
  30. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +48 -12
  31. package/dist/cjs/anyspend/types/api.d.ts +133 -178
  32. package/dist/cjs/anyspend/utils/chain.js +4 -4
  33. package/dist/cjs/bondkit/bondkitToken.d.ts +3 -1
  34. package/dist/cjs/bondkit/bondkitToken.js +21 -2
  35. package/dist/cjs/bondkit/components/TradingView.d.ts +1 -1
  36. package/dist/cjs/bondkit/components/TradingView.js +14 -3
  37. package/dist/cjs/bondkit/components/index.d.ts +1 -1
  38. package/dist/cjs/bondkit/components/index.js +1 -1
  39. package/dist/cjs/bondkit/components/types.d.ts +1 -0
  40. package/dist/cjs/bondkit/config.d.ts +1 -0
  41. package/dist/cjs/bondkit/config.js +1 -0
  42. package/dist/cjs/bondkit/index.d.ts +1 -1
  43. package/dist/cjs/bondkit/index.js +2 -6
  44. package/dist/cjs/bondkit/types.d.ts +15 -0
  45. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +1 -1
  46. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +1 -1
  47. package/dist/cjs/global-account/react/components/B3Provider/RelayKitProviderWrapper.js +2 -2
  48. package/dist/cjs/global-account/react/components/ui/tooltip.js +1 -1
  49. package/dist/cjs/global-account/react/hooks/useAuthentication.js +11 -0
  50. package/dist/cjs/shared/generated/chain-networks.json +40 -7
  51. package/dist/esm/anyspend/constants/index.d.ts +1 -0
  52. package/dist/esm/anyspend/constants/index.js +11 -1
  53. package/dist/esm/anyspend/react/components/AnySpend.d.ts +2 -1
  54. package/dist/esm/anyspend/react/components/AnySpend.js +18 -5
  55. package/dist/esm/anyspend/react/components/AnySpendCustom.js +14 -5
  56. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +11 -4
  57. package/dist/esm/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  58. package/dist/esm/anyspend/react/components/common/CryptoPaySection.js +4 -4
  59. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  60. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.js +19 -13
  61. package/dist/esm/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  62. package/dist/esm/anyspend/react/components/common/FeeBreakDown.js +16 -0
  63. package/dist/esm/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  64. package/dist/esm/anyspend/react/components/common/FeeDetailPanel.js +113 -0
  65. package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  66. package/dist/esm/anyspend/react/components/common/OrderDetails.js +6 -6
  67. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  68. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +4 -3
  69. package/dist/esm/anyspend/react/components/common/OrderToken.js +1 -1
  70. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +1 -1
  71. package/dist/esm/anyspend/react/components/common/OrderTokenAmountFiat.js +1 -1
  72. package/dist/esm/anyspend/react/components/common/OrderTokenAmountNew.js +1 -1
  73. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  74. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +38 -23
  75. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +2 -1
  76. package/dist/esm/anyspend/react/components/common/PointsDetailPanel.js +2 -3
  77. package/dist/esm/anyspend/react/contexts/FeatureFlagsContext.js +1 -1
  78. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  79. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.js +1 -0
  80. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +48 -12
  81. package/dist/esm/anyspend/types/api.d.ts +133 -178
  82. package/dist/esm/anyspend/utils/chain.js +4 -4
  83. package/dist/esm/bondkit/bondkitToken.d.ts +3 -1
  84. package/dist/esm/bondkit/bondkitToken.js +21 -2
  85. package/dist/esm/bondkit/components/TradingView.d.ts +1 -1
  86. package/dist/esm/bondkit/components/TradingView.js +14 -3
  87. package/dist/esm/bondkit/components/index.d.ts +1 -1
  88. package/dist/esm/bondkit/components/index.js +1 -1
  89. package/dist/esm/bondkit/components/types.d.ts +1 -0
  90. package/dist/esm/bondkit/config.d.ts +1 -0
  91. package/dist/esm/bondkit/config.js +1 -0
  92. package/dist/esm/bondkit/index.d.ts +1 -1
  93. package/dist/esm/bondkit/index.js +1 -1
  94. package/dist/esm/bondkit/types.d.ts +15 -0
  95. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +1 -1
  96. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +1 -1
  97. package/dist/esm/global-account/react/components/B3Provider/RelayKitProviderWrapper.js +2 -2
  98. package/dist/esm/global-account/react/components/ui/tooltip.js +1 -1
  99. package/dist/esm/global-account/react/hooks/useAuthentication.js +11 -0
  100. package/dist/esm/shared/generated/chain-networks.json +40 -7
  101. package/dist/styles/index.css +1 -1
  102. package/dist/types/anyspend/constants/index.d.ts +1 -0
  103. package/dist/types/anyspend/react/components/AnySpend.d.ts +2 -1
  104. package/dist/types/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  105. package/dist/types/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  106. package/dist/types/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  107. package/dist/types/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  108. package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  109. package/dist/types/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  110. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  111. package/dist/types/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  112. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +48 -12
  113. package/dist/types/anyspend/types/api.d.ts +133 -178
  114. package/dist/types/bondkit/bondkitToken.d.ts +3 -1
  115. package/dist/types/bondkit/components/TradingView.d.ts +1 -1
  116. package/dist/types/bondkit/components/index.d.ts +1 -1
  117. package/dist/types/bondkit/components/types.d.ts +1 -0
  118. package/dist/types/bondkit/config.d.ts +1 -0
  119. package/dist/types/bondkit/index.d.ts +1 -1
  120. package/dist/types/bondkit/types.d.ts +15 -0
  121. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +1 -1
  122. package/package.json +3 -3
  123. package/src/anyspend/constants/index.ts +12 -1
  124. package/src/anyspend/react/components/AnySpend.tsx +33 -0
  125. package/src/anyspend/react/components/AnySpendCustom.tsx +69 -7
  126. package/src/anyspend/react/components/AnyspendDepositHype.tsx +24 -0
  127. package/src/anyspend/react/components/common/CryptoPaySection.tsx +14 -2
  128. package/src/anyspend/react/components/common/CryptoReceiveSection.tsx +31 -11
  129. package/src/anyspend/react/components/common/FeeBreakDown.tsx +105 -0
  130. package/src/anyspend/react/components/common/FeeDetailPanel.tsx +334 -0
  131. package/src/anyspend/react/components/common/OrderDetails.tsx +7 -0
  132. package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +16 -0
  133. package/src/anyspend/react/components/common/OrderToken.tsx +1 -1
  134. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +1 -1
  135. package/src/anyspend/react/components/common/OrderTokenAmountFiat.tsx +1 -1
  136. package/src/anyspend/react/components/common/OrderTokenAmountNew.tsx +1 -1
  137. package/src/anyspend/react/components/common/PanelOnramp.tsx +58 -27
  138. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +18 -6
  139. package/src/anyspend/react/components/common/PointsDetailPanel.tsx +1 -13
  140. package/src/anyspend/react/contexts/FeatureFlagsContext.tsx +2 -2
  141. package/src/anyspend/react/hooks/useAnyspendFlow.ts +1 -0
  142. package/src/anyspend/types/api.ts +135 -178
  143. package/src/anyspend/utils/chain.ts +4 -4
  144. package/src/bondkit/bondkitToken.ts +26 -2
  145. package/src/bondkit/components/TradingView.tsx +15 -3
  146. package/src/bondkit/components/index.ts +1 -1
  147. package/src/bondkit/components/types.ts +1 -0
  148. package/src/bondkit/config.ts +2 -0
  149. package/src/bondkit/index.ts +1 -1
  150. package/src/bondkit/types.ts +19 -0
  151. package/src/global-account/react/components/B3Provider/B3Provider.tsx +1 -1
  152. package/src/global-account/react/components/B3Provider/RelayKitProviderWrapper.tsx +2 -2
  153. package/src/global-account/react/components/ui/tooltip.tsx +11 -9
  154. package/src/global-account/react/hooks/useAuthentication.ts +13 -1
  155. package/src/shared/generated/chain-networks.json +40 -7
@@ -13,14 +13,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
13
13
  createdAt: number;
14
14
  expiredAt: number;
15
15
  filledAt: number | null;
16
+ receivedDepositAt: number | null;
16
17
  creatorAddress: string | null;
17
18
  partnerId: string | null;
18
19
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
19
20
  oneClickBuyUrl: string | null;
20
21
  stripePaymentIntentId: string | null;
21
22
  settlement: {
22
- actualDstAmount: string | null;
23
+ actualDstAmount?: string;
24
+ relay?: Record<string, never>;
23
25
  } | null;
26
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
24
27
  } & {
25
28
  type: "swap";
26
29
  payload: import("../..").components["schemas"]["SwapPayload"];
@@ -39,14 +42,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
39
42
  createdAt: number;
40
43
  expiredAt: number;
41
44
  filledAt: number | null;
45
+ receivedDepositAt: number | null;
42
46
  creatorAddress: string | null;
43
47
  partnerId: string | null;
44
48
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
45
49
  oneClickBuyUrl: string | null;
46
50
  stripePaymentIntentId: string | null;
47
51
  settlement: {
48
- actualDstAmount: string | null;
52
+ actualDstAmount?: string;
53
+ relay?: Record<string, never>;
49
54
  } | null;
55
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
50
56
  } & {
51
57
  type: "hype_duel";
52
58
  payload: import("../..").components["schemas"]["HypeDuelPayload"];
@@ -65,14 +71,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
65
71
  createdAt: number;
66
72
  expiredAt: number;
67
73
  filledAt: number | null;
74
+ receivedDepositAt: number | null;
68
75
  creatorAddress: string | null;
69
76
  partnerId: string | null;
70
77
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
71
78
  oneClickBuyUrl: string | null;
72
79
  stripePaymentIntentId: string | null;
73
80
  settlement: {
74
- actualDstAmount: string | null;
81
+ actualDstAmount?: string;
82
+ relay?: Record<string, never>;
75
83
  } | null;
84
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
76
85
  } & {
77
86
  type: "custom";
78
87
  payload: import("../..").components["schemas"]["CustomPayload"];
@@ -91,14 +100,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
91
100
  createdAt: number;
92
101
  expiredAt: number;
93
102
  filledAt: number | null;
103
+ receivedDepositAt: number | null;
94
104
  creatorAddress: string | null;
95
105
  partnerId: string | null;
96
106
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
97
107
  oneClickBuyUrl: string | null;
98
108
  stripePaymentIntentId: string | null;
99
109
  settlement: {
100
- actualDstAmount: string | null;
110
+ actualDstAmount?: string;
111
+ relay?: Record<string, never>;
101
112
  } | null;
113
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
102
114
  } & {
103
115
  type: "mint_nft";
104
116
  payload: import("../..").components["schemas"]["MintNftPayload"];
@@ -117,14 +129,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
117
129
  createdAt: number;
118
130
  expiredAt: number;
119
131
  filledAt: number | null;
132
+ receivedDepositAt: number | null;
120
133
  creatorAddress: string | null;
121
134
  partnerId: string | null;
122
135
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
123
136
  oneClickBuyUrl: string | null;
124
137
  stripePaymentIntentId: string | null;
125
138
  settlement: {
126
- actualDstAmount: string | null;
139
+ actualDstAmount?: string;
140
+ relay?: Record<string, never>;
127
141
  } | null;
142
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
128
143
  } & {
129
144
  type: "join_tournament";
130
145
  payload: import("../..").components["schemas"]["JoinTournamentPayload"];
@@ -143,14 +158,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
143
158
  createdAt: number;
144
159
  expiredAt: number;
145
160
  filledAt: number | null;
161
+ receivedDepositAt: number | null;
146
162
  creatorAddress: string | null;
147
163
  partnerId: string | null;
148
164
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
149
165
  oneClickBuyUrl: string | null;
150
166
  stripePaymentIntentId: string | null;
151
167
  settlement: {
152
- actualDstAmount: string | null;
168
+ actualDstAmount?: string;
169
+ relay?: Record<string, never>;
153
170
  } | null;
171
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
154
172
  } & {
155
173
  type: "fund_tournament";
156
174
  payload: import("../..").components["schemas"]["FundTournamentPayload"];
@@ -172,14 +190,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
172
190
  createdAt: number;
173
191
  expiredAt: number;
174
192
  filledAt: number | null;
193
+ receivedDepositAt: number | null;
175
194
  creatorAddress: string | null;
176
195
  partnerId: string | null;
177
196
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
178
197
  oneClickBuyUrl: string | null;
179
198
  stripePaymentIntentId: string | null;
180
199
  settlement: {
181
- actualDstAmount: string | null;
200
+ actualDstAmount?: string;
201
+ relay?: Record<string, never>;
182
202
  } | null;
203
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
183
204
  } & {
184
205
  type: "swap";
185
206
  payload: import("../..").components["schemas"]["SwapPayload"];
@@ -198,14 +219,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
198
219
  createdAt: number;
199
220
  expiredAt: number;
200
221
  filledAt: number | null;
222
+ receivedDepositAt: number | null;
201
223
  creatorAddress: string | null;
202
224
  partnerId: string | null;
203
225
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
204
226
  oneClickBuyUrl: string | null;
205
227
  stripePaymentIntentId: string | null;
206
228
  settlement: {
207
- actualDstAmount: string | null;
229
+ actualDstAmount?: string;
230
+ relay?: Record<string, never>;
208
231
  } | null;
232
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
209
233
  } & {
210
234
  type: "hype_duel";
211
235
  payload: import("../..").components["schemas"]["HypeDuelPayload"];
@@ -224,14 +248,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
224
248
  createdAt: number;
225
249
  expiredAt: number;
226
250
  filledAt: number | null;
251
+ receivedDepositAt: number | null;
227
252
  creatorAddress: string | null;
228
253
  partnerId: string | null;
229
254
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
230
255
  oneClickBuyUrl: string | null;
231
256
  stripePaymentIntentId: string | null;
232
257
  settlement: {
233
- actualDstAmount: string | null;
258
+ actualDstAmount?: string;
259
+ relay?: Record<string, never>;
234
260
  } | null;
261
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
235
262
  } & {
236
263
  type: "custom";
237
264
  payload: import("../..").components["schemas"]["CustomPayload"];
@@ -250,14 +277,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
250
277
  createdAt: number;
251
278
  expiredAt: number;
252
279
  filledAt: number | null;
280
+ receivedDepositAt: number | null;
253
281
  creatorAddress: string | null;
254
282
  partnerId: string | null;
255
283
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
256
284
  oneClickBuyUrl: string | null;
257
285
  stripePaymentIntentId: string | null;
258
286
  settlement: {
259
- actualDstAmount: string | null;
287
+ actualDstAmount?: string;
288
+ relay?: Record<string, never>;
260
289
  } | null;
290
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
261
291
  } & {
262
292
  type: "mint_nft";
263
293
  payload: import("../..").components["schemas"]["MintNftPayload"];
@@ -276,14 +306,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
276
306
  createdAt: number;
277
307
  expiredAt: number;
278
308
  filledAt: number | null;
309
+ receivedDepositAt: number | null;
279
310
  creatorAddress: string | null;
280
311
  partnerId: string | null;
281
312
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
282
313
  oneClickBuyUrl: string | null;
283
314
  stripePaymentIntentId: string | null;
284
315
  settlement: {
285
- actualDstAmount: string | null;
316
+ actualDstAmount?: string;
317
+ relay?: Record<string, never>;
286
318
  } | null;
319
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
287
320
  } & {
288
321
  type: "join_tournament";
289
322
  payload: import("../..").components["schemas"]["JoinTournamentPayload"];
@@ -302,14 +335,17 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
302
335
  createdAt: number;
303
336
  expiredAt: number;
304
337
  filledAt: number | null;
338
+ receivedDepositAt: number | null;
305
339
  creatorAddress: string | null;
306
340
  partnerId: string | null;
307
341
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
308
342
  oneClickBuyUrl: string | null;
309
343
  stripePaymentIntentId: string | null;
310
344
  settlement: {
311
- actualDstAmount: string | null;
345
+ actualDstAmount?: string;
346
+ relay?: Record<string, never>;
312
347
  } | null;
348
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
313
349
  } & {
314
350
  type: "fund_tournament";
315
351
  payload: import("../..").components["schemas"]["FundTournamentPayload"];