@inco/js 0.3.1 → 0.3.2-alpha.1

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 (381) hide show
  1. package/dist/cjs/advancedacl/session-key.d.ts +29 -0
  2. package/dist/cjs/advancedacl/session-key.js +167 -27
  3. package/dist/cjs/attestedcompute/attested-compute.d.ts +16 -16
  4. package/dist/cjs/attestedcompute/attested-compute.js +66 -73
  5. package/dist/cjs/attestedcompute/types.d.ts +3 -2
  6. package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +20 -19
  7. package/dist/cjs/attesteddecrypt/attested-decrypt.js +67 -61
  8. package/dist/cjs/attesteddecrypt/index.d.ts +0 -1
  9. package/dist/cjs/attesteddecrypt/index.js +1 -2
  10. package/dist/cjs/attesteddecrypt/types.d.ts +3 -2
  11. package/dist/cjs/attestedreveal/attested-reveal.d.ts +21 -0
  12. package/dist/cjs/attestedreveal/attested-reveal.js +66 -0
  13. package/dist/cjs/attestedreveal/index.d.ts +1 -0
  14. package/dist/cjs/{fhevm → attestedreveal}/index.js +2 -2
  15. package/dist/cjs/attestedreveal/types.d.ts +7 -0
  16. package/dist/cjs/attestedreveal/types.js +16 -0
  17. package/dist/cjs/generated/abis/addTwo.d.ts +18 -0
  18. package/dist/cjs/generated/abis/addTwo.js +9 -1
  19. package/dist/cjs/generated/abis/lightning-preview.d.ts +48 -0
  20. package/dist/cjs/generated/abis/lightning-preview.js +29 -1
  21. package/dist/cjs/generated/abis/lightning.d.ts +34 -0
  22. package/dist/cjs/generated/abis/lightning.js +22 -1
  23. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  24. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +17 -7
  25. package/dist/cjs/generated/lightning.d.ts +31 -10
  26. package/dist/cjs/generated/lightning.js +33 -11
  27. package/dist/cjs/lite/attested-compute.d.ts +5 -4
  28. package/dist/cjs/lite/attested-compute.js +4 -3
  29. package/dist/cjs/lite/attested-decrypt.d.ts +3 -2
  30. package/dist/cjs/lite/attested-decrypt.js +4 -3
  31. package/dist/cjs/lite/index.d.ts +4 -1
  32. package/dist/cjs/lite/index.js +3 -1
  33. package/dist/cjs/lite/lightning.d.ts +73 -2
  34. package/dist/cjs/lite/lightning.js +65 -1
  35. package/dist/cjs/lite/reencrypt.d.ts +0 -1
  36. package/dist/cjs/lite/reencrypt.js +8 -20
  37. package/dist/cjs/local/local-node.js +35 -3
  38. package/dist/cjs/reencryption/types.d.ts +1 -2
  39. package/dist/esm/advancedacl/session-key.d.ts +29 -0
  40. package/dist/esm/advancedacl/session-key.js +160 -22
  41. package/dist/esm/attestedcompute/attested-compute.d.ts +16 -16
  42. package/dist/esm/attestedcompute/attested-compute.js +64 -72
  43. package/dist/esm/attestedcompute/types.d.ts +3 -2
  44. package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +20 -19
  45. package/dist/esm/attesteddecrypt/attested-decrypt.js +65 -60
  46. package/dist/esm/attesteddecrypt/index.d.ts +0 -1
  47. package/dist/esm/attesteddecrypt/index.js +1 -2
  48. package/dist/esm/attesteddecrypt/types.d.ts +3 -2
  49. package/dist/esm/attestedreveal/attested-reveal.d.ts +21 -0
  50. package/dist/esm/attestedreveal/attested-reveal.js +63 -0
  51. package/dist/esm/attestedreveal/index.d.ts +1 -0
  52. package/dist/esm/attestedreveal/index.js +2 -0
  53. package/dist/esm/attestedreveal/types.d.ts +7 -0
  54. package/dist/esm/attestedreveal/types.js +12 -0
  55. package/dist/esm/generated/abis/addTwo.d.ts +18 -0
  56. package/dist/esm/generated/abis/addTwo.js +9 -1
  57. package/dist/esm/generated/abis/lightning-preview.d.ts +48 -0
  58. package/dist/esm/generated/abis/lightning-preview.js +29 -1
  59. package/dist/esm/generated/abis/lightning.d.ts +34 -0
  60. package/dist/esm/generated/abis/lightning.js +22 -1
  61. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  62. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +16 -6
  63. package/dist/esm/generated/lightning.d.ts +31 -10
  64. package/dist/esm/generated/lightning.js +33 -11
  65. package/dist/esm/lite/attested-compute.d.ts +5 -4
  66. package/dist/esm/lite/attested-compute.js +3 -3
  67. package/dist/esm/lite/attested-decrypt.d.ts +3 -2
  68. package/dist/esm/lite/attested-decrypt.js +3 -3
  69. package/dist/esm/lite/index.d.ts +4 -1
  70. package/dist/esm/lite/index.js +3 -1
  71. package/dist/esm/lite/lightning.d.ts +73 -2
  72. package/dist/esm/lite/lightning.js +66 -2
  73. package/dist/esm/lite/reencrypt.d.ts +0 -1
  74. package/dist/esm/lite/reencrypt.js +9 -20
  75. package/dist/esm/local/local-node.js +35 -3
  76. package/dist/esm/reencryption/types.d.ts +1 -2
  77. package/dist/types/advancedacl/session-key.d.ts +29 -0
  78. package/dist/types/attestedcompute/attested-compute.d.ts +16 -16
  79. package/dist/types/attestedcompute/types.d.ts +3 -2
  80. package/dist/types/attesteddecrypt/attested-decrypt.d.ts +20 -19
  81. package/dist/types/attesteddecrypt/index.d.ts +0 -1
  82. package/dist/types/attesteddecrypt/types.d.ts +3 -2
  83. package/dist/types/attestedreveal/attested-reveal.d.ts +21 -0
  84. package/dist/types/attestedreveal/index.d.ts +1 -0
  85. package/dist/types/attestedreveal/types.d.ts +7 -0
  86. package/dist/types/generated/abis/addTwo.d.ts +18 -0
  87. package/dist/types/generated/abis/lightning-preview.d.ts +48 -0
  88. package/dist/types/generated/abis/lightning.d.ts +34 -0
  89. package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  90. package/dist/types/generated/lightning.d.ts +31 -10
  91. package/dist/types/lite/attested-compute.d.ts +5 -4
  92. package/dist/types/lite/attested-decrypt.d.ts +3 -2
  93. package/dist/types/lite/index.d.ts +4 -1
  94. package/dist/types/lite/lightning.d.ts +73 -2
  95. package/dist/types/lite/reencrypt.d.ts +0 -1
  96. package/dist/types/reencryption/types.d.ts +1 -2
  97. package/package.json +28 -17
  98. package/dist/cjs/fhevm/fhe-environment.d.ts +0 -9
  99. package/dist/cjs/fhevm/fhe-environment.js +0 -11
  100. package/dist/cjs/fhevm/fhevm.d.ts +0 -41
  101. package/dist/cjs/fhevm/fhevm.js +0 -145
  102. package/dist/cjs/fhevm/index.d.ts +0 -1
  103. package/dist/cjs/fhevm/reencrypt.d.ts +0 -20
  104. package/dist/cjs/fhevm/reencrypt.js +0 -127
  105. package/dist/cjs/fhevm/tfhe.d.ts +0 -74
  106. package/dist/cjs/fhevm/tfhe.js +0 -336
  107. package/dist/cjs/fhevm/types.d.ts +0 -3
  108. package/dist/cjs/fhevm/types.js +0 -29
  109. package/dist/cjs/generated/abis/inco-fhevm.d.ts +0 -874
  110. package/dist/cjs/generated/abis/inco-fhevm.js +0 -681
  111. package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  112. package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.js +0 -36
  113. package/dist/cjs/generated/es/google/api/annotations_pb.d.ts +0 -13
  114. package/dist/cjs/generated/es/google/api/annotations_pb.js +0 -30
  115. package/dist/cjs/generated/es/google/api/http_pb.d.ts +0 -440
  116. package/dist/cjs/generated/es/google/api/http_pb.js +0 -37
  117. package/dist/cjs/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  118. package/dist/cjs/generated/es/inco/fhe/v1/events_pb.js +0 -24
  119. package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  120. package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.js +0 -49
  121. package/dist/cjs/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  122. package/dist/cjs/generated/es/inco/fhe/v1/query_pb.js +0 -111
  123. package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  124. package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.js +0 -111
  125. package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  126. package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.js +0 -23
  127. package/dist/cjs/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  128. package/dist/cjs/generated/es/inco/preflight/v1/query_pb.js +0 -41
  129. package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  130. package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.js +0 -51
  131. package/dist/cjs/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  132. package/dist/cjs/generated/es/inco/preflight/v1/types_pb.js +0 -37
  133. package/dist/cjs/generated/fhe-environments.d.ts +0 -14
  134. package/dist/cjs/generated/fhe-environments.js +0 -18
  135. package/dist/cjs/generated/ts/amino/amino.d.ts +0 -1
  136. package/dist/cjs/generated/ts/amino/amino.js +0 -11
  137. package/dist/cjs/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  138. package/dist/cjs/generated/ts/cometbft/abci/v1/types.js +0 -5079
  139. package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  140. package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.js +0 -108
  141. package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  142. package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.js +0 -433
  143. package/dist/cjs/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  144. package/dist/cjs/generated/ts/cometbft/types/v1/params.js +0 -716
  145. package/dist/cjs/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  146. package/dist/cjs/generated/ts/cometbft/types/v1/validator.js +0 -358
  147. package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  148. package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.js +0 -221
  149. package/dist/cjs/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  150. package/dist/cjs/generated/ts/cosmos/msg/v1/msg.js +0 -11
  151. package/dist/cjs/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  152. package/dist/cjs/generated/ts/cosmos_proto/cosmos.js +0 -216
  153. package/dist/cjs/generated/ts/gogoproto/gogo.d.ts +0 -1
  154. package/dist/cjs/generated/ts/gogoproto/gogo.js +0 -11
  155. package/dist/cjs/generated/ts/google/api/annotations.d.ts +0 -1
  156. package/dist/cjs/generated/ts/google/api/annotations.js +0 -11
  157. package/dist/cjs/generated/ts/google/api/http.d.ts +0 -371
  158. package/dist/cjs/generated/ts/google/api/http.js +0 -356
  159. package/dist/cjs/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  160. package/dist/cjs/generated/ts/google/protobuf/descriptor.js +0 -5108
  161. package/dist/cjs/generated/ts/google/protobuf/duration.d.ts +0 -99
  162. package/dist/cjs/generated/ts/google/protobuf/duration.js +0 -93
  163. package/dist/cjs/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  164. package/dist/cjs/generated/ts/google/protobuf/timestamp.js +0 -93
  165. package/dist/cjs/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  166. package/dist/cjs/generated/ts/google/protobuf/wrappers.js +0 -509
  167. package/dist/cjs/generated/ts/inco/abci/v1/types.d.ts +0 -35
  168. package/dist/cjs/generated/ts/inco/abci/v1/types.js +0 -73
  169. package/dist/cjs/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  170. package/dist/cjs/generated/ts/inco/fhe/module/v1/module.js +0 -66
  171. package/dist/cjs/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  172. package/dist/cjs/generated/ts/inco/fhe/v1/events.js +0 -190
  173. package/dist/cjs/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  174. package/dist/cjs/generated/ts/inco/fhe/v1/genesis.js +0 -714
  175. package/dist/cjs/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  176. package/dist/cjs/generated/ts/inco/fhe/v1/query.js +0 -1394
  177. package/dist/cjs/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  178. package/dist/cjs/generated/ts/inco/fhe/v1/tx.js +0 -1236
  179. package/dist/cjs/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  180. package/dist/cjs/generated/ts/inco/fhe/v1/types.js +0 -990
  181. package/dist/cjs/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  182. package/dist/cjs/generated/ts/inco/originchain/module/v1/module.js +0 -66
  183. package/dist/cjs/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  184. package/dist/cjs/generated/ts/inco/originchain/v1/abci.js +0 -331
  185. package/dist/cjs/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  186. package/dist/cjs/generated/ts/inco/originchain/v1/events.js +0 -216
  187. package/dist/cjs/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  188. package/dist/cjs/generated/ts/inco/originchain/v1/genesis.js +0 -69
  189. package/dist/cjs/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  190. package/dist/cjs/generated/ts/inco/originchain/v1/query.js +0 -280
  191. package/dist/cjs/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  192. package/dist/cjs/generated/ts/inco/originchain/v1/tx.js +0 -140
  193. package/dist/cjs/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  194. package/dist/cjs/generated/ts/inco/originchain/v1/types.js +0 -203
  195. package/dist/cjs/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  196. package/dist/cjs/generated/ts/inco/preflight/module/v1/module.js +0 -66
  197. package/dist/cjs/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  198. package/dist/cjs/generated/ts/inco/preflight/v1/genesis.js +0 -185
  199. package/dist/cjs/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  200. package/dist/cjs/generated/ts/inco/preflight/v1/query.js +0 -259
  201. package/dist/cjs/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  202. package/dist/cjs/generated/ts/inco/preflight/v1/tx.js +0 -448
  203. package/dist/cjs/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  204. package/dist/cjs/generated/ts/inco/preflight/v1/types.js +0 -398
  205. package/dist/cjs/l1/client.d.ts +0 -35
  206. package/dist/cjs/l1/client.js +0 -97
  207. package/dist/cjs/l1/index.d.ts +0 -2
  208. package/dist/cjs/l1/index.js +0 -19
  209. package/dist/cjs/l1/preflight.d.ts +0 -20
  210. package/dist/cjs/l1/preflight.js +0 -42
  211. package/dist/esm/fhevm/fhe-environment.d.ts +0 -9
  212. package/dist/esm/fhevm/fhe-environment.js +0 -8
  213. package/dist/esm/fhevm/fhevm.d.ts +0 -41
  214. package/dist/esm/fhevm/fhevm.js +0 -139
  215. package/dist/esm/fhevm/index.d.ts +0 -1
  216. package/dist/esm/fhevm/index.js +0 -2
  217. package/dist/esm/fhevm/reencrypt.d.ts +0 -20
  218. package/dist/esm/fhevm/reencrypt.js +0 -123
  219. package/dist/esm/fhevm/tfhe.d.ts +0 -74
  220. package/dist/esm/fhevm/tfhe.js +0 -328
  221. package/dist/esm/fhevm/types.d.ts +0 -3
  222. package/dist/esm/fhevm/types.js +0 -26
  223. package/dist/esm/generated/abis/inco-fhevm.d.ts +0 -874
  224. package/dist/esm/generated/abis/inco-fhevm.js +0 -678
  225. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  226. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.js +0 -33
  227. package/dist/esm/generated/es/google/api/annotations_pb.d.ts +0 -13
  228. package/dist/esm/generated/es/google/api/annotations_pb.js +0 -27
  229. package/dist/esm/generated/es/google/api/http_pb.d.ts +0 -440
  230. package/dist/esm/generated/es/google/api/http_pb.js +0 -34
  231. package/dist/esm/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  232. package/dist/esm/generated/es/inco/fhe/v1/events_pb.js +0 -21
  233. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  234. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.js +0 -46
  235. package/dist/esm/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  236. package/dist/esm/generated/es/inco/fhe/v1/query_pb.js +0 -108
  237. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  238. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.js +0 -108
  239. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  240. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.js +0 -20
  241. package/dist/esm/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  242. package/dist/esm/generated/es/inco/preflight/v1/query_pb.js +0 -38
  243. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  244. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.js +0 -48
  245. package/dist/esm/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  246. package/dist/esm/generated/es/inco/preflight/v1/types_pb.js +0 -34
  247. package/dist/esm/generated/fhe-environments.d.ts +0 -14
  248. package/dist/esm/generated/fhe-environments.js +0 -15
  249. package/dist/esm/generated/ts/amino/amino.d.ts +0 -1
  250. package/dist/esm/generated/ts/amino/amino.js +0 -8
  251. package/dist/esm/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  252. package/dist/esm/generated/ts/cometbft/abci/v1/types.js +0 -5063
  253. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  254. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.js +0 -105
  255. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  256. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.js +0 -430
  257. package/dist/esm/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  258. package/dist/esm/generated/ts/cometbft/types/v1/params.js +0 -713
  259. package/dist/esm/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  260. package/dist/esm/generated/ts/cometbft/types/v1/validator.js +0 -353
  261. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  262. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.js +0 -218
  263. package/dist/esm/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  264. package/dist/esm/generated/ts/cosmos/msg/v1/msg.js +0 -8
  265. package/dist/esm/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  266. package/dist/esm/generated/ts/cosmos_proto/cosmos.js +0 -211
  267. package/dist/esm/generated/ts/gogoproto/gogo.d.ts +0 -1
  268. package/dist/esm/generated/ts/gogoproto/gogo.js +0 -8
  269. package/dist/esm/generated/ts/google/api/annotations.d.ts +0 -1
  270. package/dist/esm/generated/ts/google/api/annotations.js +0 -8
  271. package/dist/esm/generated/ts/google/api/http.d.ts +0 -371
  272. package/dist/esm/generated/ts/google/api/http.js +0 -353
  273. package/dist/esm/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  274. package/dist/esm/generated/ts/google/protobuf/descriptor.js +0 -5070
  275. package/dist/esm/generated/ts/google/protobuf/duration.d.ts +0 -99
  276. package/dist/esm/generated/ts/google/protobuf/duration.js +0 -90
  277. package/dist/esm/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  278. package/dist/esm/generated/ts/google/protobuf/timestamp.js +0 -90
  279. package/dist/esm/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  280. package/dist/esm/generated/ts/google/protobuf/wrappers.js +0 -506
  281. package/dist/esm/generated/ts/inco/abci/v1/types.d.ts +0 -35
  282. package/dist/esm/generated/ts/inco/abci/v1/types.js +0 -70
  283. package/dist/esm/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  284. package/dist/esm/generated/ts/inco/fhe/module/v1/module.js +0 -63
  285. package/dist/esm/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  286. package/dist/esm/generated/ts/inco/fhe/v1/events.js +0 -187
  287. package/dist/esm/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  288. package/dist/esm/generated/ts/inco/fhe/v1/genesis.js +0 -711
  289. package/dist/esm/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  290. package/dist/esm/generated/ts/inco/fhe/v1/query.js +0 -1391
  291. package/dist/esm/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  292. package/dist/esm/generated/ts/inco/fhe/v1/tx.js +0 -1233
  293. package/dist/esm/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  294. package/dist/esm/generated/ts/inco/fhe/v1/types.js +0 -985
  295. package/dist/esm/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  296. package/dist/esm/generated/ts/inco/originchain/module/v1/module.js +0 -63
  297. package/dist/esm/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  298. package/dist/esm/generated/ts/inco/originchain/v1/abci.js +0 -328
  299. package/dist/esm/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  300. package/dist/esm/generated/ts/inco/originchain/v1/events.js +0 -213
  301. package/dist/esm/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  302. package/dist/esm/generated/ts/inco/originchain/v1/genesis.js +0 -66
  303. package/dist/esm/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  304. package/dist/esm/generated/ts/inco/originchain/v1/query.js +0 -277
  305. package/dist/esm/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  306. package/dist/esm/generated/ts/inco/originchain/v1/tx.js +0 -137
  307. package/dist/esm/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  308. package/dist/esm/generated/ts/inco/originchain/v1/types.js +0 -200
  309. package/dist/esm/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  310. package/dist/esm/generated/ts/inco/preflight/module/v1/module.js +0 -63
  311. package/dist/esm/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  312. package/dist/esm/generated/ts/inco/preflight/v1/genesis.js +0 -182
  313. package/dist/esm/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  314. package/dist/esm/generated/ts/inco/preflight/v1/query.js +0 -256
  315. package/dist/esm/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  316. package/dist/esm/generated/ts/inco/preflight/v1/tx.js +0 -445
  317. package/dist/esm/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  318. package/dist/esm/generated/ts/inco/preflight/v1/types.js +0 -395
  319. package/dist/esm/l1/client.d.ts +0 -35
  320. package/dist/esm/l1/client.js +0 -93
  321. package/dist/esm/l1/index.d.ts +0 -2
  322. package/dist/esm/l1/index.js +0 -3
  323. package/dist/esm/l1/preflight.d.ts +0 -20
  324. package/dist/esm/l1/preflight.js +0 -39
  325. package/dist/types/fhevm/fhe-environment.d.ts +0 -9
  326. package/dist/types/fhevm/fhevm.d.ts +0 -41
  327. package/dist/types/fhevm/index.d.ts +0 -1
  328. package/dist/types/fhevm/reencrypt.d.ts +0 -20
  329. package/dist/types/fhevm/tfhe.d.ts +0 -74
  330. package/dist/types/fhevm/types.d.ts +0 -3
  331. package/dist/types/generated/abis/inco-fhevm.d.ts +0 -874
  332. package/dist/types/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  333. package/dist/types/generated/es/google/api/annotations_pb.d.ts +0 -13
  334. package/dist/types/generated/es/google/api/http_pb.d.ts +0 -440
  335. package/dist/types/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  336. package/dist/types/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  337. package/dist/types/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  338. package/dist/types/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  339. package/dist/types/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  340. package/dist/types/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  341. package/dist/types/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  342. package/dist/types/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  343. package/dist/types/generated/fhe-environments.d.ts +0 -14
  344. package/dist/types/generated/ts/amino/amino.d.ts +0 -1
  345. package/dist/types/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  346. package/dist/types/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  347. package/dist/types/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  348. package/dist/types/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  349. package/dist/types/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  350. package/dist/types/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  351. package/dist/types/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  352. package/dist/types/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  353. package/dist/types/generated/ts/gogoproto/gogo.d.ts +0 -1
  354. package/dist/types/generated/ts/google/api/annotations.d.ts +0 -1
  355. package/dist/types/generated/ts/google/api/http.d.ts +0 -371
  356. package/dist/types/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  357. package/dist/types/generated/ts/google/protobuf/duration.d.ts +0 -99
  358. package/dist/types/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  359. package/dist/types/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  360. package/dist/types/generated/ts/inco/abci/v1/types.d.ts +0 -35
  361. package/dist/types/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  362. package/dist/types/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  363. package/dist/types/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  364. package/dist/types/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  365. package/dist/types/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  366. package/dist/types/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  367. package/dist/types/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  368. package/dist/types/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  369. package/dist/types/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  370. package/dist/types/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  371. package/dist/types/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  372. package/dist/types/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  373. package/dist/types/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  374. package/dist/types/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  375. package/dist/types/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  376. package/dist/types/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  377. package/dist/types/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  378. package/dist/types/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  379. package/dist/types/l1/client.d.ts +0 -35
  380. package/dist/types/l1/index.d.ts +0 -2
  381. package/dist/types/l1/preflight.d.ts +0 -20
@@ -1,597 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { PublicKey } from "../../crypto/v1/keys";
3
- import { ProofOps } from "../../crypto/v1/proof";
4
- import { ConsensusParams } from "../../types/v1/params";
5
- import { BlockIDFlag } from "../../types/v1/validator";
6
- export declare const protobufPackage = "cometbft.abci.v1";
7
- /**
8
- * Type of the transaction check request.
9
- *
10
- * This enumeration is incompatible with the CheckTxType definition in
11
- * cometbft.abci.v1beta1 and therefore shall not be used in encoding with the same
12
- * field number.
13
- */
14
- export declare enum CheckTxType {
15
- /** CHECK_TX_TYPE_UNKNOWN - Unknown */
16
- CHECK_TX_TYPE_UNKNOWN = 0,
17
- /** CHECK_TX_TYPE_RECHECK - Recheck (2nd, 3rd, etc.) */
18
- CHECK_TX_TYPE_RECHECK = 1,
19
- /** CHECK_TX_TYPE_CHECK - Check (1st time) */
20
- CHECK_TX_TYPE_CHECK = 2,
21
- UNRECOGNIZED = -1
22
- }
23
- export declare function checkTxTypeFromJSON(object: any): CheckTxType;
24
- export declare function checkTxTypeToJSON(object: CheckTxType): string;
25
- /** The result of offering a snapshot. */
26
- export declare enum OfferSnapshotResult {
27
- /** OFFER_SNAPSHOT_RESULT_UNKNOWN - Unknown result, abort all snapshot restoration */
28
- OFFER_SNAPSHOT_RESULT_UNKNOWN = 0,
29
- /** OFFER_SNAPSHOT_RESULT_ACCEPT - Snapshot accepted, apply chunks */
30
- OFFER_SNAPSHOT_RESULT_ACCEPT = 1,
31
- /** OFFER_SNAPSHOT_RESULT_ABORT - Abort all snapshot restoration */
32
- OFFER_SNAPSHOT_RESULT_ABORT = 2,
33
- /** OFFER_SNAPSHOT_RESULT_REJECT - Reject this specific snapshot, try others */
34
- OFFER_SNAPSHOT_RESULT_REJECT = 3,
35
- /** OFFER_SNAPSHOT_RESULT_REJECT_FORMAT - Reject all snapshots of this format, try others */
36
- OFFER_SNAPSHOT_RESULT_REJECT_FORMAT = 4,
37
- /** OFFER_SNAPSHOT_RESULT_REJECT_SENDER - Reject all snapshots from the sender(s), try others */
38
- OFFER_SNAPSHOT_RESULT_REJECT_SENDER = 5,
39
- UNRECOGNIZED = -1
40
- }
41
- export declare function offerSnapshotResultFromJSON(object: any): OfferSnapshotResult;
42
- export declare function offerSnapshotResultToJSON(object: OfferSnapshotResult): string;
43
- /** The result of applying a snapshot chunk. */
44
- export declare enum ApplySnapshotChunkResult {
45
- /** APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN - Unknown result, abort all snapshot restoration */
46
- APPLY_SNAPSHOT_CHUNK_RESULT_UNKNOWN = 0,
47
- /** APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT - Chunk successfully accepted */
48
- APPLY_SNAPSHOT_CHUNK_RESULT_ACCEPT = 1,
49
- /** APPLY_SNAPSHOT_CHUNK_RESULT_ABORT - Abort all snapshot restoration */
50
- APPLY_SNAPSHOT_CHUNK_RESULT_ABORT = 2,
51
- /** APPLY_SNAPSHOT_CHUNK_RESULT_RETRY - Retry chunk (combine with refetch and reject) */
52
- APPLY_SNAPSHOT_CHUNK_RESULT_RETRY = 3,
53
- /** APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */
54
- APPLY_SNAPSHOT_CHUNK_RESULT_RETRY_SNAPSHOT = 4,
55
- /** APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT - Reject this snapshot, try others */
56
- APPLY_SNAPSHOT_CHUNK_RESULT_REJECT_SNAPSHOT = 5,
57
- UNRECOGNIZED = -1
58
- }
59
- export declare function applySnapshotChunkResultFromJSON(object: any): ApplySnapshotChunkResult;
60
- export declare function applySnapshotChunkResultToJSON(object: ApplySnapshotChunkResult): string;
61
- /** ProcessProposalStatus is the status of the proposal processing. */
62
- export declare enum ProcessProposalStatus {
63
- /** PROCESS_PROPOSAL_STATUS_UNKNOWN - Unknown */
64
- PROCESS_PROPOSAL_STATUS_UNKNOWN = 0,
65
- /** PROCESS_PROPOSAL_STATUS_ACCEPT - Accepted */
66
- PROCESS_PROPOSAL_STATUS_ACCEPT = 1,
67
- /** PROCESS_PROPOSAL_STATUS_REJECT - Rejected */
68
- PROCESS_PROPOSAL_STATUS_REJECT = 2,
69
- UNRECOGNIZED = -1
70
- }
71
- export declare function processProposalStatusFromJSON(object: any): ProcessProposalStatus;
72
- export declare function processProposalStatusToJSON(object: ProcessProposalStatus): string;
73
- /** VerifyVoteExtensionStatus is the status of the vote extension verification. */
74
- export declare enum VerifyVoteExtensionStatus {
75
- /** VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN - Unknown */
76
- VERIFY_VOTE_EXTENSION_STATUS_UNKNOWN = 0,
77
- /** VERIFY_VOTE_EXTENSION_STATUS_ACCEPT - Accepted */
78
- VERIFY_VOTE_EXTENSION_STATUS_ACCEPT = 1,
79
- /**
80
- * VERIFY_VOTE_EXTENSION_STATUS_REJECT - Rejecting the vote extension will reject the entire precommit by the sender.
81
- * Incorrectly implementing this thus has liveness implications as it may affect
82
- * CometBFT's ability to receive 2/3+ valid votes to finalize the block.
83
- * Honest nodes should never be rejected.
84
- */
85
- VERIFY_VOTE_EXTENSION_STATUS_REJECT = 2,
86
- UNRECOGNIZED = -1
87
- }
88
- export declare function verifyVoteExtensionStatusFromJSON(object: any): VerifyVoteExtensionStatus;
89
- export declare function verifyVoteExtensionStatusToJSON(object: VerifyVoteExtensionStatus): string;
90
- /** The type of misbehavior committed by a validator. */
91
- export declare enum MisbehaviorType {
92
- /** MISBEHAVIOR_TYPE_UNKNOWN - Unknown */
93
- MISBEHAVIOR_TYPE_UNKNOWN = 0,
94
- /** MISBEHAVIOR_TYPE_DUPLICATE_VOTE - Duplicate vote */
95
- MISBEHAVIOR_TYPE_DUPLICATE_VOTE = 1,
96
- /** MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK - Light client attack */
97
- MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK = 2,
98
- UNRECOGNIZED = -1
99
- }
100
- export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType;
101
- export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string;
102
- /** Request represents a request to the ABCI application. */
103
- export interface Request {
104
- echo?: EchoRequest | undefined;
105
- flush?: FlushRequest | undefined;
106
- info?: InfoRequest | undefined;
107
- initChain?: InitChainRequest | undefined;
108
- query?: QueryRequest | undefined;
109
- checkTx?: CheckTxRequest | undefined;
110
- commit?: CommitRequest | undefined;
111
- listSnapshots?: ListSnapshotsRequest | undefined;
112
- offerSnapshot?: OfferSnapshotRequest | undefined;
113
- loadSnapshotChunk?: LoadSnapshotChunkRequest | undefined;
114
- applySnapshotChunk?: ApplySnapshotChunkRequest | undefined;
115
- prepareProposal?: PrepareProposalRequest | undefined;
116
- processProposal?: ProcessProposalRequest | undefined;
117
- extendVote?: ExtendVoteRequest | undefined;
118
- verifyVoteExtension?: VerifyVoteExtensionRequest | undefined;
119
- finalizeBlock?: FinalizeBlockRequest | undefined;
120
- }
121
- /** EchoRequest is a request to "echo" the given string. */
122
- export interface EchoRequest {
123
- message: string;
124
- }
125
- /** FlushRequest is a request to flush the write buffer. */
126
- export interface FlushRequest {
127
- }
128
- /** InfoRequest is a request for the ABCI application version. */
129
- export interface InfoRequest {
130
- version: string;
131
- blockVersion: number;
132
- p2pVersion: number;
133
- abciVersion: string;
134
- }
135
- /** InitChainRequest is a request to initialize the blockchain. */
136
- export interface InitChainRequest {
137
- time: Date | undefined;
138
- chainId: string;
139
- consensusParams: ConsensusParams | undefined;
140
- validators: ValidatorUpdate[];
141
- appStateBytes: Uint8Array;
142
- initialHeight: number;
143
- }
144
- /** QueryRequest is a request to query the application state. */
145
- export interface QueryRequest {
146
- data: Uint8Array;
147
- path: string;
148
- height: number;
149
- prove: boolean;
150
- }
151
- /** CheckTxRequest is a request to check that the transaction is valid. */
152
- export interface CheckTxRequest {
153
- tx: Uint8Array;
154
- type: CheckTxType;
155
- }
156
- /** CommitRequest is a request to commit the pending application state. */
157
- export interface CommitRequest {
158
- }
159
- /** Request to list available snapshots. */
160
- export interface ListSnapshotsRequest {
161
- }
162
- /** Request offering a snapshot to the application. */
163
- export interface OfferSnapshotRequest {
164
- /** snapshot offered by peers */
165
- snapshot: Snapshot | undefined;
166
- /** light client-verified app hash for snapshot height */
167
- appHash: Uint8Array;
168
- }
169
- /** Request to load a snapshot chunk. */
170
- export interface LoadSnapshotChunkRequest {
171
- height: number;
172
- format: number;
173
- chunk: number;
174
- }
175
- /** Request to apply a snapshot chunk. */
176
- export interface ApplySnapshotChunkRequest {
177
- index: number;
178
- chunk: Uint8Array;
179
- sender: string;
180
- }
181
- /**
182
- * PrepareProposalRequest is a request for the ABCI application to prepare a new
183
- * block proposal.
184
- */
185
- export interface PrepareProposalRequest {
186
- /** the modified transactions cannot exceed this size. */
187
- maxTxBytes: number;
188
- /**
189
- * txs is an array of transactions that will be included in a block,
190
- * sent to the app for possible modifications.
191
- */
192
- txs: Uint8Array[];
193
- localLastCommit: ExtendedCommitInfo | undefined;
194
- misbehavior: Misbehavior[];
195
- height: number;
196
- time: Date | undefined;
197
- nextValidatorsHash: Uint8Array;
198
- /** address of the public key of the validator proposing the block. */
199
- proposerAddress: Uint8Array;
200
- }
201
- /**
202
- * ProcessProposalRequest is a request for the ABCI application to process a proposal
203
- * received from another validator.
204
- */
205
- export interface ProcessProposalRequest {
206
- txs: Uint8Array[];
207
- proposedLastCommit: CommitInfo | undefined;
208
- misbehavior: Misbehavior[];
209
- /** Merkle root hash of the fields of the proposed block. */
210
- hash: Uint8Array;
211
- height: number;
212
- time: Date | undefined;
213
- nextValidatorsHash: Uint8Array;
214
- /** address of the public key of the original proposer of the block. */
215
- proposerAddress: Uint8Array;
216
- }
217
- /** ExtendVoteRequest extends a precommit vote with application-injected data. */
218
- export interface ExtendVoteRequest {
219
- /** the hash of the block that this vote may be referring to */
220
- hash: Uint8Array;
221
- /** the height of the extended vote */
222
- height: number;
223
- /** info of the block that this vote may be referring to */
224
- time: Date | undefined;
225
- txs: Uint8Array[];
226
- proposedLastCommit: CommitInfo | undefined;
227
- misbehavior: Misbehavior[];
228
- nextValidatorsHash: Uint8Array;
229
- /** address of the public key of the original proposer of the block. */
230
- proposerAddress: Uint8Array;
231
- }
232
- /**
233
- * VerifyVoteExtensionRequest is a request for the application to verify a vote extension
234
- * produced by a different validator.
235
- */
236
- export interface VerifyVoteExtensionRequest {
237
- /** the hash of the block that this received vote corresponds to */
238
- hash: Uint8Array;
239
- /** the validator that signed the vote extension */
240
- validatorAddress: Uint8Array;
241
- height: number;
242
- voteExtension: Uint8Array;
243
- }
244
- /** FinalizeBlockRequest is a request to finalize the block. */
245
- export interface FinalizeBlockRequest {
246
- txs: Uint8Array[];
247
- decidedLastCommit: CommitInfo | undefined;
248
- misbehavior: Misbehavior[];
249
- /** Merkle root hash of the fields of the decided block. */
250
- hash: Uint8Array;
251
- height: number;
252
- time: Date | undefined;
253
- nextValidatorsHash: Uint8Array;
254
- /** address of the public key of the original proposer of the block. */
255
- proposerAddress: Uint8Array;
256
- }
257
- /** Response represents a response from the ABCI application. */
258
- export interface Response {
259
- exception?: ExceptionResponse | undefined;
260
- echo?: EchoResponse | undefined;
261
- flush?: FlushResponse | undefined;
262
- info?: InfoResponse | undefined;
263
- initChain?: InitChainResponse | undefined;
264
- query?: QueryResponse | undefined;
265
- checkTx?: CheckTxResponse | undefined;
266
- commit?: CommitResponse | undefined;
267
- listSnapshots?: ListSnapshotsResponse | undefined;
268
- offerSnapshot?: OfferSnapshotResponse | undefined;
269
- loadSnapshotChunk?: LoadSnapshotChunkResponse | undefined;
270
- applySnapshotChunk?: ApplySnapshotChunkResponse | undefined;
271
- prepareProposal?: PrepareProposalResponse | undefined;
272
- processProposal?: ProcessProposalResponse | undefined;
273
- extendVote?: ExtendVoteResponse | undefined;
274
- verifyVoteExtension?: VerifyVoteExtensionResponse | undefined;
275
- finalizeBlock?: FinalizeBlockResponse | undefined;
276
- }
277
- /** nondeterministic */
278
- export interface ExceptionResponse {
279
- error: string;
280
- }
281
- /** EchoResponse indicates that the connection is still alive. */
282
- export interface EchoResponse {
283
- message: string;
284
- }
285
- /** FlushResponse indicates that the write buffer was flushed. */
286
- export interface FlushResponse {
287
- }
288
- /** InfoResponse contains the ABCI application version information. */
289
- export interface InfoResponse {
290
- data: string;
291
- version: string;
292
- appVersion: number;
293
- lastBlockHeight: number;
294
- lastBlockAppHash: Uint8Array;
295
- }
296
- /**
297
- * InitChainResponse contains the ABCI application's hash and updates to the
298
- * validator set and/or the consensus params, if any.
299
- */
300
- export interface InitChainResponse {
301
- consensusParams: ConsensusParams | undefined;
302
- validators: ValidatorUpdate[];
303
- appHash: Uint8Array;
304
- }
305
- /** QueryResponse contains the ABCI application data along with a proof. */
306
- export interface QueryResponse {
307
- code: number;
308
- /** bytes data = 2; // use "value" instead. */
309
- log: string;
310
- /** nondeterministic */
311
- info: string;
312
- index: number;
313
- key: Uint8Array;
314
- value: Uint8Array;
315
- proofOps: ProofOps | undefined;
316
- height: number;
317
- codespace: string;
318
- }
319
- /**
320
- * CheckTxResponse shows if the transaction was deemed valid by the ABCI
321
- * application.
322
- */
323
- export interface CheckTxResponse {
324
- code: number;
325
- data: Uint8Array;
326
- /** nondeterministic */
327
- log: string;
328
- /** nondeterministic */
329
- info: string;
330
- gasWanted: number;
331
- gasUsed: number;
332
- /** nondeterministic */
333
- events: Event[];
334
- codespace: string;
335
- }
336
- /** CommitResponse indicates how much blocks should CometBFT retain. */
337
- export interface CommitResponse {
338
- retainHeight: number;
339
- }
340
- /** ListSnapshotsResponse contains the list of snapshots. */
341
- export interface ListSnapshotsResponse {
342
- snapshots: Snapshot[];
343
- }
344
- /**
345
- * OfferSnapshotResponse indicates the ABCI application decision whenever to
346
- * provide a snapshot to the requester or not.
347
- */
348
- export interface OfferSnapshotResponse {
349
- result: OfferSnapshotResult;
350
- }
351
- /** LoadSnapshotChunkResponse returns a snapshot's chunk. */
352
- export interface LoadSnapshotChunkResponse {
353
- chunk: Uint8Array;
354
- }
355
- /** ApplySnapshotChunkResponse returns a result of applying the specified chunk. */
356
- export interface ApplySnapshotChunkResponse {
357
- result: ApplySnapshotChunkResult;
358
- /** Chunks to refetch and reapply */
359
- refetchChunks: number[];
360
- /** Chunk senders to reject and ban */
361
- rejectSenders: string[];
362
- }
363
- /** PrepareProposalResponse contains a list of transactions, which will form a block. */
364
- export interface PrepareProposalResponse {
365
- txs: Uint8Array[];
366
- }
367
- /**
368
- * ProcessProposalResponse indicates the ABCI application's decision whenever
369
- * the given proposal should be accepted or not.
370
- */
371
- export interface ProcessProposalResponse {
372
- status: ProcessProposalStatus;
373
- }
374
- /**
375
- * ExtendVoteResponse contains the vote extension that the application would like to
376
- * attach to its next precommit vote.
377
- */
378
- export interface ExtendVoteResponse {
379
- voteExtension: Uint8Array;
380
- }
381
- /**
382
- * VerifyVoteExtensionResponse indicates the ABCI application's decision
383
- * whenever the vote extension should be accepted or not.
384
- */
385
- export interface VerifyVoteExtensionResponse {
386
- status: VerifyVoteExtensionStatus;
387
- }
388
- /** FinalizeBlockResponse contains the result of executing the block. */
389
- export interface FinalizeBlockResponse {
390
- /** set of block events emitted as part of executing the block */
391
- events: Event[];
392
- /**
393
- * the result of executing each transaction including the events
394
- * the particular transaction emitted. This should match the order
395
- * of the transactions delivered in the block itself
396
- */
397
- txResults: ExecTxResult[];
398
- /** a list of updates to the validator set. These will reflect the validator set at current height + 2. */
399
- validatorUpdates: ValidatorUpdate[];
400
- /** updates to the consensus params, if any. */
401
- consensusParamUpdates: ConsensusParams | undefined;
402
- /**
403
- * app_hash is the hash of the applications' state which is used to confirm
404
- * that execution of the transactions was deterministic.
405
- * It is up to the application to decide which algorithm to use.
406
- */
407
- appHash: Uint8Array;
408
- }
409
- /** CommitInfo contains votes for the particular round. */
410
- export interface CommitInfo {
411
- round: number;
412
- votes: VoteInfo[];
413
- }
414
- /**
415
- * ExtendedCommitInfo is similar to CommitInfo except that it is only used in
416
- * the PrepareProposal request such that Tendermint can provide vote extensions
417
- * to the application.
418
- */
419
- export interface ExtendedCommitInfo {
420
- /** The round at which the block proposer decided in the previous height. */
421
- round: number;
422
- /**
423
- * List of validators' addresses in the last validator set with their voting
424
- * information, including vote extensions.
425
- */
426
- votes: ExtendedVoteInfo[];
427
- }
428
- /**
429
- * Event allows application developers to attach additional information to
430
- * ResponseFinalizeBlock and ResponseCheckTx.
431
- * Up to 0.37, this could also be used in ResponseBeginBlock, ResponseEndBlock,
432
- * and ResponseDeliverTx.
433
- * Later, transactions may be queried using these events.
434
- */
435
- export interface Event {
436
- type: string;
437
- attributes: EventAttribute[];
438
- }
439
- /** EventAttribute is a single key-value pair, associated with an event. */
440
- export interface EventAttribute {
441
- key: string;
442
- value: string;
443
- /** nondeterministic */
444
- index: boolean;
445
- }
446
- /**
447
- * ExecTxResult contains results of executing one individual transaction.
448
- *
449
- * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted
450
- */
451
- export interface ExecTxResult {
452
- code: number;
453
- data: Uint8Array;
454
- /** nondeterministic */
455
- log: string;
456
- /** nondeterministic */
457
- info: string;
458
- gasWanted: number;
459
- gasUsed: number;
460
- /** nondeterministic */
461
- events: Event[];
462
- codespace: string;
463
- }
464
- /**
465
- * TxResult contains results of executing the transaction.
466
- *
467
- * One usage is indexing transaction results.
468
- */
469
- export interface TxResult {
470
- height: number;
471
- index: number;
472
- tx: Uint8Array;
473
- result: ExecTxResult | undefined;
474
- }
475
- /** Validator in the validator set. */
476
- export interface Validator {
477
- /** The first 20 bytes of SHA256(public key) */
478
- address: Uint8Array;
479
- /** PubKey pub_key = 2 [(gogoproto.nullable)=false]; */
480
- power: number;
481
- }
482
- /** ValidatorUpdate is a singular update to a validator set. */
483
- export interface ValidatorUpdate {
484
- pubKey: PublicKey | undefined;
485
- power: number;
486
- }
487
- /** VoteInfo contains the information about the vote. */
488
- export interface VoteInfo {
489
- validator: Validator | undefined;
490
- blockIdFlag: BlockIDFlag;
491
- }
492
- /** ExtendedVoteInfo extends VoteInfo with the vote extensions (non-deterministic). */
493
- export interface ExtendedVoteInfo {
494
- /** The validator that sent the vote. */
495
- validator: Validator | undefined;
496
- /** Non-deterministic extension provided by the sending validator's application. */
497
- voteExtension: Uint8Array;
498
- /** Vote extension signature created by CometBFT */
499
- extensionSignature: Uint8Array;
500
- /** block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all */
501
- blockIdFlag: BlockIDFlag;
502
- }
503
- /** Misbehavior is a type of misbehavior committed by a validator. */
504
- export interface Misbehavior {
505
- type: MisbehaviorType;
506
- /** The offending validator */
507
- validator: Validator | undefined;
508
- /** The height when the offense occurred */
509
- height: number;
510
- /** The corresponding time where the offense occurred */
511
- time: Date | undefined;
512
- /**
513
- * Total voting power of the validator set in case the ABCI application does
514
- * not store historical validators.
515
- * https://github.com/tendermint/tendermint/issues/4581
516
- */
517
- totalVotingPower: number;
518
- }
519
- /** Snapshot of the ABCI application state. */
520
- export interface Snapshot {
521
- /** The height at which the snapshot was taken */
522
- height: number;
523
- /** The application-specific snapshot format */
524
- format: number;
525
- /** Number of chunks in the snapshot */
526
- chunks: number;
527
- /** Arbitrary snapshot hash, equal only if identical */
528
- hash: Uint8Array;
529
- /** Arbitrary application metadata */
530
- metadata: Uint8Array;
531
- }
532
- export declare const Request: MessageFns<Request>;
533
- export declare const EchoRequest: MessageFns<EchoRequest>;
534
- export declare const FlushRequest: MessageFns<FlushRequest>;
535
- export declare const InfoRequest: MessageFns<InfoRequest>;
536
- export declare const InitChainRequest: MessageFns<InitChainRequest>;
537
- export declare const QueryRequest: MessageFns<QueryRequest>;
538
- export declare const CheckTxRequest: MessageFns<CheckTxRequest>;
539
- export declare const CommitRequest: MessageFns<CommitRequest>;
540
- export declare const ListSnapshotsRequest: MessageFns<ListSnapshotsRequest>;
541
- export declare const OfferSnapshotRequest: MessageFns<OfferSnapshotRequest>;
542
- export declare const LoadSnapshotChunkRequest: MessageFns<LoadSnapshotChunkRequest>;
543
- export declare const ApplySnapshotChunkRequest: MessageFns<ApplySnapshotChunkRequest>;
544
- export declare const PrepareProposalRequest: MessageFns<PrepareProposalRequest>;
545
- export declare const ProcessProposalRequest: MessageFns<ProcessProposalRequest>;
546
- export declare const ExtendVoteRequest: MessageFns<ExtendVoteRequest>;
547
- export declare const VerifyVoteExtensionRequest: MessageFns<VerifyVoteExtensionRequest>;
548
- export declare const FinalizeBlockRequest: MessageFns<FinalizeBlockRequest>;
549
- export declare const Response: MessageFns<Response>;
550
- export declare const ExceptionResponse: MessageFns<ExceptionResponse>;
551
- export declare const EchoResponse: MessageFns<EchoResponse>;
552
- export declare const FlushResponse: MessageFns<FlushResponse>;
553
- export declare const InfoResponse: MessageFns<InfoResponse>;
554
- export declare const InitChainResponse: MessageFns<InitChainResponse>;
555
- export declare const QueryResponse: MessageFns<QueryResponse>;
556
- export declare const CheckTxResponse: MessageFns<CheckTxResponse>;
557
- export declare const CommitResponse: MessageFns<CommitResponse>;
558
- export declare const ListSnapshotsResponse: MessageFns<ListSnapshotsResponse>;
559
- export declare const OfferSnapshotResponse: MessageFns<OfferSnapshotResponse>;
560
- export declare const LoadSnapshotChunkResponse: MessageFns<LoadSnapshotChunkResponse>;
561
- export declare const ApplySnapshotChunkResponse: MessageFns<ApplySnapshotChunkResponse>;
562
- export declare const PrepareProposalResponse: MessageFns<PrepareProposalResponse>;
563
- export declare const ProcessProposalResponse: MessageFns<ProcessProposalResponse>;
564
- export declare const ExtendVoteResponse: MessageFns<ExtendVoteResponse>;
565
- export declare const VerifyVoteExtensionResponse: MessageFns<VerifyVoteExtensionResponse>;
566
- export declare const FinalizeBlockResponse: MessageFns<FinalizeBlockResponse>;
567
- export declare const CommitInfo: MessageFns<CommitInfo>;
568
- export declare const ExtendedCommitInfo: MessageFns<ExtendedCommitInfo>;
569
- export declare const Event: MessageFns<Event>;
570
- export declare const EventAttribute: MessageFns<EventAttribute>;
571
- export declare const ExecTxResult: MessageFns<ExecTxResult>;
572
- export declare const TxResult: MessageFns<TxResult>;
573
- export declare const Validator: MessageFns<Validator>;
574
- export declare const ValidatorUpdate: MessageFns<ValidatorUpdate>;
575
- export declare const VoteInfo: MessageFns<VoteInfo>;
576
- export declare const ExtendedVoteInfo: MessageFns<ExtendedVoteInfo>;
577
- export declare const Misbehavior: MessageFns<Misbehavior>;
578
- export declare const Snapshot: MessageFns<Snapshot>;
579
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
580
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
581
- [K in keyof T]?: DeepPartial<T[K]>;
582
- } : Partial<T>;
583
- type KeysOfUnion<T> = T extends T ? keyof T : never;
584
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
585
- [K in keyof P]: Exact<P[K], I[K]>;
586
- } & {
587
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
588
- };
589
- export interface MessageFns<T> {
590
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
591
- decode(input: BinaryReader | Uint8Array, length?: number): T;
592
- fromJSON(object: any): T;
593
- toJSON(message: T): unknown;
594
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
595
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
596
- }
597
- export {};