@b3dotfun/sdk 0.0.73-test.1 → 0.0.73-test.2
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/cjs/anyspend/react/components/AnySpendCollectorClubPurchase.d.ts +5 -1
- package/dist/cjs/anyspend/react/components/AnySpendCollectorClubPurchase.js +2 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/esm/anyspend/react/components/AnySpendCollectorClubPurchase.d.ts +5 -1
- package/dist/esm/anyspend/react/components/AnySpendCollectorClubPurchase.js +2 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/types/anyspend/react/components/AnySpendCollectorClubPurchase.d.ts +5 -1
- package/dist/types/global-account/react/stores/useModalStore.d.ts +2 -0
- package/package.json +1 -1
- package/src/anyspend/react/components/AnySpendCollectorClubPurchase.tsx +6 -0
- package/src/global-account/react/stores/useModalStore.ts +2 -0
|
@@ -53,5 +53,9 @@ export interface AnySpendCollectorClubPurchaseProps {
|
|
|
53
53
|
* Show recipient selection (default: true)
|
|
54
54
|
*/
|
|
55
55
|
showRecipient?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The vending machine ID
|
|
58
|
+
*/
|
|
59
|
+
vendingMachineId: string;
|
|
56
60
|
}
|
|
57
|
-
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -47,7 +47,7 @@ const BUY_PACKS_FOR_ABI = {
|
|
|
47
47
|
stateMutability: "nonpayable",
|
|
48
48
|
type: "function",
|
|
49
49
|
};
|
|
50
|
-
function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab = "crypto", packId, packAmount, pricePerPack, paymentToken = constants_1.USDC_BASE, recipientAddress, spenderAddress = CC_SHOP_ADDRESS, onSuccess, header, showRecipient = true, }) {
|
|
50
|
+
function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab = "crypto", packId, packAmount, pricePerPack, paymentToken = constants_1.USDC_BASE, recipientAddress, spenderAddress = CC_SHOP_ADDRESS, onSuccess, header, showRecipient = true, vendingMachineId, }) {
|
|
51
51
|
// Calculate total amount needed (pricePerPack * packAmount)
|
|
52
52
|
const totalAmount = (0, react_1.useMemo)(() => {
|
|
53
53
|
try {
|
|
@@ -78,5 +78,6 @@ function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab =
|
|
|
78
78
|
packId,
|
|
79
79
|
packAmount,
|
|
80
80
|
pricePerPack,
|
|
81
|
+
vendingMachineId,
|
|
81
82
|
}, header: header || defaultHeader, onSuccess: onSuccess, showRecipient: showRecipient }));
|
|
82
83
|
}
|
|
@@ -402,6 +402,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
|
|
|
402
402
|
onSuccess?: (txHash?: string) => void;
|
|
403
403
|
/** Client-provided reference ID for tracking orders */
|
|
404
404
|
clientReferenceId?: string;
|
|
405
|
+
/** The vending machine ID */
|
|
406
|
+
vendingMachineId: string;
|
|
405
407
|
}
|
|
406
408
|
/**
|
|
407
409
|
* Union type of all possible modal content types
|
|
@@ -53,5 +53,9 @@ export interface AnySpendCollectorClubPurchaseProps {
|
|
|
53
53
|
* Show recipient selection (default: true)
|
|
54
54
|
*/
|
|
55
55
|
showRecipient?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The vending machine ID
|
|
58
|
+
*/
|
|
59
|
+
vendingMachineId: string;
|
|
56
60
|
}
|
|
57
|
-
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,7 +44,7 @@ const BUY_PACKS_FOR_ABI = {
|
|
|
44
44
|
stateMutability: "nonpayable",
|
|
45
45
|
type: "function",
|
|
46
46
|
};
|
|
47
|
-
export function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab = "crypto", packId, packAmount, pricePerPack, paymentToken = USDC_BASE, recipientAddress, spenderAddress = CC_SHOP_ADDRESS, onSuccess, header, showRecipient = true, }) {
|
|
47
|
+
export function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab = "crypto", packId, packAmount, pricePerPack, paymentToken = USDC_BASE, recipientAddress, spenderAddress = CC_SHOP_ADDRESS, onSuccess, header, showRecipient = true, vendingMachineId, }) {
|
|
48
48
|
// Calculate total amount needed (pricePerPack * packAmount)
|
|
49
49
|
const totalAmount = useMemo(() => {
|
|
50
50
|
try {
|
|
@@ -75,5 +75,6 @@ export function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activ
|
|
|
75
75
|
packId,
|
|
76
76
|
packAmount,
|
|
77
77
|
pricePerPack,
|
|
78
|
+
vendingMachineId,
|
|
78
79
|
}, header: header || defaultHeader, onSuccess: onSuccess, showRecipient: showRecipient }));
|
|
79
80
|
}
|
|
@@ -402,6 +402,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
|
|
|
402
402
|
onSuccess?: (txHash?: string) => void;
|
|
403
403
|
/** Client-provided reference ID for tracking orders */
|
|
404
404
|
clientReferenceId?: string;
|
|
405
|
+
/** The vending machine ID */
|
|
406
|
+
vendingMachineId: string;
|
|
405
407
|
}
|
|
406
408
|
/**
|
|
407
409
|
* Union type of all possible modal content types
|
|
@@ -53,5 +53,9 @@ export interface AnySpendCollectorClubPurchaseProps {
|
|
|
53
53
|
* Show recipient selection (default: true)
|
|
54
54
|
*/
|
|
55
55
|
showRecipient?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The vending machine ID
|
|
58
|
+
*/
|
|
59
|
+
vendingMachineId: string;
|
|
56
60
|
}
|
|
57
|
-
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -402,6 +402,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
|
|
|
402
402
|
onSuccess?: (txHash?: string) => void;
|
|
403
403
|
/** Client-provided reference ID for tracking orders */
|
|
404
404
|
clientReferenceId?: string;
|
|
405
|
+
/** The vending machine ID */
|
|
406
|
+
vendingMachineId: string;
|
|
405
407
|
}
|
|
406
408
|
/**
|
|
407
409
|
* Union type of all possible modal content types
|
package/package.json
CHANGED
|
@@ -100,6 +100,10 @@ export interface AnySpendCollectorClubPurchaseProps {
|
|
|
100
100
|
* Show recipient selection (default: true)
|
|
101
101
|
*/
|
|
102
102
|
showRecipient?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* The vending machine ID
|
|
105
|
+
*/
|
|
106
|
+
vendingMachineId: string;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
export function AnySpendCollectorClubPurchase({
|
|
@@ -115,6 +119,7 @@ export function AnySpendCollectorClubPurchase({
|
|
|
115
119
|
onSuccess,
|
|
116
120
|
header,
|
|
117
121
|
showRecipient = true,
|
|
122
|
+
vendingMachineId,
|
|
118
123
|
}: AnySpendCollectorClubPurchaseProps) {
|
|
119
124
|
// Calculate total amount needed (pricePerPack * packAmount)
|
|
120
125
|
const totalAmount = useMemo(() => {
|
|
@@ -169,6 +174,7 @@ export function AnySpendCollectorClubPurchase({
|
|
|
169
174
|
packId,
|
|
170
175
|
packAmount,
|
|
171
176
|
pricePerPack,
|
|
177
|
+
vendingMachineId,
|
|
172
178
|
}}
|
|
173
179
|
header={header || defaultHeader}
|
|
174
180
|
onSuccess={onSuccess}
|
|
@@ -426,6 +426,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
|
|
|
426
426
|
onSuccess?: (txHash?: string) => void;
|
|
427
427
|
/** Client-provided reference ID for tracking orders */
|
|
428
428
|
clientReferenceId?: string;
|
|
429
|
+
/** The vending machine ID */
|
|
430
|
+
vendingMachineId: string;
|
|
429
431
|
}
|
|
430
432
|
|
|
431
433
|
/**
|