@zubari/sdk 0.1.25 → 0.1.26

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
1
  import { Z as ZubariWalletConfig, N as NetworkType, A as Account, b as NetworkBalance, S as SendParams, T as TxResult } from './index-D9vwxETQ.js';
2
- import './WalletManager-9bC646Ax.js';
2
+ import './WalletManager-D1ohlVea.js';
3
3
 
4
4
  interface ContractAddresses {
5
5
  registry: string;
@@ -1,5 +1,5 @@
1
1
  import { Z as ZubariWalletConfig, N as NetworkType, A as Account, b as NetworkBalance, S as SendParams, T as TxResult } from './index-D9vwxETQ.mjs';
2
- import './WalletManager-B4Ag188W.mjs';
2
+ import './WalletManager-CGIuecnp.mjs';
3
3
 
4
4
  interface ContractAddresses {
5
5
  registry: string;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-DkB0ouBN.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-B4Ag188W.mjs';
1
+ export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-Dh2ukHnr.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-CGIuecnp.mjs';
3
3
  export { M as MemoryStorageAdapter, S as SecureStorageAdapter, W as WebEncryptedStorageAdapter, c as createSecureStorage } from './SecureStorage-jO783AhC.mjs';
4
4
  export { Z as ZubariNFTProtocol, c as ZubariPayoutsProtocol, b as ZubariSubscriptionProtocol, a as ZubariTipsProtocol } from './PayoutsProtocol-Q3wZHcaf.mjs';
5
5
  export { A as Account, E as EarningsBreakdown, e as LazyMintVoucher, L as ListingParams, f as NFT, d as NFTMetadata, b 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, c as TokenBalance, T as TxResult, o as ZubariError, n as ZubariErrorCode, Z as ZubariWalletConfig } from './index-D9vwxETQ.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-C4SuAZP4.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-9bC646Ax.js';
1
+ export { P as PLATFORM_CONFIG, a as ZUBARI_CONTRACTS, Z as ZubariWallet, g as getContractAddresses } from './index-CR7fLCYO.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-D1ohlVea.js';
3
3
  export { M as MemoryStorageAdapter, S as SecureStorageAdapter, W as WebEncryptedStorageAdapter, c as createSecureStorage } from './SecureStorage-jO783AhC.js';
4
4
  export { Z as ZubariNFTProtocol, c as ZubariPayoutsProtocol, b as ZubariSubscriptionProtocol, a as ZubariTipsProtocol } from './PayoutsProtocol-BFrXok86.js';
5
5
  export { A as Account, E as EarningsBreakdown, e as LazyMintVoucher, L as ListingParams, f as NFT, d as NFTMetadata, b 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, c as TokenBalance, T as TxResult, o as ZubariError, n as ZubariErrorCode, Z as ZubariWalletConfig } from './index-D9vwxETQ.js';
package/dist/index.js CHANGED
@@ -889,6 +889,27 @@ var WdkApiClient = class {
889
889
  };
890
890
  }
891
891
  }
892
+ /**
893
+ * Get transaction status by hash
894
+ * Fetches from blockchain explorers to check confirmation status
895
+ */
896
+ async getTransactionStatus(txHash, chain, network = "testnet") {
897
+ try {
898
+ const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/tx-status`, {
899
+ method: "POST",
900
+ headers: {
901
+ "Content-Type": "application/json"
902
+ },
903
+ body: JSON.stringify({ txHash, chain, network })
904
+ });
905
+ return await response.json();
906
+ } catch (error) {
907
+ return {
908
+ success: false,
909
+ error: error instanceof Error ? error.message : "Failed to get transaction status"
910
+ };
911
+ }
912
+ }
892
913
  };
893
914
  var DEFAULT_API_URL = process.env.NEXT_PUBLIC_API_URL || "https://ckgwifsxka.us-east-2.awsapprunner.com";
894
915
  var wdkApiClient = null;