@zubari/sdk 0.4.1 → 0.4.2

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/index.js CHANGED
@@ -436,7 +436,7 @@ function deriveEthereumAddress(seed) {
436
436
  const hdNode = ethers.HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS2.ethereum);
437
437
  return hdNode.address;
438
438
  }
439
- function deriveBitcoinAddress(seed, network = "testnet") {
439
+ function deriveBitcoinAddress(seed, network = "mainnet") {
440
440
  try {
441
441
  const seedBytes = bip39.mnemonicToSeedSync(seed);
442
442
  const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
@@ -530,7 +530,7 @@ function deriveTronAddress(seed) {
530
530
  throw error;
531
531
  }
532
532
  }
533
- function deriveSparkAddress(seed, network = "testnet") {
533
+ function deriveSparkAddress(seed, network = "mainnet") {
534
534
  try {
535
535
  const seedBytes = bip39.mnemonicToSeedSync(seed);
536
536
  const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
@@ -550,7 +550,7 @@ function deriveSparkAddress(seed, network = "testnet") {
550
550
  throw error;
551
551
  }
552
552
  }
553
- async function deriveAllAddresses(seed, network = "testnet") {
553
+ async function deriveAllAddresses(seed, network = "mainnet") {
554
554
  const addresses = {
555
555
  ethereum: null,
556
556
  bitcoin: null,
@@ -3381,7 +3381,7 @@ var ZubariNFTProtocol = class {
3381
3381
  network;
3382
3382
  apiClient;
3383
3383
  nonceCounter = 0;
3384
- constructor(contractAddress, marketplaceAddress, chainId, network = "testnet", apiUrl) {
3384
+ constructor(contractAddress, marketplaceAddress, chainId, network = "mainnet", apiUrl) {
3385
3385
  this.contractAddress = contractAddress;
3386
3386
  this._marketplaceAddress = marketplaceAddress;
3387
3387
  this.chainId = chainId;