@b3dotfun/sdk 0.0.70-alpha.1 → 0.0.70

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 (123) hide show
  1. package/dist/cjs/anyspend/index.d.ts +0 -1
  2. package/dist/cjs/anyspend/index.js +0 -1
  3. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +0 -6
  4. package/dist/cjs/anyspend/react/components/AnySpend.js +1 -13
  5. package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
  6. package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
  7. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
  8. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
  9. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +0 -1
  10. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +2 -6
  11. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
  12. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +1 -3
  13. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
  14. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  15. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +1 -2
  16. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
  17. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
  18. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
  19. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
  20. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  21. package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
  22. package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.js +2 -2
  23. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
  24. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  25. package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +0 -2
  26. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +1 -1
  27. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
  28. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +2 -2
  29. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
  30. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  31. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
  32. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  33. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
  34. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
  35. package/dist/cjs/anyspend/services/anyspend.d.ts +1 -2
  36. package/dist/cjs/anyspend/services/anyspend.js +1 -2
  37. package/dist/cjs/anyspend/types/api.d.ts +0 -295
  38. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +0 -4
  39. package/dist/esm/anyspend/index.d.ts +0 -1
  40. package/dist/esm/anyspend/index.js +0 -1
  41. package/dist/esm/anyspend/react/components/AnySpend.d.ts +0 -6
  42. package/dist/esm/anyspend/react/components/AnySpend.js +1 -13
  43. package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
  44. package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
  45. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
  46. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
  47. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +0 -1
  48. package/dist/esm/anyspend/react/components/AnySpendCustom.js +2 -6
  49. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
  50. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +1 -3
  51. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
  52. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  53. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +1 -2
  54. package/dist/esm/anyspend/react/components/AnySpendNFT.js +2 -2
  55. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
  56. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
  57. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
  58. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  59. package/dist/esm/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
  60. package/dist/esm/anyspend/react/components/AnySpendStakeUpside.js +2 -2
  61. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
  62. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  63. package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +0 -2
  64. package/dist/esm/anyspend/react/components/AnySpendTournament.js +1 -1
  65. package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
  66. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +2 -2
  67. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
  68. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  69. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
  70. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  71. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
  72. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
  73. package/dist/esm/anyspend/services/anyspend.d.ts +1 -2
  74. package/dist/esm/anyspend/services/anyspend.js +1 -2
  75. package/dist/esm/anyspend/types/api.d.ts +0 -295
  76. package/dist/esm/global-account/react/stores/useModalStore.d.ts +0 -4
  77. package/dist/types/anyspend/index.d.ts +0 -1
  78. package/dist/types/anyspend/react/components/AnySpend.d.ts +0 -6
  79. package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
  80. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
  81. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +0 -1
  82. package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
  83. package/dist/types/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
  84. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +1 -2
  85. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
  86. package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
  87. package/dist/types/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
  88. package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
  89. package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +0 -2
  90. package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
  91. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
  92. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  93. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
  94. package/dist/types/anyspend/services/anyspend.d.ts +1 -2
  95. package/dist/types/anyspend/types/api.d.ts +0 -295
  96. package/dist/types/global-account/react/stores/useModalStore.d.ts +0 -4
  97. package/package.json +1 -1
  98. package/src/anyspend/index.ts +0 -1
  99. package/src/anyspend/react/components/AnySpend.tsx +0 -23
  100. package/src/anyspend/react/components/AnySpendBondKit.tsx +1 -3
  101. package/src/anyspend/react/components/AnySpendBuySpin.tsx +0 -3
  102. package/src/anyspend/react/components/AnySpendCustom.tsx +1 -8
  103. package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +0 -4
  104. package/src/anyspend/react/components/AnySpendDepositUpside.tsx +0 -3
  105. package/src/anyspend/react/components/AnySpendNFT.tsx +0 -3
  106. package/src/anyspend/react/components/AnySpendStakeB3.tsx +0 -3
  107. package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +0 -3
  108. package/src/anyspend/react/components/AnySpendStakeUpside.tsx +0 -3
  109. package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +0 -3
  110. package/src/anyspend/react/components/AnySpendTournament.tsx +0 -3
  111. package/src/anyspend/react/components/AnyspendDepositHype.tsx +0 -3
  112. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +0 -3
  113. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -2
  114. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +1 -13
  115. package/src/anyspend/services/anyspend.ts +0 -3
  116. package/src/anyspend/types/api.ts +0 -295
  117. package/src/global-account/react/stores/useModalStore.ts +0 -4
  118. package/dist/cjs/anyspend/utils/validation.d.ts +0 -67
  119. package/dist/cjs/anyspend/utils/validation.js +0 -157
  120. package/dist/esm/anyspend/utils/validation.d.ts +0 -67
  121. package/dist/esm/anyspend/utils/validation.js +0 -153
  122. package/dist/types/anyspend/utils/validation.d.ts +0 -67
  123. package/src/anyspend/utils/validation.ts +0 -209
@@ -16,7 +16,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
16
16
  receivedDepositAt: number | null;
17
17
  creatorAddress: string | null;
18
18
  partnerId: string | null;
19
- clientReferenceId?: string | null;
20
19
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
21
20
  oneClickBuyUrl: string | null;
22
21
  stripePaymentIntentId: string | null;
@@ -46,7 +45,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
46
45
  receivedDepositAt: number | null;
47
46
  creatorAddress: string | null;
48
47
  partnerId: string | null;
49
- clientReferenceId?: string | null;
50
48
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
51
49
  oneClickBuyUrl: string | null;
52
50
  stripePaymentIntentId: string | null;
@@ -76,7 +74,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
76
74
  receivedDepositAt: number | null;
77
75
  creatorAddress: string | null;
78
76
  partnerId: string | null;
79
- clientReferenceId?: string | null;
80
77
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
81
78
  oneClickBuyUrl: string | null;
82
79
  stripePaymentIntentId: string | null;
@@ -106,7 +103,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
106
103
  receivedDepositAt: number | null;
107
104
  creatorAddress: string | null;
108
105
  partnerId: string | null;
109
- clientReferenceId?: string | null;
110
106
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
111
107
  oneClickBuyUrl: string | null;
112
108
  stripePaymentIntentId: string | null;
@@ -136,7 +132,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
136
132
  receivedDepositAt: number | null;
137
133
  creatorAddress: string | null;
138
134
  partnerId: string | null;
139
- clientReferenceId?: string | null;
140
135
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
141
136
  oneClickBuyUrl: string | null;
142
137
  stripePaymentIntentId: string | null;
@@ -166,7 +161,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
166
161
  receivedDepositAt: number | null;
167
162
  creatorAddress: string | null;
168
163
  partnerId: string | null;
169
- clientReferenceId?: string | null;
170
164
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
171
165
  oneClickBuyUrl: string | null;
172
166
  stripePaymentIntentId: string | null;
@@ -196,7 +190,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
196
190
  receivedDepositAt: number | null;
197
191
  creatorAddress: string | null;
198
192
  partnerId: string | null;
199
- clientReferenceId?: string | null;
200
193
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
201
194
  oneClickBuyUrl: string | null;
202
195
  stripePaymentIntentId: string | null;
@@ -226,7 +219,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
226
219
  receivedDepositAt: number | null;
227
220
  creatorAddress: string | null;
228
221
  partnerId: string | null;
229
- clientReferenceId?: string | null;
230
222
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
231
223
  oneClickBuyUrl: string | null;
232
224
  stripePaymentIntentId: string | null;
@@ -259,7 +251,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
259
251
  receivedDepositAt: number | null;
260
252
  creatorAddress: string | null;
261
253
  partnerId: string | null;
262
- clientReferenceId?: string | null;
263
254
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
264
255
  oneClickBuyUrl: string | null;
265
256
  stripePaymentIntentId: string | null;
@@ -289,7 +280,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
289
280
  receivedDepositAt: number | null;
290
281
  creatorAddress: string | null;
291
282
  partnerId: string | null;
292
- clientReferenceId?: string | null;
293
283
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
294
284
  oneClickBuyUrl: string | null;
295
285
  stripePaymentIntentId: string | null;
@@ -319,7 +309,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
319
309
  receivedDepositAt: number | null;
320
310
  creatorAddress: string | null;
321
311
  partnerId: string | null;
322
- clientReferenceId?: string | null;
323
312
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
324
313
  oneClickBuyUrl: string | null;
325
314
  stripePaymentIntentId: string | null;
@@ -349,7 +338,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
349
338
  receivedDepositAt: number | null;
350
339
  creatorAddress: string | null;
351
340
  partnerId: string | null;
352
- clientReferenceId?: string | null;
353
341
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
354
342
  oneClickBuyUrl: string | null;
355
343
  stripePaymentIntentId: string | null;
@@ -379,7 +367,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
379
367
  receivedDepositAt: number | null;
380
368
  creatorAddress: string | null;
381
369
  partnerId: string | null;
382
- clientReferenceId?: string | null;
383
370
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
384
371
  oneClickBuyUrl: string | null;
385
372
  stripePaymentIntentId: string | null;
@@ -409,7 +396,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
409
396
  receivedDepositAt: number | null;
410
397
  creatorAddress: string | null;
411
398
  partnerId: string | null;
412
- clientReferenceId?: string | null;
413
399
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
414
400
  oneClickBuyUrl: string | null;
415
401
  stripePaymentIntentId: string | null;
@@ -439,7 +425,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
439
425
  receivedDepositAt: number | null;
440
426
  creatorAddress: string | null;
441
427
  partnerId: string | null;
442
- clientReferenceId?: string | null;
443
428
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
444
429
  oneClickBuyUrl: string | null;
445
430
  stripePaymentIntentId: string | null;
@@ -469,7 +454,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
469
454
  receivedDepositAt: number | null;
470
455
  creatorAddress: string | null;
471
456
  partnerId: string | null;
472
- clientReferenceId?: string | null;
473
457
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
474
458
  oneClickBuyUrl: string | null;
475
459
  stripePaymentIntentId: string | null;
@@ -6,7 +6,7 @@ export declare const anyspendService: {
6
6
  getTokenList: (chainId: number, query: string) => Promise<components["schemas"]["Token"][]>;
7
7
  getToken: (chainId: number, tokenAddress: string) => Promise<components["schemas"]["Token"]>;
8
8
  getQuote: (req: GetQuoteRequest) => Promise<GetQuoteResponse>;
9
- createOrder: ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, clientReferenceId, visitorData, }: {
9
+ createOrder: ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, visitorData, }: {
10
10
  recipientAddress: string;
11
11
  type: string;
12
12
  srcChain: number;
@@ -19,7 +19,6 @@ export declare const anyspendService: {
19
19
  metadata: Record<string, any>;
20
20
  creatorAddress?: string;
21
21
  partnerId?: string;
22
- clientReferenceId?: string;
23
22
  visitorData?: VisitorData;
24
23
  }) => Promise<{
25
24
  success: boolean;
@@ -41,7 +41,7 @@ exports.anyspendService = {
41
41
  return data;
42
42
  },
43
43
  // Order related
44
- createOrder: async ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, clientReferenceId, visitorData, }) => {
44
+ createOrder: async ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, visitorData, }) => {
45
45
  const response = await fetch(`${constants_1.ANYSPEND_MAINNET_BASE_URL}/orders`, {
46
46
  method: "POST",
47
47
  headers: {
@@ -62,7 +62,6 @@ exports.anyspendService = {
62
62
  metadata,
63
63
  creatorAddress,
64
64
  partnerId,
65
- ...(clientReferenceId && { clientReferenceId }),
66
65
  }),
67
66
  });
68
67
  const data = await response.json();