@alephium/web3 0.5.0-rc.10 → 0.5.0-rc.12
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/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/api/api-alephium.d.ts +56 -6
- package/dist/src/api/api-alephium.js +5 -3
- package/dist/src/api/api-explorer.d.ts +155 -6
- package/dist/src/api/api-explorer.js +5 -3
- package/dist/src/signer/signer.d.ts +2 -8
- package/dist/src/signer/tx-builder.js +3 -3
- package/dist/src/signer/types.d.ts +0 -15
- package/dist/src/transaction/sign-verify.d.ts +2 -2
- package/dist/src/utils/sign.d.ts +2 -2
- package/dist/src/utils/utils.d.ts +3 -3
- package/package.json +4 -4
- package/src/api/api-alephium.ts +177 -180
- package/src/api/api-explorer.ts +249 -76
- package/src/signer/signer.ts +1 -18
- package/src/signer/tx-builder.ts +4 -4
- package/src/signer/types.ts +0 -7
- package/src/transaction/sign-verify.ts +2 -2
- package/src/utils/sign.ts +2 -2
- package/src/utils/utils.ts +3 -3
|
@@ -14,9 +14,9 @@ export declare function contractIdFromAddress(address: string): Uint8Array;
|
|
|
14
14
|
export declare function tokenIdFromAddress(address: string): Uint8Array;
|
|
15
15
|
export declare function hexToBinUnsafe(hex: string): Uint8Array;
|
|
16
16
|
export declare function binToHex(bin: Uint8Array): string;
|
|
17
|
-
export declare function groupOfPrivateKey(privateKey: string, keyType
|
|
18
|
-
export declare function publicKeyFromPrivateKey(privateKey: string, _keyType
|
|
19
|
-
export declare function addressFromPublicKey(publicKey: string, _keyType
|
|
17
|
+
export declare function groupOfPrivateKey(privateKey: string, keyType?: KeyType): number;
|
|
18
|
+
export declare function publicKeyFromPrivateKey(privateKey: string, _keyType?: KeyType): string;
|
|
19
|
+
export declare function addressFromPublicKey(publicKey: string, _keyType?: KeyType): string;
|
|
20
20
|
export declare function addressFromContractId(contractId: string): string;
|
|
21
21
|
export declare function contractIdFromTx(txId: string, outputIndex: number): string;
|
|
22
22
|
export declare function subContractId(parentContractId: string, pathInHex: string, group: number): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alephium/web3",
|
|
3
|
-
"version": "0.5.0-rc.
|
|
3
|
+
"version": "0.5.0-rc.12",
|
|
4
4
|
"description": "A JS/TS library to interact with the Alephium platform",
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"author": "Alephium dev <dev@alephium.org>",
|
|
29
29
|
"config": {
|
|
30
|
-
"alephium_version": "1.7.
|
|
31
|
-
"explorer_backend_version": "1.
|
|
30
|
+
"alephium_version": "1.7.1-rc2",
|
|
31
|
+
"explorer_backend_version": "1.13.0-rc0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rm -rf dist/* && npx tsc --build . && webpack",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"rewire": "^6.0.0",
|
|
79
79
|
"shelljs": "^0.8.5",
|
|
80
80
|
"stream-browserify": "^3.0.0",
|
|
81
|
-
"swagger-typescript-api": "
|
|
81
|
+
"swagger-typescript-api": "12.0.3",
|
|
82
82
|
"terser-webpack-plugin": "^5.3.1",
|
|
83
83
|
"ts-jest": "^28.0.2",
|
|
84
84
|
"ts-node": "^10.7.0",
|