@airgap/coinlib-core 0.13.45-beta.2 → 0.13.45-beta.3

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 (218) hide show
  1. package/actions/Action.js +30 -83
  2. package/actions/Action.js.map +1 -1
  3. package/actions/LinkedAction.js +18 -82
  4. package/actions/LinkedAction.js.map +1 -1
  5. package/actions/RepeatableAction.js +20 -83
  6. package/actions/RepeatableAction.js.map +1 -1
  7. package/actions/SimpleAction.js +12 -74
  8. package/actions/SimpleAction.js.map +1 -1
  9. package/actions/StateMachine.js +16 -17
  10. package/actions/StateMachine.js.map +1 -1
  11. package/data/KeyPair.d.ts +0 -1
  12. package/data/Lazy.js +15 -64
  13. package/data/Lazy.js.map +1 -1
  14. package/data/RPCBody.js +3 -6
  15. package/data/RPCBody.js.map +1 -1
  16. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +12 -12
  17. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +88 -130
  18. package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -1
  19. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +3 -3
  20. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +57 -61
  21. package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -1
  22. package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +96 -96
  23. package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -1
  24. package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +1 -2
  25. package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -1
  26. package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +8 -10
  27. package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -1
  28. package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +22 -28
  29. package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -1
  30. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +9 -10
  31. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -1
  32. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +10 -11
  33. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -1
  34. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +7 -8
  35. package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -1
  36. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +3 -3
  37. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +61 -63
  38. package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -1
  39. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +4 -4
  40. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +61 -63
  41. package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -1
  42. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +1 -1
  43. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +2 -3
  44. package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -1
  45. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +111 -111
  46. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -1
  47. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +15 -15
  48. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -1
  49. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +1 -1
  50. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +47 -76
  51. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -1
  52. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +1 -1
  53. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +46 -61
  54. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -1
  55. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +61 -106
  56. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -1
  57. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +1 -1
  58. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +6 -6
  59. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +95 -100
  60. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -1
  61. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +33 -33
  62. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -1
  63. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +9 -9
  64. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -1
  65. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +1 -1
  66. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +46 -75
  67. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -1
  68. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +1 -1
  69. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +45 -70
  70. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -1
  71. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +41 -41
  72. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -1
  73. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +4 -4
  74. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -1
  75. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +2 -2
  76. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +58 -63
  77. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -1
  78. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +30 -33
  79. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -1
  80. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +18 -20
  81. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -1
  82. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +1 -1
  83. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +5 -12
  84. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -1
  85. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +13 -13
  86. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -1
  87. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +1 -1
  88. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -1
  89. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +78 -78
  90. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +2 -2
  91. package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -1
  92. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +45 -45
  93. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +75 -76
  94. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -1
  95. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +115 -178
  96. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -1
  97. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +1 -1
  98. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +6 -9
  99. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -1
  100. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +78 -83
  101. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -1
  102. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +27 -36
  103. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -1
  104. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +1 -1
  105. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +25 -26
  106. package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -1
  107. package/dependencies/src/cosmjs/index.d.ts +14 -230
  108. package/dependencies/src/cosmjs/index.js +373 -480
  109. package/dependencies/src/cosmjs/index.js.map +1 -1
  110. package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +0 -1
  111. package/dependencies/src/eciesjs-0.3.9/src/index.js +15 -19
  112. package/dependencies/src/eciesjs-0.3.9/src/index.js.map +1 -1
  113. package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +0 -1
  114. package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +37 -28
  115. package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +1 -1
  116. package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +0 -1
  117. package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +38 -30
  118. package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +1 -1
  119. package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +0 -1
  120. package/dependencies/src/eciesjs-0.3.9/src/utils.js +33 -24
  121. package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
  122. package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +42 -34
  123. package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +1 -1
  124. package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +6 -10
  125. package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
  126. package/errors/coinlib-error.js +16 -37
  127. package/errors/coinlib-error.js.map +1 -1
  128. package/errors/index.d.ts +2 -2
  129. package/errors/index.js +89 -148
  130. package/errors/index.js.map +1 -1
  131. package/index.js +19 -19
  132. package/index.js.map +1 -1
  133. package/interfaces/IAirGapSignedTransaction.d.ts +1 -1
  134. package/interfaces/IAirGapTransaction.js +3 -3
  135. package/interfaces/IAirGapTransaction.js.map +1 -1
  136. package/networks.js +9 -9
  137. package/networks.js.map +1 -1
  138. package/package.json +1 -1
  139. package/protocols/BlockExplorerProtocol.js +7 -54
  140. package/protocols/BlockExplorerProtocol.js.map +1 -1
  141. package/protocols/CryptoClient.js +19 -78
  142. package/protocols/CryptoClient.js.map +1 -1
  143. package/protocols/Ed25519CryptoClient.js +30 -98
  144. package/protocols/Ed25519CryptoClient.js.map +1 -1
  145. package/protocols/ICoinSubProtocol.js +1 -1
  146. package/protocols/ICoinSubProtocol.js.map +1 -1
  147. package/protocols/NonExtendedProtocol.js +26 -29
  148. package/protocols/NonExtendedProtocol.js.map +1 -1
  149. package/protocols/Secp256k1CryptoClient.js +9 -73
  150. package/protocols/Secp256k1CryptoClient.js.map +1 -1
  151. package/protocols/Sr25519CryptoClient.js +12 -76
  152. package/protocols/Sr25519CryptoClient.js.map +1 -1
  153. package/utils/AES.js +81 -132
  154. package/utils/AES.js.map +1 -1
  155. package/utils/ErrorWithData.js +5 -23
  156. package/utils/ErrorWithData.js.map +1 -1
  157. package/utils/Network.js +1 -1
  158. package/utils/Network.js.map +1 -1
  159. package/utils/ProtocolBlockExplorer.js +3 -4
  160. package/utils/ProtocolBlockExplorer.js.map +1 -1
  161. package/utils/ProtocolNetwork.js +11 -16
  162. package/utils/ProtocolNetwork.js.map +1 -1
  163. package/utils/ProtocolSymbols.d.ts +1 -1
  164. package/utils/ProtocolSymbols.js +6 -6
  165. package/utils/ProtocolSymbols.js.map +1 -1
  166. package/utils/array.js +14 -15
  167. package/utils/array.js.map +1 -1
  168. package/utils/assert.js +8 -12
  169. package/utils/assert.js.map +1 -1
  170. package/utils/base64Check.d.ts +0 -1
  171. package/utils/base64Check.js +15 -15
  172. package/utils/base64Check.js.map +1 -1
  173. package/utils/blake2b.js +11 -14
  174. package/utils/blake2b.js.map +1 -1
  175. package/utils/buffer.d.ts +0 -1
  176. package/utils/buffer.js +1 -1
  177. package/utils/buffer.js.map +1 -1
  178. package/utils/cache.js +38 -87
  179. package/utils/cache.js.map +1 -1
  180. package/utils/error.js +2 -3
  181. package/utils/error.js.map +1 -1
  182. package/utils/hex.d.ts +1 -2
  183. package/utils/hex.js +31 -38
  184. package/utils/hex.js.map +1 -1
  185. package/utils/interfaces.js +3 -4
  186. package/utils/interfaces.js.map +1 -1
  187. package/utils/object.js +5 -7
  188. package/utils/object.js.map +1 -1
  189. package/utils/padStart.js +1 -2
  190. package/utils/padStart.js.map +1 -1
  191. package/utils/remote-data/HttpRemoteData.js +24 -107
  192. package/utils/remote-data/HttpRemoteData.js.map +1 -1
  193. package/utils/remote-data/IpfsRemoteData.js +32 -116
  194. package/utils/remote-data/IpfsRemoteData.js.map +1 -1
  195. package/utils/remote-data/RemoteData.d.ts +0 -1
  196. package/utils/remote-data/RemoteData.js +3 -4
  197. package/utils/remote-data/RemoteData.js.map +1 -1
  198. package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
  199. package/utils/remote-data/RemoteDataFactory.js +13 -20
  200. package/utils/remote-data/RemoteDataFactory.js.map +1 -1
  201. package/utils/remote-data/Sha256RemoteData.d.ts +0 -1
  202. package/utils/remote-data/Sha256RemoteData.js +44 -117
  203. package/utils/remote-data/Sha256RemoteData.js.map +1 -1
  204. package/utils/string.js +8 -9
  205. package/utils/string.js.map +1 -1
  206. package/utils/type.js +3 -4
  207. package/utils/type.js.map +1 -1
  208. package/utils/xxhash.d.ts +0 -1
  209. package/utils/xxhash.js +9 -11
  210. package/utils/xxhash.js.map +1 -1
  211. package/wallet/AirGapCoinWallet.js +64 -183
  212. package/wallet/AirGapCoinWallet.js.map +1 -1
  213. package/wallet/AirGapMarketWallet.js +88 -201
  214. package/wallet/AirGapMarketWallet.js.map +1 -1
  215. package/wallet/AirGapNFTWallet.js +48 -165
  216. package/wallet/AirGapNFTWallet.js.map +1 -1
  217. package/wallet/AirGapWallet.js +58 -145
  218. package/wallet/AirGapWallet.js.map +1 -1
@@ -1,82 +1,53 @@
1
1
  "use strict";
2
- var _a;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.decoders = void 0;
5
- var codec_1 = require("./codec");
6
- var constants_1 = require("./constants");
7
- var codec_2 = require("./michelson/codec");
8
- var operation_1 = require("./schema/operation");
9
- var utils_1 = require("./utils");
10
- exports.decoders = (_a = {},
11
- _a[constants_1.CODEC.SECRET] = function (val) { return (0, utils_1.toHexString)(val.consume(20)); },
12
- _a[constants_1.CODEC.RAW] = function (val) { return (0, utils_1.toHexString)(val.consume(32)); },
13
- _a[constants_1.CODEC.TZ1] = codec_1.tz1Decoder,
14
- _a[constants_1.CODEC.BRANCH] = codec_1.branchDecoder,
15
- _a[constants_1.CODEC.ZARITH] = codec_1.zarithDecoder,
16
- _a[constants_1.CODEC.PUBLIC_KEY] = codec_1.publicKeyDecoder,
17
- _a[constants_1.CODEC.PKH] = codec_1.pkhDecoder,
18
- _a[constants_1.CODEC.DELEGATE] = codec_1.delegateDecoder,
19
- _a[constants_1.CODEC.INT32] = codec_1.int32Decoder,
20
- _a[constants_1.CODEC.SCRIPT] = codec_2.scriptDecoder,
21
- _a[constants_1.CODEC.BALLOT_STATEMENT] = codec_1.ballotDecoder,
22
- _a[constants_1.CODEC.PROPOSAL] = codec_1.proposalDecoder,
23
- _a[constants_1.CODEC.PROPOSAL_ARR] = codec_1.proposalsDecoder,
24
- _a[constants_1.CODEC.PARAMETERS] = codec_1.parametersDecoder,
25
- _a[constants_1.CODEC.ADDRESS] = codec_1.addressDecoder,
26
- _a[constants_1.CODEC.SMART_CONTRACT_ADDRESS] = codec_1.smartContractAddressDecoder,
27
- _a[constants_1.CODEC.VALUE] = codec_1.valueParameterDecoder,
28
- _a[constants_1.CODEC.INT16] = codec_1.int16Decoder,
29
- _a[constants_1.CODEC.BLOCK_PAYLOAD_HASH] = codec_1.blockPayloadHashDecoder,
30
- _a[constants_1.CODEC.ENTRYPOINT] = codec_1.entrypointNameDecoder,
31
- _a[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM] = codec_1.txRollupOriginationParamDecoder,
32
- _a[constants_1.CODEC.TX_ROLLUP_ID] = codec_1.txRollupIdDecoder,
33
- _a[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT] = codec_1.txRollupBatchContentDecoder,
34
- _a[constants_1.CODEC.BURN_LIMIT] = codec_1.burnLimitDecoder,
35
- _a);
36
- exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
37
- exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = function (val) {
38
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
39
- };
40
- exports.decoders[constants_1.CODEC.OP_DELEGATION] = function (val) {
41
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DelegationSchema)(val);
42
- };
43
- exports.decoders[constants_1.CODEC.OP_TRANSACTION] = function (val) {
44
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransactionSchema)(val);
45
- };
46
- exports.decoders[constants_1.CODEC.OP_ORIGINATION] = function (val) {
47
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
48
- };
49
- exports.decoders[constants_1.CODEC.OP_BALLOT] = function (val) { return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val); };
50
- exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = function (val) {
51
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
52
- };
53
- exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = function (val) {
54
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
55
- };
56
- exports.decoders[constants_1.CODEC.OP_PROPOSALS] = function (val) {
57
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
58
- };
59
- exports.decoders[constants_1.CODEC.OP_REVEAL] = function (val) { return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val); };
60
- exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = function (val) {
61
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
62
- };
63
- exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = function (val) {
64
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransferTicketSchema)(val);
65
- };
66
- exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = function (val) {
67
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
68
- };
69
- exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = function (val) {
70
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
71
- };
72
- exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = function (val) {
73
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
74
- };
75
- exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = function (val) {
76
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
77
- };
78
- exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = function (val) {
79
- return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DrainDelegateSchema)(val);
4
+ const codec_1 = require("./codec");
5
+ const constants_1 = require("./constants");
6
+ const codec_2 = require("./michelson/codec");
7
+ const operation_1 = require("./schema/operation");
8
+ const utils_1 = require("./utils");
9
+ exports.decoders = {
10
+ [constants_1.CODEC.SECRET]: (val) => (0, utils_1.toHexString)(val.consume(20)),
11
+ [constants_1.CODEC.RAW]: (val) => (0, utils_1.toHexString)(val.consume(32)),
12
+ [constants_1.CODEC.TZ1]: codec_1.tz1Decoder,
13
+ [constants_1.CODEC.BRANCH]: codec_1.branchDecoder,
14
+ [constants_1.CODEC.ZARITH]: codec_1.zarithDecoder,
15
+ [constants_1.CODEC.PUBLIC_KEY]: codec_1.publicKeyDecoder,
16
+ [constants_1.CODEC.PKH]: codec_1.pkhDecoder,
17
+ [constants_1.CODEC.DELEGATE]: codec_1.delegateDecoder,
18
+ [constants_1.CODEC.INT32]: codec_1.int32Decoder,
19
+ [constants_1.CODEC.SCRIPT]: codec_2.scriptDecoder,
20
+ [constants_1.CODEC.BALLOT_STATEMENT]: codec_1.ballotDecoder,
21
+ [constants_1.CODEC.PROPOSAL]: codec_1.proposalDecoder,
22
+ [constants_1.CODEC.PROPOSAL_ARR]: codec_1.proposalsDecoder,
23
+ [constants_1.CODEC.PARAMETERS]: codec_1.parametersDecoder,
24
+ [constants_1.CODEC.ADDRESS]: codec_1.addressDecoder,
25
+ [constants_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_1.smartContractAddressDecoder,
26
+ [constants_1.CODEC.VALUE]: codec_1.valueParameterDecoder,
27
+ [constants_1.CODEC.INT16]: codec_1.int16Decoder,
28
+ [constants_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_1.blockPayloadHashDecoder,
29
+ [constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameDecoder,
30
+ [constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]: codec_1.txRollupOriginationParamDecoder,
31
+ [constants_1.CODEC.TX_ROLLUP_ID]: codec_1.txRollupIdDecoder,
32
+ [constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]: codec_1.txRollupBatchContentDecoder,
33
+ [constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitDecoder,
80
34
  };
35
+ exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
36
+ exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
37
+ exports.decoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DelegationSchema)(val);
38
+ exports.decoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransactionSchema)(val);
39
+ exports.decoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
40
+ exports.decoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val);
41
+ exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
42
+ exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
43
+ exports.decoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
44
+ exports.decoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val);
45
+ exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
46
+ exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransferTicketSchema)(val);
47
+ exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
48
+ exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
49
+ exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
50
+ exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
51
+ exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DrainDelegateSchema)(val);
81
52
  exports.decoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ManagerOperationSchema);
82
53
  //# sourceMappingURL=decoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.ts"],"names":[],"mappings":";;;;AAAA,iCAsBiB;AACjB,yCAAoC;AACpC,2CAAkD;AAClD,gDAoB4B;AAE5B,iCAAsC;AAIzB,QAAA,QAAQ;IACnB,GAAC,iBAAK,CAAC,MAAM,IAAG,UAAC,GAAG,IAAK,OAAA,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAA5B,CAA4B;IACrD,GAAC,iBAAK,CAAC,GAAG,IAAG,UAAC,GAAG,IAAK,OAAA,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAA5B,CAA4B;IAClD,GAAC,iBAAK,CAAC,GAAG,IAAG,kBAAU;IACvB,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa;IAC7B,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa;IAC7B,GAAC,iBAAK,CAAC,UAAU,IAAG,wBAAgB;IACpC,GAAC,iBAAK,CAAC,GA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AG,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,kCAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.ts"],"names":[],"mappings":";;;AAAA,mCAsBiB;AACjB,2CAAoC;AACpC,6CAAkD;AAClD,kDAoB4B;AAE5B,mCAAsC;AAIzB,QAAA,QAAQ,GAA+B;IAClD,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,UAAU,CAAC,EAAE,wBAAgB;IACpC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK,CAAC,QAAQ,CAAC,EAAE,uBAAe;IACjC,CAAC,iBAAK,CAAC,KAAK,CAAC,EAAE,oBAAY;IAC3B,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,gBAAgB,CAAC,EAAE,qBAAa;IACvC,CAAC,iBAAK,CAAC,QAAQ,CAAC,EAAE,uBAAe;IACjC,CAAC,iBAAK,CAAC,YAAY,CAAC,EAAE,wBAAgB;IACtC,CAAC,iBAAK,CAAC,UAAU,CAAC,EAAE,yBAAiB;IACrC,CAAC,iBAAK,CAAC,OAAO,CAAC,EAAE,sBAAc;I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AAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,yBAAyB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACtE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACrE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACpE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,oCAAwB,CAAC,CAAC,GAAG,CAAC,CAAC;AACzD,gBAAQ,CAAC,iBAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CAC9D,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,+BAAmB,CAAC,CAAC,GAAG,CAAC,CAAC;AACpD,gBAAQ,CAAC,iBAAK,CAAC,OAAO,CAAC,GAAG,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,kCAAsB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare type Encoder<T> = (val: T) => string;
1
+ export type Encoder<T> = (val: T) => string;
2
2
  export declare const encoders: {
3
3
  [key: string]: Encoder<any>;
4
4
  };
@@ -1,67 +1,52 @@
1
1
  "use strict";
2
- var _a;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.encoders = void 0;
5
- var codec_1 = require("./codec");
6
- var constants_1 = require("./constants");
7
- var codec_2 = require("./michelson/codec");
8
- var operation_1 = require("./schema/operation");
9
- exports.encoders = (_a = {},
10
- _a[constants_1.CODEC.SECRET] = function (val) { return val; },
11
- _a[constants_1.CODEC.RAW] = function (val) { return val; },
12
- _a[constants_1.CODEC.TZ1] = codec_1.tz1Encoder,
13
- _a[constants_1.CODEC.BRANCH] = codec_1.branchEncoder,
14
- _a[constants_1.CODEC.ZARITH] = codec_1.zarithEncoder,
15
- _a[constants_1.CODEC.PUBLIC_KEY] = codec_1.publicKeyEncoder,
16
- _a[constants_1.CODEC.PKH] = codec_1.pkhEncoder,
17
- _a[constants_1.CODEC.DELEGATE] = codec_1.delegateEncoder,
18
- _a[constants_1.CODEC.SCRIPT] = codec_2.scriptEncoder,
19
- _a[constants_1.CODEC.BALLOT_STATEMENT] = codec_1.ballotEncoder,
20
- _a[constants_1.CODEC.PROPOSAL] = codec_1.proposalEncoder,
21
- _a[constants_1.CODEC.PROPOSAL_ARR] = codec_1.proposalsEncoder,
22
- _a[constants_1.CODEC.INT32] = codec_1.int32Encoder,
23
- _a[constants_1.CODEC.PARAMETERS] = codec_1.parametersEncoder,
24
- _a[constants_1.CODEC.ADDRESS] = codec_1.addressEncoder,
25
- _a[constants_1.CODEC.SMART_CONTRACT_ADDRESS] = codec_1.smartContractAddressEncoder,
26
- _a[constants_1.CODEC.VALUE] = codec_1.valueParameterEncoder,
27
- _a[constants_1.CODEC.INT16] = codec_1.int16Encoder,
28
- _a[constants_1.CODEC.BLOCK_PAYLOAD_HASH] = codec_1.blockPayloadHashEncoder,
29
- _a[constants_1.CODEC.ENTRYPOINT] = codec_1.entrypointNameEncoder,
30
- _a[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM] = codec_1.txRollupOriginationParamEncoder,
31
- _a[constants_1.CODEC.TX_ROLLUP_ID] = codec_1.txRollupIdEncoder,
32
- _a[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT] = codec_1.txRollupBatchContentEncoder,
33
- _a[constants_1.CODEC.BURN_LIMIT] = codec_1.burnLimitEncoder,
34
- _a);
35
- exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
36
- exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val); };
37
- exports.encoders[constants_1.CODEC.OP_DELEGATION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DelegationSchema)(val); };
38
- exports.encoders[constants_1.CODEC.OP_TRANSACTION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransactionSchema)(val); };
39
- exports.encoders[constants_1.CODEC.OP_ORIGINATION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val); };
40
- exports.encoders[constants_1.CODEC.OP_BALLOT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val); };
41
- exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val); };
42
- exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = function (val) {
43
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
44
- };
45
- exports.encoders[constants_1.CODEC.OP_PROPOSALS] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val); };
46
- exports.encoders[constants_1.CODEC.OP_REVEAL] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val); };
47
- exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = function (val) {
48
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
49
- };
50
- exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = function (val) {
51
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransferTicketSchema)(val);
52
- };
53
- exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = function (val) {
54
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
4
+ const codec_1 = require("./codec");
5
+ const constants_1 = require("./constants");
6
+ const codec_2 = require("./michelson/codec");
7
+ const operation_1 = require("./schema/operation");
8
+ exports.encoders = {
9
+ [constants_1.CODEC.SECRET]: (val) => val,
10
+ [constants_1.CODEC.RAW]: (val) => val,
11
+ [constants_1.CODEC.TZ1]: codec_1.tz1Encoder,
12
+ [constants_1.CODEC.BRANCH]: codec_1.branchEncoder,
13
+ [constants_1.CODEC.ZARITH]: codec_1.zarithEncoder,
14
+ [constants_1.CODEC.PUBLIC_KEY]: codec_1.publicKeyEncoder,
15
+ [constants_1.CODEC.PKH]: codec_1.pkhEncoder,
16
+ [constants_1.CODEC.DELEGATE]: codec_1.delegateEncoder,
17
+ [constants_1.CODEC.SCRIPT]: codec_2.scriptEncoder,
18
+ [constants_1.CODEC.BALLOT_STATEMENT]: codec_1.ballotEncoder,
19
+ [constants_1.CODEC.PROPOSAL]: codec_1.proposalEncoder,
20
+ [constants_1.CODEC.PROPOSAL_ARR]: codec_1.proposalsEncoder,
21
+ [constants_1.CODEC.INT32]: codec_1.int32Encoder,
22
+ [constants_1.CODEC.PARAMETERS]: codec_1.parametersEncoder,
23
+ [constants_1.CODEC.ADDRESS]: codec_1.addressEncoder,
24
+ [constants_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_1.smartContractAddressEncoder,
25
+ [constants_1.CODEC.VALUE]: codec_1.valueParameterEncoder,
26
+ [constants_1.CODEC.INT16]: codec_1.int16Encoder,
27
+ [constants_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_1.blockPayloadHashEncoder,
28
+ [constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameEncoder,
29
+ [constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]: codec_1.txRollupOriginationParamEncoder,
30
+ [constants_1.CODEC.TX_ROLLUP_ID]: codec_1.txRollupIdEncoder,
31
+ [constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]: codec_1.txRollupBatchContentEncoder,
32
+ [constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitEncoder,
55
33
  };
56
- exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = function (val) {
57
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
58
- };
59
- exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = function (val) {
60
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
61
- };
62
- exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = function (val) {
63
- return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
64
- };
65
- exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DrainDelegateSchema)(val); };
34
+ exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
35
+ exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val);
36
+ exports.encoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DelegationSchema)(val);
37
+ exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransactionSchema)(val);
38
+ exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val);
39
+ exports.encoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val);
40
+ exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val);
41
+ exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
42
+ exports.encoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val);
43
+ exports.encoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val);
44
+ exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
45
+ exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransferTicketSchema)(val);
46
+ exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
47
+ exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
48
+ exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
49
+ exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
50
+ exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DrainDelegateSchema)(val);
66
51
  exports.encoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ManagerOperationSchema);
67
52
  //# sourceMappingURL=encoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../../../../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,CAAC,GAAG,UAAC,GAAQ;IAClD,OAAA,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC;AAAvD,CAAuD,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,uBAAuB,CAAC,GAAG,UAAC,GAAQ;IACjD,OAAA,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,oCAAwB,CAAC,CAAC,GAAG,CAAC;AAAtD,CAAsD,CAAC;AACzD,gBAAQ,CAAC,iBAAK,CAAC,iBAAiB,CAAC,GAAG,UAAC,GAAQ,IAAK,OAAA,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,+BAAmB,CAAC,CAAC,GAAG,CAAC,EAAjD,CAAiD,CAAC;AACpG,gBAAQ,CAAC,iBAAK,CAAC,OAAO,CAAC,GAAG,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,kCAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.ts"],"names":[],"mappings":";;;AAAA,mCAsBiB;AACjB,2CAAoC;AACpC,6CAAkD;AAClD,kDAoB4B;AAIf,QAAA,QAAQ,GAAoC;IACvD,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG;IACpC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG;IACjC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,UAAU,CAAC,EAAE,wBAAgB;IACpC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK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AAC"}
@@ -1,169 +1,124 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  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");
4
+ const constants_1 = require("./constants");
20
5
  /**
21
6
  * @category Error
22
7
  * @description Error that indicates an invalid block hash being passed or used
23
8
  */
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;
9
+ class InvalidBlockHashError extends Error {
10
+ constructor(message) {
11
+ super(message);
12
+ this.message = message;
13
+ this.name = 'InvalidBlockHashError';
31
14
  }
32
- return InvalidBlockHashError;
33
- }(Error));
15
+ }
34
16
  exports.InvalidBlockHashError = InvalidBlockHashError;
35
17
  /**
36
18
  * @category Error
37
19
  * @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;
20
+ */ class InvalidOperationSchemaError extends Error {
21
+ constructor(message) {
22
+ super(message);
23
+ this.message = message;
24
+ this.name = 'InvalidOperationSchemaError';
45
25
  }
46
- return InvalidOperationSchemaError;
47
- }(Error));
26
+ }
48
27
  exports.InvalidOperationSchemaError = InvalidOperationSchemaError;
49
28
  /**
50
29
  * @category Error
51
30
  * @description Error that indicates an entrypoint exceeding maximum size
52
31
  */
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;
32
+ class OversizedEntryPointError extends Error {
33
+ constructor(entrypoint) {
34
+ super(`Oversized entrypoint: ${entrypoint}. The maximum length of entrypoint is ${constants_1.ENTRYPOINT_MAX_LENGTH}`);
35
+ this.entrypoint = entrypoint;
36
+ this.name = 'OversizedEntryPointError';
60
37
  }
61
- return OversizedEntryPointError;
62
- }(Error));
38
+ }
63
39
  exports.OversizedEntryPointError = OversizedEntryPointError;
64
40
  /**
65
41
  * @category Error
66
42
  * @description Error that indicates an invalid ballot value
67
43
  */
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;
44
+ class InvalidBallotValueError extends Error {
45
+ constructor(ballotValue) {
46
+ super(`The ballot value '${ballotValue}' is invalid`);
47
+ this.ballotValue = ballotValue;
48
+ this.name = 'InvalidBallotValueError';
75
49
  }
76
- return InvalidBallotValueError;
77
- }(Error));
50
+ }
78
51
  exports.InvalidBallotValueError = InvalidBallotValueError;
79
52
  /**
80
53
  * @category Error
81
54
  * @description Error that indicates a failure when trying to decode ballot value
82
55
  */
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;
56
+ class DecodeBallotValueError extends Error {
57
+ constructor(ballotValue) {
58
+ super(`Failed to decode ballot value ${ballotValue}`);
59
+ this.ballotValue = ballotValue;
60
+ this.name = 'DecodeBallotValueError';
90
61
  }
91
- return DecodeBallotValueError;
92
- }(Error));
62
+ }
93
63
  exports.DecodeBallotValueError = DecodeBallotValueError;
94
64
  /**
95
65
  * @category Error
96
66
  * @description Error that indicates an invalid hex string have been passed or used
97
67
  */
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;
68
+ class InvalidHexStringError extends Error {
69
+ constructor(hexString) {
70
+ super(`The hex string '${hexString}' is invalid`);
71
+ this.hexString = hexString;
72
+ this.name = 'InvalidHexStringError';
105
73
  }
106
- return InvalidHexStringError;
107
- }(Error));
74
+ }
108
75
  exports.InvalidHexStringError = InvalidHexStringError;
109
76
  /**
110
77
  * @category Error
111
78
  * @description Error that indicates unexpected Michelson Value being passed or used
112
79
  */
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;
80
+ class UnexpectedMichelsonValueError extends Error {
81
+ constructor(value) {
82
+ super(`Failed to encode michelson value '${value}'`);
83
+ this.value = value;
84
+ this.name = 'UnexpectedMichelsonValueError';
120
85
  }
121
- return UnexpectedMichelsonValueError;
122
- }(Error));
86
+ }
123
87
  exports.UnexpectedMichelsonValueError = UnexpectedMichelsonValueError;
124
88
  /**
125
89
  * @category Error
126
90
  * @description Error that indicates a failure when trying to decode an operation
127
91
  */
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;
92
+ class OperationDecodingError extends Error {
93
+ constructor(message) {
94
+ super(message);
95
+ this.message = message;
96
+ this.name = 'OperationDecodingError';
135
97
  }
136
- return OperationDecodingError;
137
- }(Error));
98
+ }
138
99
  exports.OperationDecodingError = OperationDecodingError;
139
100
  /**
140
101
  * @category Error
141
102
  * @description Error that indicates a failure when trying to encode an operation
142
103
  */
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;
104
+ class OperationEncodingError extends Error {
105
+ constructor(message) {
106
+ super(message);
107
+ this.message = message;
108
+ this.name = 'OperationEncodingError';
150
109
  }
151
- return OperationEncodingError;
152
- }(Error));
110
+ }
153
111
  exports.OperationEncodingError = OperationEncodingError;
154
112
  /**
155
113
  * @category Error
156
114
  * @description Error that indicates an unsupported operation being passed or used
157
115
  */
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;
116
+ class UnsupportedOperationError extends Error {
117
+ constructor(op) {
118
+ super(`The operation '${op}' is unsupported`);
119
+ this.op = op;
120
+ this.name = 'UnsupportedOperationError';
165
121
  }
166
- return UnsupportedOperationError;
167
- }(Error));
122
+ }
168
123
  exports.UnsupportedOperationError = UnsupportedOperationError;
169
124
  //# sourceMappingURL=error.js.map
@@ -1 +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,sDAAqB;AAOlC;;;GAGG,CAAC;IAAiD,+CAAK;IAExD,qCAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,6BAA6B,CAAC;;IAG5C,CAAC;IACH,kCAAC;AAAD,CAAC,AALG,CAAiD,KAAK,GAKzD;AALgB,kEAA2B;AAO5C;;;GAGG;AACH;IAA8C,4CAAK;IAEjD,kCAAmB,UAAkB;QAArC,YACE,kBACE,gCAAyB,UAAU,mDAAyC,iCAAqB,CAAE,CACpG,SACF;QAJkB,gBAAU,GAAV,UAAU,CAAQ;QAD9B,UAAI,GAAG,0BAA0B,CAAC;;IAKzC,CAAC;IACH,+BAAC;AAAD,CAAC,AAPD,CAA8C,KAAK,GAOlD;AAPY,4DAAwB;AASrC;;;GAGG;AACH;IAA6C,2CAAK;IAEhD,iCAAmB,WAAmB;QAAtC,YACE,kBAAM,4BAAqB,WAAW,iBAAc,CAAC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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
+ {"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,2CAAoD;AAEpD;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,KAAK;IAE9C,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;QAD3B,SAAI,GAAG,uBAAuB,CAAC;IAGtC,CAAC;CACF;AALD,sDAKC;AAED;;;GAGG,CAAC,MAAa,2BAA4B,SAAQ,KAAK;IAExD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;QAD3B,SAAI,GAAG,6BAA6B,CAAC;IAG5C,CAAC;CACF;AALG,kEAKH;AAED;;;GAGG;AACH,MAAa,wBAAyB,SAAQ,KAAK;IAEjD,YAAmB,UAAkB;QACnC,KAAK,CACH,yBAAyB,UAAU,yCAAyC,iCAAqB,EAAE,CACpG,CAAC;QAHe,eAAU,GAAV,UAAU,CAAQ;QAD9B,SAAI,GAAG,0BAA0B,CAAC;IAKzC,CAAC;CACF;AAPD,4DAOC;AAED;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,KAAK;IAEhD,YAAmB,WAAmB;QACpC,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AAU;QAC3B,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QAD7B,OAAE,GAAF,EAAE,CAAQ;QADtB,SAAI,GAAG,2BAA2B,CAAC;IAG1C,CAAC;CACF;AALD,8DAKC"}
@@ -3,7 +3,7 @@ export interface ForgeParams {
3
3
  branch: string;
4
4
  contents: OperationContents[];
5
5
  }
6
- export declare type ForgeResponse = string;
6
+ export type ForgeResponse = string;
7
7
  export interface Forger {
8
8
  forge(params: ForgeParams): Promise<ForgeResponse>;
9
9
  }
@@ -1,21 +1,21 @@
1
1
  import { Decoder } from '../decoder';
2
2
  import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
3
  import { Encoder } from '../taquito-local-forging';
4
- export declare type PrimValue = {
4
+ export type PrimValue = {
5
5
  prim: string;
6
6
  args?: MichelsonValue[];
7
7
  annots?: string[];
8
8
  };
9
- export declare type BytesValue = {
9
+ export type BytesValue = {
10
10
  bytes: string;
11
11
  };
12
- export declare type StringValue = {
12
+ export type StringValue = {
13
13
  string: string;
14
14
  };
15
- export declare type IntValue = {
15
+ export type IntValue = {
16
16
  int: string;
17
17
  };
18
- export declare type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
18
+ export type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
19
19
  export declare const isPrim: (value: MichelsonValue) => value is PrimValue;
20
20
  export declare const isBytes: (value: MichelsonValue) => value is BytesValue;
21
21
  export declare const isString: (value: MichelsonValue) => value is StringValue;
@@ -27,7 +27,7 @@ export declare const scriptEncoder: Encoder<{
27
27
  export declare const scriptDecoder: Decoder;
28
28
  export declare const valueEncoder: Encoder<MichelsonValue>;
29
29
  export declare const valueDecoder: Decoder;
30
- export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array;
30
+ export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array<ArrayBufferLike>;
31
31
  export declare const bytesEncoder: Encoder<BytesValue>;
32
32
  export declare const bytesDecoder: Decoder;
33
33
  export declare const stringEncoder: Encoder<StringValue>;