@teleportdao/bitcoin 1.0.16 → 1.1.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.
package/dist/bitcoin-base.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class BitcoinBase {
|
|
|
21
21
|
currentAccount: string | null | undefined;
|
|
22
22
|
currentAccountType: string | null;
|
|
23
23
|
privateKey: Buffer | null;
|
|
24
|
-
publicKey:
|
|
24
|
+
publicKey: Buffer | null;
|
|
25
25
|
publicKeys: any[];
|
|
26
26
|
setMultiSigAccount(accountType?: string): void;
|
|
27
27
|
setAccountPrivateKey(privateKeyHex: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoin-base.d.ts","sourceRoot":"","sources":["../src/bitcoin-base.js"],"names":[],"mappings":";AASA;IAsHE;;;;;;gBAmBC;IAxID;;;;;OAwBC;IAfC,aAAoC;IACpC,kBAA6E;IAE7E,uCAA2F;IAC3F,4CAAwD;IAExD,oBAA2C;IAE3C,0CAA0B;IAC1B,kCAA8B;IAE9B,0BAAsB;IACtB,
|
|
1
|
+
{"version":3,"file":"bitcoin-base.d.ts","sourceRoot":"","sources":["../src/bitcoin-base.js"],"names":[],"mappings":";AASA;IAsHE;;;;;;gBAmBC;IAxID;;;;;OAwBC;IAfC,aAAoC;IACpC,kBAA6E;IAE7E,uCAA2F;IAC3F,4CAAwD;IAExD,oBAA2C;IAE3C,0CAA0B;IAC1B,kCAA8B;IAE9B,0BAAsB;IACtB,yBAAqB;IAErB,kBAAoB;IAGtB,+CAiBC;IAED,+CAIC;IAED,6CAEC;IAYD,6GAkBC;IAED,qDAUC;IAHC,wDAA4B;IAC5B,mCAAwC;IAc1C;QAPyB,OAAO;QACP,WAAW;QACX,SAAS;QACT,cAAc;QACd,iBAAiB;qBAWzC;IAgCD,wEAuBC;IAED,8CAIC;IAED,uDAIC;CACF"}
|
package/dist/bitcoin-utils.d.ts
CHANGED
|
@@ -27,10 +27,10 @@ export function createAddressObjectByScript({ addressType, script }: {
|
|
|
27
27
|
script: any;
|
|
28
28
|
}, network: any): bitcoin.payments.Payment;
|
|
29
29
|
export function getAddressType(address: any, network: any): "p2wpkh" | "p2sh" | "p2pkh";
|
|
30
|
-
export function getPubKeyFromPrivateKeyWIF(privateKeyWIF: any, network: any):
|
|
31
|
-
export function getPubKeyFromPrivateKeyHex(privateKeyHex: any, network: any):
|
|
30
|
+
export function getPubKeyFromPrivateKeyWIF(privateKeyWIF: any, network: any): Buffer;
|
|
31
|
+
export function getPubKeyFromPrivateKeyHex(privateKeyHex: any, network: any): Buffer;
|
|
32
32
|
export function getPublicKeyHexByXpubAndIndex(xpub: any, index?: number, network?: bitcoin.networks.Network): string;
|
|
33
|
-
export function getPrivateKeyHexFromWIF(privateKeyWIF: any, network: any):
|
|
33
|
+
export function getPrivateKeyHexFromWIF(privateKeyWIF: any, network: any): string;
|
|
34
34
|
export function reverseBytes(hexInput: any): string;
|
|
35
35
|
export function parseBlockHeader(headerHex: any): {};
|
|
36
36
|
export function generateMnemonic(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoin-utils.d.ts","sourceRoot":"","sources":["../src/bitcoin-utils.js"],"names":[],"mappings":"AAcA;;;;;;;EAsDC;AA0JD;;;EA2BC;AA/JD;;;2CAyBC;AA6BD;;;2CA4BC;AAED;;;EA0BC;AAnFD;;;2CAyBC;AApED,wFAcC;AAuHD,
|
|
1
|
+
{"version":3,"file":"bitcoin-utils.d.ts","sourceRoot":"","sources":["../src/bitcoin-utils.js"],"names":[],"mappings":"AAcA;;;;;;;EAsDC;AA0JD;;;EA2BC;AA/JD;;;2CAyBC;AA6BD;;;2CA4BC;AAED;;;EA0BC;AAnFD;;;2CAyBC;AApED,wFAcC;AAuHD,qFAGC;AAED,qFAGC;AAbD,qHAGC;AAYD,kFAGC;AAtJD,oDAEC;AAmLD,qDAgBC;AAlQD,2CAGC;AAyQD;;;;;;;;;;;;;;;;;;;;;EA2BC;AAED;;;;;;;;;EAsHC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teleportdao/bitcoin",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "provider for different networks",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 4",
|
|
9
9
|
"build": "tsc",
|
|
10
10
|
"build:watch": "tsc --watch"
|
|
11
11
|
},
|
|
12
12
|
"author": "",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@teleportdao/configs": "^1.0
|
|
16
|
-
"@teleportdao/providers": "^1.0
|
|
15
|
+
"@teleportdao/configs": "^1.1.0",
|
|
16
|
+
"@teleportdao/providers": "^1.1.0",
|
|
17
17
|
"axios": "^0.27.2",
|
|
18
18
|
"bip32": "^2.0.6",
|
|
19
19
|
"bip39": "^3.0.4",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "9f3076f863056381c32e127faf6c35dada99788f"
|
|
34
34
|
}
|