@b3dotfun/sdk 0.0.7-alpha.8 → 0.0.7-alpha.9
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/AnySpendCustom.js +6 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +6 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/types/global-account/react/stores/useModalStore.d.ts +2 -0
- package/package.json +1 -1
- package/src/anyspend/react/components/AnySpendCustom.tsx +6 -1
- package/src/global-account/react/stores/useModalStore.ts +2 -0
|
@@ -252,6 +252,8 @@ function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", recipient
|
|
|
252
252
|
type: anyspend_1.NftType.ERC1155,
|
|
253
253
|
contractAddress: metadata.nftContract.contractAddress,
|
|
254
254
|
tokenId: metadata.nftContract.tokenId,
|
|
255
|
+
name: metadata.nftContract.name,
|
|
256
|
+
description: metadata.nftContract.description,
|
|
255
257
|
imageUrl: metadata.nftContract.imageUrl,
|
|
256
258
|
nftPrice: dstAmount
|
|
257
259
|
}
|
|
@@ -259,7 +261,10 @@ function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", recipient
|
|
|
259
261
|
type: anyspend_1.NftType.ERC721,
|
|
260
262
|
contractAddress: metadata.nftContract.contractAddress,
|
|
261
263
|
contractType: metadata.nftContract.type,
|
|
262
|
-
nftPrice: dstAmount
|
|
264
|
+
nftPrice: dstAmount,
|
|
265
|
+
name: metadata.nftContract.name,
|
|
266
|
+
description: metadata.nftContract.description,
|
|
267
|
+
imageUrl: metadata.nftContract.imageUrl
|
|
263
268
|
}
|
|
264
269
|
: undefined,
|
|
265
270
|
tournament: (0, anyspend_1.isTournamentMetadata)(metadata)
|
|
@@ -124,6 +124,8 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
124
124
|
nftContract: NftContract;
|
|
125
125
|
/** Recipient address to receive the NFT */
|
|
126
126
|
recipientAddress?: string;
|
|
127
|
+
/** Callback function called when the NFT is successfully transferred */
|
|
128
|
+
onSuccess?: () => void;
|
|
127
129
|
}
|
|
128
130
|
/**
|
|
129
131
|
* Props for the AnySpend tournament modal
|
|
@@ -246,6 +246,8 @@ export function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", re
|
|
|
246
246
|
type: NftType.ERC1155,
|
|
247
247
|
contractAddress: metadata.nftContract.contractAddress,
|
|
248
248
|
tokenId: metadata.nftContract.tokenId,
|
|
249
|
+
name: metadata.nftContract.name,
|
|
250
|
+
description: metadata.nftContract.description,
|
|
249
251
|
imageUrl: metadata.nftContract.imageUrl,
|
|
250
252
|
nftPrice: dstAmount
|
|
251
253
|
}
|
|
@@ -253,7 +255,10 @@ export function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", re
|
|
|
253
255
|
type: NftType.ERC721,
|
|
254
256
|
contractAddress: metadata.nftContract.contractAddress,
|
|
255
257
|
contractType: metadata.nftContract.type,
|
|
256
|
-
nftPrice: dstAmount
|
|
258
|
+
nftPrice: dstAmount,
|
|
259
|
+
name: metadata.nftContract.name,
|
|
260
|
+
description: metadata.nftContract.description,
|
|
261
|
+
imageUrl: metadata.nftContract.imageUrl
|
|
257
262
|
}
|
|
258
263
|
: undefined,
|
|
259
264
|
tournament: isTournamentMetadata(metadata)
|
|
@@ -124,6 +124,8 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
124
124
|
nftContract: NftContract;
|
|
125
125
|
/** Recipient address to receive the NFT */
|
|
126
126
|
recipientAddress?: string;
|
|
127
|
+
/** Callback function called when the NFT is successfully transferred */
|
|
128
|
+
onSuccess?: () => void;
|
|
127
129
|
}
|
|
128
130
|
/**
|
|
129
131
|
* Props for the AnySpend tournament modal
|
|
@@ -124,6 +124,8 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
124
124
|
nftContract: NftContract;
|
|
125
125
|
/** Recipient address to receive the NFT */
|
|
126
126
|
recipientAddress?: string;
|
|
127
|
+
/** Callback function called when the NFT is successfully transferred */
|
|
128
|
+
onSuccess?: () => void;
|
|
127
129
|
}
|
|
128
130
|
/**
|
|
129
131
|
* Props for the AnySpend tournament modal
|
package/package.json
CHANGED
|
@@ -392,6 +392,8 @@ export function AnySpendCustom({
|
|
|
392
392
|
type: NftType.ERC1155,
|
|
393
393
|
contractAddress: metadata.nftContract.contractAddress,
|
|
394
394
|
tokenId: metadata.nftContract.tokenId!,
|
|
395
|
+
name: metadata.nftContract.name,
|
|
396
|
+
description: metadata.nftContract.description,
|
|
395
397
|
imageUrl: metadata.nftContract.imageUrl,
|
|
396
398
|
nftPrice: dstAmount
|
|
397
399
|
}
|
|
@@ -399,7 +401,10 @@ export function AnySpendCustom({
|
|
|
399
401
|
type: NftType.ERC721,
|
|
400
402
|
contractAddress: metadata.nftContract.contractAddress,
|
|
401
403
|
contractType: metadata.nftContract.type,
|
|
402
|
-
nftPrice: dstAmount
|
|
404
|
+
nftPrice: dstAmount,
|
|
405
|
+
name: metadata.nftContract.name,
|
|
406
|
+
description: metadata.nftContract.description,
|
|
407
|
+
imageUrl: metadata.nftContract.imageUrl
|
|
403
408
|
}
|
|
404
409
|
: undefined,
|
|
405
410
|
tournament: isTournamentMetadata(metadata)
|
|
@@ -131,6 +131,8 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
131
131
|
nftContract: NftContract;
|
|
132
132
|
/** Recipient address to receive the NFT */
|
|
133
133
|
recipientAddress?: string;
|
|
134
|
+
/** Callback function called when the NFT is successfully transferred */
|
|
135
|
+
onSuccess?: () => void;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
/**
|