@wallfree-dev/coinlib-core 0.13.43-beta.4 → 0.13.43-beta.8
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/errors/coinlib-error.d.ts +2 -1
- package/errors/coinlib-error.js +1 -0
- package/errors/coinlib-error.js.map +1 -1
- package/package.json +9 -5
- package/utils/ProtocolSymbols.d.ts +8 -1
- package/utils/ProtocolSymbols.js +7 -0
- package/utils/ProtocolSymbols.js.map +1 -1
- package/LICENSE.md +0 -7
- 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/errors/coinlib-error.js
CHANGED
|
@@ -41,6 +41,7 @@ var Domain;
|
|
|
41
41
|
Domain["MINA"] = "MINA";
|
|
42
42
|
Domain["STELLAR"] = "STELLAR";
|
|
43
43
|
Domain["SOLANA"] = "SOLANA";
|
|
44
|
+
Domain["TRON"] = "TRON";
|
|
44
45
|
})(Domain = exports.Domain || (exports.Domain = {}));
|
|
45
46
|
var CoinlibError = /** @class */ (function (_super) {
|
|
46
47
|
__extends(CoinlibError, _super);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinlib-error.js","sourceRoot":"","sources":["../../src/errors/coinlib-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"coinlib-error.js","sourceRoot":"","sources":["../../src/errors/coinlib-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAY,MAyBX;AAzBD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,6BAAmB,CAAA;IACnB,mCAAyB,CAAA;IACzB,uCAA6B,CAAA;IAC7B,2BAAiB,CAAA;IACjB,6BAAmB,CAAA;IACnB,+BAAqB,CAAA;IACrB,yBAAe,CAAA;IACf,2BAAiB,CAAA;IACjB,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,yBAAe,CAAA;IACf,6BAAmB,CAAA;IACnB,yBAAe,CAAA;IACf,6BAAmB,CAAA;IACnB,qBAAW,CAAA;IACX,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,uBAAa,CAAA;IACb,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,uBAAa,CAAA;AACf,CAAC,EAzBW,MAAM,GAAN,cAAM,KAAN,cAAM,QAyBjB;AAED;IAAkC,gCAAK;IACrC,sBACS,MAAc,EACd,IAAY,EACZ,WAAoB;QAH7B,YAKE,kBAAM,WAAW,CAAC,CAAC,CAAC,UAAG,MAAM,cAAI,IAAI,gBAAM,WAAW,CAAE,CAAC,CAAC,CAAC,UAAG,MAAM,cAAI,IAAI,MAAG,CAAC,SACjF;QALQ,YAAM,GAAN,MAAM,CAAQ;QACd,UAAI,GAAJ,IAAI,CAAQ;QACZ,iBAAW,GAAX,WAAW,CAAS;;IAG7B,CAAC;IACH,mBAAC;AAAD,CAAC,AARD,CAAkC,KAAK,GAQtC;AARY,oCAAY;AAUzB;IAA2C,yCAAK;IAC9C,+BACS,MAAc,EACd,IAAY,EACZ,QAAgB,EAChB,MAAM;QAJf,YAME,kBAAM,UAAG,MAAM,cAAI,IAAI,yBAAe,QAAQ,sBAAY,MAAM,MAAG,CAAC,SACrE;QANQ,YAAM,GAAN,MAAM,CAAQ;QACd,UAAI,GAAJ,IAAI,CAAQ;QACZ,cAAQ,GAAR,QAAQ,CAAQ;QAChB,YAAM,GAAN,MAAM,CAAA;;IAGf,CAAC;IACH,4BAAC;AAAD,CAAC,AATD,CAA2C,KAAK,GAS/C;AATY,sDAAqB"}
|
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.8",
|
|
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
|
}
|
|
@@ -24,7 +24,8 @@ export declare enum MainProtocolSymbols {
|
|
|
24
24
|
OPTIMISM = "optimism",
|
|
25
25
|
MINA = "mina",
|
|
26
26
|
STELLAR = "stellar",
|
|
27
|
-
SOLANA = "solana"
|
|
27
|
+
SOLANA = "solana",
|
|
28
|
+
TRON = "tron"
|
|
28
29
|
}
|
|
29
30
|
export declare enum SubProtocolSymbols {
|
|
30
31
|
BASE_ERC20_USDT = "base-erc20-usdt",
|
|
@@ -33,6 +34,12 @@ export declare enum SubProtocolSymbols {
|
|
|
33
34
|
CONFLUX_ERC20_USDT = "conflux-erc20-usdt",
|
|
34
35
|
CONFLUX_ERC20_AXCHN = "conflux-erc20-axchn",
|
|
35
36
|
CONFLUX_ERC20 = "conflux-erc20",
|
|
37
|
+
SOLANA_SPL_USDT = "solana-spl-usdt",
|
|
38
|
+
SOLANA_SPL_USDC = "solana-spl-usdc",
|
|
39
|
+
SOLANA_SPL = "solana-spl",
|
|
40
|
+
TRON_TRC20_USDT = "tron-trc20-usdt",
|
|
41
|
+
TRON_TRC20_USDC = "tron-trc20-usdc",
|
|
42
|
+
TRON_TRC20 = "tron-trc20",
|
|
36
43
|
XTZ_KT = "xtz-kt",
|
|
37
44
|
XTZ_BTC = "xtz-btc",
|
|
38
45
|
XTZ_USD = "xtz-usd",
|
package/utils/ProtocolSymbols.js
CHANGED
|
@@ -29,6 +29,7 @@ var MainProtocolSymbols;
|
|
|
29
29
|
MainProtocolSymbols["MINA"] = "mina";
|
|
30
30
|
MainProtocolSymbols["STELLAR"] = "stellar";
|
|
31
31
|
MainProtocolSymbols["SOLANA"] = "solana";
|
|
32
|
+
MainProtocolSymbols["TRON"] = "tron";
|
|
32
33
|
})(MainProtocolSymbols = exports.MainProtocolSymbols || (exports.MainProtocolSymbols = {}));
|
|
33
34
|
var SubProtocolSymbols;
|
|
34
35
|
(function (SubProtocolSymbols) {
|
|
@@ -38,6 +39,12 @@ var SubProtocolSymbols;
|
|
|
38
39
|
SubProtocolSymbols["CONFLUX_ERC20_USDT"] = "conflux-erc20-usdt";
|
|
39
40
|
SubProtocolSymbols["CONFLUX_ERC20_AXCHN"] = "conflux-erc20-axchn";
|
|
40
41
|
SubProtocolSymbols["CONFLUX_ERC20"] = "conflux-erc20";
|
|
42
|
+
SubProtocolSymbols["SOLANA_SPL_USDT"] = "solana-spl-usdt";
|
|
43
|
+
SubProtocolSymbols["SOLANA_SPL_USDC"] = "solana-spl-usdc";
|
|
44
|
+
SubProtocolSymbols["SOLANA_SPL"] = "solana-spl";
|
|
45
|
+
SubProtocolSymbols["TRON_TRC20_USDT"] = "tron-trc20-usdt";
|
|
46
|
+
SubProtocolSymbols["TRON_TRC20_USDC"] = "tron-trc20-usdc";
|
|
47
|
+
SubProtocolSymbols["TRON_TRC20"] = "tron-trc20";
|
|
41
48
|
SubProtocolSymbols["XTZ_KT"] = "xtz-kt";
|
|
42
49
|
SubProtocolSymbols["XTZ_BTC"] = "xtz-btc";
|
|
43
50
|
SubProtocolSymbols["XTZ_USD"] = "xtz-usd";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolSymbols.js","sourceRoot":"","sources":["../../src/utils/ProtocolSymbols.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"ProtocolSymbols.js","sourceRoot":"","sources":["../../src/utils/ProtocolSymbols.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBA4BX;AA5BD,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;IACjB,oCAAa,CAAA;AACf,CAAC,EA5BW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA4B9B;AAED,IAAY,kBAsCX;AAtCD,WAAY,kBAAkB;IAC5B,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,+CAAyB,CAAA;IACzB,+DAAyC,CAAA;IACzC,iEAA2C,CAAA;IAC3C,qDAA+B,CAAA;IAC/B,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,+CAAyB,CAAA;IACzB,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,iDAA2B,CAAA;IAC3B,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;IACvB,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,qDAA+B,CAAA;AACjC,CAAC,EAtCW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAsC7B;AAID,SAAgB,oBAAoB,CAAC,UAAkB;IACrD,OAAO,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,UAAiC,CAAC,CAAA;AACvF,CAAC;AAFD,oDAEC;AAED,SAAgB,mBAAmB,CAAC,UAAkB;IACpD,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,UAAgC,CAAC,CAAA;AACrF,CAAC;AAFD,kDAEC;AAED,SAAgB,gBAAgB,CAAC,UAAkB;IACjD,OAAO,oBAAoB,CAAC,UAAU,CAAC,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAA;AAC5E,CAAC;AAFD,4CAEC"}
|
package/LICENSE.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright 2019 Papers AG
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -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
|
-
|