@b3dotfun/sdk 0.0.73-test.2 → 0.0.73-test.3

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.
@@ -57,5 +57,9 @@ export interface AnySpendCollectorClubPurchaseProps {
57
57
  * The vending machine ID
58
58
  */
59
59
  vendingMachineId: string;
60
+ /**
61
+ * The partner ID
62
+ */
63
+ packType: string;
60
64
  }
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;
65
+ export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, packType, }: 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, vendingMachineId, }) {
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, packType, }) {
51
51
  // Calculate total amount needed (pricePerPack * packAmount)
52
52
  const totalAmount = (0, react_1.useMemo)(() => {
53
53
  try {
@@ -79,5 +79,6 @@ function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activeTab =
79
79
  packAmount,
80
80
  pricePerPack,
81
81
  vendingMachineId,
82
+ packType,
82
83
  }, header: header || defaultHeader, onSuccess: onSuccess, showRecipient: showRecipient }));
83
84
  }
@@ -404,6 +404,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
404
404
  clientReferenceId?: string;
405
405
  /** The vending machine ID */
406
406
  vendingMachineId: string;
407
+ /** The pack type */
408
+ packType: string;
407
409
  }
408
410
  /**
409
411
  * Union type of all possible modal content types
@@ -57,5 +57,9 @@ export interface AnySpendCollectorClubPurchaseProps {
57
57
  * The vending machine ID
58
58
  */
59
59
  vendingMachineId: string;
60
+ /**
61
+ * The partner ID
62
+ */
63
+ packType: string;
60
64
  }
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;
65
+ export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, packType, }: 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, vendingMachineId, }) {
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, packType, }) {
48
48
  // Calculate total amount needed (pricePerPack * packAmount)
49
49
  const totalAmount = useMemo(() => {
50
50
  try {
@@ -76,5 +76,6 @@ export function AnySpendCollectorClubPurchase({ loadOrder, mode = "modal", activ
76
76
  packAmount,
77
77
  pricePerPack,
78
78
  vendingMachineId,
79
+ packType,
79
80
  }, header: header || defaultHeader, onSuccess: onSuccess, showRecipient: showRecipient }));
80
81
  }
@@ -404,6 +404,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
404
404
  clientReferenceId?: string;
405
405
  /** The vending machine ID */
406
406
  vendingMachineId: string;
407
+ /** The pack type */
408
+ packType: string;
407
409
  }
408
410
  /**
409
411
  * Union type of all possible modal content types
@@ -57,5 +57,9 @@ export interface AnySpendCollectorClubPurchaseProps {
57
57
  * The vending machine ID
58
58
  */
59
59
  vendingMachineId: string;
60
+ /**
61
+ * The partner ID
62
+ */
63
+ packType: string;
60
64
  }
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;
65
+ export declare function AnySpendCollectorClubPurchase({ loadOrder, mode, activeTab, packId, packAmount, pricePerPack, paymentToken, recipientAddress, spenderAddress, onSuccess, header, showRecipient, vendingMachineId, packType, }: AnySpendCollectorClubPurchaseProps): import("react/jsx-runtime").JSX.Element;
@@ -404,6 +404,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
404
404
  clientReferenceId?: string;
405
405
  /** The vending machine ID */
406
406
  vendingMachineId: string;
407
+ /** The pack type */
408
+ packType: string;
407
409
  }
408
410
  /**
409
411
  * Union type of all possible modal content types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.73-test.2",
3
+ "version": "0.0.73-test.3",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -104,6 +104,10 @@ export interface AnySpendCollectorClubPurchaseProps {
104
104
  * The vending machine ID
105
105
  */
106
106
  vendingMachineId: string;
107
+ /**
108
+ * The partner ID
109
+ */
110
+ packType: string;
107
111
  }
108
112
 
109
113
  export function AnySpendCollectorClubPurchase({
@@ -120,6 +124,7 @@ export function AnySpendCollectorClubPurchase({
120
124
  header,
121
125
  showRecipient = true,
122
126
  vendingMachineId,
127
+ packType,
123
128
  }: AnySpendCollectorClubPurchaseProps) {
124
129
  // Calculate total amount needed (pricePerPack * packAmount)
125
130
  const totalAmount = useMemo(() => {
@@ -175,6 +180,7 @@ export function AnySpendCollectorClubPurchase({
175
180
  packAmount,
176
181
  pricePerPack,
177
182
  vendingMachineId,
183
+ packType,
178
184
  }}
179
185
  header={header || defaultHeader}
180
186
  onSuccess={onSuccess}
@@ -428,6 +428,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
428
428
  clientReferenceId?: string;
429
429
  /** The vending machine ID */
430
430
  vendingMachineId: string;
431
+ /** The pack type */
432
+ packType: string;
431
433
  }
432
434
 
433
435
  /**