@zubari/sdk 0.1.29 → 0.2.0

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.
@@ -1,5 +1,5 @@
1
- import { Z as ZubariWalletConfig, N as NetworkType, A as Account, a as NetworkBalance, S as SendParams, b as TxResult } from './index-IPLQBUaD.mjs';
2
- import './WalletManager-2jAcWdXE.mjs';
1
+ import { Z as ZubariWalletConfig, N as NetworkType, A as Account, a as NetworkBalance, S as SendParams, b as TxResult } from './index-Be7yLGAO.mjs';
2
+ import './WalletManager-BuZgAr-D.mjs';
3
3
 
4
4
  interface ContractAddresses {
5
5
  registry: string;
@@ -15,6 +15,7 @@ interface ContractAddresses {
15
15
  usdt: string;
16
16
  weth: string;
17
17
  }
18
+ declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
18
19
  declare const ZUBARI_CONTRACTS: Record<'testnet' | 'mainnet', ContractAddresses>;
19
20
  declare const PLATFORM_CONFIG: {
20
21
  readonly tipFeeBps: 300;
@@ -23,6 +24,59 @@ declare const PLATFORM_CONFIG: {
23
24
  readonly voucherValiditySecs: number;
24
25
  readonly swapDeadlineSecs: number;
25
26
  };
27
+ declare const NFT_VOUCHER_DOMAIN: {
28
+ readonly name: "ZubariNFT";
29
+ readonly version: "1";
30
+ };
31
+ declare const NFT_VOUCHER_TYPES: {
32
+ readonly NFTVoucher: readonly [{
33
+ readonly name: "tokenId";
34
+ readonly type: "bytes32";
35
+ }, {
36
+ readonly name: "uri";
37
+ readonly type: "string";
38
+ }, {
39
+ readonly name: "creator";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly name: "royaltyBps";
43
+ readonly type: "uint256";
44
+ }, {
45
+ readonly name: "deadline";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly name: "price";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly name: "currency";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly name: "nonce";
55
+ readonly type: "uint256";
56
+ }, {
57
+ readonly name: "contentHash";
58
+ readonly type: "bytes32";
59
+ }, {
60
+ readonly name: "userId";
61
+ readonly type: "bytes32";
62
+ }, {
63
+ readonly name: "watermarkTimestamp";
64
+ readonly type: "uint256";
65
+ }, {
66
+ readonly name: "sessionId";
67
+ readonly type: "bytes32";
68
+ }];
69
+ };
70
+ declare const CURRENCY_ADDRESSES: {
71
+ readonly testnet: {
72
+ readonly ETH: "0x0000000000000000000000000000000000000000";
73
+ readonly USDT: "0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0";
74
+ };
75
+ readonly mainnet: {
76
+ readonly ETH: "0x0000000000000000000000000000000000000000";
77
+ readonly USDT: "0xdAC17F958D2ee523a2206206994597C13D831ec7";
78
+ };
79
+ };
26
80
  declare function getContractAddresses(network: 'testnet' | 'mainnet'): ContractAddresses;
27
81
 
28
82
  /**
@@ -133,4 +187,4 @@ declare class ZubariWallet {
133
187
  getContractAddresses(): ContractAddresses;
134
188
  }
135
189
 
136
- export { PLATFORM_CONFIG as P, ZubariWallet as Z, ZUBARI_CONTRACTS as a, getContractAddresses as g };
190
+ export { CURRENCY_ADDRESSES as C, NFT_VOUCHER_DOMAIN as N, PLATFORM_CONFIG as P, ZubariWallet as Z, ZUBARI_CONTRACTS as a, ZERO_ADDRESS as b, NFT_VOUCHER_TYPES as c, getContractAddresses as g };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-CUX8jPBi.mjs';
2
- export { D as DERIVATION_PATHS, N as NETWORKS, T as TESTNET_NETWORKS, W as WalletManager, b as WalletManagerConfig, a as WalletState, g as getNetworkConfig } from './WalletManager-2jAcWdXE.mjs';
1
+ export { C as CURRENCY_ADDRESSES, N as NFT_VOUCHER_DOMAIN, c as NFT_VOUCHER_TYPES, P as PLATFORM_CONFIG, b as ZERO_ADDRESS, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-sHlchAWr.mjs';
2
+ export { D as DERIVATION_PATHS, N as NETWORKS, T as TESTNET_NETWORKS, W as WalletManager, b as WalletManagerConfig, a as WalletState, g as getNetworkConfig } from './WalletManager-BuZgAr-D.mjs';
3
3
  export { M as MemoryStorageAdapter, S as SecureStorageAdapter, W as WebEncryptedStorageAdapter, c as createSecureStorage } from './SecureStorage-jO783AhC.mjs';
4
4
  export { ZubariMarketProtocol, ZubariNFTProtocol, ZubariPayoutsProtocol, ZubariSubscriptionProtocol, ZubariTipsProtocol } from './protocols/index.mjs';
5
5
  export { BrowserAddressDerivation, ChainAddress, ChainBalance, FeeEstimate, FeeRates, MultiChainAddresses, SupportedChain, SwapService, TransactionHistoryItem, TransactionParams, TransactionResult, TransactionService, TransactionServiceConfig, WdkApiClient, ZubariWdkService, ZubariWdkServiceConfig, createTransactionService, createZubariWdkService, getTransactionService, getWdkApiClient, getZubariWdkService, isBrowser } from './services/index.mjs';
6
- export { A as Account, B as BuyParams, E as EarningsBreakdown, L as LazyMintVoucher, f as Listing, e as ListingParams, d as NFT, c as NFTMetadata, a as NetworkBalance, N as NetworkType, R as RevenueSplit, S as SendParams, k as Subscription, j as SubscriptionPlan, m as SwapParams, l as SwapQuote, g as TipData, h as TipResult, i as TipStats, T as TokenBalance, b as TxResult, o as ZubariError, n as ZubariErrorCode, Z as ZubariWalletConfig } from './index-IPLQBUaD.mjs';
6
+ export { A as Account, B as BuyParams, C as CreateVoucherParams, E as EarningsBreakdown, L as LazyMintVoucher, h as Listing, g as ListingParams, f as NFT, d as NFTAttribute, c as NFTCurrency, e as NFTMetadata, a as NetworkBalance, N as NetworkType, R as RevenueSplit, S as SendParams, n as Subscription, m as SubscriptionPlan, p as SwapParams, o as SwapQuote, l as Tip, i as TipData, j as TipResult, k as TipStats, T as TokenBalance, b as TxResult, W as WatermarkingData, r as ZubariError, q as ZubariErrorCode, Z as ZubariWalletConfig } from './index-Be7yLGAO.mjs';
7
7
  export { FeeEstimateResult, SendTransactionResult, UseWalletManagerOptions, UseWalletManagerReturn, useWalletManager } from './react/index.mjs';
8
8
  import 'node_modules/viem/_types/actions/siwe/verifySiweMessage';
9
9
  import 'node_modules/viem/_types/utils/ccip';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-47yJyxgt.js';
2
- export { D as DERIVATION_PATHS, N as NETWORKS, T as TESTNET_NETWORKS, W as WalletManager, b as WalletManagerConfig, a as WalletState, g as getNetworkConfig } from './WalletManager-CO-urS0z.js';
1
+ export { C as CURRENCY_ADDRESSES, N as NFT_VOUCHER_DOMAIN, c as NFT_VOUCHER_TYPES, P as PLATFORM_CONFIG, b as ZERO_ADDRESS, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-DTygRRZD.js';
2
+ export { D as DERIVATION_PATHS, N as NETWORKS, T as TESTNET_NETWORKS, W as WalletManager, b as WalletManagerConfig, a as WalletState, g as getNetworkConfig } from './WalletManager-DrI2lvOM.js';
3
3
  export { M as MemoryStorageAdapter, S as SecureStorageAdapter, W as WebEncryptedStorageAdapter, c as createSecureStorage } from './SecureStorage-jO783AhC.js';
4
4
  export { ZubariMarketProtocol, ZubariNFTProtocol, ZubariPayoutsProtocol, ZubariSubscriptionProtocol, ZubariTipsProtocol } from './protocols/index.js';
5
5
  export { BrowserAddressDerivation, ChainAddress, ChainBalance, FeeEstimate, FeeRates, MultiChainAddresses, SupportedChain, SwapService, TransactionHistoryItem, TransactionParams, TransactionResult, TransactionService, TransactionServiceConfig, WdkApiClient, ZubariWdkService, ZubariWdkServiceConfig, createTransactionService, createZubariWdkService, getTransactionService, getWdkApiClient, getZubariWdkService, isBrowser } from './services/index.js';
6
- export { A as Account, B as BuyParams, E as EarningsBreakdown, L as LazyMintVoucher, f as Listing, e as ListingParams, d as NFT, c as NFTMetadata, a as NetworkBalance, N as NetworkType, R as RevenueSplit, S as SendParams, k as Subscription, j as SubscriptionPlan, m as SwapParams, l as SwapQuote, g as TipData, h as TipResult, i as TipStats, T as TokenBalance, b as TxResult, o as ZubariError, n as ZubariErrorCode, Z as ZubariWalletConfig } from './index-IPLQBUaD.js';
6
+ export { A as Account, B as BuyParams, C as CreateVoucherParams, E as EarningsBreakdown, L as LazyMintVoucher, h as Listing, g as ListingParams, f as NFT, d as NFTAttribute, c as NFTCurrency, e as NFTMetadata, a as NetworkBalance, N as NetworkType, R as RevenueSplit, S as SendParams, n as Subscription, m as SubscriptionPlan, p as SwapParams, o as SwapQuote, l as Tip, i as TipData, j as TipResult, k as TipStats, T as TokenBalance, b as TxResult, W as WatermarkingData, r as ZubariError, q as ZubariErrorCode, Z as ZubariWalletConfig } from './index-Be7yLGAO.js';
7
7
  export { FeeEstimateResult, SendTransactionResult, UseWalletManagerOptions, UseWalletManagerReturn, useWalletManager } from './react/index.js';
8
8
  import 'node_modules/viem/_types/actions/siwe/verifySiweMessage';
9
9
  import 'node_modules/viem/_types/utils/ccip';