@taquito/utils 12.0.2 → 12.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.
@@ -1,45 +1,136 @@
1
+ /**
2
+ * @category Error
3
+ * @description Error that indicates an invalid key being passed or used
4
+ */
5
+ export declare class InvalidKeyError extends Error {
6
+ key: string;
7
+ errorDetail?: string | undefined;
8
+ name: string;
9
+ constructor(key: string, errorDetail?: string | undefined);
10
+ }
11
+ /**
12
+ * @category Error
13
+ * @description Error that indicates an Invalid Public Key being passed or used
14
+ */
1
15
  export declare class InvalidPublicKeyError extends Error {
2
- message: string;
16
+ publicKey: string;
3
17
  name: string;
4
- constructor(message: string);
18
+ constructor(publicKey: string, errorDetail?: string);
5
19
  }
20
+ /**
21
+ * @category Error
22
+ * @description Error that indicates an invalid signature being passed or used
23
+ */
6
24
  export declare class InvalidSignatureError extends Error {
7
- message: string;
25
+ signature: string;
8
26
  name: string;
9
- constructor(message: string);
27
+ constructor(signature: string, errorDetail?: string);
10
28
  }
29
+ /**
30
+ * @category Error
31
+ * @description Error that indicates an invalid message being passed or used
32
+ */
11
33
  export declare class InvalidMessageError extends Error {
12
- message: string;
34
+ msg: string;
35
+ errorDetail?: string | undefined;
13
36
  name: string;
14
- constructor(message: string);
37
+ constructor(msg: string, errorDetail?: string | undefined);
15
38
  }
39
+ /**
40
+ * @category Error
41
+ * @description Error that indicates an invalid contract address being passed or used
42
+ */
16
43
  export declare class InvalidContractAddressError extends Error {
17
- message: string;
44
+ contractAddress: string;
18
45
  name: string;
19
- constructor(message: string);
46
+ constructor(contractAddress: string);
20
47
  }
48
+ /**
49
+ * @category Error
50
+ * @description Error that indicates an invalid address being passed or used (both contract and implicit)
51
+ */
21
52
  export declare class InvalidAddressError extends Error {
22
- message: string;
53
+ address: string;
23
54
  name: string;
24
- constructor(message: string);
55
+ constructor(address: string);
56
+ }
57
+ /**
58
+ * @category Error
59
+ * @description Error that indicates an invalid chain id being passed or used
60
+ */
61
+ export declare class InvalidChainIdError extends Error {
62
+ chainId: string;
63
+ name: string;
64
+ constructor(chainId: string);
25
65
  }
66
+ /**
67
+ * @category Error
68
+ * @description Error that indicates an invalid key hash being passed or used
69
+ */
26
70
  export declare class InvalidKeyHashError extends Error {
27
- message: string;
71
+ keyHash: string;
28
72
  name: string;
29
- constructor(message: string);
73
+ constructor(keyHash: string);
30
74
  }
31
- export declare class InvalidBlockHashError extends Error {
32
- message: string;
75
+ /**
76
+ * @category Error
77
+ * @description Error that indicates an invalid block hash being passed or used
78
+ */ export declare class InvalidBlockHashError extends Error {
79
+ blockHash: string;
33
80
  name: string;
34
- constructor(message: string);
81
+ constructor(blockHash: string);
35
82
  }
83
+ /**
84
+ * @category Error
85
+ * @description Error that indicates invalid protocol hash being passed or used
86
+ */
36
87
  export declare class InvalidProtocolHashError extends Error {
88
+ protocolHash: string;
89
+ name: string;
90
+ constructor(protocolHash: string);
91
+ }
92
+ /**
93
+ * @category Error
94
+ * @description Error that indicates an invalid operation hash being passed or used
95
+ */ export declare class InvalidOperationHashError extends Error {
96
+ operationHash: string;
97
+ name: string;
98
+ constructor(operationHash: string);
99
+ }
100
+ /**
101
+ * @category Error
102
+ * @description Error that indicates an invalid operation kind being passed or used
103
+ */
104
+ export declare class InvalidOperationKindError extends Error {
105
+ operationKind: string;
106
+ name: string;
107
+ constructor(operationKind: string);
108
+ }
109
+ /**
110
+ * @category Error
111
+ * @description General error that indicates something is no longer supported and/or deprecated
112
+ */
113
+ export declare class DeprecationError extends Error {
37
114
  message: string;
38
115
  name: string;
39
116
  constructor(message: string);
40
117
  }
41
- export declare class InvalidOperationHashError extends Error {
118
+ /**
119
+ * @category Error
120
+ * @description General error that indicates an action is prohibited or not allowed
121
+ */
122
+ export declare class ProhibitedActionError extends Error {
42
123
  message: string;
43
124
  name: string;
44
125
  constructor(message: string);
45
126
  }
127
+ /**
128
+ * @category Error
129
+ * @description General error that indicates a failure when trying to convert data from one type to another
130
+ */
131
+ export declare class ValueConversionError extends Error {
132
+ value: string;
133
+ desiredType: string;
134
+ name: string;
135
+ constructor(value: string, desiredType: string);
136
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/utils",
3
- "version": "12.0.2",
3
+ "version": "12.1.0",
4
4
  "description": "converts michelson data and types into convenient JS/TS objects",
5
5
  "keywords": [
6
6
  "tezos",
@@ -102,5 +102,5 @@
102
102
  "typedoc": "^0.20.36",
103
103
  "typescript": "~4.1.5"
104
104
  },
105
- "gitHead": "a224127fe138d46674af2f9605e5bb452b2e4d74"
105
+ "gitHead": "8e044472d87e92bfa748e8193ba84a7ee57d659f"
106
106
  }