@airgap/coinlib-core 0.13.8-beta.9 → 0.13.9-beta.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.
Files changed (150) hide show
  1. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +230 -0
  2. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +471 -0
  3. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -0
  4. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +76 -0
  5. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +455 -0
  6. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -0
  7. package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.d.ts +27 -0
  8. package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +848 -0
  9. package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -0
  10. package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.d.ts +22 -0
  11. package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +14 -0
  12. package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -0
  13. package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.d.ts +29 -0
  14. package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +63 -0
  15. package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -0
  16. package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.d.ts +36 -0
  17. package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +87 -0
  18. package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -0
  19. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.d.ts +8 -0
  20. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +33 -0
  21. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -0
  22. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.d.ts +11 -0
  23. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js +5 -0
  24. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js.map +1 -0
  25. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.d.ts +8 -0
  26. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +43 -0
  27. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -0
  28. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.d.ts +8 -0
  29. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +37 -0
  30. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -0
  31. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +73 -0
  32. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +552 -0
  33. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -0
  34. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +73 -0
  35. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +552 -0
  36. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -0
  37. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +18 -0
  38. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +29 -0
  39. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -0
  40. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/codec.d.ts +22 -4
  41. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/codec.js +104 -13
  42. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -0
  43. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/constants.d.ts +17 -1
  44. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/constants.js +44 -6
  45. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -0
  46. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/decoder.d.ts +1 -1
  47. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/decoder.js +30 -0
  48. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -0
  49. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/encoder.d.ts +0 -0
  50. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/encoder.js +28 -0
  51. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -0
  52. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.d.ts +89 -0
  53. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +169 -0
  54. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -0
  55. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1/packages/taquito/src/forger → local-forging-15.0.1/packages/taquito-local-forging/src}/interface.d.ts +1 -1
  56. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1/packages/taquito/src/forger → local-forging-15.0.1/packages/taquito-local-forging/src}/interface.js +0 -0
  57. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.js.map +1 -0
  58. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/michelson/codec.d.ts +6 -5
  59. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/michelson/codec.js +62 -19
  60. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -0
  61. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.d.ts +15 -0
  62. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +80 -0
  63. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -0
  64. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.d.ts +12 -0
  65. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +184 -0
  66. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -0
  67. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +5 -0
  68. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +81 -0
  69. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -0
  70. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +4 -0
  71. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +76 -0
  72. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -0
  73. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.d.ts +14 -0
  74. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +150 -0
  75. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -0
  76. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.d.ts +17 -0
  77. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +41 -0
  78. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -0
  79. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +150 -0
  80. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +217 -0
  81. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -0
  82. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.d.ts +26 -0
  83. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +115 -0
  84. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -0
  85. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/uint8array-consumer.d.ts +0 -0
  86. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/uint8array-consumer.js +2 -1
  87. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -0
  88. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/utils.d.ts +0 -0
  89. package/dependencies/src/@taquito/{local-forging-8.0.1-beta.1 → local-forging-15.0.1}/packages/taquito-local-forging/src/utils.js +0 -0
  90. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -0
  91. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.d.ts +13 -0
  92. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +52 -0
  93. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -0
  94. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.d.ts +4 -0
  95. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js +9 -0
  96. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js.map +1 -0
  97. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.d.ts +34 -0
  98. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +39 -0
  99. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -0
  100. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +1590 -0
  101. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +35 -0
  102. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -0
  103. package/dependencies/src/@taquito/{utils-8.0.1-beta.1 → utils-15.0.1}/packages/taquito-utils/src/constants.d.ts +27 -3
  104. package/dependencies/src/@taquito/{utils-8.0.1-beta.1 → utils-15.0.1}/packages/taquito-utils/src/constants.js +40 -1
  105. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -0
  106. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.d.ts +145 -0
  107. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +270 -0
  108. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -0
  109. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +4 -0
  110. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +33 -0
  111. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -0
  112. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.d.ts +163 -0
  113. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +438 -0
  114. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -0
  115. package/dependencies/src/@taquito/{utils-8.0.1-beta.1 → utils-15.0.1}/packages/taquito-utils/src/validators.d.ts +63 -9
  116. package/dependencies/src/@taquito/{utils-8.0.1-beta.1 → utils-15.0.1}/packages/taquito-utils/src/validators.js +85 -8
  117. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -0
  118. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +24 -0
  119. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +126 -0
  120. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -0
  121. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.d.ts +4 -0
  122. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js +9 -0
  123. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js.map +1 -0
  124. package/dependencies/src/typedarray-to-buffer-4.0.0/index.js +17 -0
  125. package/package.json +2 -1
  126. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito/src/forger/interface.js.map +0 -1
  127. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/codec.js.map +0 -1
  128. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/constants.js.map +0 -1
  129. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/decoder.js.map +0 -1
  130. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/encoder.js.map +0 -1
  131. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/michelson/codec.js.map +0 -1
  132. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/schema/operation.d.ts +0 -86
  133. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/schema/operation.js +0 -149
  134. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/schema/operation.js.map +0 -1
  135. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/taquito-local-forging.d.ts +0 -16
  136. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/taquito-local-forging.js +0 -51
  137. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +0 -1
  138. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +0 -1
  139. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/utils.js.map +0 -1
  140. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/opkind.d.ts +0 -13
  141. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/opkind.js +0 -18
  142. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/opkind.js.map +0 -1
  143. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/types.d.ts +0 -598
  144. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/types.js +0 -3
  145. package/dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-rpc/src/types.js.map +0 -1
  146. package/dependencies/src/@taquito/utils-8.0.1-beta.1/packages/taquito-utils/src/constants.js.map +0 -1
  147. package/dependencies/src/@taquito/utils-8.0.1-beta.1/packages/taquito-utils/src/taquito-utils.d.ts +0 -83
  148. package/dependencies/src/@taquito/utils-8.0.1-beta.1/packages/taquito-utils/src/taquito-utils.js +0 -245
  149. package/dependencies/src/@taquito/utils-8.0.1-beta.1/packages/taquito-utils/src/taquito-utils.js.map +0 -1
  150. package/dependencies/src/@taquito/utils-8.0.1-beta.1/packages/taquito-utils/src/validators.js.map +0 -1
@@ -0,0 +1,89 @@
1
+ /**
2
+ * @category Error
3
+ * @description Error that indicates an invalid block hash being passed or used
4
+ */
5
+ export declare class InvalidBlockHashError extends Error {
6
+ message: string;
7
+ name: string;
8
+ constructor(message: string);
9
+ }
10
+ /**
11
+ * @category Error
12
+ * @description Error that indicates an invalid operation schema being passed or used
13
+ */ export declare class InvalidOperationSchemaError extends Error {
14
+ message: string;
15
+ name: string;
16
+ constructor(message: string);
17
+ }
18
+ /**
19
+ * @category Error
20
+ * @description Error that indicates an entrypoint exceeding maximum size
21
+ */
22
+ export declare class OversizedEntryPointError extends Error {
23
+ entrypoint: string;
24
+ name: string;
25
+ constructor(entrypoint: string);
26
+ }
27
+ /**
28
+ * @category Error
29
+ * @description Error that indicates an invalid ballot value
30
+ */
31
+ export declare class InvalidBallotValueError extends Error {
32
+ ballotValue: string;
33
+ name: string;
34
+ constructor(ballotValue: string);
35
+ }
36
+ /**
37
+ * @category Error
38
+ * @description Error that indicates a failure when trying to decode ballot value
39
+ */
40
+ export declare class DecodeBallotValueError extends Error {
41
+ ballotValue: string;
42
+ name: string;
43
+ constructor(ballotValue: string);
44
+ }
45
+ /**
46
+ * @category Error
47
+ * @description Error that indicates an invalid hex string have been passed or used
48
+ */
49
+ export declare class InvalidHexStringError extends Error {
50
+ hexString: string;
51
+ name: string;
52
+ constructor(hexString: string);
53
+ }
54
+ /**
55
+ * @category Error
56
+ * @description Error that indicates unexpected Michelson Value being passed or used
57
+ */
58
+ export declare class UnexpectedMichelsonValueError extends Error {
59
+ value: string;
60
+ name: string;
61
+ constructor(value: string);
62
+ }
63
+ /**
64
+ * @category Error
65
+ * @description Error that indicates a failure when trying to decode an operation
66
+ */
67
+ export declare class OperationDecodingError extends Error {
68
+ message: string;
69
+ name: string;
70
+ constructor(message: string);
71
+ }
72
+ /**
73
+ * @category Error
74
+ * @description Error that indicates a failure when trying to encode an operation
75
+ */
76
+ export declare class OperationEncodingError extends Error {
77
+ message: string;
78
+ name: string;
79
+ constructor(message: string);
80
+ }
81
+ /**
82
+ * @category Error
83
+ * @description Error that indicates an unsupported operation being passed or used
84
+ */
85
+ export declare class UnsupportedOperationError extends Error {
86
+ op: string;
87
+ name: string;
88
+ constructor(op: string);
89
+ }
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.UnsupportedOperationError = exports.OperationEncodingError = exports.OperationDecodingError = exports.UnexpectedMichelsonValueError = exports.InvalidHexStringError = exports.DecodeBallotValueError = exports.InvalidBallotValueError = exports.OversizedEntryPointError = exports.InvalidOperationSchemaError = exports.InvalidBlockHashError = void 0;
19
+ var constants_1 = require("./constants");
20
+ /**
21
+ * @category Error
22
+ * @description Error that indicates an invalid block hash being passed or used
23
+ */
24
+ var InvalidBlockHashError = /** @class */ (function (_super) {
25
+ __extends(InvalidBlockHashError, _super);
26
+ function InvalidBlockHashError(message) {
27
+ var _this = _super.call(this, message) || this;
28
+ _this.message = message;
29
+ _this.name = 'InvalidBlockHashError';
30
+ return _this;
31
+ }
32
+ return InvalidBlockHashError;
33
+ }(Error));
34
+ exports.InvalidBlockHashError = InvalidBlockHashError;
35
+ /**
36
+ * @category Error
37
+ * @description Error that indicates an invalid operation schema being passed or used
38
+ */ var InvalidOperationSchemaError = /** @class */ (function (_super) {
39
+ __extends(InvalidOperationSchemaError, _super);
40
+ function InvalidOperationSchemaError(message) {
41
+ var _this = _super.call(this, message) || this;
42
+ _this.message = message;
43
+ _this.name = 'InvalidOperationSchemaError';
44
+ return _this;
45
+ }
46
+ return InvalidOperationSchemaError;
47
+ }(Error));
48
+ exports.InvalidOperationSchemaError = InvalidOperationSchemaError;
49
+ /**
50
+ * @category Error
51
+ * @description Error that indicates an entrypoint exceeding maximum size
52
+ */
53
+ var OversizedEntryPointError = /** @class */ (function (_super) {
54
+ __extends(OversizedEntryPointError, _super);
55
+ function OversizedEntryPointError(entrypoint) {
56
+ var _this = _super.call(this, "Oversized entrypoint: ".concat(entrypoint, ". The maximum length of entrypoint is ").concat(constants_1.ENTRYPOINT_MAX_LENGTH)) || this;
57
+ _this.entrypoint = entrypoint;
58
+ _this.name = 'OversizedEntryPointError';
59
+ return _this;
60
+ }
61
+ return OversizedEntryPointError;
62
+ }(Error));
63
+ exports.OversizedEntryPointError = OversizedEntryPointError;
64
+ /**
65
+ * @category Error
66
+ * @description Error that indicates an invalid ballot value
67
+ */
68
+ var InvalidBallotValueError = /** @class */ (function (_super) {
69
+ __extends(InvalidBallotValueError, _super);
70
+ function InvalidBallotValueError(ballotValue) {
71
+ var _this = _super.call(this, "The ballot value '".concat(ballotValue, "' is invalid")) || this;
72
+ _this.ballotValue = ballotValue;
73
+ _this.name = 'InvalidBallotValueError';
74
+ return _this;
75
+ }
76
+ return InvalidBallotValueError;
77
+ }(Error));
78
+ exports.InvalidBallotValueError = InvalidBallotValueError;
79
+ /**
80
+ * @category Error
81
+ * @description Error that indicates a failure when trying to decode ballot value
82
+ */
83
+ var DecodeBallotValueError = /** @class */ (function (_super) {
84
+ __extends(DecodeBallotValueError, _super);
85
+ function DecodeBallotValueError(ballotValue) {
86
+ var _this = _super.call(this, "Failed to decode ballot value ".concat(ballotValue)) || this;
87
+ _this.ballotValue = ballotValue;
88
+ _this.name = 'DecodeBallotValueError';
89
+ return _this;
90
+ }
91
+ return DecodeBallotValueError;
92
+ }(Error));
93
+ exports.DecodeBallotValueError = DecodeBallotValueError;
94
+ /**
95
+ * @category Error
96
+ * @description Error that indicates an invalid hex string have been passed or used
97
+ */
98
+ var InvalidHexStringError = /** @class */ (function (_super) {
99
+ __extends(InvalidHexStringError, _super);
100
+ function InvalidHexStringError(hexString) {
101
+ var _this = _super.call(this, "The hex string '".concat(hexString, "' is invalid")) || this;
102
+ _this.hexString = hexString;
103
+ _this.name = 'InvalidHexStringError';
104
+ return _this;
105
+ }
106
+ return InvalidHexStringError;
107
+ }(Error));
108
+ exports.InvalidHexStringError = InvalidHexStringError;
109
+ /**
110
+ * @category Error
111
+ * @description Error that indicates unexpected Michelson Value being passed or used
112
+ */
113
+ var UnexpectedMichelsonValueError = /** @class */ (function (_super) {
114
+ __extends(UnexpectedMichelsonValueError, _super);
115
+ function UnexpectedMichelsonValueError(value) {
116
+ var _this = _super.call(this, "Failed to encode michelson value '".concat(value, "'")) || this;
117
+ _this.value = value;
118
+ _this.name = 'UnexpectedMichelsonValueError';
119
+ return _this;
120
+ }
121
+ return UnexpectedMichelsonValueError;
122
+ }(Error));
123
+ exports.UnexpectedMichelsonValueError = UnexpectedMichelsonValueError;
124
+ /**
125
+ * @category Error
126
+ * @description Error that indicates a failure when trying to decode an operation
127
+ */
128
+ var OperationDecodingError = /** @class */ (function (_super) {
129
+ __extends(OperationDecodingError, _super);
130
+ function OperationDecodingError(message) {
131
+ var _this = _super.call(this, message) || this;
132
+ _this.message = message;
133
+ _this.name = 'OperationDecodingError';
134
+ return _this;
135
+ }
136
+ return OperationDecodingError;
137
+ }(Error));
138
+ exports.OperationDecodingError = OperationDecodingError;
139
+ /**
140
+ * @category Error
141
+ * @description Error that indicates a failure when trying to encode an operation
142
+ */
143
+ var OperationEncodingError = /** @class */ (function (_super) {
144
+ __extends(OperationEncodingError, _super);
145
+ function OperationEncodingError(message) {
146
+ var _this = _super.call(this, message) || this;
147
+ _this.message = message;
148
+ _this.name = 'OperationEncodingError';
149
+ return _this;
150
+ }
151
+ return OperationEncodingError;
152
+ }(Error));
153
+ exports.OperationEncodingError = OperationEncodingError;
154
+ /**
155
+ * @category Error
156
+ * @description Error that indicates an unsupported operation being passed or used
157
+ */
158
+ var UnsupportedOperationError = /** @class */ (function (_super) {
159
+ __extends(UnsupportedOperationError, _super);
160
+ function UnsupportedOperationError(op) {
161
+ var _this = _super.call(this, "The operation '".concat(op, "' is unsupported")) || this;
162
+ _this.op = op;
163
+ _this.name = 'UnsupportedOperationError';
164
+ return _this;
165
+ }
166
+ return UnsupportedOperationError;
167
+ }(Error));
168
+ exports.UnsupportedOperationError = UnsupportedOperationError;
169
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yCAAoD;AAEpD;;;GAGG;AACH;IAA2C,yCAAK;IAE9C,+BAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,uBAAuB,CAAC;;IAGtC,CAAC;IACH,4BAAC;AAAD,CAAC,AALD,CAA2C,KAAK,GAK/C;AALY,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AAC,AALD,CAA2C,KAAK,GAK/C;AALY,sDAAqB;AAOlC;;;GAGG;AACH;IAAmD,iDAAK;IAEtD,uCAAmB,KAAa;QAAhC,YACE,kBAAM,4CAAqC,KAAK,MAAG,CAAC,SACrD;QAFkB,WAAK,GAAL,KAAK,CAAQ;QADzB,UAAI,GAAG,+BAA+B,CAAC;;IAG9C,CAAC;IACH,oCAAC;AAAD,CAAC,AALD,CAAmD,KAAK,GAKvD;AALY,sEAA6B;AAO1C;;;GAGG;AACH;IAA4C,0CAAK;IAE/C,gCAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,wBAAwB,CAAC;;IAGvC,CAAC;IACH,6BAAC;AAAD,CAAC,AALD,CAA4C,KAAK,GAKhD;AALY,wDAAsB;AAOnC;;;GAGG;AACH;IAA4C,0CAAK;IAE/C,gCAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,wBAAwB,CAAC;;IAGvC,CAAC;IACH,6BAAC;AAAD,CAAC,AALD,CAA4C,KAAK,GAKhD;AALY,wDAAsB;AAOnC;;;GAGG;AACH;IAA+C,6CAAK;IAElD,mCAAmB,EAAU;QAA7B,YACE,kBAAM,yBAAkB,EAAE,qBAAkB,CAAC,SAC9C;QAFkB,QAAE,GAAF,EAAE,CAAQ;QADtB,UAAI,GAAG,2BAA2B,CAAC;;IAG1C,CAAC;IACH,gCAAC;AAAD,CAAC,AALD,CAA+C,KAAK,GAKnD;AALY,8DAAyB"}
@@ -1,4 +1,4 @@
1
- import { OperationContents } from '../../../taquito-rpc/src/types';
1
+ import { OperationContents } from '../../taquito-rpc/src/types';
2
2
  export interface ForgeParams {
3
3
  branch: string;
4
4
  contents: OperationContents[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.ts"],"names":[],"mappings":""}
@@ -1,18 +1,18 @@
1
1
  import { Decoder } from '../decoder';
2
2
  import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
3
  import { Encoder } from '../taquito-local-forging';
4
- declare type PrimValue = {
4
+ export declare type PrimValue = {
5
5
  prim: string;
6
6
  args?: MichelsonValue[];
7
7
  annots?: string[];
8
8
  };
9
- declare type BytesValue = {
9
+ export declare type BytesValue = {
10
10
  bytes: string;
11
11
  };
12
- declare type StringValue = {
12
+ export declare type StringValue = {
13
13
  string: string;
14
14
  };
15
- declare type IntValue = {
15
+ export declare type IntValue = {
16
16
  int: string;
17
17
  };
18
18
  export declare type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
@@ -36,6 +36,7 @@ export declare const intEncoder: Encoder<IntValue>;
36
36
  export declare const intDecoder: (value: Uint8ArrayConsumer) => IntValue;
37
37
  export declare const primEncoder: Encoder<PrimValue>;
38
38
  export declare const primDecoder: (value: Uint8ArrayConsumer, preamble: Uint8Array) => Partial<PrimValue>;
39
+ export declare const primViewDecoder: (value: Uint8ArrayConsumer, result: Partial<PrimValue>) => Partial<PrimValue>;
40
+ export declare const decodeCombPair: Decoder;
39
41
  export declare const encodeAnnots: Encoder<string[]>;
40
42
  export declare const decodeAnnots: Decoder;
41
- export {};
@@ -1,26 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeAnnots = exports.encodeAnnots = exports.primDecoder = exports.primEncoder = exports.intDecoder = exports.intEncoder = exports.stringDecoder = exports.stringEncoder = exports.bytesDecoder = exports.bytesEncoder = exports.extractRequiredLen = exports.valueDecoder = exports.valueEncoder = exports.scriptDecoder = exports.scriptEncoder = exports.isInt = exports.isString = exports.isBytes = exports.isPrim = void 0;
3
+ exports.decodeAnnots = exports.encodeAnnots = exports.decodeCombPair = exports.primViewDecoder = exports.primDecoder = exports.primEncoder = exports.intDecoder = exports.intEncoder = exports.stringDecoder = exports.stringEncoder = exports.bytesDecoder = exports.bytesEncoder = exports.extractRequiredLen = exports.valueDecoder = exports.valueEncoder = exports.scriptDecoder = exports.scriptEncoder = exports.isInt = exports.isString = exports.isBytes = exports.isPrim = void 0;
4
4
  var bignumber_1 = require("../../../../../../bignumber.js-9.0.0/bignumber");
5
5
  var uint8array_consumer_1 = require("../uint8array-consumer");
6
6
  var constants_1 = require("../constants");
7
7
  var utils_1 = require("../utils");
8
+ var error_1 = require("../error");
8
9
  var isPrim = function (value) {
9
10
  return 'prim' in value;
10
11
  };
11
12
  exports.isPrim = isPrim;
12
13
  var isBytes = function (value) {
13
- // tslint:disable-next-line: strict-type-predicates
14
14
  return 'bytes' in value && typeof value.bytes === 'string';
15
15
  };
16
16
  exports.isBytes = isBytes;
17
17
  var isString = function (value) {
18
- // tslint:disable-next-line: strict-type-predicates
19
18
  return 'string' in value && typeof value.string === 'string';
20
19
  };
21
20
  exports.isString = isString;
22
21
  var isInt = function (value) {
23
- // tslint:disable-next-line: strict-type-predicates
24
22
  return 'int' in value && typeof value.int === 'string';
25
23
  };
26
24
  exports.isInt = isInt;
@@ -57,7 +55,7 @@ var valueEncoder = function (value) {
57
55
  else if ((0, exports.isInt)(value)) {
58
56
  return (0, exports.intEncoder)(value);
59
57
  }
60
- throw new Error('Unexpected value');
58
+ throw new error_1.UnexpectedMichelsonValueError(JSON.stringify(value));
61
59
  };
62
60
  exports.valueEncoder = valueEncoder;
63
61
  var valueDecoder = function (value) {
@@ -69,13 +67,14 @@ var valueDecoder = function (value) {
69
67
  return (0, exports.stringDecoder)(value);
70
68
  case 0x00:
71
69
  return (0, exports.intDecoder)(value);
72
- case 0x02:
70
+ case 0x02: {
73
71
  var val = new uint8array_consumer_1.Uint8ArrayConsumer((0, exports.extractRequiredLen)(value));
74
72
  var results = [];
75
73
  while (val.length() > 0) {
76
74
  results.push((0, exports.valueDecoder)(val));
77
75
  }
78
76
  return results;
77
+ }
79
78
  default:
80
79
  return (0, exports.primDecoder)(value, preamble);
81
80
  }
@@ -90,7 +89,7 @@ var extractRequiredLen = function (value, bytesLength) {
90
89
  exports.extractRequiredLen = extractRequiredLen;
91
90
  var bytesEncoder = function (value) {
92
91
  if (!/^([A-Fa-f0-9]{2})*$/.test(value.bytes)) {
93
- throw new Error("Invalid hex string: ".concat(value.bytes));
92
+ throw new error_1.InvalidHexStringError(value.bytes);
94
93
  }
95
94
  var len = value.bytes.length / 2;
96
95
  return "0a".concat((0, utils_1.pad)(len)).concat(value.bytes);
@@ -127,6 +126,7 @@ var intEncoder = function (_a) {
127
126
  ? binary.length + 7 - ((binary.length - 6) % 7)
128
127
  : binary.length;
129
128
  var splitted = binary.padStart(pad, '0').match(/\d{6,7}/g);
129
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
130
130
  var reversed = splitted.reverse();
131
131
  reversed[0] = positiveMark + reversed[0];
132
132
  var numHex = reversed.map(function (x, i) {
@@ -174,7 +174,16 @@ var primEncoder = function (value) {
174
174
  var op = constants_1.opMappingReverse[value.prim];
175
175
  var encodedArgs = (value.args || []).map(function (arg) { return (0, exports.valueEncoder)(arg); }).join('');
176
176
  var encodedAnnots = Array.isArray(value.annots) ? (0, exports.encodeAnnots)(value.annots) : '';
177
- if (value.prim === 'LAMBDA' && argsCount) {
177
+ if ((value.prim === 'LAMBDA' || value.prim === 'LAMBDA_REC') && argsCount) {
178
+ encodedArgs = (0, utils_1.pad)(encodedArgs.length / 2) + encodedArgs + (0, utils_1.pad)(0);
179
+ }
180
+ if ((value.prim === 'pair' || value.prim === 'Pair') && argsCount > 2) {
181
+ encodedArgs =
182
+ encodedAnnots === ''
183
+ ? (0, utils_1.pad)(encodedArgs.length / 2) + encodedArgs + (0, utils_1.pad)(0)
184
+ : (0, utils_1.pad)(encodedArgs.length / 2) + encodedArgs;
185
+ }
186
+ if (value.prim === 'view' && value.args) {
178
187
  encodedArgs = (0, utils_1.pad)(encodedArgs.length / 2) + encodedArgs + (0, utils_1.pad)(0);
179
188
  }
180
189
  return "".concat(preamble).concat(op).concat(encodedArgs).concat(encodedAnnots);
@@ -183,29 +192,63 @@ exports.primEncoder = primEncoder;
183
192
  var primDecoder = function (value, preamble) {
184
193
  var hasAnnot = (preamble[0] - 0x03) % 2 === 1;
185
194
  var argsCount = Math.floor((preamble[0] - 0x03) / 2);
186
- var op = value
187
- .consume(1)[0]
188
- .toString(16)
189
- .padStart(2, '0');
190
- if (constants_1.opMapping[op] === 'LAMBDA') {
195
+ var op = value.consume(1)[0].toString(16).padStart(2, '0');
196
+ var result = {
197
+ prim: constants_1.opMapping[op],
198
+ };
199
+ if (constants_1.opMapping[op] === 'LAMBDA' || constants_1.opMapping[op] === 'LAMBDA_REC') {
191
200
  value.consume(4);
192
201
  }
202
+ if (constants_1.opMapping[op] === 'view') {
203
+ if (argsCount != 0) {
204
+ return (0, exports.primViewDecoder)(value, result);
205
+ }
206
+ else {
207
+ return result;
208
+ }
209
+ }
210
+ var combPairArgs;
211
+ var combPairAnnots;
212
+ if ((constants_1.opMapping[op] === 'pair' || constants_1.opMapping[op] === 'Pair') && argsCount > 2) {
213
+ combPairArgs = (0, exports.decodeCombPair)(value);
214
+ argsCount = 0;
215
+ combPairAnnots = (0, exports.decodeAnnots)(value);
216
+ }
193
217
  var args = new Array(argsCount).fill(0).map(function () { return (0, exports.valueDecoder)(value); });
194
- if (constants_1.opMapping[op] === 'LAMBDA') {
218
+ if (constants_1.opMapping[op] === 'LAMBDA' || constants_1.opMapping[op] === 'LAMBDA_REC') {
195
219
  value.consume(4);
196
220
  }
197
- var result = {
198
- prim: constants_1.opMapping[op],
199
- };
200
- if (args.length) {
221
+ if (combPairArgs) {
222
+ result['args'] = combPairArgs;
223
+ }
224
+ else if (args.length) {
201
225
  result['args'] = args;
202
226
  }
203
- if (hasAnnot) {
227
+ if (combPairAnnots && combPairAnnots[0] !== '') {
228
+ result['annots'] = combPairAnnots;
229
+ }
230
+ else if (hasAnnot) {
204
231
  result['annots'] = (0, exports.decodeAnnots)(value);
205
232
  }
206
233
  return result;
207
234
  };
208
235
  exports.primDecoder = primDecoder;
236
+ var primViewDecoder = function (value, result) {
237
+ value.consume(4);
238
+ result['args'] = new Array(4).fill(0).map(function () { return (0, exports.valueDecoder)(value); });
239
+ value.consume(4);
240
+ return result;
241
+ };
242
+ exports.primViewDecoder = primViewDecoder;
243
+ var decodeCombPair = function (val) {
244
+ var array = new uint8array_consumer_1.Uint8ArrayConsumer((0, exports.extractRequiredLen)(val));
245
+ var args = [];
246
+ while (array.length() > 0) {
247
+ args.push((0, exports.valueDecoder)(array));
248
+ }
249
+ return args;
250
+ };
251
+ exports.decodeCombPair = decodeCombPair;
209
252
  var encodeAnnots = function (value) {
210
253
  var mergedAnnot = value
211
254
  .map(function (x) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec.js","sourceRoot":"","sources":["../../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.ts"],"names":[],"mappings":";;;AAAA,4EAA2E;AAE3E,8DAA4D;AAE5D,0CAA2D;AAC3D,kCAA+B;AAC/B,kCAAgF;AAazE,IAAM,MAAM,GAAG,UAAC,KAAqB;IAC1C,OAAO,MAAM,IAAI,KAAK,CAAC;AACzB,CAAC,CAAC;AAFW,QAAA,MAAM,UAEjB;AAEK,IAAM,OAAO,GAAG,UAAC,KAAqB;IAC3C,OAAO,OAAO,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;AAC7D,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEK,IAAM,QAAQ,GAAG,UAAC,KAAqB;IAC5C,OAAO,QAAQ,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB;AAEK,IAAM,KAAK,GAAG,UAAC,KAAqB;IACzC,OAAO,KAA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AC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChE,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAtC,CAAsC,CAAC,CAAC;AACvF,CAAC,CAAC;AAPW,QAAA,YAAY,gBAOvB"}
@@ -0,0 +1,15 @@
1
+ import { MichelsonValue } from '../michelson/codec';
2
+ import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
+ export declare const parametersDecoderProto14: (val: Uint8ArrayConsumer) => {
4
+ entrypoint: string;
5
+ value: string | number | object | undefined;
6
+ } | undefined;
7
+ export declare const entrypointEncoderProto14: (entrypoint: string) => string;
8
+ export declare const entrypointDecoderProto14: (value: Uint8ArrayConsumer) => string;
9
+ export declare const parametersEncoderProto14: (val: {
10
+ entrypoint: string;
11
+ value: MichelsonValue;
12
+ }) => string;
13
+ export declare const valueParameterEncoderProto14: (value: MichelsonValue) => string;
14
+ export declare const valueParameterDecoderProto14: (val: Uint8ArrayConsumer) => string | number | object | undefined;
15
+ export declare const entrypointNameEncoderProto14: (entrypoint: string) => string;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entrypointNameEncoderProto14 = exports.valueParameterDecoderProto14 = exports.valueParameterEncoderProto14 = exports.parametersEncoderProto14 = exports.entrypointDecoderProto14 = exports.entrypointEncoderProto14 = exports.parametersDecoderProto14 = void 0;
4
+ var error_1 = require("../error");
5
+ var constants_1 = require("../constants");
6
+ var codec_proto14_1 = require("./michelson/codec-proto14");
7
+ var codec_1 = require("../michelson/codec");
8
+ var uint8array_consumer_1 = require("../uint8array-consumer");
9
+ var utils_1 = require("../utils");
10
+ var constants_proto14_1 = require("./constants-proto14");
11
+ var parametersDecoderProto14 = function (val) {
12
+ var preamble = val.consume(1);
13
+ if (preamble[0] === 0x00) {
14
+ return;
15
+ }
16
+ else {
17
+ var encodedEntrypoint = (0, exports.entrypointDecoderProto14)(val);
18
+ var params = (0, codec_1.extractRequiredLen)(val);
19
+ var parameters = (0, codec_proto14_1.valueDecoderProto14)(new uint8array_consumer_1.Uint8ArrayConsumer(params));
20
+ return {
21
+ entrypoint: encodedEntrypoint,
22
+ value: parameters,
23
+ };
24
+ }
25
+ };
26
+ exports.parametersDecoderProto14 = parametersDecoderProto14;
27
+ var entrypointEncoderProto14 = function (entrypoint) {
28
+ if (entrypoint in constants_proto14_1.entrypointMappingReverseProto14) {
29
+ return "".concat(constants_proto14_1.entrypointMappingReverseProto14[entrypoint]);
30
+ }
31
+ else {
32
+ if (entrypoint.length > constants_1.ENTRYPOINT_MAX_LENGTH) {
33
+ throw new error_1.OversizedEntryPointError(entrypoint);
34
+ }
35
+ var value = { string: entrypoint };
36
+ return "ff".concat((0, codec_proto14_1.valueEncoderProto14)(value).slice(8));
37
+ }
38
+ };
39
+ exports.entrypointEncoderProto14 = entrypointEncoderProto14;
40
+ var entrypointDecoderProto14 = function (value) {
41
+ var preamble = (0, utils_1.pad)(value.consume(1)[0], 2);
42
+ if (preamble in constants_proto14_1.entrypointMappingProto14) {
43
+ return constants_proto14_1.entrypointMappingProto14[preamble];
44
+ }
45
+ else {
46
+ var entry = (0, codec_1.extractRequiredLen)(value, 1);
47
+ var entrypoint = Buffer.from(entry).toString('utf8');
48
+ if (entrypoint.length > constants_1.ENTRYPOINT_MAX_LENGTH) {
49
+ throw new error_1.OversizedEntryPointError(entrypoint);
50
+ }
51
+ return entrypoint;
52
+ }
53
+ };
54
+ exports.entrypointDecoderProto14 = entrypointDecoderProto14;
55
+ var parametersEncoderProto14 = function (val) {
56
+ if (!val || (val.entrypoint === 'default' && 'prim' in val.value && val.value.prim === 'Unit')) {
57
+ return '00';
58
+ }
59
+ var encodedEntrypoint = (0, exports.entrypointEncoderProto14)(val.entrypoint);
60
+ var parameters = (0, codec_proto14_1.valueEncoderProto14)(val.value);
61
+ var length = (parameters.length / 2).toString(16).padStart(8, '0');
62
+ return "ff".concat(encodedEntrypoint).concat(length).concat(parameters);
63
+ };
64
+ exports.parametersEncoderProto14 = parametersEncoderProto14;
65
+ var valueParameterEncoderProto14 = function (value) {
66
+ var valueEncoded = (0, codec_proto14_1.valueEncoderProto14)(value);
67
+ return "".concat((0, utils_1.pad)(valueEncoded.length / 2)).concat(valueEncoded);
68
+ };
69
+ exports.valueParameterEncoderProto14 = valueParameterEncoderProto14;
70
+ var valueParameterDecoderProto14 = function (val) {
71
+ var value = (0, codec_1.extractRequiredLen)(val);
72
+ return (0, codec_proto14_1.valueDecoderProto14)(new uint8array_consumer_1.Uint8ArrayConsumer(value));
73
+ };
74
+ exports.valueParameterDecoderProto14 = valueParameterDecoderProto14;
75
+ var entrypointNameEncoderProto14 = function (entrypoint) {
76
+ var value = { string: entrypoint };
77
+ return "".concat((0, codec_proto14_1.valueEncoderProto14)(value).slice(2));
78
+ };
79
+ exports.entrypointNameEncoderProto14 = entrypointNameEncoderProto14;
80
+ //# sourceMappingURL=codec-proto14.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-proto14.js","sourceRoot":"","sources":["../../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.ts"],"names":[],"mappings":";;;AAAA,kCAAoD;AACpD,0CAAqD;AACrD,2DAAqF;AACrF,4CAAwE;AACxE,8DAA4D;AAC5D,kCAA+B;AAC/B,yDAAgG;AAEzF,IAAM,wBAAwB,GAAG,UAAC,GAAuB;IAC9D,IAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChC,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;QACxB,OAAO;KACR;SAAM;QACL,IAAM,iBAAiB,GAAG,IAAA,gCAAwB,EAAC,GAAG,CAAC,CAAC;QACxD,IAAM,MAAM,GAAG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AC,UAAkB;IAC7D,IAAM,KAAK,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACrC,OAAO,UAAG,IAAA,mCAAmB,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,4BAA4B,gCAGvC"}
@@ -0,0 +1,12 @@
1
+ export declare const opMappingProto14: {
2
+ [key: string]: string;
3
+ };
4
+ export declare const opMappingReverseProto14: {
5
+ [key: string]: string;
6
+ };
7
+ export declare const entrypointMappingProto14: {
8
+ [key: string]: string;
9
+ };
10
+ export declare const entrypointMappingReverseProto14: {
11
+ [key: string]: string;
12
+ };