@zubari/sdk 0.5.0 → 0.5.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/{TransactionService-Djonkbp4.d.ts → TransactionService-BtWUjKt_.d.ts} +14 -2
- package/dist/{TransactionService-1Jt8ZRqO.d.mts → TransactionService-Lr_WS6iR.d.mts} +14 -2
- package/dist/{WalletManager-BJaLBfX5.d.ts → WalletManager-DQQwVkoa.d.ts} +52 -131
- package/dist/{WalletManager-pVFpurEi.d.mts → WalletManager-Sbpx4E1-.d.mts} +52 -131
- package/dist/{index-Da7SaweH.d.mts → contracts-B842YprC.d.mts} +152 -82
- package/dist/{index-ARbXbNI-.d.ts → contracts-s_CDIruh.d.ts} +152 -82
- package/dist/index.d.mts +65 -6
- package/dist/index.d.ts +65 -6
- package/dist/index.js +531 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +515 -75
- package/dist/index.mjs.map +1 -1
- package/dist/protocols/index.js +23 -5
- package/dist/protocols/index.js.map +1 -1
- package/dist/protocols/index.mjs +23 -5
- 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/react/index.js +324 -34
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +325 -35
- package/dist/react/index.mjs.map +1 -1
- package/dist/services/index.d.mts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +151 -19
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +151 -19
- package/dist/services/index.mjs.map +1 -1
- package/dist/wallet/index.d.mts +3 -4
- package/dist/wallet/index.d.ts +3 -4
- package/dist/wallet/index.js +354 -53
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs +355 -54
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +16 -14
package/dist/protocols/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var NFT_VOUCHER_TYPES = {
|
|
|
36
36
|
var CURRENCY_ADDRESSES = {
|
|
37
37
|
testnet: {
|
|
38
38
|
ETH: ZERO_ADDRESS,
|
|
39
|
-
USDT: "
|
|
40
|
-
// USDT on Sepolia
|
|
39
|
+
USDT: "0x7169D38820dfd117C3FA1f22a697dBA58d90BA06"
|
|
40
|
+
// USDT on Sepolia (Test Tether USD)
|
|
41
41
|
},
|
|
42
42
|
mainnet: {
|
|
43
43
|
ETH: ZERO_ADDRESS,
|
|
@@ -736,7 +736,7 @@ var ZubariNFTProtocol = class {
|
|
|
736
736
|
network;
|
|
737
737
|
apiClient;
|
|
738
738
|
nonceCounter = 0;
|
|
739
|
-
constructor(contractAddress, marketplaceAddress, chainId, network = "
|
|
739
|
+
constructor(contractAddress, marketplaceAddress, chainId, network = "mainnet", apiUrl) {
|
|
740
740
|
this.contractAddress = contractAddress;
|
|
741
741
|
this._marketplaceAddress = marketplaceAddress;
|
|
742
742
|
this.chainId = chainId;
|
|
@@ -2659,7 +2659,7 @@ var ZubariTipsProtocol = class {
|
|
|
2659
2659
|
const decoded = iface.decodeFunctionResult("platformFeeBps", result);
|
|
2660
2660
|
return Number(decoded[0]);
|
|
2661
2661
|
} catch {
|
|
2662
|
-
return
|
|
2662
|
+
return 1e3;
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
/**
|
|
@@ -3899,7 +3899,7 @@ var ZubariSubscriptionProtocol = class {
|
|
|
3899
3899
|
const decoded = iface.decodeFunctionResult("platformFeeBps", result);
|
|
3900
3900
|
return Number(decoded[0]);
|
|
3901
3901
|
} catch {
|
|
3902
|
-
return
|
|
3902
|
+
return 1e3;
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
3905
|
/**
|
|
@@ -4955,6 +4955,24 @@ var ZubariSubscriptionV2_default = [
|
|
|
4955
4955
|
stateMutability: "nonpayable",
|
|
4956
4956
|
type: "function"
|
|
4957
4957
|
},
|
|
4958
|
+
{
|
|
4959
|
+
inputs: [
|
|
4960
|
+
{
|
|
4961
|
+
internalType: "address",
|
|
4962
|
+
name: "creatorAddress",
|
|
4963
|
+
type: "address"
|
|
4964
|
+
},
|
|
4965
|
+
{
|
|
4966
|
+
internalType: "address",
|
|
4967
|
+
name: "payoutWallet",
|
|
4968
|
+
type: "address"
|
|
4969
|
+
}
|
|
4970
|
+
],
|
|
4971
|
+
name: "registerCreatorFor",
|
|
4972
|
+
outputs: [],
|
|
4973
|
+
stateMutability: "nonpayable",
|
|
4974
|
+
type: "function"
|
|
4975
|
+
},
|
|
4958
4976
|
{
|
|
4959
4977
|
inputs: [],
|
|
4960
4978
|
name: "renounceOwnership",
|