@zubari/sdk 0.3.7 → 0.4.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.
Files changed (45) hide show
  1. package/dist/PayoutsProtocol-B5z8SEA-.d.ts +734 -0
  2. package/dist/PayoutsProtocol-CLiMFe54.d.mts +734 -0
  3. package/dist/{TransactionService-DuMJmrG3.d.mts → TransactionService-1Jt8ZRqO.d.mts} +1 -1
  4. package/dist/{TransactionService-DURp3bRL.d.ts → TransactionService-Djonkbp4.d.ts} +1 -1
  5. package/dist/{WalletManager-CmiNyapl.d.ts → WalletManager-DfvFJ-mk.d.ts} +12 -1
  6. package/dist/{WalletManager-DXt6vihp.d.mts → WalletManager-j0tgNIKi.d.mts} +12 -1
  7. package/dist/{index-CRsZrlN0.d.mts → index-BnlkQ9B6.d.ts} +5 -2
  8. package/dist/{index-DF0Gf8NK.d.mts → index-CTyZlHKg.d.mts} +7 -1
  9. package/dist/{index-DF0Gf8NK.d.ts → index-CTyZlHKg.d.ts} +7 -1
  10. package/dist/{index-VNzO49qu.d.ts → index-QLZi5YRN.d.mts} +5 -2
  11. package/dist/index.d.mts +21 -5
  12. package/dist/index.d.ts +21 -5
  13. package/dist/index.js +152 -38
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +152 -38
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/protocols/index.d.mts +102 -502
  18. package/dist/protocols/index.d.ts +102 -502
  19. package/dist/protocols/index.js +1849 -2
  20. package/dist/protocols/index.js.map +1 -1
  21. package/dist/protocols/index.mjs +1849 -3
  22. package/dist/protocols/index.mjs.map +1 -1
  23. package/dist/react/index.d.mts +7 -3
  24. package/dist/react/index.d.ts +7 -3
  25. package/dist/react/index.js +136 -21
  26. package/dist/react/index.js.map +1 -1
  27. package/dist/react/index.mjs +136 -21
  28. package/dist/react/index.mjs.map +1 -1
  29. package/dist/services/index.d.mts +2 -2
  30. package/dist/services/index.d.ts +2 -2
  31. package/dist/services/index.js +6 -6
  32. package/dist/services/index.js.map +1 -1
  33. package/dist/services/index.mjs +6 -6
  34. package/dist/services/index.mjs.map +1 -1
  35. package/dist/storage/index.js +61 -3
  36. package/dist/storage/index.js.map +1 -1
  37. package/dist/storage/index.mjs +61 -3
  38. package/dist/storage/index.mjs.map +1 -1
  39. package/dist/wallet/index.d.mts +3 -3
  40. package/dist/wallet/index.d.ts +3 -3
  41. package/dist/wallet/index.js +150 -36
  42. package/dist/wallet/index.js.map +1 -1
  43. package/dist/wallet/index.mjs +150 -36
  44. package/dist/wallet/index.mjs.map +1 -1
  45. package/package.json +1 -1
@@ -263,7 +263,7 @@ var WdkApiClient = class {
263
263
  /**
264
264
  * Derive address for a specific chain using Tether WDK
265
265
  */
266
- async deriveAddress(seed, chain, network = "testnet") {
266
+ async deriveAddress(seed, chain, network = "mainnet") {
267
267
  try {
268
268
  const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/derive-address`, {
269
269
  method: "POST",
@@ -283,7 +283,7 @@ var WdkApiClient = class {
283
283
  /**
284
284
  * Derive addresses for all chains using Tether WDK
285
285
  */
286
- async deriveAllAddresses(seed, network = "testnet") {
286
+ async deriveAllAddresses(seed, network = "mainnet") {
287
287
  try {
288
288
  const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/derive-all`, {
289
289
  method: "POST",
@@ -303,7 +303,7 @@ var WdkApiClient = class {
303
303
  /**
304
304
  * Send a transaction on a specific chain using Tether WDK
305
305
  */
306
- async sendTransaction(seed, chain, to, amount, network = "testnet") {
306
+ async sendTransaction(seed, chain, to, amount, network = "mainnet") {
307
307
  try {
308
308
  const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/send`, {
309
309
  method: "POST",
@@ -324,7 +324,7 @@ var WdkApiClient = class {
324
324
  * Get transaction history for an address on a specific chain
325
325
  * Fetches from blockchain explorers (Etherscan, mempool.space, etc.)
326
326
  */
327
- async getTransactionHistory(seed, chain, network = "testnet", limit = 10) {
327
+ async getTransactionHistory(seed, chain, network = "mainnet", limit = 10) {
328
328
  try {
329
329
  const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/history`, {
330
330
  method: "POST",
@@ -345,7 +345,7 @@ var WdkApiClient = class {
345
345
  * Get transaction status by hash
346
346
  * Fetches from blockchain explorers to check confirmation status
347
347
  */
348
- async getTransactionStatus(txHash, chain, network = "testnet") {
348
+ async getTransactionStatus(txHash, chain, network = "mainnet") {
349
349
  try {
350
350
  const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/tx-status`, {
351
351
  method: "POST",
@@ -1276,7 +1276,7 @@ var ZubariWdkService = class {
1276
1276
  useNativeWdk = false;
1277
1277
  constructor(config = {}) {
1278
1278
  this.config = {
1279
- network: config.network || "testnet",
1279
+ network: config.network || "mainnet",
1280
1280
  apiUrl: config.apiUrl || process.env.NEXT_PUBLIC_API_URL || DEFAULT_API_URL3,
1281
1281
  forceApi: config.forceApi ?? false,
1282
1282
  timeout: config.timeout || 3e4