@wallfree-dev/coinlib-core 0.13.43-beta.4 → 0.13.43-beta.6
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/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.d.ts +10 -10
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.d.ts +7 -7
- package/package.json +9 -5
- package/utils/ProtocolSymbols.d.ts +3 -0
- package/utils/ProtocolSymbols.js +3 -0
- package/utils/ProtocolSymbols.js.map +1 -1
- package/dependencies/src/bs58-4.0.1/index.d.ts +0 -5
- package/dependencies/src/bs58check-2.1.2/base.d.ts +0 -12
- package/dependencies/src/bs58check-2.1.2/index.d.ts +0 -5
- package/dependencies/src/pako-2.0.3/index.d.ts +0 -4
- package/dependencies/src/rlp-2.2.3/index.d.ts +0 -6
package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { Prefix } from '../../../../../@taquito/utils-15.0.1/packages/taquito-ut
|
|
|
2
2
|
import { MichelsonValue } from './michelson/codec';
|
|
3
3
|
import { Uint8ArrayConsumer } from './uint8array-consumer';
|
|
4
4
|
export declare const prefixEncoder: (prefix: Prefix) => (str: string) => string;
|
|
5
|
-
export declare const prefixDecoder: (pre: Prefix) => (str: Uint8ArrayConsumer) =>
|
|
6
|
-
export declare const tz1Decoder: (str: Uint8ArrayConsumer) =>
|
|
7
|
-
export declare const branchDecoder: (str: Uint8ArrayConsumer) =>
|
|
8
|
-
export declare const pkhDecoder: (val: Uint8ArrayConsumer) =>
|
|
5
|
+
export declare const prefixDecoder: (pre: Prefix) => (str: Uint8ArrayConsumer) => any;
|
|
6
|
+
export declare const tz1Decoder: (str: Uint8ArrayConsumer) => any;
|
|
7
|
+
export declare const branchDecoder: (str: Uint8ArrayConsumer) => any;
|
|
8
|
+
export declare const pkhDecoder: (val: Uint8ArrayConsumer) => any;
|
|
9
9
|
export declare const branchEncoder: (str: string) => string;
|
|
10
10
|
export declare const tz1Encoder: (str: string) => string;
|
|
11
11
|
export declare const boolEncoder: (bool: unknown) => string;
|
|
@@ -21,14 +21,14 @@ export declare const int32Decoder: (val: Uint8ArrayConsumer) => number;
|
|
|
21
21
|
export declare const int16Encoder: (val: number | string) => string;
|
|
22
22
|
export declare const int16Decoder: (val: Uint8ArrayConsumer) => number;
|
|
23
23
|
export declare const boolDecoder: (val: Uint8ArrayConsumer) => boolean;
|
|
24
|
-
export declare const delegateDecoder: (val: Uint8ArrayConsumer) =>
|
|
24
|
+
export declare const delegateDecoder: (val: Uint8ArrayConsumer) => any;
|
|
25
25
|
export declare const pkhEncoder: (val: string) => string;
|
|
26
26
|
export declare const publicKeyEncoder: (val: string) => string;
|
|
27
27
|
export declare const addressEncoder: (val: string) => string;
|
|
28
28
|
export declare const smartContractAddressEncoder: (val: string) => string;
|
|
29
|
-
export declare const publicKeyDecoder: (val: Uint8ArrayConsumer) =>
|
|
30
|
-
export declare const addressDecoder: (val: Uint8ArrayConsumer) =>
|
|
31
|
-
export declare const smartContractAddressDecoder: (val: Uint8ArrayConsumer) =>
|
|
29
|
+
export declare const publicKeyDecoder: (val: Uint8ArrayConsumer) => any;
|
|
30
|
+
export declare const addressDecoder: (val: Uint8ArrayConsumer) => any;
|
|
31
|
+
export declare const smartContractAddressDecoder: (val: Uint8ArrayConsumer) => any;
|
|
32
32
|
export declare const zarithEncoder: (n: string) => string;
|
|
33
33
|
export declare const zarithDecoder: (n: Uint8ArrayConsumer) => string;
|
|
34
34
|
export declare const entrypointDecoder: (value: Uint8ArrayConsumer) => any;
|
|
@@ -44,13 +44,13 @@ export declare const parametersEncoder: (val: {
|
|
|
44
44
|
export declare const valueParameterEncoder: (value: MichelsonValue) => string;
|
|
45
45
|
export declare const valueParameterDecoder: (val: Uint8ArrayConsumer) => string | number | object | undefined;
|
|
46
46
|
export declare const blockPayloadHashEncoder: (str: string) => string;
|
|
47
|
-
export declare const blockPayloadHashDecoder: (str: Uint8ArrayConsumer) =>
|
|
47
|
+
export declare const blockPayloadHashDecoder: (str: Uint8ArrayConsumer) => any;
|
|
48
48
|
export declare const entrypointNameEncoder: (entrypoint: string) => string;
|
|
49
49
|
export declare const entrypointNameDecoder: (val: Uint8ArrayConsumer) => string;
|
|
50
50
|
export declare const txRollupOriginationParamEncoder: (_value: string) => string;
|
|
51
51
|
export declare const txRollupOriginationParamDecoder: (_val: Uint8ArrayConsumer) => {};
|
|
52
52
|
export declare const txRollupIdEncoder: (str: string) => string;
|
|
53
|
-
export declare const txRollupIdDecoder: (str: Uint8ArrayConsumer) =>
|
|
53
|
+
export declare const txRollupIdDecoder: (str: Uint8ArrayConsumer) => any;
|
|
54
54
|
export declare const txRollupBatchContentEncoder: (value: string) => string;
|
|
55
55
|
export declare const txRollupBatchContentDecoder: (val: Uint8ArrayConsumer) => string;
|
|
56
56
|
export declare const burnLimitEncoder: (val: string) => string;
|
package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.d.ts
CHANGED
|
@@ -16,13 +16,13 @@ export { format } from './format';
|
|
|
16
16
|
*
|
|
17
17
|
* @param value Value in hex
|
|
18
18
|
*/
|
|
19
|
-
export declare function encodeExpr(value: string):
|
|
19
|
+
export declare function encodeExpr(value: string): any;
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @description Return the operation hash of a signed operation
|
|
23
23
|
* @param value Value in hex of a signed operation
|
|
24
24
|
*/
|
|
25
|
-
export declare function encodeOpHash(value: string):
|
|
25
|
+
export declare function encodeOpHash(value: string): any;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @description Base58 encode a string or a Uint8Array and append a prefix to it
|
|
@@ -30,7 +30,7 @@ export declare function encodeOpHash(value: string): string;
|
|
|
30
30
|
* @param value Value to base58 encode
|
|
31
31
|
* @param prefix prefix to append to the encoded string
|
|
32
32
|
*/
|
|
33
|
-
export declare function b58cencode(value: string | Uint8Array, prefix: Uint8Array):
|
|
33
|
+
export declare function b58cencode(value: string | Uint8Array, prefix: Uint8Array): any;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @description Base58 decode a string and remove the prefix from it
|
|
@@ -59,28 +59,28 @@ export declare function b58decodeL2Address(payload: string): string;
|
|
|
59
59
|
*
|
|
60
60
|
* @param value Address to base58 encode (tz1, tz2, tz3 or KT1)
|
|
61
61
|
*/
|
|
62
|
-
export declare function encodePubKey(value: string):
|
|
62
|
+
export declare function encodePubKey(value: string): any;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @description Base58 encode an address without predefined prefix
|
|
66
66
|
* @param value Address to base58 encode (tz4) hex dec
|
|
67
67
|
* @returns return address
|
|
68
68
|
*/
|
|
69
|
-
export declare function encodeL2Address(value: string):
|
|
69
|
+
export declare function encodeL2Address(value: string): any;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @description Base58 encode a key according to its prefix
|
|
73
73
|
*
|
|
74
74
|
* @param value Key to base58 encode
|
|
75
75
|
*/
|
|
76
|
-
export declare function encodeKey(value: string):
|
|
76
|
+
export declare function encodeKey(value: string): any;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @description Base58 encode a key hash according to its prefix
|
|
80
80
|
*
|
|
81
81
|
* @param value Key hash to base58 encode
|
|
82
82
|
*/
|
|
83
|
-
export declare function encodeKeyHash(value: string):
|
|
83
|
+
export declare function encodeKeyHash(value: string): any;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @description Convert an hex string to a Uint8Array
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wallfree-dev/coinlib-core",
|
|
3
|
-
"version": "0.13.43-beta.
|
|
3
|
+
"version": "0.13.43-beta.6",
|
|
4
4
|
"description": "The @wallfree-dev/coinlib-core is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"lint-ci": "tslint -t json -o ../../lint-reports/core.json --project . || true",
|
|
33
33
|
"lint-ci:prettier": "prettier \"src/**/*.ts\" \"test/**/*.ts\" --list-different",
|
|
34
34
|
"test": "TS_NODE_PROJECT='./test/tsconfig.json' nyc mocha --bail --require ts-node/register --require tsconfig-paths/register --require source-map-support/register --full-trace --delay --timeout 40000 ./test/**/**.spec.ts",
|
|
35
|
-
"test-ci": "nyc --reporter=lcov
|
|
35
|
+
"test-ci": "nyc --reporter=lcov npm test",
|
|
36
36
|
"browserify": "browserify ./dist/index.js -s airgapCoinLib > ./dist/airgap-coinlib-core.min.js"
|
|
37
37
|
},
|
|
38
38
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
@@ -42,11 +42,15 @@
|
|
|
42
42
|
"@stablelib/ed25519": "^1.0.3",
|
|
43
43
|
"@stablelib/nacl": "^1.0.4",
|
|
44
44
|
"@stablelib/utf8": "^1.0.1",
|
|
45
|
-
"base64-js": "1.5.1",
|
|
46
|
-
"elliptic": "6.5.
|
|
45
|
+
"base64-js": "^1.5.1",
|
|
46
|
+
"elliptic": "^6.5.5",
|
|
47
47
|
"long": "^5.2.0",
|
|
48
48
|
"protobufjs": "^6.11.2"
|
|
49
49
|
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/base64-js": "^1.5.0",
|
|
52
|
+
"@types/elliptic": "^6.4.18"
|
|
53
|
+
},
|
|
50
54
|
"localDependencies": {
|
|
51
55
|
"@taquito/local-forging": "15.0.1",
|
|
52
56
|
"hd-wallet-js": "b216450e56954a6e82ace0aade9474673de5d9d5",
|
|
@@ -91,5 +95,5 @@
|
|
|
91
95
|
"sourceMap": true,
|
|
92
96
|
"instrument": true
|
|
93
97
|
},
|
|
94
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "8e8feb6788204501b7173aa825f5456c2a5f185b"
|
|
95
99
|
}
|
|
@@ -33,6 +33,9 @@ export declare enum SubProtocolSymbols {
|
|
|
33
33
|
CONFLUX_ERC20_USDT = "conflux-erc20-usdt",
|
|
34
34
|
CONFLUX_ERC20_AXCHN = "conflux-erc20-axchn",
|
|
35
35
|
CONFLUX_ERC20 = "conflux-erc20",
|
|
36
|
+
SOLANA_SPL_USDT = "solana-spl-usdt",
|
|
37
|
+
SOLANA_SPL_USDC = "solana-spl-usdc",
|
|
38
|
+
SOLANA_SPL = "solana-spl",
|
|
36
39
|
XTZ_KT = "xtz-kt",
|
|
37
40
|
XTZ_BTC = "xtz-btc",
|
|
38
41
|
XTZ_USD = "xtz-usd",
|
package/utils/ProtocolSymbols.js
CHANGED
|
@@ -38,6 +38,9 @@ var SubProtocolSymbols;
|
|
|
38
38
|
SubProtocolSymbols["CONFLUX_ERC20_USDT"] = "conflux-erc20-usdt";
|
|
39
39
|
SubProtocolSymbols["CONFLUX_ERC20_AXCHN"] = "conflux-erc20-axchn";
|
|
40
40
|
SubProtocolSymbols["CONFLUX_ERC20"] = "conflux-erc20";
|
|
41
|
+
SubProtocolSymbols["SOLANA_SPL_USDT"] = "solana-spl-usdt";
|
|
42
|
+
SubProtocolSymbols["SOLANA_SPL_USDC"] = "solana-spl-usdc";
|
|
43
|
+
SubProtocolSymbols["SOLANA_SPL"] = "solana-spl";
|
|
41
44
|
SubProtocolSymbols["XTZ_KT"] = "xtz-kt";
|
|
42
45
|
SubProtocolSymbols["XTZ_BTC"] = "xtz-btc";
|
|
43
46
|
SubProtocolSymbols["XTZ_USD"] = "xtz-usd";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolSymbols.js","sourceRoot":"","sources":["../../src/utils/ProtocolSymbols.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBA2BX;AA3BD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,gCAAS,CAAA;IACT,kCAAW,CAAA;IACX,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,kCAAW,CAAA;IACX,kCAAW,CAAA;IACX,oDAA6B,CAAA;IAC7B,kCAAW,CAAA;IACX,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,kCAAW,CAAA;IACX,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AACnB,CAAC,EA3BW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA2B9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"ProtocolSymbols.js","sourceRoot":"","sources":["../../src/utils/ProtocolSymbols.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBA2BX;AA3BD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,gCAAS,CAAA;IACT,kCAAW,CAAA;IACX,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,kCAAW,CAAA;IACX,kCAAW,CAAA;IACX,oDAA6B,CAAA;IAC7B,kCAAW,CAAA;IACX,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,kCAAW,CAAA;IACX,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AACnB,CAAC,EA3BW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA2B9B;AAED,IAAY,kBAmC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 -1,12 +0,0 @@
|
|
|
1
|
-
type ChecksumFn = (payload: any) => any
|
|
2
|
-
|
|
3
|
-
export type Bs58CheckBase = {
|
|
4
|
-
encode: (payload: any) => string
|
|
5
|
-
decode: (input: string) => any
|
|
6
|
-
decodeUnsafe: (input: string) => any
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare function bs58checkBase(checksumFn: ChecksumFn): Bs58CheckBase
|
|
10
|
-
export default bs58checkBase
|
|
11
|
-
|
|
12
|
-
|