@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/services/index.mjs
CHANGED
|
@@ -1085,7 +1085,7 @@ function deriveEthereumAddress(seed) {
|
|
|
1085
1085
|
const hdNode = HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS.ethereum);
|
|
1086
1086
|
return hdNode.address;
|
|
1087
1087
|
}
|
|
1088
|
-
function deriveBitcoinAddress(seed, network = "
|
|
1088
|
+
function deriveBitcoinAddress(seed, network = "mainnet") {
|
|
1089
1089
|
try {
|
|
1090
1090
|
const seedBytes = mnemonicToSeedSync(seed);
|
|
1091
1091
|
const hdKey = HDKey.fromMasterSeed(seedBytes);
|
|
@@ -1179,7 +1179,7 @@ function deriveTronAddress(seed) {
|
|
|
1179
1179
|
throw error;
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
function deriveSparkAddress(seed, network = "
|
|
1182
|
+
function deriveSparkAddress(seed, network = "mainnet") {
|
|
1183
1183
|
try {
|
|
1184
1184
|
const seedBytes = mnemonicToSeedSync(seed);
|
|
1185
1185
|
const hdKey = HDKey.fromMasterSeed(seedBytes);
|
|
@@ -1199,7 +1199,7 @@ function deriveSparkAddress(seed, network = "testnet") {
|
|
|
1199
1199
|
throw error;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
-
async function deriveAllAddresses(seed, network = "
|
|
1202
|
+
async function deriveAllAddresses(seed, network = "mainnet") {
|
|
1203
1203
|
const addresses = {
|
|
1204
1204
|
ethereum: null,
|
|
1205
1205
|
bitcoin: null,
|
|
@@ -1776,7 +1776,7 @@ var TransactionService = class {
|
|
|
1776
1776
|
wallets = {};
|
|
1777
1777
|
constructor(config = {}) {
|
|
1778
1778
|
this.config = {
|
|
1779
|
-
network: config.network || "
|
|
1779
|
+
network: config.network || "mainnet",
|
|
1780
1780
|
rpcUrls: config.rpcUrls
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|