@zubari/sdk 0.4.0 → 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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/protocols/index.js +1 -1
- package/dist/protocols/index.js.map +1 -1
- package/dist/protocols/index.mjs +1 -1
- package/dist/protocols/index.mjs.map +1 -1
- package/dist/react/index.js +4 -4
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +4 -4
- package/dist/react/index.mjs.map +1 -1
- package/dist/services/index.js +4 -4
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +4 -4
- package/dist/services/index.mjs.map +1 -1
- package/dist/wallet/index.js +4 -4
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs +4 -4
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +1 -1
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 = "
|
|
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 = "
|
|
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 = "
|
|
553
|
+
async function deriveAllAddresses(seed, network = "mainnet") {
|
|
554
554
|
const addresses = {
|
|
555
555
|
ethereum: null,
|
|
556
556
|
bitcoin: null,
|
|
@@ -2184,7 +2184,7 @@ var WalletManager = class _WalletManager {
|
|
|
2184
2184
|
*
|
|
2185
2185
|
* No fallback to placeholder addresses - WDK API is required for real addresses.
|
|
2186
2186
|
*/
|
|
2187
|
-
static async deriveAddressForChainAsync(seed, chain, network = "
|
|
2187
|
+
static async deriveAddressForChainAsync(seed, chain, network = "mainnet", apiUrl) {
|
|
2188
2188
|
if (chain === "ethereum") {
|
|
2189
2189
|
try {
|
|
2190
2190
|
const wdkService2 = getZubariWdkService({ network, apiUrl });
|
|
@@ -3381,7 +3381,7 @@ var ZubariNFTProtocol = class {
|
|
|
3381
3381
|
network;
|
|
3382
3382
|
apiClient;
|
|
3383
3383
|
nonceCounter = 0;
|
|
3384
|
-
constructor(contractAddress, marketplaceAddress, chainId, network = "
|
|
3384
|
+
constructor(contractAddress, marketplaceAddress, chainId, network = "mainnet", apiUrl) {
|
|
3385
3385
|
this.contractAddress = contractAddress;
|
|
3386
3386
|
this._marketplaceAddress = marketplaceAddress;
|
|
3387
3387
|
this.chainId = chainId;
|
|
@@ -7240,7 +7240,7 @@ var TransactionService = class {
|
|
|
7240
7240
|
wallets = {};
|
|
7241
7241
|
constructor(config = {}) {
|
|
7242
7242
|
this.config = {
|
|
7243
|
-
network: config.network || "
|
|
7243
|
+
network: config.network || "mainnet",
|
|
7244
7244
|
rpcUrls: config.rpcUrls
|
|
7245
7245
|
};
|
|
7246
7246
|
}
|