@zubari/sdk 0.2.0 → 0.2.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.
- package/dist/{WalletManager-BuZgAr-D.d.mts → WalletManager-DKPzfA74.d.mts} +48 -131
- package/dist/{WalletManager-DrI2lvOM.d.ts → WalletManager-IOHFgvpT.d.ts} +48 -131
- package/dist/{index-DTygRRZD.d.ts → index-BCX8EYxv.d.ts} +1 -1
- package/dist/{index-sHlchAWr.d.mts → index-BrLMTY29.d.mts} +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/protocols/index.js +6 -3
- package/dist/protocols/index.js.map +1 -1
- package/dist/protocols/index.mjs +6 -3
- package/dist/protocols/index.mjs.map +1 -1
- package/dist/react/index.d.mts +3 -4
- package/dist/react/index.d.ts +3 -4
- package/dist/wallet/index.d.mts +3 -4
- package/dist/wallet/index.d.ts +3 -4
- package/package.json +1 -1
package/dist/protocols/index.mjs
CHANGED
|
@@ -98,7 +98,8 @@ var ZubariNFTProtocol = class {
|
|
|
98
98
|
*/
|
|
99
99
|
async createLazyMintVoucher(params, signer) {
|
|
100
100
|
const { metadata, creatorAddress, price, currency, nonce, watermarking } = params;
|
|
101
|
-
|
|
101
|
+
const royaltyBps = metadata.royaltyBps ?? 500;
|
|
102
|
+
if (royaltyBps > PLATFORM_CONFIG.maxRoyaltyBps) {
|
|
102
103
|
throw new Error(`Royalty cannot exceed ${PLATFORM_CONFIG.maxRoyaltyBps / 100}%`);
|
|
103
104
|
}
|
|
104
105
|
if (!price || parseFloat(price) <= 0) {
|
|
@@ -118,7 +119,8 @@ var ZubariNFTProtocol = class {
|
|
|
118
119
|
uri: metadata.image,
|
|
119
120
|
// Will be IPFS URI
|
|
120
121
|
creator: creatorAddress,
|
|
121
|
-
royaltyBps
|
|
122
|
+
royaltyBps,
|
|
123
|
+
// Use the validated/defaulted value
|
|
122
124
|
deadline,
|
|
123
125
|
price: priceInWei,
|
|
124
126
|
currency: currencyAddress,
|
|
@@ -138,7 +140,8 @@ var ZubariNFTProtocol = class {
|
|
|
138
140
|
tokenId,
|
|
139
141
|
uri: metadata.image,
|
|
140
142
|
creator: creatorAddress,
|
|
141
|
-
royaltyBps
|
|
143
|
+
royaltyBps,
|
|
144
|
+
// Use the validated/defaulted value
|
|
142
145
|
deadline,
|
|
143
146
|
signature,
|
|
144
147
|
price: priceInWei,
|