@inco/js 0.2.16 → 0.2.17

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 (529) hide show
  1. package/dist/{attesteddecrypt → cjs/attesteddecrypt}/attested-decrypt.d.ts +10 -11
  2. package/dist/cjs/attesteddecrypt/attested-decrypt.js +91 -0
  3. package/dist/cjs/attesteddecrypt/index.d.ts +2 -0
  4. package/dist/{attesteddecrypt → cjs/attesteddecrypt}/index.js +3 -3
  5. package/dist/cjs/attesteddecrypt/types.d.ts +18 -0
  6. package/dist/{attesteddecrypt → cjs/attesteddecrypt}/types.js +1 -1
  7. package/dist/cjs/binary.js +82 -0
  8. package/dist/{chain.js → cjs/chain.js} +1 -1
  9. package/dist/{encryption → cjs/encryption}/encryption.d.ts +2 -2
  10. package/dist/cjs/encryption/encryption.js +109 -0
  11. package/dist/cjs/encryption/index.d.ts +1 -0
  12. package/dist/{encryption → cjs/encryption}/index.js +2 -2
  13. package/dist/{fhevm → cjs/fhevm}/fhe-environment.d.ts +1 -1
  14. package/dist/cjs/fhevm/fhe-environment.js +11 -0
  15. package/dist/{fhevm → cjs/fhevm}/fhevm.d.ts +1 -1
  16. package/dist/cjs/fhevm/fhevm.js +145 -0
  17. package/dist/cjs/fhevm/index.d.ts +1 -0
  18. package/dist/{fhevm → cjs/fhevm}/index.js +2 -2
  19. package/dist/{fhevm → cjs/fhevm}/reencrypt.d.ts +3 -3
  20. package/dist/cjs/fhevm/reencrypt.js +127 -0
  21. package/dist/{fhevm → cjs/fhevm}/tfhe.d.ts +1 -1
  22. package/dist/cjs/fhevm/tfhe.js +336 -0
  23. package/dist/{fhevm → cjs/fhevm}/types.d.ts +1 -1
  24. package/dist/cjs/fhevm/types.js +29 -0
  25. package/dist/cjs/generated/abis/addTwo.js +62 -0
  26. package/dist/cjs/generated/abis/inco-fhevm.js +681 -0
  27. package/dist/{generated → cjs/generated}/abis/index.js +1 -1
  28. package/dist/cjs/generated/abis/lightning.js +1606 -0
  29. package/dist/{generated → cjs/generated}/es/cosmos/ics23/v1/proofs_pb.js +1 -1
  30. package/dist/{generated → cjs/generated}/es/cosmos/msg/v1/msg_pb.js +1 -1
  31. package/dist/{generated → cjs/generated}/es/cosmos_proto/cosmos_pb.js +1 -1
  32. package/dist/{generated → cjs/generated}/es/google/api/annotations_pb.js +1 -1
  33. package/dist/{generated → cjs/generated}/es/google/api/http_pb.js +1 -1
  34. package/dist/{generated → cjs/generated}/es/inco/fhe/v1/events_pb.js +1 -1
  35. package/dist/{generated → cjs/generated}/es/inco/fhe/v1/genesis_pb.js +1 -1
  36. package/dist/{generated → cjs/generated}/es/inco/fhe/v1/query_pb.js +1 -1
  37. package/dist/{generated → cjs/generated}/es/inco/fhe/v1/tx_pb.js +1 -1
  38. package/dist/{generated → cjs/generated}/es/inco/fhe/v1/types_pb.js +1 -1
  39. package/dist/{generated → cjs/generated}/es/inco/kms/lite/v1/kms_service_pb.d.ts +54 -41
  40. package/dist/{generated → cjs/generated}/es/inco/kms/lite/v1/kms_service_pb.js +6 -11
  41. package/dist/{generated → cjs/generated}/es/inco/kms/lite/v1/types_pb.js +1 -1
  42. package/dist/{generated → cjs/generated}/es/inco/preflight/v1/genesis_pb.js +1 -1
  43. package/dist/{generated → cjs/generated}/es/inco/preflight/v1/query_pb.js +1 -1
  44. package/dist/{generated → cjs/generated}/es/inco/preflight/v1/tx_pb.js +1 -1
  45. package/dist/{generated → cjs/generated}/es/inco/preflight/v1/types_pb.js +1 -1
  46. package/dist/{generated → cjs/generated}/es/kms/base_pb.js +1 -1
  47. package/dist/{generated → cjs/generated}/es/sf/ethereum/type/v2/type_pb.js +1 -1
  48. package/dist/{generated → cjs/generated}/fhe-environments.js +1 -1
  49. package/dist/{generated → cjs/generated}/lightning.js +1 -1
  50. package/dist/cjs/generated/local-node.d.ts +23 -0
  51. package/dist/cjs/generated/local-node.js +27 -0
  52. package/dist/{generated → cjs/generated}/ts/amino/amino.js +1 -1
  53. package/dist/{generated → cjs/generated}/ts/cometbft/abci/v1/types.js +1 -1
  54. package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.js +108 -0
  55. package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.js +433 -0
  56. package/dist/cjs/generated/ts/cometbft/types/v1/params.js +716 -0
  57. package/dist/cjs/generated/ts/cometbft/types/v1/validator.js +358 -0
  58. package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.js +221 -0
  59. package/dist/{generated → cjs/generated}/ts/cosmos/msg/v1/msg.js +1 -1
  60. package/dist/cjs/generated/ts/cosmos_proto/cosmos.js +216 -0
  61. package/dist/{generated → cjs/generated}/ts/gogoproto/gogo.js +1 -1
  62. package/dist/{generated → cjs/generated}/ts/google/api/annotations.js +1 -1
  63. package/dist/cjs/generated/ts/google/api/http.js +356 -0
  64. package/dist/{generated → cjs/generated}/ts/google/protobuf/descriptor.js +1 -1
  65. package/dist/cjs/generated/ts/google/protobuf/duration.js +93 -0
  66. package/dist/cjs/generated/ts/google/protobuf/timestamp.js +93 -0
  67. package/dist/cjs/generated/ts/google/protobuf/wrappers.js +509 -0
  68. package/dist/cjs/generated/ts/inco/abci/v1/types.js +73 -0
  69. package/dist/cjs/generated/ts/inco/fhe/module/v1/module.js +66 -0
  70. package/dist/cjs/generated/ts/inco/fhe/v1/events.js +190 -0
  71. package/dist/cjs/generated/ts/inco/fhe/v1/genesis.js +714 -0
  72. package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/query.js +1 -1
  73. package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/tx.js +1 -1
  74. package/dist/cjs/generated/ts/inco/fhe/v1/types.js +990 -0
  75. package/dist/cjs/generated/ts/inco/originchain/module/v1/module.js +66 -0
  76. package/dist/cjs/generated/ts/inco/originchain/v1/abci.js +331 -0
  77. package/dist/cjs/generated/ts/inco/originchain/v1/events.js +216 -0
  78. package/dist/cjs/generated/ts/inco/originchain/v1/genesis.js +69 -0
  79. package/dist/cjs/generated/ts/inco/originchain/v1/query.js +280 -0
  80. package/dist/cjs/generated/ts/inco/originchain/v1/tx.js +140 -0
  81. package/dist/cjs/generated/ts/inco/originchain/v1/types.js +203 -0
  82. package/dist/cjs/generated/ts/inco/preflight/module/v1/module.js +66 -0
  83. package/dist/cjs/generated/ts/inco/preflight/v1/genesis.js +185 -0
  84. package/dist/cjs/generated/ts/inco/preflight/v1/query.js +259 -0
  85. package/dist/cjs/generated/ts/inco/preflight/v1/tx.js +448 -0
  86. package/dist/cjs/generated/ts/inco/preflight/v1/types.js +398 -0
  87. package/dist/{handle.d.ts → cjs/handle.d.ts} +1 -1
  88. package/dist/{handle.js → cjs/handle.js} +5 -5
  89. package/dist/cjs/index.d.ts +5 -0
  90. package/dist/{index.js → cjs/index.js} +5 -5
  91. package/dist/{kms → cjs/kms}/client.d.ts +2 -2
  92. package/dist/{kms → cjs/kms}/client.js +3 -3
  93. package/dist/{l1 → cjs/l1}/client.d.ts +6 -6
  94. package/dist/{l1 → cjs/l1}/client.js +8 -8
  95. package/dist/cjs/l1/index.d.ts +2 -0
  96. package/dist/{l1 → cjs/l1}/index.js +3 -3
  97. package/dist/{l1 → cjs/l1}/preflight.d.ts +3 -3
  98. package/dist/cjs/l1/preflight.js +42 -0
  99. package/dist/{lite → cjs/lite}/attested-decrypt.d.ts +1 -1
  100. package/dist/cjs/lite/attested-decrypt.js +6 -0
  101. package/dist/{lite → cjs/lite}/deployments.d.ts +2 -2
  102. package/dist/cjs/lite/deployments.js +21 -0
  103. package/dist/{lite → cjs/lite}/ecies.d.ts +6 -6
  104. package/dist/cjs/lite/ecies.js +135 -0
  105. package/dist/{lite → cjs/lite}/hadu.d.ts +1 -1
  106. package/dist/cjs/lite/hadu.js +41 -0
  107. package/dist/cjs/lite/index.d.ts +7 -0
  108. package/dist/cjs/lite/index.js +23 -0
  109. package/dist/{lite → cjs/lite}/lightning.d.ts +12 -9
  110. package/dist/cjs/lite/lightning.js +204 -0
  111. package/dist/{lite → cjs/lite}/reencrypt.d.ts +7 -6
  112. package/dist/cjs/lite/reencrypt.js +142 -0
  113. package/dist/cjs/local/index.d.ts +1 -0
  114. package/dist/{local → cjs/local}/index.js +2 -2
  115. package/dist/{local → cjs/local}/local-node.js +1 -1
  116. package/dist/{reencryption → cjs/reencryption}/eip712.js +5 -5
  117. package/dist/cjs/reencryption/index.d.ts +2 -0
  118. package/dist/cjs/reencryption/index.js +19 -0
  119. package/dist/{reencryption → cjs/reencryption}/types.d.ts +6 -8
  120. package/dist/{reencryption → cjs/reencryption}/types.js +1 -1
  121. package/dist/{retry.js → cjs/retry.js} +1 -1
  122. package/dist/{schema.js → cjs/schema.js} +1 -1
  123. package/dist/{viem.d.ts → cjs/viem.d.ts} +1 -1
  124. package/dist/cjs/viem.js +12 -0
  125. package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +34 -0
  126. package/dist/esm/attesteddecrypt/attested-decrypt.js +88 -0
  127. package/dist/esm/attesteddecrypt/index.d.ts +2 -0
  128. package/dist/esm/attesteddecrypt/index.js +3 -0
  129. package/dist/esm/attesteddecrypt/types.d.ts +18 -0
  130. package/dist/esm/attesteddecrypt/types.js +12 -0
  131. package/dist/esm/binary.d.ts +21 -0
  132. package/dist/esm/binary.js +67 -0
  133. package/dist/esm/chain.d.ts +22 -0
  134. package/dist/esm/chain.js +24 -0
  135. package/dist/esm/encryption/encryption.d.ts +119 -0
  136. package/dist/esm/encryption/encryption.js +101 -0
  137. package/dist/esm/encryption/index.d.ts +1 -0
  138. package/dist/esm/encryption/index.js +2 -0
  139. package/dist/esm/fhevm/fhe-environment.d.ts +9 -0
  140. package/dist/esm/fhevm/fhe-environment.js +8 -0
  141. package/dist/esm/fhevm/fhevm.d.ts +41 -0
  142. package/dist/esm/fhevm/fhevm.js +139 -0
  143. package/dist/esm/fhevm/index.d.ts +1 -0
  144. package/dist/esm/fhevm/index.js +2 -0
  145. package/dist/esm/fhevm/reencrypt.d.ts +20 -0
  146. package/dist/esm/fhevm/reencrypt.js +123 -0
  147. package/dist/esm/fhevm/tfhe.d.ts +74 -0
  148. package/dist/esm/fhevm/tfhe.js +328 -0
  149. package/dist/esm/fhevm/types.d.ts +3 -0
  150. package/dist/esm/fhevm/types.js +26 -0
  151. package/dist/esm/generated/abis/addTwo.d.ts +83 -0
  152. package/dist/{generated → esm/generated}/abis/addTwo.js +2 -5
  153. package/dist/esm/generated/abis/inco-fhevm.d.ts +874 -0
  154. package/dist/{generated → esm/generated}/abis/inco-fhevm.js +3 -6
  155. package/dist/esm/generated/abis/index.d.ts +2 -0
  156. package/dist/esm/generated/abis/index.js +3 -0
  157. package/dist/esm/generated/abis/lightning.d.ts +2226 -0
  158. package/dist/{generated → esm/generated}/abis/lightning.js +2 -5
  159. package/dist/esm/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +593 -0
  160. package/dist/esm/generated/es/cosmos/ics23/v1/proofs_pb.js +198 -0
  161. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.d.ts +29 -0
  162. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.js +33 -0
  163. package/dist/esm/generated/es/cosmos_proto/cosmos_pb.d.ts +174 -0
  164. package/dist/esm/generated/es/cosmos_proto/cosmos_pb.js +115 -0
  165. package/dist/esm/generated/es/google/api/annotations_pb.d.ts +13 -0
  166. package/dist/esm/generated/es/google/api/annotations_pb.js +27 -0
  167. package/dist/esm/generated/es/google/api/http_pb.d.ts +440 -0
  168. package/dist/esm/generated/es/google/api/http_pb.js +34 -0
  169. package/dist/esm/generated/es/inco/fhe/v1/events_pb.d.ts +79 -0
  170. package/dist/esm/generated/es/inco/fhe/v1/events_pb.js +21 -0
  171. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.d.ts +252 -0
  172. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.js +46 -0
  173. package/dist/esm/generated/es/inco/fhe/v1/query_pb.d.ts +569 -0
  174. package/dist/esm/generated/es/inco/fhe/v1/query_pb.js +108 -0
  175. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.d.ts +494 -0
  176. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.js +108 -0
  177. package/dist/esm/generated/es/inco/fhe/v1/types_pb.d.ts +419 -0
  178. package/dist/esm/generated/es/inco/fhe/v1/types_pb.js +133 -0
  179. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +333 -0
  180. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +58 -0
  181. package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +212 -0
  182. package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +44 -0
  183. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.d.ts +56 -0
  184. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.js +20 -0
  185. package/dist/esm/generated/es/inco/preflight/v1/query_pb.d.ts +100 -0
  186. package/dist/esm/generated/es/inco/preflight/v1/query_pb.js +38 -0
  187. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.d.ts +193 -0
  188. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.js +48 -0
  189. package/dist/esm/generated/es/inco/preflight/v1/types_pb.d.ts +144 -0
  190. package/dist/esm/generated/es/inco/preflight/v1/types_pb.js +34 -0
  191. package/dist/esm/generated/es/kms/base_pb.d.ts +765 -0
  192. package/dist/esm/generated/es/kms/base_pb.js +238 -0
  193. package/dist/esm/generated/es/sf/ethereum/type/v2/type_pb.d.ts +1736 -0
  194. package/dist/esm/generated/es/sf/ethereum/type/v2/type_pb.js +571 -0
  195. package/dist/esm/generated/fhe-environments.d.ts +14 -0
  196. package/dist/esm/generated/fhe-environments.js +15 -0
  197. package/dist/esm/generated/lightning.d.ts +211 -0
  198. package/dist/esm/generated/lightning.js +223 -0
  199. package/dist/esm/generated/local-node.d.ts +23 -0
  200. package/dist/esm/generated/local-node.js +24 -0
  201. package/dist/esm/generated/ts/amino/amino.d.ts +1 -0
  202. package/dist/esm/generated/ts/amino/amino.js +8 -0
  203. package/dist/esm/generated/ts/cometbft/abci/v1/types.d.ts +597 -0
  204. package/dist/esm/generated/ts/cometbft/abci/v1/types.js +5063 -0
  205. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.d.ts +27 -0
  206. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.js +105 -0
  207. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.d.ts +60 -0
  208. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.js +430 -0
  209. package/dist/esm/generated/ts/cometbft/types/v1/params.d.ts +179 -0
  210. package/dist/esm/generated/ts/cometbft/types/v1/params.js +713 -0
  211. package/dist/esm/generated/ts/cometbft/types/v1/validator.d.ts +61 -0
  212. package/dist/esm/generated/ts/cometbft/types/v1/validator.js +353 -0
  213. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.d.ts +104 -0
  214. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.js +218 -0
  215. package/dist/esm/generated/ts/cosmos/msg/v1/msg.d.ts +1 -0
  216. package/dist/esm/generated/ts/cosmos/msg/v1/msg.js +8 -0
  217. package/dist/esm/generated/ts/cosmos_proto/cosmos.d.ts +80 -0
  218. package/dist/esm/generated/ts/cosmos_proto/cosmos.js +211 -0
  219. package/dist/esm/generated/ts/gogoproto/gogo.d.ts +1 -0
  220. package/dist/esm/generated/ts/gogoproto/gogo.js +8 -0
  221. package/dist/esm/generated/ts/google/api/annotations.d.ts +1 -0
  222. package/dist/esm/generated/ts/google/api/annotations.js +8 -0
  223. package/dist/esm/generated/ts/google/api/http.d.ts +371 -0
  224. package/dist/esm/generated/ts/google/api/http.js +353 -0
  225. package/dist/esm/generated/ts/google/protobuf/descriptor.d.ts +1228 -0
  226. package/dist/esm/generated/ts/google/protobuf/descriptor.js +5070 -0
  227. package/dist/esm/generated/ts/google/protobuf/duration.d.ts +99 -0
  228. package/dist/esm/generated/ts/google/protobuf/duration.js +90 -0
  229. package/dist/esm/generated/ts/google/protobuf/timestamp.d.ts +128 -0
  230. package/dist/esm/generated/ts/google/protobuf/timestamp.js +90 -0
  231. package/dist/esm/generated/ts/google/protobuf/wrappers.d.ts +111 -0
  232. package/dist/esm/generated/ts/google/protobuf/wrappers.js +506 -0
  233. package/dist/esm/generated/ts/inco/abci/v1/types.d.ts +35 -0
  234. package/dist/esm/generated/ts/inco/abci/v1/types.js +70 -0
  235. package/dist/esm/generated/ts/inco/fhe/module/v1/module.d.ts +31 -0
  236. package/dist/esm/generated/ts/inco/fhe/module/v1/module.js +63 -0
  237. package/dist/esm/generated/ts/inco/fhe/v1/events.d.ts +66 -0
  238. package/dist/esm/generated/ts/inco/fhe/v1/events.js +187 -0
  239. package/dist/esm/generated/ts/inco/fhe/v1/genesis.d.ts +117 -0
  240. package/dist/esm/generated/ts/inco/fhe/v1/genesis.js +711 -0
  241. package/dist/esm/generated/ts/inco/fhe/v1/query.d.ts +366 -0
  242. package/dist/esm/generated/ts/inco/fhe/v1/query.js +1391 -0
  243. package/dist/esm/generated/ts/inco/fhe/v1/tx.d.ts +409 -0
  244. package/dist/esm/generated/ts/inco/fhe/v1/tx.js +1233 -0
  245. package/dist/esm/generated/ts/inco/fhe/v1/types.d.ts +225 -0
  246. package/dist/esm/generated/ts/inco/fhe/v1/types.js +985 -0
  247. package/dist/esm/generated/ts/inco/originchain/module/v1/module.d.ts +30 -0
  248. package/dist/esm/generated/ts/inco/originchain/module/v1/module.js +63 -0
  249. package/dist/esm/generated/ts/inco/originchain/v1/abci.d.ts +80 -0
  250. package/dist/esm/generated/ts/inco/originchain/v1/abci.js +328 -0
  251. package/dist/esm/generated/ts/inco/originchain/v1/events.d.ts +60 -0
  252. package/dist/esm/generated/ts/inco/originchain/v1/events.js +213 -0
  253. package/dist/esm/generated/ts/inco/originchain/v1/genesis.d.ts +28 -0
  254. package/dist/esm/generated/ts/inco/originchain/v1/genesis.js +66 -0
  255. package/dist/esm/generated/ts/inco/originchain/v1/query.d.ts +116 -0
  256. package/dist/esm/generated/ts/inco/originchain/v1/query.js +277 -0
  257. package/dist/esm/generated/ts/inco/originchain/v1/tx.d.ts +89 -0
  258. package/dist/esm/generated/ts/inco/originchain/v1/tx.js +137 -0
  259. package/dist/esm/generated/ts/inco/originchain/v1/types.d.ts +58 -0
  260. package/dist/esm/generated/ts/inco/originchain/v1/types.js +200 -0
  261. package/dist/esm/generated/ts/inco/preflight/module/v1/module.d.ts +31 -0
  262. package/dist/esm/generated/ts/inco/preflight/module/v1/module.js +63 -0
  263. package/dist/esm/generated/ts/inco/preflight/v1/genesis.d.ts +41 -0
  264. package/dist/esm/generated/ts/inco/preflight/v1/genesis.js +182 -0
  265. package/dist/esm/generated/ts/inco/preflight/v1/query.d.ts +93 -0
  266. package/dist/esm/generated/ts/inco/preflight/v1/query.js +256 -0
  267. package/dist/esm/generated/ts/inco/preflight/v1/tx.d.ts +187 -0
  268. package/dist/esm/generated/ts/inco/preflight/v1/tx.js +445 -0
  269. package/dist/esm/generated/ts/inco/preflight/v1/types.d.ts +84 -0
  270. package/dist/esm/generated/ts/inco/preflight/v1/types.js +395 -0
  271. package/dist/esm/handle.d.ts +41 -0
  272. package/dist/esm/handle.js +94 -0
  273. package/dist/esm/index.d.ts +5 -0
  274. package/dist/esm/index.js +6 -0
  275. package/dist/esm/kms/client.d.ts +8 -0
  276. package/dist/esm/kms/client.js +35 -0
  277. package/dist/esm/l1/client.d.ts +35 -0
  278. package/dist/esm/l1/client.js +93 -0
  279. package/dist/esm/l1/index.d.ts +2 -0
  280. package/dist/esm/l1/index.js +3 -0
  281. package/dist/esm/l1/preflight.d.ts +20 -0
  282. package/dist/esm/l1/preflight.js +39 -0
  283. package/dist/esm/lite/attested-decrypt.d.ts +3 -0
  284. package/dist/esm/lite/attested-decrypt.js +3 -0
  285. package/dist/esm/lite/deployments.d.ts +6 -0
  286. package/dist/esm/lite/deployments.js +17 -0
  287. package/dist/esm/lite/ecies.d.ts +26 -0
  288. package/dist/esm/lite/ecies.js +124 -0
  289. package/dist/esm/lite/hadu.d.ts +24 -0
  290. package/dist/esm/lite/hadu.js +36 -0
  291. package/dist/esm/lite/index.d.ts +7 -0
  292. package/dist/esm/lite/index.js +7 -0
  293. package/dist/esm/lite/lightning.d.ts +124 -0
  294. package/dist/esm/lite/lightning.js +200 -0
  295. package/dist/esm/lite/reencrypt.d.ts +24 -0
  296. package/dist/esm/lite/reencrypt.js +132 -0
  297. package/dist/esm/local/index.d.ts +1 -0
  298. package/dist/esm/local/index.js +2 -0
  299. package/dist/esm/local/local-node.d.ts +19 -0
  300. package/dist/esm/local/local-node.js +24 -0
  301. package/dist/esm/reencryption/eip712.d.ts +29 -0
  302. package/dist/esm/reencryption/eip712.js +81 -0
  303. package/dist/esm/reencryption/index.d.ts +2 -0
  304. package/dist/esm/reencryption/index.js +3 -0
  305. package/dist/esm/reencryption/types.d.ts +25 -0
  306. package/dist/esm/reencryption/types.js +2 -0
  307. package/dist/esm/retry.d.ts +15 -0
  308. package/dist/esm/retry.js +25 -0
  309. package/dist/esm/schema.d.ts +4 -0
  310. package/dist/esm/schema.js +15 -0
  311. package/dist/esm/viem.d.ts +427 -0
  312. package/dist/esm/viem.js +8 -0
  313. package/dist/types/attesteddecrypt/attested-decrypt.d.ts +34 -0
  314. package/dist/types/attesteddecrypt/index.d.ts +2 -0
  315. package/dist/types/attesteddecrypt/types.d.ts +18 -0
  316. package/dist/types/binary.d.ts +21 -0
  317. package/dist/types/chain.d.ts +22 -0
  318. package/dist/types/encryption/encryption.d.ts +119 -0
  319. package/dist/types/encryption/index.d.ts +1 -0
  320. package/dist/types/fhevm/fhe-environment.d.ts +9 -0
  321. package/dist/types/fhevm/fhevm.d.ts +41 -0
  322. package/dist/types/fhevm/index.d.ts +1 -0
  323. package/dist/types/fhevm/reencrypt.d.ts +20 -0
  324. package/dist/types/fhevm/tfhe.d.ts +74 -0
  325. package/dist/types/fhevm/types.d.ts +3 -0
  326. package/dist/types/generated/abis/addTwo.d.ts +83 -0
  327. package/dist/types/generated/abis/inco-fhevm.d.ts +874 -0
  328. package/dist/types/generated/abis/index.d.ts +2 -0
  329. package/dist/types/generated/abis/lightning.d.ts +2226 -0
  330. package/dist/types/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +593 -0
  331. package/dist/types/generated/es/cosmos/msg/v1/msg_pb.d.ts +29 -0
  332. package/dist/types/generated/es/cosmos_proto/cosmos_pb.d.ts +174 -0
  333. package/dist/types/generated/es/google/api/annotations_pb.d.ts +13 -0
  334. package/dist/types/generated/es/google/api/http_pb.d.ts +440 -0
  335. package/dist/types/generated/es/inco/fhe/v1/events_pb.d.ts +79 -0
  336. package/dist/types/generated/es/inco/fhe/v1/genesis_pb.d.ts +252 -0
  337. package/dist/types/generated/es/inco/fhe/v1/query_pb.d.ts +569 -0
  338. package/dist/types/generated/es/inco/fhe/v1/tx_pb.d.ts +494 -0
  339. package/dist/types/generated/es/inco/fhe/v1/types_pb.d.ts +419 -0
  340. package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +333 -0
  341. package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +212 -0
  342. package/dist/types/generated/es/inco/preflight/v1/genesis_pb.d.ts +56 -0
  343. package/dist/types/generated/es/inco/preflight/v1/query_pb.d.ts +100 -0
  344. package/dist/types/generated/es/inco/preflight/v1/tx_pb.d.ts +193 -0
  345. package/dist/types/generated/es/inco/preflight/v1/types_pb.d.ts +144 -0
  346. package/dist/types/generated/es/kms/base_pb.d.ts +765 -0
  347. package/dist/types/generated/es/sf/ethereum/type/v2/type_pb.d.ts +1736 -0
  348. package/dist/types/generated/fhe-environments.d.ts +14 -0
  349. package/dist/types/generated/lightning.d.ts +211 -0
  350. package/dist/types/generated/local-node.d.ts +23 -0
  351. package/dist/types/generated/ts/amino/amino.d.ts +1 -0
  352. package/dist/types/generated/ts/cometbft/abci/v1/types.d.ts +597 -0
  353. package/dist/types/generated/ts/cometbft/crypto/v1/keys.d.ts +27 -0
  354. package/dist/types/generated/ts/cometbft/crypto/v1/proof.d.ts +60 -0
  355. package/dist/types/generated/ts/cometbft/types/v1/params.d.ts +179 -0
  356. package/dist/types/generated/ts/cometbft/types/v1/validator.d.ts +61 -0
  357. package/dist/types/generated/ts/cosmos/app/v1alpha1/module.d.ts +104 -0
  358. package/dist/types/generated/ts/cosmos/msg/v1/msg.d.ts +1 -0
  359. package/dist/types/generated/ts/cosmos_proto/cosmos.d.ts +80 -0
  360. package/dist/types/generated/ts/gogoproto/gogo.d.ts +1 -0
  361. package/dist/types/generated/ts/google/api/annotations.d.ts +1 -0
  362. package/dist/types/generated/ts/google/api/http.d.ts +371 -0
  363. package/dist/types/generated/ts/google/protobuf/descriptor.d.ts +1228 -0
  364. package/dist/types/generated/ts/google/protobuf/duration.d.ts +99 -0
  365. package/dist/types/generated/ts/google/protobuf/timestamp.d.ts +128 -0
  366. package/dist/types/generated/ts/google/protobuf/wrappers.d.ts +111 -0
  367. package/dist/types/generated/ts/inco/abci/v1/types.d.ts +35 -0
  368. package/dist/types/generated/ts/inco/fhe/module/v1/module.d.ts +31 -0
  369. package/dist/types/generated/ts/inco/fhe/v1/events.d.ts +66 -0
  370. package/dist/types/generated/ts/inco/fhe/v1/genesis.d.ts +117 -0
  371. package/dist/types/generated/ts/inco/fhe/v1/query.d.ts +366 -0
  372. package/dist/types/generated/ts/inco/fhe/v1/tx.d.ts +409 -0
  373. package/dist/types/generated/ts/inco/fhe/v1/types.d.ts +225 -0
  374. package/dist/types/generated/ts/inco/originchain/module/v1/module.d.ts +30 -0
  375. package/dist/types/generated/ts/inco/originchain/v1/abci.d.ts +80 -0
  376. package/dist/types/generated/ts/inco/originchain/v1/events.d.ts +60 -0
  377. package/dist/types/generated/ts/inco/originchain/v1/genesis.d.ts +28 -0
  378. package/dist/types/generated/ts/inco/originchain/v1/query.d.ts +116 -0
  379. package/dist/types/generated/ts/inco/originchain/v1/tx.d.ts +89 -0
  380. package/dist/types/generated/ts/inco/originchain/v1/types.d.ts +58 -0
  381. package/dist/types/generated/ts/inco/preflight/module/v1/module.d.ts +31 -0
  382. package/dist/types/generated/ts/inco/preflight/v1/genesis.d.ts +41 -0
  383. package/dist/types/generated/ts/inco/preflight/v1/query.d.ts +93 -0
  384. package/dist/types/generated/ts/inco/preflight/v1/tx.d.ts +187 -0
  385. package/dist/types/generated/ts/inco/preflight/v1/types.d.ts +84 -0
  386. package/dist/types/handle.d.ts +41 -0
  387. package/dist/types/index.d.ts +5 -0
  388. package/dist/types/kms/client.d.ts +8 -0
  389. package/dist/types/l1/client.d.ts +35 -0
  390. package/dist/types/l1/index.d.ts +2 -0
  391. package/dist/types/l1/preflight.d.ts +20 -0
  392. package/dist/types/lite/attested-decrypt.d.ts +3 -0
  393. package/dist/types/lite/deployments.d.ts +6 -0
  394. package/dist/types/lite/ecies.d.ts +26 -0
  395. package/dist/types/lite/hadu.d.ts +24 -0
  396. package/dist/types/lite/index.d.ts +7 -0
  397. package/dist/types/lite/lightning.d.ts +124 -0
  398. package/dist/types/lite/reencrypt.d.ts +24 -0
  399. package/dist/types/local/index.d.ts +1 -0
  400. package/dist/types/local/local-node.d.ts +19 -0
  401. package/dist/types/reencryption/eip712.d.ts +29 -0
  402. package/dist/types/reencryption/index.d.ts +2 -0
  403. package/dist/types/reencryption/types.d.ts +25 -0
  404. package/dist/types/retry.d.ts +15 -0
  405. package/dist/types/schema.d.ts +4 -0
  406. package/dist/types/viem.d.ts +427 -0
  407. package/package.json +64 -15
  408. package/dist/attesteddecrypt/attested-decrypt.js +0 -79
  409. package/dist/attesteddecrypt/index.d.ts +0 -2
  410. package/dist/attesteddecrypt/types.d.ts +0 -28
  411. package/dist/binary.js +0 -82
  412. package/dist/encryption/encryption.js +0 -109
  413. package/dist/encryption/index.d.ts +0 -1
  414. package/dist/fhevm/fhe-environment.js +0 -11
  415. package/dist/fhevm/fhevm.js +0 -145
  416. package/dist/fhevm/index.d.ts +0 -1
  417. package/dist/fhevm/reencrypt.js +0 -127
  418. package/dist/fhevm/tfhe.js +0 -336
  419. package/dist/fhevm/types.js +0 -29
  420. package/dist/generated/local-node.d.ts +0 -7
  421. package/dist/generated/local-node.js +0 -11
  422. package/dist/generated/ts/cometbft/crypto/v1/keys.js +0 -108
  423. package/dist/generated/ts/cometbft/crypto/v1/proof.js +0 -433
  424. package/dist/generated/ts/cometbft/types/v1/params.js +0 -716
  425. package/dist/generated/ts/cometbft/types/v1/validator.js +0 -358
  426. package/dist/generated/ts/cosmos/app/v1alpha1/module.js +0 -221
  427. package/dist/generated/ts/cosmos_proto/cosmos.js +0 -216
  428. package/dist/generated/ts/google/api/http.js +0 -356
  429. package/dist/generated/ts/google/protobuf/duration.js +0 -93
  430. package/dist/generated/ts/google/protobuf/timestamp.js +0 -93
  431. package/dist/generated/ts/google/protobuf/wrappers.js +0 -509
  432. package/dist/generated/ts/inco/abci/v1/types.js +0 -73
  433. package/dist/generated/ts/inco/fhe/module/v1/module.js +0 -66
  434. package/dist/generated/ts/inco/fhe/v1/events.js +0 -190
  435. package/dist/generated/ts/inco/fhe/v1/genesis.js +0 -714
  436. package/dist/generated/ts/inco/fhe/v1/types.js +0 -990
  437. package/dist/generated/ts/inco/originchain/module/v1/module.js +0 -66
  438. package/dist/generated/ts/inco/originchain/v1/abci.js +0 -331
  439. package/dist/generated/ts/inco/originchain/v1/events.js +0 -216
  440. package/dist/generated/ts/inco/originchain/v1/genesis.js +0 -69
  441. package/dist/generated/ts/inco/originchain/v1/query.js +0 -280
  442. package/dist/generated/ts/inco/originchain/v1/tx.js +0 -140
  443. package/dist/generated/ts/inco/originchain/v1/types.js +0 -203
  444. package/dist/generated/ts/inco/preflight/module/v1/module.js +0 -66
  445. package/dist/generated/ts/inco/preflight/v1/genesis.js +0 -185
  446. package/dist/generated/ts/inco/preflight/v1/query.js +0 -259
  447. package/dist/generated/ts/inco/preflight/v1/tx.js +0 -448
  448. package/dist/generated/ts/inco/preflight/v1/types.js +0 -398
  449. package/dist/index.d.ts +0 -5
  450. package/dist/l1/index.d.ts +0 -2
  451. package/dist/l1/preflight.js +0 -42
  452. package/dist/lite/attested-decrypt.js +0 -6
  453. package/dist/lite/deployments.js +0 -21
  454. package/dist/lite/ecies.js +0 -135
  455. package/dist/lite/hadu.js +0 -41
  456. package/dist/lite/index.d.ts +0 -7
  457. package/dist/lite/index.js +0 -23
  458. package/dist/lite/lightning.js +0 -198
  459. package/dist/lite/reencrypt.js +0 -142
  460. package/dist/local/index.d.ts +0 -1
  461. package/dist/reencryption/index.d.ts +0 -2
  462. package/dist/reencryption/index.js +0 -19
  463. package/dist/types.d.ts +0 -20
  464. package/dist/types.js +0 -3
  465. package/dist/viem.js +0 -12
  466. /package/dist/{binary.d.ts → cjs/binary.d.ts} +0 -0
  467. /package/dist/{chain.d.ts → cjs/chain.d.ts} +0 -0
  468. /package/dist/{generated → cjs/generated}/abis/addTwo.d.ts +0 -0
  469. /package/dist/{generated → cjs/generated}/abis/inco-fhevm.d.ts +0 -0
  470. /package/dist/{generated → cjs/generated}/abis/index.d.ts +0 -0
  471. /package/dist/{generated → cjs/generated}/abis/lightning.d.ts +0 -0
  472. /package/dist/{generated → cjs/generated}/es/cosmos/ics23/v1/proofs_pb.d.ts +0 -0
  473. /package/dist/{generated → cjs/generated}/es/cosmos/msg/v1/msg_pb.d.ts +0 -0
  474. /package/dist/{generated → cjs/generated}/es/cosmos_proto/cosmos_pb.d.ts +0 -0
  475. /package/dist/{generated → cjs/generated}/es/google/api/annotations_pb.d.ts +0 -0
  476. /package/dist/{generated → cjs/generated}/es/google/api/http_pb.d.ts +0 -0
  477. /package/dist/{generated → cjs/generated}/es/inco/fhe/v1/events_pb.d.ts +0 -0
  478. /package/dist/{generated → cjs/generated}/es/inco/fhe/v1/genesis_pb.d.ts +0 -0
  479. /package/dist/{generated → cjs/generated}/es/inco/fhe/v1/query_pb.d.ts +0 -0
  480. /package/dist/{generated → cjs/generated}/es/inco/fhe/v1/tx_pb.d.ts +0 -0
  481. /package/dist/{generated → cjs/generated}/es/inco/fhe/v1/types_pb.d.ts +0 -0
  482. /package/dist/{generated → cjs/generated}/es/inco/kms/lite/v1/types_pb.d.ts +0 -0
  483. /package/dist/{generated → cjs/generated}/es/inco/preflight/v1/genesis_pb.d.ts +0 -0
  484. /package/dist/{generated → cjs/generated}/es/inco/preflight/v1/query_pb.d.ts +0 -0
  485. /package/dist/{generated → cjs/generated}/es/inco/preflight/v1/tx_pb.d.ts +0 -0
  486. /package/dist/{generated → cjs/generated}/es/inco/preflight/v1/types_pb.d.ts +0 -0
  487. /package/dist/{generated → cjs/generated}/es/kms/base_pb.d.ts +0 -0
  488. /package/dist/{generated → cjs/generated}/es/sf/ethereum/type/v2/type_pb.d.ts +0 -0
  489. /package/dist/{generated → cjs/generated}/fhe-environments.d.ts +0 -0
  490. /package/dist/{generated → cjs/generated}/lightning.d.ts +0 -0
  491. /package/dist/{generated → cjs/generated}/ts/amino/amino.d.ts +0 -0
  492. /package/dist/{generated → cjs/generated}/ts/cometbft/abci/v1/types.d.ts +0 -0
  493. /package/dist/{generated → cjs/generated}/ts/cometbft/crypto/v1/keys.d.ts +0 -0
  494. /package/dist/{generated → cjs/generated}/ts/cometbft/crypto/v1/proof.d.ts +0 -0
  495. /package/dist/{generated → cjs/generated}/ts/cometbft/types/v1/params.d.ts +0 -0
  496. /package/dist/{generated → cjs/generated}/ts/cometbft/types/v1/validator.d.ts +0 -0
  497. /package/dist/{generated → cjs/generated}/ts/cosmos/app/v1alpha1/module.d.ts +0 -0
  498. /package/dist/{generated → cjs/generated}/ts/cosmos/msg/v1/msg.d.ts +0 -0
  499. /package/dist/{generated → cjs/generated}/ts/cosmos_proto/cosmos.d.ts +0 -0
  500. /package/dist/{generated → cjs/generated}/ts/gogoproto/gogo.d.ts +0 -0
  501. /package/dist/{generated → cjs/generated}/ts/google/api/annotations.d.ts +0 -0
  502. /package/dist/{generated → cjs/generated}/ts/google/api/http.d.ts +0 -0
  503. /package/dist/{generated → cjs/generated}/ts/google/protobuf/descriptor.d.ts +0 -0
  504. /package/dist/{generated → cjs/generated}/ts/google/protobuf/duration.d.ts +0 -0
  505. /package/dist/{generated → cjs/generated}/ts/google/protobuf/timestamp.d.ts +0 -0
  506. /package/dist/{generated → cjs/generated}/ts/google/protobuf/wrappers.d.ts +0 -0
  507. /package/dist/{generated → cjs/generated}/ts/inco/abci/v1/types.d.ts +0 -0
  508. /package/dist/{generated → cjs/generated}/ts/inco/fhe/module/v1/module.d.ts +0 -0
  509. /package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/events.d.ts +0 -0
  510. /package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/genesis.d.ts +0 -0
  511. /package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/query.d.ts +0 -0
  512. /package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/tx.d.ts +0 -0
  513. /package/dist/{generated → cjs/generated}/ts/inco/fhe/v1/types.d.ts +0 -0
  514. /package/dist/{generated → cjs/generated}/ts/inco/originchain/module/v1/module.d.ts +0 -0
  515. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/abci.d.ts +0 -0
  516. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/events.d.ts +0 -0
  517. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/genesis.d.ts +0 -0
  518. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/query.d.ts +0 -0
  519. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/tx.d.ts +0 -0
  520. /package/dist/{generated → cjs/generated}/ts/inco/originchain/v1/types.d.ts +0 -0
  521. /package/dist/{generated → cjs/generated}/ts/inco/preflight/module/v1/module.d.ts +0 -0
  522. /package/dist/{generated → cjs/generated}/ts/inco/preflight/v1/genesis.d.ts +0 -0
  523. /package/dist/{generated → cjs/generated}/ts/inco/preflight/v1/query.d.ts +0 -0
  524. /package/dist/{generated → cjs/generated}/ts/inco/preflight/v1/tx.d.ts +0 -0
  525. /package/dist/{generated → cjs/generated}/ts/inco/preflight/v1/types.d.ts +0 -0
  526. /package/dist/{local → cjs/local}/local-node.d.ts +0 -0
  527. /package/dist/{reencryption → cjs/reencryption}/eip712.d.ts +0 -0
  528. /package/dist/{retry.d.ts → cjs/retry.d.ts} +0 -0
  529. /package/dist/{schema.d.ts → cjs/schema.d.ts} +0 -0
@@ -0,0 +1,1736 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file sf/ethereum/type/v2/type.proto.
6
+ */
7
+ export declare const file_sf_ethereum_type_v2_type: GenFile;
8
+ /**
9
+ * Block is the representation of the tracing of a block in the Ethereum
10
+ * blockchain. A block is a collection of [TransactionTrace] that are grouped
11
+ * together and processed as an atomic unit. Each [TransactionTrace] is composed
12
+ * of a series of [Call] (a.k.a internal transactions) and there is also at
13
+ * least one call per transaction a.k.a the root call which essentially has the
14
+ * same parameters as the transaction itself (e.g. `from`, `to`, `gas`, `value`,
15
+ * etc.).
16
+ *
17
+ * The exact tracing method used to build the block must be checked against
18
+ * [DetailLevel] field. There is two levels of details available, `BASE` and
19
+ * `EXTENDED`. The `BASE` level has been extracted using archive node RPC calls
20
+ * and will contain only the block header, transaction receipts and event logs.
21
+ * Refers to the Firehose service provider to know which blocks are offered on
22
+ * each network.
23
+ *
24
+ * The `EXTENDED` level has been extracted using the Firehose tracer and all
25
+ * fields are available in this Protobuf.
26
+ *
27
+ * The Ethereum block model is used across many chains which means that it
28
+ * happen that certain fields are not available in one chain but are available
29
+ * in another. Each field should be documented when necesssary if it's available
30
+ * on a subset of chains.
31
+ *
32
+ * One major concept to get about the Block is the concept of 'ordinal'. The
33
+ * ordinal is a number that is used to globally order every element of execution
34
+ * that happened throughout the processing of the block like
35
+ * [TransactionTracer], [Call], [Log], [BalanceChange], [StateChange], etc.
36
+ * Element that have a start and end interval, [Transaction] and [Call], will
37
+ * have two ordinals: `begin_ordinal` and `end_ordinal`. Element that are
38
+ * executed as "point in time" [Log], [BalanceChange], [StateChange], etc. will
39
+ * have only one ordinal named `ordinal`. If you take all of the message in the
40
+ * Block that have an 'ordinal' field in an array and you sort each element
41
+ * against the `ordinal` field, you will get the exact order of execution of
42
+ * each element in the block.
43
+ *
44
+ * All the 'ordinal' fields in a block are globally unique for the given block,
45
+ * it is **not** a chain-wide global ordering. Furthermore, caution must be take
46
+ * with reverted elements due to execution failure. For anything attached to a
47
+ * [Call] that has a `state_reverted` field set to `true`, the `ordinal` field
48
+ * is not reliable and should not be used to order the element against other
49
+ * elements in the block as those element might have 0 as the ordinal. Only
50
+ * successful calls have a reliable `ordinal` field.
51
+ *
52
+ * @generated from message sf.ethereum.type.v2.Block
53
+ */
54
+ export type Block = Message<"sf.ethereum.type.v2.Block"> & {
55
+ /**
56
+ * Hash is the block's hash.
57
+ *
58
+ * @generated from field: bytes hash = 2;
59
+ */
60
+ hash: Uint8Array;
61
+ /**
62
+ * Number is the block's height at which this block was mined.
63
+ *
64
+ * @generated from field: uint64 number = 3;
65
+ */
66
+ number: bigint;
67
+ /**
68
+ * Size is the size in bytes of the RLP encoding of the block according to Ethereum
69
+ * rules.
70
+ *
71
+ * @generated from field: uint64 size = 4;
72
+ */
73
+ size: bigint;
74
+ /**
75
+ * Header contain's the block's header information like its parent hash, the merkel root hash
76
+ * and all other information the form a block.
77
+ *
78
+ * @generated from field: sf.ethereum.type.v2.BlockHeader header = 5;
79
+ */
80
+ header?: BlockHeader;
81
+ /**
82
+ * Uncles represents block produced with a valid solution but were not actually choosen
83
+ * as the canonical block for the given height so they are mostly "forked" blocks.
84
+ *
85
+ * If the Block has been produced using the Proof of Stake consensus algorithm, this
86
+ * field will actually be always empty.
87
+ *
88
+ * @generated from field: repeated sf.ethereum.type.v2.BlockHeader uncles = 6;
89
+ */
90
+ uncles: BlockHeader[];
91
+ /**
92
+ * TransactionTraces hold the execute trace of all the transactions that were executed
93
+ * in this block. In in there that you will find most of the Ethereum data model.
94
+ *
95
+ * They are ordered by the order of execution of the transaction in the block.
96
+ *
97
+ * @generated from field: repeated sf.ethereum.type.v2.TransactionTrace transaction_traces = 10;
98
+ */
99
+ transactionTraces: TransactionTrace[];
100
+ /**
101
+ * BalanceChanges here is the array of ETH transfer that happened at the block level
102
+ * outside of the normal transaction flow of a block. The best example of this is mining
103
+ * reward for the block mined, the transfer of ETH to the miner happens outside the normal
104
+ * transaction flow of the chain and is recorded as a `BalanceChange` here since we cannot
105
+ * attached it to any transaction.
106
+ *
107
+ * Only available in DetailLevel: EXTENDED
108
+ *
109
+ * @generated from field: repeated sf.ethereum.type.v2.BalanceChange balance_changes = 11;
110
+ */
111
+ balanceChanges: BalanceChange[];
112
+ /**
113
+ * DetailLevel affects the data available in this block.
114
+ *
115
+ * ## DetailLevel_EXTENDED
116
+ *
117
+ * Describes the most complete block, with traces, balance changes, storage
118
+ * changes. It is extracted during the execution of the block.
119
+ *
120
+ * ## DetailLevel_BASE
121
+ *
122
+ * Describes a block that contains only the block header, transaction receipts
123
+ * and event logs: everything that can be extracted using the base JSON-RPC
124
+ * interface
125
+ * (https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods)
126
+ * Furthermore, the eth_getTransactionReceipt call has been avoided because it
127
+ * brings only minimal improvements at the cost of requiring an archive node
128
+ * or a full node with complete transaction index.
129
+ *
130
+ * @generated from field: sf.ethereum.type.v2.Block.DetailLevel detail_level = 12;
131
+ */
132
+ detailLevel: Block_DetailLevel;
133
+ /**
134
+ * CodeChanges here is the array of smart code change that happened that happened at the block level
135
+ * outside of the normal transaction flow of a block. Some Ethereum's fork like BSC and Polygon
136
+ * has some capabilities to upgrade internal smart contracts used usually to track the validator
137
+ * list.
138
+ *
139
+ * On hard fork, some procedure runs to upgrade the smart contract code to a new version. In those
140
+ * network, a `CodeChange` for each modified smart contract on upgrade would be present here. Note
141
+ * that this happen rarely, so the vast majority of block will have an empty list here.
142
+ *
143
+ * Only available in DetailLevel: EXTENDED
144
+ *
145
+ * @generated from field: repeated sf.ethereum.type.v2.CodeChange code_changes = 20;
146
+ */
147
+ codeChanges: CodeChange[];
148
+ /**
149
+ * System calls are introduced in Cancun, along with blobs. They are executed outside of transactions but affect the state.
150
+ *
151
+ * Only available in DetailLevel: EXTENDED
152
+ *
153
+ * @generated from field: repeated sf.ethereum.type.v2.Call system_calls = 21;
154
+ */
155
+ systemCalls: Call[];
156
+ /**
157
+ * Ver represents that data model version of the block, it is used internally by Firehose on Ethereum
158
+ * as a validation that we are reading the correct version.
159
+ *
160
+ * @generated from field: int32 ver = 1;
161
+ */
162
+ ver: number;
163
+ };
164
+ /**
165
+ * Describes the message sf.ethereum.type.v2.Block.
166
+ * Use `create(BlockSchema)` to create a new message.
167
+ */
168
+ export declare const BlockSchema: GenMessage<Block>;
169
+ /**
170
+ * @generated from enum sf.ethereum.type.v2.Block.DetailLevel
171
+ */
172
+ export declare enum Block_DetailLevel {
173
+ /**
174
+ * @generated from enum value: DETAILLEVEL_EXTENDED = 0;
175
+ */
176
+ DETAILLEVEL_EXTENDED = 0,
177
+ /**
178
+ * DETAILLEVEL_TRACE = 1; // TBD
179
+ *
180
+ * @generated from enum value: DETAILLEVEL_BASE = 2;
181
+ */
182
+ DETAILLEVEL_BASE = 2
183
+ }
184
+ /**
185
+ * Describes the enum sf.ethereum.type.v2.Block.DetailLevel.
186
+ */
187
+ export declare const Block_DetailLevelSchema: GenEnum<Block_DetailLevel>;
188
+ /**
189
+ * @generated from message sf.ethereum.type.v2.BlockHeader
190
+ */
191
+ export type BlockHeader = Message<"sf.ethereum.type.v2.BlockHeader"> & {
192
+ /**
193
+ * @generated from field: bytes parent_hash = 1;
194
+ */
195
+ parentHash: Uint8Array;
196
+ /**
197
+ * Uncle hash of the block, some reference it as `sha3Uncles`, but `sha3`` is badly worded, so we prefer `uncle_hash`, also
198
+ * referred as `ommers` in EIP specification.
199
+ *
200
+ * If the Block containing this `BlockHeader` has been produced using the Proof of Stake
201
+ * consensus algorithm, this field will actually be constant and set to `0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347`.
202
+ *
203
+ * @generated from field: bytes uncle_hash = 2;
204
+ */
205
+ uncleHash: Uint8Array;
206
+ /**
207
+ * @generated from field: bytes coinbase = 3;
208
+ */
209
+ coinbase: Uint8Array;
210
+ /**
211
+ * @generated from field: bytes state_root = 4;
212
+ */
213
+ stateRoot: Uint8Array;
214
+ /**
215
+ * @generated from field: bytes transactions_root = 5;
216
+ */
217
+ transactionsRoot: Uint8Array;
218
+ /**
219
+ * @generated from field: bytes receipt_root = 6;
220
+ */
221
+ receiptRoot: Uint8Array;
222
+ /**
223
+ * @generated from field: bytes logs_bloom = 7;
224
+ */
225
+ logsBloom: Uint8Array;
226
+ /**
227
+ * Difficulty is the difficulty of the Proof of Work algorithm that was required to compute a solution.
228
+ *
229
+ * If the Block containing this `BlockHeader` has been produced using the Proof of Stake
230
+ * consensus algorithm, this field will actually be constant and set to `0x00`.
231
+ *
232
+ * @generated from field: sf.ethereum.type.v2.BigInt difficulty = 8;
233
+ */
234
+ difficulty?: BigInt;
235
+ /**
236
+ * TotalDifficulty is the sum of all previous blocks difficulty including this block difficulty.
237
+ *
238
+ * If the Block containing this `BlockHeader` has been produced using the Proof of Stake
239
+ * consensus algorithm, this field will actually be constant and set to the terminal total difficulty
240
+ * that was required to transition to Proof of Stake algorithm, which varies per network. It is set to
241
+ * 58 750 000 000 000 000 000 000 on Ethereum Mainnet and to 10 790 000 on Ethereum Testnet Goerli.
242
+ *
243
+ * @generated from field: sf.ethereum.type.v2.BigInt total_difficulty = 17;
244
+ */
245
+ totalDifficulty?: BigInt;
246
+ /**
247
+ * @generated from field: uint64 number = 9;
248
+ */
249
+ number: bigint;
250
+ /**
251
+ * @generated from field: uint64 gas_limit = 10;
252
+ */
253
+ gasLimit: bigint;
254
+ /**
255
+ * @generated from field: uint64 gas_used = 11;
256
+ */
257
+ gasUsed: bigint;
258
+ /**
259
+ * @generated from field: google.protobuf.Timestamp timestamp = 12;
260
+ */
261
+ timestamp?: Timestamp;
262
+ /**
263
+ * ExtraData is free-form bytes included in the block by the "miner". While on Yellow paper of
264
+ * Ethereum this value is maxed to 32 bytes, other consensus algorithm like Clique and some other
265
+ * forks are using bigger values to carry special consensus data.
266
+ *
267
+ * If the Block containing this `BlockHeader` has been produced using the Proof of Stake
268
+ * consensus algorithm, this field is strictly enforced to be <= 32 bytes.
269
+ *
270
+ * @generated from field: bytes extra_data = 13;
271
+ */
272
+ extraData: Uint8Array;
273
+ /**
274
+ * MixHash is used to prove, when combined with the `nonce` that sufficient amount of computation has been
275
+ * achieved and that the solution found is valid.
276
+ *
277
+ * @generated from field: bytes mix_hash = 14;
278
+ */
279
+ mixHash: Uint8Array;
280
+ /**
281
+ * Nonce is used to prove, when combined with the `mix_hash` that sufficient amount of computation has been
282
+ * achieved and that the solution found is valid.
283
+ *
284
+ * If the Block containing this `BlockHeader` has been produced using the Proof of Stake
285
+ * consensus algorithm, this field will actually be constant and set to `0`.
286
+ *
287
+ * @generated from field: uint64 nonce = 15;
288
+ */
289
+ nonce: bigint;
290
+ /**
291
+ * Hash is the hash of the block which is actually the computation:
292
+ *
293
+ * Keccak256(rlp([
294
+ * parent_hash,
295
+ * uncle_hash,
296
+ * coinbase,
297
+ * state_root,
298
+ * transactions_root,
299
+ * receipt_root,
300
+ * logs_bloom,
301
+ * difficulty,
302
+ * number,
303
+ * gas_limit,
304
+ * gas_used,
305
+ * timestamp,
306
+ * extra_data,
307
+ * mix_hash,
308
+ * nonce,
309
+ * base_fee_per_gas (to be included only if London fork is active)
310
+ * withdrawals_root (to be included only if Shangai fork is active)
311
+ * blob_gas_used (to be included only if Cancun fork is active)
312
+ * excess_blob_gas (to be included only if Cancun fork is active)
313
+ * parent_beacon_root (to be included only if Cancun fork is active)
314
+ * ]))
315
+ *
316
+ *
317
+ * @generated from field: bytes hash = 16;
318
+ */
319
+ hash: Uint8Array;
320
+ /**
321
+ * Base fee per gas according to EIP-1559 (e.g. London Fork) rules, only set if London is present/active on the chain.
322
+ *
323
+ * @generated from field: sf.ethereum.type.v2.BigInt base_fee_per_gas = 18;
324
+ */
325
+ baseFeePerGas?: BigInt;
326
+ /**
327
+ * Withdrawals root hash according to EIP-4895 (e.g. Shangai Fork) rules, only set if Shangai is present/active on the chain.
328
+ *
329
+ * Only available in DetailLevel: EXTENDED
330
+ *
331
+ * @generated from field: bytes withdrawals_root = 19;
332
+ */
333
+ withdrawalsRoot: Uint8Array;
334
+ /**
335
+ * TxDependency is list of transaction indexes that are dependent on each other in the block
336
+ * header. This is metadata only that was used by the internal Polygon parallel execution engine.
337
+ *
338
+ * This field was available in a few versions on Polygon Mainnet and Polygon Mumbai chains. It was actually
339
+ * removed and is not populated anymore. It's now embeded in the `extraData` field, refer to Polygon source
340
+ * code to determine how to extract it if you need it.
341
+ *
342
+ * Only available in DetailLevel: EXTENDED
343
+ *
344
+ * @generated from field: sf.ethereum.type.v2.Uint64NestedArray tx_dependency = 20;
345
+ */
346
+ txDependency?: Uint64NestedArray;
347
+ /**
348
+ * BlobGasUsed was added by EIP-4844 and is ignored in legacy headers.
349
+ *
350
+ * @generated from field: optional uint64 blob_gas_used = 22;
351
+ */
352
+ blobGasUsed?: bigint;
353
+ /**
354
+ * ExcessBlobGas was added by EIP-4844 and is ignored in legacy headers.
355
+ *
356
+ * @generated from field: optional uint64 excess_blob_gas = 23;
357
+ */
358
+ excessBlobGas?: bigint;
359
+ /**
360
+ * ParentBeaconRoot was added by EIP-4788 and is ignored in legacy headers.
361
+ *
362
+ * @generated from field: bytes parent_beacon_root = 24;
363
+ */
364
+ parentBeaconRoot: Uint8Array;
365
+ /**
366
+ * RequestsHash was added by EIP-7685 and is ignored in legacy headers.
367
+ *
368
+ * @generated from field: bytes requests_hash = 25;
369
+ */
370
+ requestsHash: Uint8Array;
371
+ };
372
+ /**
373
+ * Describes the message sf.ethereum.type.v2.BlockHeader.
374
+ * Use `create(BlockHeaderSchema)` to create a new message.
375
+ */
376
+ export declare const BlockHeaderSchema: GenMessage<BlockHeader>;
377
+ /**
378
+ * @generated from message sf.ethereum.type.v2.Uint64NestedArray
379
+ */
380
+ export type Uint64NestedArray = Message<"sf.ethereum.type.v2.Uint64NestedArray"> & {
381
+ /**
382
+ * @generated from field: repeated sf.ethereum.type.v2.Uint64Array val = 1;
383
+ */
384
+ val: Uint64Array[];
385
+ };
386
+ /**
387
+ * Describes the message sf.ethereum.type.v2.Uint64NestedArray.
388
+ * Use `create(Uint64NestedArraySchema)` to create a new message.
389
+ */
390
+ export declare const Uint64NestedArraySchema: GenMessage<Uint64NestedArray>;
391
+ /**
392
+ * @generated from message sf.ethereum.type.v2.Uint64Array
393
+ */
394
+ export type Uint64Array = Message<"sf.ethereum.type.v2.Uint64Array"> & {
395
+ /**
396
+ * @generated from field: repeated uint64 val = 1;
397
+ */
398
+ val: bigint[];
399
+ };
400
+ /**
401
+ * Describes the message sf.ethereum.type.v2.Uint64Array.
402
+ * Use `create(Uint64ArraySchema)` to create a new message.
403
+ */
404
+ export declare const Uint64ArraySchema: GenMessage<Uint64Array>;
405
+ /**
406
+ * @generated from message sf.ethereum.type.v2.BigInt
407
+ */
408
+ export type BigInt = Message<"sf.ethereum.type.v2.BigInt"> & {
409
+ /**
410
+ * @generated from field: bytes bytes = 1;
411
+ */
412
+ bytes: Uint8Array;
413
+ };
414
+ /**
415
+ * Describes the message sf.ethereum.type.v2.BigInt.
416
+ * Use `create(BigIntSchema)` to create a new message.
417
+ */
418
+ export declare const BigIntSchema: GenMessage<BigInt>;
419
+ /**
420
+ * TransactionTrace is full trace of execution of the transaction when the
421
+ * it actually executed on chain.
422
+ *
423
+ * It contains all the transaction details like `from`, `to`, `gas`, etc.
424
+ * as well as all the internal calls that were made during the transaction.
425
+ *
426
+ * The `calls` vector contains Call objects which have balance changes, events
427
+ * storage changes, etc.
428
+ *
429
+ * If ordering is important between elements, almost each message like `Log`,
430
+ * `Call`, `StorageChange`, etc. have an ordinal field that is represents "execution"
431
+ * order of the said element against all other elements in this block.
432
+ *
433
+ * Due to how the call tree works doing "naively", looping through all calls then
434
+ * through a Call's element like `logs` while not yielding the elements in the order
435
+ * they were executed on chain. A log in call could have been done before or after
436
+ * another in another call depending on the actual call tree.
437
+ *
438
+ * The `calls` are ordered by creation order and the call tree can be re-computing
439
+ * using fields found in `Call` object (parent/child relationship).
440
+ *
441
+ * Another important thing to note is that even if a transaction succeed, some calls
442
+ * within it could have been reverted internally, if this is important to you, you must
443
+ * check the field `state_reverted` on the `Call` to determine if it was fully committed
444
+ * to the chain or not.
445
+ *
446
+ * @generated from message sf.ethereum.type.v2.TransactionTrace
447
+ */
448
+ export type TransactionTrace = Message<"sf.ethereum.type.v2.TransactionTrace"> & {
449
+ /**
450
+ * consensus
451
+ *
452
+ * @generated from field: bytes to = 1;
453
+ */
454
+ to: Uint8Array;
455
+ /**
456
+ * @generated from field: uint64 nonce = 2;
457
+ */
458
+ nonce: bigint;
459
+ /**
460
+ * GasPrice represents the effective price that has been paid for each gas unit of this transaction. Over time, the
461
+ * Ethereum rules changes regarding GasPrice field here. Before London fork, the GasPrice was always set to the
462
+ * fixed gas price. After London fork, this value has different meaning depending on the transaction type (see `Type` field).
463
+ *
464
+ * In cases where `TransactionTrace.Type == TRX_TYPE_LEGACY || TRX_TYPE_ACCESS_LIST`, then GasPrice has the same meaning
465
+ * as before the London fork.
466
+ *
467
+ * In cases where `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE`, then GasPrice is the effective gas price paid
468
+ * for the transaction which is equals to `BlockHeader.BaseFeePerGas + TransactionTrace.`
469
+ *
470
+ * @generated from field: sf.ethereum.type.v2.BigInt gas_price = 3;
471
+ */
472
+ gasPrice?: BigInt;
473
+ /**
474
+ * GasLimit is the maximum of gas unit the sender of the transaction is willing to consume when perform the EVM
475
+ * execution of the whole transaction
476
+ *
477
+ * @generated from field: uint64 gas_limit = 4;
478
+ */
479
+ gasLimit: bigint;
480
+ /**
481
+ * Value is the amount of Ether transferred as part of this transaction.
482
+ *
483
+ * @generated from field: sf.ethereum.type.v2.BigInt value = 5;
484
+ */
485
+ value?: BigInt;
486
+ /**
487
+ * Input data the transaction will receive for execution of EVM.
488
+ *
489
+ * @generated from field: bytes input = 6;
490
+ */
491
+ input: Uint8Array;
492
+ /**
493
+ * V is the recovery ID value for the signature Y point.
494
+ *
495
+ * @generated from field: bytes v = 7;
496
+ */
497
+ v: Uint8Array;
498
+ /**
499
+ * R is the signature's X point on the elliptic curve (32 bytes).
500
+ *
501
+ * @generated from field: bytes r = 8;
502
+ */
503
+ r: Uint8Array;
504
+ /**
505
+ * S is the signature's Y point on the elliptic curve (32 bytes).
506
+ *
507
+ * @generated from field: bytes s = 9;
508
+ */
509
+ s: Uint8Array;
510
+ /**
511
+ * GasUsed is the total amount of gas unit used for the whole execution of the transaction.
512
+ *
513
+ * @generated from field: uint64 gas_used = 10;
514
+ */
515
+ gasUsed: bigint;
516
+ /**
517
+ * Type represents the Ethereum transaction type, available only since EIP-2718 & EIP-2930 activation which happened on Berlin fork.
518
+ * The value is always set even for transaction before Berlin fork because those before the fork are still legacy transactions.
519
+ *
520
+ * @generated from field: sf.ethereum.type.v2.TransactionTrace.Type type = 12;
521
+ */
522
+ type: TransactionTrace_Type;
523
+ /**
524
+ * AcccessList represents the storage access this transaction has agreed to do in which case those storage
525
+ * access cost less gas unit per access.
526
+ *
527
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_ACCESS_LIST || TRX_TYPE_DYNAMIC_FEE` which
528
+ * is possible only if Berlin (TRX_TYPE_ACCESS_LIST) nor London (TRX_TYPE_DYNAMIC_FEE) fork are active on the chain.
529
+ *
530
+ * @generated from field: repeated sf.ethereum.type.v2.AccessTuple access_list = 14;
531
+ */
532
+ accessList: AccessTuple[];
533
+ /**
534
+ * MaxFeePerGas is the maximum fee per gas the user is willing to pay for the transaction gas used.
535
+ *
536
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE` which is possible only
537
+ * if Londong fork is active on the chain.
538
+ *
539
+ * Only available in DetailLevel: EXTENDED
540
+ *
541
+ * @generated from field: sf.ethereum.type.v2.BigInt max_fee_per_gas = 11;
542
+ */
543
+ maxFeePerGas?: BigInt;
544
+ /**
545
+ * MaxPriorityFeePerGas is priority fee per gas the user to pay in extra to the miner on top of the block's
546
+ * base fee.
547
+ *
548
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE` which is possible only
549
+ * if London fork is active on the chain.
550
+ *
551
+ * Only available in DetailLevel: EXTENDED
552
+ *
553
+ * @generated from field: sf.ethereum.type.v2.BigInt max_priority_fee_per_gas = 13;
554
+ */
555
+ maxPriorityFeePerGas?: BigInt;
556
+ /**
557
+ * meta
558
+ *
559
+ * @generated from field: uint32 index = 20;
560
+ */
561
+ index: number;
562
+ /**
563
+ * @generated from field: bytes hash = 21;
564
+ */
565
+ hash: Uint8Array;
566
+ /**
567
+ * @generated from field: bytes from = 22;
568
+ */
569
+ from: Uint8Array;
570
+ /**
571
+ * Only available in DetailLevel: EXTENDED
572
+ *
573
+ * @generated from field: bytes return_data = 23;
574
+ */
575
+ returnData: Uint8Array;
576
+ /**
577
+ * Only available in DetailLevel: EXTENDED
578
+ *
579
+ * @generated from field: bytes public_key = 24;
580
+ */
581
+ publicKey: Uint8Array;
582
+ /**
583
+ * The block's global ordinal when the transaction started executing, refer to
584
+ * [Block] documentation for further information about ordinals and total ordering.
585
+ *
586
+ * @generated from field: uint64 begin_ordinal = 25;
587
+ */
588
+ beginOrdinal: bigint;
589
+ /**
590
+ * The block's global ordinal when the transaction finished executing, refer to
591
+ * [Block] documentation for further information about ordinals and total ordering.
592
+ *
593
+ * @generated from field: uint64 end_ordinal = 26;
594
+ */
595
+ endOrdinal: bigint;
596
+ /**
597
+ * TransactionTraceStatus is the status of the transaction execution and will let you know if the transaction
598
+ * was successful or not.
599
+ *
600
+ * ## Explanation relevant only for blocks with `DetailLevel: EXTENDED`
601
+ *
602
+ * A successful transaction has been recorded to the blockchain's state for calls in it that were successful.
603
+ * This means it's possible only a subset of the calls were properly recorded, refer to [calls[].state_reverted] field
604
+ * to determine which calls were reverted.
605
+ *
606
+ * A quirks of the Ethereum protocol is that a transaction `FAILED` or `REVERTED` still affects the blockchain's
607
+ * state for **some** of the state changes. Indeed, in those cases, the transactions fees are still paid to the miner
608
+ * which means there is a balance change for the transaction's emitter (e.g. `from`) to pay the gas fees, an optional
609
+ * balance change for gas refunded to the transaction's emitter (e.g. `from`) and a balance change for the miner who
610
+ * received the transaction fees. There is also a nonce change for the transaction's emitter (e.g. `from`).
611
+ *
612
+ * This means that to properly record the state changes for a transaction, you need to conditionally procees the
613
+ * transaction's status.
614
+ *
615
+ * For a `SUCCEEDED` transaction, you iterate over the `calls` array and record the state changes for each call for
616
+ * which `state_reverted == false` (if a transaction succeeded, the call at #0 will always `state_reverted == false`
617
+ * because it aligns with the transaction).
618
+ *
619
+ * For a `FAILED` or `REVERTED` transaction, you iterate over the root call (e.g. at #0, will always exist) for
620
+ * balance changes you process those where `reason` is either `REASON_GAS_BUY`, `REASON_GAS_REFUND` or
621
+ * `REASON_REWARD_TRANSACTION_FEE` and for nonce change, still on the root call, you pick the nonce change which the
622
+ * smallest ordinal (if more than one).
623
+ *
624
+ * @generated from field: sf.ethereum.type.v2.TransactionTraceStatus status = 30;
625
+ */
626
+ status: TransactionTraceStatus;
627
+ /**
628
+ * @generated from field: sf.ethereum.type.v2.TransactionReceipt receipt = 31;
629
+ */
630
+ receipt?: TransactionReceipt;
631
+ /**
632
+ * Only available in DetailLevel: EXTENDED
633
+ *
634
+ * @generated from field: repeated sf.ethereum.type.v2.Call calls = 32;
635
+ */
636
+ calls: Call[];
637
+ /**
638
+ * BlobGas is the amount of gas the transaction is going to pay for the blobs, this is a computed value
639
+ * equivalent to `self.blob_gas_fee_cap * len(self.blob_hashes)` and provided in the model for convenience.
640
+ *
641
+ * This is specified by https://eips.ethereum.org/EIPS/eip-4844
642
+ *
643
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
644
+ * if Cancun fork is active on the chain.
645
+ *
646
+ * @generated from field: optional uint64 blob_gas = 33;
647
+ */
648
+ blobGas?: bigint;
649
+ /**
650
+ * BlobGasFeeCap is the maximum fee per data gas the user is willing to pay for the data gas used.
651
+ *
652
+ * This is specified by https://eips.ethereum.org/EIPS/eip-4844
653
+ *
654
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
655
+ * if Cancun fork is active on the chain.
656
+ *
657
+ * @generated from field: optional sf.ethereum.type.v2.BigInt blob_gas_fee_cap = 34;
658
+ */
659
+ blobGasFeeCap?: BigInt;
660
+ /**
661
+ * BlobHashes field represents a list of hash outputs from 'kzg_to_versioned_hash' which
662
+ * essentially is a version byte + the sha256 hash of the blob commitment (e.g.
663
+ * `BLOB_COMMITMENT_VERSION_KZG + sha256(commitment)[1:]`.
664
+ *
665
+ * This is specified by https://eips.ethereum.org/EIPS/eip-4844
666
+ *
667
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
668
+ * if Cancun fork is active on the chain.
669
+ *
670
+ * @generated from field: repeated bytes blob_hashes = 35;
671
+ */
672
+ blobHashes: Uint8Array[];
673
+ };
674
+ /**
675
+ * Describes the message sf.ethereum.type.v2.TransactionTrace.
676
+ * Use `create(TransactionTraceSchema)` to create a new message.
677
+ */
678
+ export declare const TransactionTraceSchema: GenMessage<TransactionTrace>;
679
+ /**
680
+ * @generated from enum sf.ethereum.type.v2.TransactionTrace.Type
681
+ */
682
+ export declare enum TransactionTrace_Type {
683
+ /**
684
+ * All transactions that ever existed prior Berlin fork before EIP-2718 was implemented.
685
+ *
686
+ * @generated from enum value: TRX_TYPE_LEGACY = 0;
687
+ */
688
+ TRX_TYPE_LEGACY = 0,
689
+ /**
690
+ * Transaction that specicy an access list of contract/storage_keys that is going to be used
691
+ * in this transaction.
692
+ *
693
+ * Added in Berlin fork (EIP-2930).
694
+ *
695
+ * @generated from enum value: TRX_TYPE_ACCESS_LIST = 1;
696
+ */
697
+ TRX_TYPE_ACCESS_LIST = 1,
698
+ /**
699
+ * Transaction that specifis an access list just like TRX_TYPE_ACCESS_LIST but in addition defines the
700
+ * max base gas gee and max priority gas fee to pay for this transaction. Transaction's of those type are
701
+ * executed against EIP-1559 rules which dictates a dynamic gas cost based on the congestion of the network.
702
+ *
703
+ * @generated from enum value: TRX_TYPE_DYNAMIC_FEE = 2;
704
+ */
705
+ TRX_TYPE_DYNAMIC_FEE = 2,
706
+ /**
707
+ * Transaction which contain a large amount of data that cannot be accessed by EVM execution, but whose commitment
708
+ * can be accessed. The format is intended to be fully compatible with the format that will be used in full sharding.
709
+ *
710
+ * Transaction that defines specifis an access list just like TRX_TYPE_ACCESS_LIST and enables dynamic fee just like
711
+ * TRX_TYPE_DYNAMIC_FEE but in addition defines the fields 'max_fee_per_data_gas' of type 'uint256' and the fields
712
+ * 'blob_versioned_hashes' field represents a list of hash outputs from 'kzg_to_versioned_hash'.
713
+ *
714
+ * Activated in Dencun
715
+ *
716
+ * @generated from enum value: TRX_TYPE_BLOB = 3;
717
+ */
718
+ TRX_TYPE_BLOB = 3,
719
+ /**
720
+ * Arbitrum-specific transactions
721
+ *
722
+ * @generated from enum value: TRX_TYPE_ARBITRUM_DEPOSIT = 100;
723
+ */
724
+ TRX_TYPE_ARBITRUM_DEPOSIT = 100,
725
+ /**
726
+ * @generated from enum value: TRX_TYPE_ARBITRUM_UNSIGNED = 101;
727
+ */
728
+ TRX_TYPE_ARBITRUM_UNSIGNED = 101,
729
+ /**
730
+ * @generated from enum value: TRX_TYPE_ARBITRUM_CONTRACT = 102;
731
+ */
732
+ TRX_TYPE_ARBITRUM_CONTRACT = 102,
733
+ /**
734
+ * @generated from enum value: TRX_TYPE_ARBITRUM_RETRY = 104;
735
+ */
736
+ TRX_TYPE_ARBITRUM_RETRY = 104,
737
+ /**
738
+ * @generated from enum value: TRX_TYPE_ARBITRUM_SUBMIT_RETRYABLE = 105;
739
+ */
740
+ TRX_TYPE_ARBITRUM_SUBMIT_RETRYABLE = 105,
741
+ /**
742
+ * @generated from enum value: TRX_TYPE_ARBITRUM_INTERNAL = 106;
743
+ */
744
+ TRX_TYPE_ARBITRUM_INTERNAL = 106,
745
+ /**
746
+ * @generated from enum value: TRX_TYPE_ARBITRUM_LEGACY = 120;
747
+ */
748
+ TRX_TYPE_ARBITRUM_LEGACY = 120,
749
+ /**
750
+ * OPTIMISM-specific transactions
751
+ *
752
+ * @generated from enum value: TRX_TYPE_OPTIMISM_DEPOSIT = 126;
753
+ */
754
+ TRX_TYPE_OPTIMISM_DEPOSIT = 126
755
+ }
756
+ /**
757
+ * Describes the enum sf.ethereum.type.v2.TransactionTrace.Type.
758
+ */
759
+ export declare const TransactionTrace_TypeSchema: GenEnum<TransactionTrace_Type>;
760
+ /**
761
+ * AccessTuple represents a list of storage keys for a given contract's address and is used
762
+ * for AccessList construction.
763
+ *
764
+ * @generated from message sf.ethereum.type.v2.AccessTuple
765
+ */
766
+ export type AccessTuple = Message<"sf.ethereum.type.v2.AccessTuple"> & {
767
+ /**
768
+ * @generated from field: bytes address = 1;
769
+ */
770
+ address: Uint8Array;
771
+ /**
772
+ * @generated from field: repeated bytes storage_keys = 2;
773
+ */
774
+ storageKeys: Uint8Array[];
775
+ };
776
+ /**
777
+ * Describes the message sf.ethereum.type.v2.AccessTuple.
778
+ * Use `create(AccessTupleSchema)` to create a new message.
779
+ */
780
+ export declare const AccessTupleSchema: GenMessage<AccessTuple>;
781
+ /**
782
+ * @generated from message sf.ethereum.type.v2.TransactionReceipt
783
+ */
784
+ export type TransactionReceipt = Message<"sf.ethereum.type.v2.TransactionReceipt"> & {
785
+ /**
786
+ * State root is an intermediate state_root hash, computed in-between transactions to make
787
+ * **sure** you could build a proof and point to state in the middle of a block. Geth client
788
+ * uses `PostState + root + PostStateOrStatus`` while Parity used `status_code, root...`` this piles
789
+ * hardforks, see (read the EIPs first):
790
+ * - https://github.com/ethereum/EIPs/blob/master/EIPS/eip-658.md
791
+ *
792
+ * Moreover, the notion of `Outcome`` in parity, which segregates the two concepts, which are
793
+ * stored in the same field `status_code`` can be computed based on such a hack of the `state_root`
794
+ * field, following `EIP-658`.
795
+ *
796
+ * Before Byzantinium hard fork, this field is always empty.
797
+ *
798
+ * @generated from field: bytes state_root = 1;
799
+ */
800
+ stateRoot: Uint8Array;
801
+ /**
802
+ * @generated from field: uint64 cumulative_gas_used = 2;
803
+ */
804
+ cumulativeGasUsed: bigint;
805
+ /**
806
+ * @generated from field: bytes logs_bloom = 3;
807
+ */
808
+ logsBloom: Uint8Array;
809
+ /**
810
+ * @generated from field: repeated sf.ethereum.type.v2.Log logs = 4;
811
+ */
812
+ logs: Log[];
813
+ /**
814
+ * BlobGasUsed is the amount of blob gas that has been used within this transaction. At time
815
+ * of writing, this is equal to `self.blob_gas_fee_cap * len(self.blob_hashes)`.
816
+ *
817
+ * This is specified by https://eips.ethereum.org/EIPS/eip-4844
818
+ *
819
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
820
+ * if Cancun fork is active on the chain.
821
+ *
822
+ * @generated from field: optional uint64 blob_gas_used = 5;
823
+ */
824
+ blobGasUsed?: bigint;
825
+ /**
826
+ * BlobGasPrice is the amount to pay per blob item in the transaction.
827
+ *
828
+ * This is specified by https://eips.ethereum.org/EIPS/eip-4844
829
+ *
830
+ * This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
831
+ * if Cancun fork is active on the chain.
832
+ *
833
+ * @generated from field: optional sf.ethereum.type.v2.BigInt blob_gas_price = 6;
834
+ */
835
+ blobGasPrice?: BigInt;
836
+ };
837
+ /**
838
+ * Describes the message sf.ethereum.type.v2.TransactionReceipt.
839
+ * Use `create(TransactionReceiptSchema)` to create a new message.
840
+ */
841
+ export declare const TransactionReceiptSchema: GenMessage<TransactionReceipt>;
842
+ /**
843
+ * @generated from message sf.ethereum.type.v2.Log
844
+ */
845
+ export type Log = Message<"sf.ethereum.type.v2.Log"> & {
846
+ /**
847
+ * @generated from field: bytes address = 1;
848
+ */
849
+ address: Uint8Array;
850
+ /**
851
+ * @generated from field: repeated bytes topics = 2;
852
+ */
853
+ topics: Uint8Array[];
854
+ /**
855
+ * @generated from field: bytes data = 3;
856
+ */
857
+ data: Uint8Array;
858
+ /**
859
+ * Index is the index of the log relative to the transaction. This index
860
+ * is always populated regardless of the state revertion of the the call
861
+ * that emitted this log.
862
+ *
863
+ * Only available in DetailLevel: EXTENDED
864
+ *
865
+ * @generated from field: uint32 index = 4;
866
+ */
867
+ index: number;
868
+ /**
869
+ * BlockIndex represents the index of the log relative to the Block.
870
+ *
871
+ * An **important** notice is that this field will be 0 when the call
872
+ * that emitted the log has been reverted by the chain.
873
+ *
874
+ * Currently, there is two locations where a Log can be obtained:
875
+ * - block.transaction_traces[].receipt.logs[]
876
+ * - block.transaction_traces[].calls[].logs[]
877
+ *
878
+ * In the `receipt` case, the logs will be populated only when the call
879
+ * that emitted them has not been reverted by the chain and when in this
880
+ * position, the `blockIndex` is always populated correctly.
881
+ *
882
+ * In the case of `calls` case, for `call` where `stateReverted == true`,
883
+ * the `blockIndex` value will always be 0.
884
+ *
885
+ * @generated from field: uint32 blockIndex = 6;
886
+ */
887
+ blockIndex: number;
888
+ /**
889
+ * The block's global ordinal when the log was recorded, refer to [Block]
890
+ * documentation for further information about ordinals and total ordering.
891
+ *
892
+ * @generated from field: uint64 ordinal = 7;
893
+ */
894
+ ordinal: bigint;
895
+ };
896
+ /**
897
+ * Describes the message sf.ethereum.type.v2.Log.
898
+ * Use `create(LogSchema)` to create a new message.
899
+ */
900
+ export declare const LogSchema: GenMessage<Log>;
901
+ /**
902
+ * @generated from message sf.ethereum.type.v2.Call
903
+ */
904
+ export type Call = Message<"sf.ethereum.type.v2.Call"> & {
905
+ /**
906
+ * @generated from field: uint32 index = 1;
907
+ */
908
+ index: number;
909
+ /**
910
+ * @generated from field: uint32 parent_index = 2;
911
+ */
912
+ parentIndex: number;
913
+ /**
914
+ * @generated from field: uint32 depth = 3;
915
+ */
916
+ depth: number;
917
+ /**
918
+ * @generated from field: sf.ethereum.type.v2.CallType call_type = 4;
919
+ */
920
+ callType: CallType;
921
+ /**
922
+ * @generated from field: bytes caller = 5;
923
+ */
924
+ caller: Uint8Array;
925
+ /**
926
+ * @generated from field: bytes address = 6;
927
+ */
928
+ address: Uint8Array;
929
+ /**
930
+ * @generated from field: sf.ethereum.type.v2.BigInt value = 7;
931
+ */
932
+ value?: BigInt;
933
+ /**
934
+ * @generated from field: uint64 gas_limit = 8;
935
+ */
936
+ gasLimit: bigint;
937
+ /**
938
+ * @generated from field: uint64 gas_consumed = 9;
939
+ */
940
+ gasConsumed: bigint;
941
+ /**
942
+ * @generated from field: bytes return_data = 13;
943
+ */
944
+ returnData: Uint8Array;
945
+ /**
946
+ * @generated from field: bytes input = 14;
947
+ */
948
+ input: Uint8Array;
949
+ /**
950
+ * @generated from field: bool executed_code = 15;
951
+ */
952
+ executedCode: boolean;
953
+ /**
954
+ * @generated from field: bool suicide = 16;
955
+ */
956
+ suicide: boolean;
957
+ /**
958
+ * hex representation of the hash -> preimage
959
+ *
960
+ * @generated from field: map<string, string> keccak_preimages = 20;
961
+ */
962
+ keccakPreimages: {
963
+ [key: string]: string;
964
+ };
965
+ /**
966
+ * @generated from field: repeated sf.ethereum.type.v2.StorageChange storage_changes = 21;
967
+ */
968
+ storageChanges: StorageChange[];
969
+ /**
970
+ * @generated from field: repeated sf.ethereum.type.v2.BalanceChange balance_changes = 22;
971
+ */
972
+ balanceChanges: BalanceChange[];
973
+ /**
974
+ * @generated from field: repeated sf.ethereum.type.v2.NonceChange nonce_changes = 24;
975
+ */
976
+ nonceChanges: NonceChange[];
977
+ /**
978
+ * @generated from field: repeated sf.ethereum.type.v2.Log logs = 25;
979
+ */
980
+ logs: Log[];
981
+ /**
982
+ * @generated from field: repeated sf.ethereum.type.v2.CodeChange code_changes = 26;
983
+ */
984
+ codeChanges: CodeChange[];
985
+ /**
986
+ * @generated from field: repeated sf.ethereum.type.v2.GasChange gas_changes = 28;
987
+ */
988
+ gasChanges: GasChange[];
989
+ /**
990
+ * In Ethereum, a call can be either:
991
+ * - Successfull, execution passes without any problem encountered
992
+ * - Failed, execution failed, and remaining gas should be consumed
993
+ * - Reverted, execution failed, but only gas consumed so far is billed, remaining gas is refunded
994
+ *
995
+ * When a call is either `failed` or `reverted`, the `status_failed` field
996
+ * below is set to `true`. If the status is `reverted`, then both `status_failed`
997
+ * and `status_reverted` are going to be set to `true`.
998
+ *
999
+ * @generated from field: bool status_failed = 10;
1000
+ */
1001
+ statusFailed: boolean;
1002
+ /**
1003
+ * @generated from field: bool status_reverted = 12;
1004
+ */
1005
+ statusReverted: boolean;
1006
+ /**
1007
+ * Populated when a call either failed or reverted, so when `status_failed == true`,
1008
+ * see above for details about those flags.
1009
+ *
1010
+ * @generated from field: string failure_reason = 11;
1011
+ */
1012
+ failureReason: string;
1013
+ /**
1014
+ * This field represents wheter or not the state changes performed
1015
+ * by this call were correctly recorded by the blockchain.
1016
+ *
1017
+ * On Ethereum, a transaction can record state changes even if some
1018
+ * of its inner nested calls failed. This is problematic however since
1019
+ * a call will invalidate all its state changes as well as all state
1020
+ * changes performed by its child call. This means that even if a call
1021
+ * has a status of `SUCCESS`, the chain might have reverted all the state
1022
+ * changes it performed.
1023
+ *
1024
+ * ```text
1025
+ * Trx 1
1026
+ * Call #1 <Failed>
1027
+ * Call #2 <Execution Success>
1028
+ * Call #3 <Execution Success>
1029
+ * |--- Failure here
1030
+ * Call #4
1031
+ * ```
1032
+ *
1033
+ * In the transaction above, while Call #2 and Call #3 would have the
1034
+ * status `EXECUTED`.
1035
+ *
1036
+ * If you check all calls and check only `state_reverted` flag, you might be missing
1037
+ * some balance changes and nonce changes. This is because when a full transaction fails
1038
+ * in ethereum (e.g. `calls.all(x.state_reverted == true)`), there is still the transaction
1039
+ * fee that are recorded to the chain.
1040
+ *
1041
+ * Refer to [TransactionTrace#status] field for more details about the handling you must
1042
+ * perform.
1043
+ *
1044
+ * @generated from field: bool state_reverted = 30;
1045
+ */
1046
+ stateReverted: boolean;
1047
+ /**
1048
+ * The block's global ordinal when the call started executing, refer to
1049
+ * [Block] documentation for further information about ordinals and total ordering.
1050
+ *
1051
+ * @generated from field: uint64 begin_ordinal = 31;
1052
+ */
1053
+ beginOrdinal: bigint;
1054
+ /**
1055
+ * The block's global ordinal when the call finished executing, refer to
1056
+ * [Block] documentation for further information about ordinals and total ordering.
1057
+ *
1058
+ * @generated from field: uint64 end_ordinal = 32;
1059
+ */
1060
+ endOrdinal: bigint;
1061
+ /**
1062
+ * @generated from field: repeated sf.ethereum.type.v2.AccountCreation account_creations = 33;
1063
+ */
1064
+ accountCreations: AccountCreation[];
1065
+ };
1066
+ /**
1067
+ * Describes the message sf.ethereum.type.v2.Call.
1068
+ * Use `create(CallSchema)` to create a new message.
1069
+ */
1070
+ export declare const CallSchema: GenMessage<Call>;
1071
+ /**
1072
+ * @generated from message sf.ethereum.type.v2.StorageChange
1073
+ */
1074
+ export type StorageChange = Message<"sf.ethereum.type.v2.StorageChange"> & {
1075
+ /**
1076
+ * @generated from field: bytes address = 1;
1077
+ */
1078
+ address: Uint8Array;
1079
+ /**
1080
+ * @generated from field: bytes key = 2;
1081
+ */
1082
+ key: Uint8Array;
1083
+ /**
1084
+ * @generated from field: bytes old_value = 3;
1085
+ */
1086
+ oldValue: Uint8Array;
1087
+ /**
1088
+ * @generated from field: bytes new_value = 4;
1089
+ */
1090
+ newValue: Uint8Array;
1091
+ /**
1092
+ * The block's global ordinal when the storage change was recorded, refer to [Block]
1093
+ * documentation for further information about ordinals and total ordering.
1094
+ *
1095
+ * @generated from field: uint64 ordinal = 5;
1096
+ */
1097
+ ordinal: bigint;
1098
+ };
1099
+ /**
1100
+ * Describes the message sf.ethereum.type.v2.StorageChange.
1101
+ * Use `create(StorageChangeSchema)` to create a new message.
1102
+ */
1103
+ export declare const StorageChangeSchema: GenMessage<StorageChange>;
1104
+ /**
1105
+ * @generated from message sf.ethereum.type.v2.BalanceChange
1106
+ */
1107
+ export type BalanceChange = Message<"sf.ethereum.type.v2.BalanceChange"> & {
1108
+ /**
1109
+ * Address is the address of the account that has changed balance.
1110
+ *
1111
+ * @generated from field: bytes address = 1;
1112
+ */
1113
+ address: Uint8Array;
1114
+ /**
1115
+ * OldValue is the balance of the address before the change. This value
1116
+ * can be **nil/null/None** if there was no previous balance for the address.
1117
+ * It is safe in those case(s) to consider the balance as being 0.
1118
+ *
1119
+ * If you consume this from a Substreams, you can safely use:
1120
+ *
1121
+ * ```ignore
1122
+ * let old_value = old_value.unwrap_or_default();
1123
+ * ```
1124
+ *
1125
+ * @generated from field: sf.ethereum.type.v2.BigInt old_value = 2;
1126
+ */
1127
+ oldValue?: BigInt;
1128
+ /**
1129
+ * NewValue is the balance of the address after the change. This value
1130
+ * can be **nil/null/None** if there was no previous balance for the address
1131
+ * after the change. It is safe in those case(s) to consider the balance as being
1132
+ * 0.
1133
+ *
1134
+ * If you consume this from a Substreams, you can safely use:
1135
+ *
1136
+ * ```ignore
1137
+ * let new_value = new_value.unwrap_or_default();
1138
+ * ```
1139
+ *
1140
+ * @generated from field: sf.ethereum.type.v2.BigInt new_value = 3;
1141
+ */
1142
+ newValue?: BigInt;
1143
+ /**
1144
+ * Reason is the reason why the balance has changed. This is useful to determine
1145
+ * why the balance has changed and what is the context of the change.
1146
+ *
1147
+ * @generated from field: sf.ethereum.type.v2.BalanceChange.Reason reason = 4;
1148
+ */
1149
+ reason: BalanceChange_Reason;
1150
+ /**
1151
+ * The block's global ordinal when the balance change was recorded, refer to [Block]
1152
+ * documentation for further information about ordinals and total ordering.
1153
+ *
1154
+ * @generated from field: uint64 ordinal = 5;
1155
+ */
1156
+ ordinal: bigint;
1157
+ };
1158
+ /**
1159
+ * Describes the message sf.ethereum.type.v2.BalanceChange.
1160
+ * Use `create(BalanceChangeSchema)` to create a new message.
1161
+ */
1162
+ export declare const BalanceChangeSchema: GenMessage<BalanceChange>;
1163
+ /**
1164
+ * Obtain all balanche change reasons under deep mind repository:
1165
+ *
1166
+ * ```shell
1167
+ * ack -ho 'BalanceChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq
1168
+ * ```
1169
+ *
1170
+ * @generated from enum sf.ethereum.type.v2.BalanceChange.Reason
1171
+ */
1172
+ export declare enum BalanceChange_Reason {
1173
+ /**
1174
+ * @generated from enum value: REASON_UNKNOWN = 0;
1175
+ */
1176
+ UNKNOWN = 0,
1177
+ /**
1178
+ * @generated from enum value: REASON_REWARD_MINE_UNCLE = 1;
1179
+ */
1180
+ REWARD_MINE_UNCLE = 1,
1181
+ /**
1182
+ * @generated from enum value: REASON_REWARD_MINE_BLOCK = 2;
1183
+ */
1184
+ REWARD_MINE_BLOCK = 2,
1185
+ /**
1186
+ * @generated from enum value: REASON_DAO_REFUND_CONTRACT = 3;
1187
+ */
1188
+ DAO_REFUND_CONTRACT = 3,
1189
+ /**
1190
+ * @generated from enum value: REASON_DAO_ADJUST_BALANCE = 4;
1191
+ */
1192
+ DAO_ADJUST_BALANCE = 4,
1193
+ /**
1194
+ * @generated from enum value: REASON_TRANSFER = 5;
1195
+ */
1196
+ TRANSFER = 5,
1197
+ /**
1198
+ * @generated from enum value: REASON_GENESIS_BALANCE = 6;
1199
+ */
1200
+ GENESIS_BALANCE = 6,
1201
+ /**
1202
+ * @generated from enum value: REASON_GAS_BUY = 7;
1203
+ */
1204
+ GAS_BUY = 7,
1205
+ /**
1206
+ * @generated from enum value: REASON_REWARD_TRANSACTION_FEE = 8;
1207
+ */
1208
+ REWARD_TRANSACTION_FEE = 8,
1209
+ /**
1210
+ * @generated from enum value: REASON_REWARD_FEE_RESET = 14;
1211
+ */
1212
+ REWARD_FEE_RESET = 14,
1213
+ /**
1214
+ * @generated from enum value: REASON_GAS_REFUND = 9;
1215
+ */
1216
+ GAS_REFUND = 9,
1217
+ /**
1218
+ * @generated from enum value: REASON_TOUCH_ACCOUNT = 10;
1219
+ */
1220
+ TOUCH_ACCOUNT = 10,
1221
+ /**
1222
+ * @generated from enum value: REASON_SUICIDE_REFUND = 11;
1223
+ */
1224
+ SUICIDE_REFUND = 11,
1225
+ /**
1226
+ * @generated from enum value: REASON_SUICIDE_WITHDRAW = 13;
1227
+ */
1228
+ SUICIDE_WITHDRAW = 13,
1229
+ /**
1230
+ * @generated from enum value: REASON_CALL_BALANCE_OVERRIDE = 12;
1231
+ */
1232
+ CALL_BALANCE_OVERRIDE = 12,
1233
+ /**
1234
+ * Used on chain(s) where some Ether burning happens
1235
+ *
1236
+ * @generated from enum value: REASON_BURN = 15;
1237
+ */
1238
+ BURN = 15,
1239
+ /**
1240
+ * @generated from enum value: REASON_WITHDRAWAL = 16;
1241
+ */
1242
+ WITHDRAWAL = 16,
1243
+ /**
1244
+ * Rewards for Blob processing on BNB chain added in Tycho hard-fork, refers
1245
+ * to BNB documentation to check the timestamp at which it was activated.
1246
+ *
1247
+ * @generated from enum value: REASON_REWARD_BLOB_FEE = 17;
1248
+ */
1249
+ REWARD_BLOB_FEE = 17,
1250
+ /**
1251
+ * USE on optimism chan
1252
+ *
1253
+ * @generated from enum value: REASON_INCREASE_MINT = 18;
1254
+ */
1255
+ INCREASE_MINT = 18
1256
+ }
1257
+ /**
1258
+ * Describes the enum sf.ethereum.type.v2.BalanceChange.Reason.
1259
+ */
1260
+ export declare const BalanceChange_ReasonSchema: GenEnum<BalanceChange_Reason>;
1261
+ /**
1262
+ * @generated from message sf.ethereum.type.v2.NonceChange
1263
+ */
1264
+ export type NonceChange = Message<"sf.ethereum.type.v2.NonceChange"> & {
1265
+ /**
1266
+ * @generated from field: bytes address = 1;
1267
+ */
1268
+ address: Uint8Array;
1269
+ /**
1270
+ * @generated from field: uint64 old_value = 2;
1271
+ */
1272
+ oldValue: bigint;
1273
+ /**
1274
+ * @generated from field: uint64 new_value = 3;
1275
+ */
1276
+ newValue: bigint;
1277
+ /**
1278
+ * The block's global ordinal when the nonce change was recorded, refer to [Block]
1279
+ * documentation for further information about ordinals and total ordering.
1280
+ *
1281
+ * @generated from field: uint64 ordinal = 4;
1282
+ */
1283
+ ordinal: bigint;
1284
+ };
1285
+ /**
1286
+ * Describes the message sf.ethereum.type.v2.NonceChange.
1287
+ * Use `create(NonceChangeSchema)` to create a new message.
1288
+ */
1289
+ export declare const NonceChangeSchema: GenMessage<NonceChange>;
1290
+ /**
1291
+ * @generated from message sf.ethereum.type.v2.AccountCreation
1292
+ */
1293
+ export type AccountCreation = Message<"sf.ethereum.type.v2.AccountCreation"> & {
1294
+ /**
1295
+ * @generated from field: bytes account = 1;
1296
+ */
1297
+ account: Uint8Array;
1298
+ /**
1299
+ * The block's global ordinal when the account creation was recorded, refer to [Block]
1300
+ * documentation for further information about ordinals and total ordering.
1301
+ *
1302
+ * @generated from field: uint64 ordinal = 2;
1303
+ */
1304
+ ordinal: bigint;
1305
+ };
1306
+ /**
1307
+ * Describes the message sf.ethereum.type.v2.AccountCreation.
1308
+ * Use `create(AccountCreationSchema)` to create a new message.
1309
+ */
1310
+ export declare const AccountCreationSchema: GenMessage<AccountCreation>;
1311
+ /**
1312
+ * @generated from message sf.ethereum.type.v2.CodeChange
1313
+ */
1314
+ export type CodeChange = Message<"sf.ethereum.type.v2.CodeChange"> & {
1315
+ /**
1316
+ * @generated from field: bytes address = 1;
1317
+ */
1318
+ address: Uint8Array;
1319
+ /**
1320
+ * @generated from field: bytes old_hash = 2;
1321
+ */
1322
+ oldHash: Uint8Array;
1323
+ /**
1324
+ * @generated from field: bytes old_code = 3;
1325
+ */
1326
+ oldCode: Uint8Array;
1327
+ /**
1328
+ * @generated from field: bytes new_hash = 4;
1329
+ */
1330
+ newHash: Uint8Array;
1331
+ /**
1332
+ * @generated from field: bytes new_code = 5;
1333
+ */
1334
+ newCode: Uint8Array;
1335
+ /**
1336
+ * The block's global ordinal when the code change was recorded, refer to [Block]
1337
+ * documentation for further information about ordinals and total ordering.
1338
+ *
1339
+ * @generated from field: uint64 ordinal = 6;
1340
+ */
1341
+ ordinal: bigint;
1342
+ };
1343
+ /**
1344
+ * Describes the message sf.ethereum.type.v2.CodeChange.
1345
+ * Use `create(CodeChangeSchema)` to create a new message.
1346
+ */
1347
+ export declare const CodeChangeSchema: GenMessage<CodeChange>;
1348
+ /**
1349
+ * The gas change model represents the reason why some gas cost has occurred.
1350
+ * The gas is computed per actual op codes. Doing them completely might prove
1351
+ * overwhelming in most cases.
1352
+ *
1353
+ * Hence, we only index some of them, those that are costy like all the calls
1354
+ * one, log events, return data, etc.
1355
+ *
1356
+ * @generated from message sf.ethereum.type.v2.GasChange
1357
+ */
1358
+ export type GasChange = Message<"sf.ethereum.type.v2.GasChange"> & {
1359
+ /**
1360
+ * @generated from field: uint64 old_value = 1;
1361
+ */
1362
+ oldValue: bigint;
1363
+ /**
1364
+ * @generated from field: uint64 new_value = 2;
1365
+ */
1366
+ newValue: bigint;
1367
+ /**
1368
+ * @generated from field: sf.ethereum.type.v2.GasChange.Reason reason = 3;
1369
+ */
1370
+ reason: GasChange_Reason;
1371
+ /**
1372
+ * The block's global ordinal when the gas change was recorded, refer to [Block]
1373
+ * documentation for further information about ordinals and total ordering.
1374
+ *
1375
+ * @generated from field: uint64 ordinal = 4;
1376
+ */
1377
+ ordinal: bigint;
1378
+ };
1379
+ /**
1380
+ * Describes the message sf.ethereum.type.v2.GasChange.
1381
+ * Use `create(GasChangeSchema)` to create a new message.
1382
+ */
1383
+ export declare const GasChangeSchema: GenMessage<GasChange>;
1384
+ /**
1385
+ * Obtain all gas change reasons under deep mind repository:
1386
+ *
1387
+ * ```shell
1388
+ * ack -ho 'GasChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq
1389
+ * ```
1390
+ *
1391
+ * @generated from enum sf.ethereum.type.v2.GasChange.Reason
1392
+ */
1393
+ export declare enum GasChange_Reason {
1394
+ /**
1395
+ * @generated from enum value: REASON_UNKNOWN = 0;
1396
+ */
1397
+ UNKNOWN = 0,
1398
+ /**
1399
+ * REASON_CALL is the amount of gas that will be charged for a 'CALL' opcode executed by the EVM
1400
+ *
1401
+ * @generated from enum value: REASON_CALL = 1;
1402
+ */
1403
+ CALL = 1,
1404
+ /**
1405
+ * REASON_CALL_CODE is the amount of gas that will be charged for a 'CALLCODE' opcode executed by the EVM
1406
+ *
1407
+ * @generated from enum value: REASON_CALL_CODE = 2;
1408
+ */
1409
+ CALL_CODE = 2,
1410
+ /**
1411
+ * REASON_CALL_DATA_COPY is the amount of gas that will be charged for a 'CALLDATACOPY' opcode executed by the EVM
1412
+ *
1413
+ * @generated from enum value: REASON_CALL_DATA_COPY = 3;
1414
+ */
1415
+ CALL_DATA_COPY = 3,
1416
+ /**
1417
+ * REASON_CODE_COPY is the amount of gas that will be charged for a 'CALLDATACOPY' opcode executed by the EVM
1418
+ *
1419
+ * @generated from enum value: REASON_CODE_COPY = 4;
1420
+ */
1421
+ CODE_COPY = 4,
1422
+ /**
1423
+ * REASON_CODE_STORAGE is the amount of gas that will be charged for code storage
1424
+ *
1425
+ * @generated from enum value: REASON_CODE_STORAGE = 5;
1426
+ */
1427
+ CODE_STORAGE = 5,
1428
+ /**
1429
+ * REASON_CONTRACT_CREATION is the amount of gas that will be charged for a 'CREATE' opcode executed by the EVM and for the gas
1430
+ * burned for a CREATE, today controlled by EIP150 rules
1431
+ *
1432
+ * @generated from enum value: REASON_CONTRACT_CREATION = 6;
1433
+ */
1434
+ CONTRACT_CREATION = 6,
1435
+ /**
1436
+ * REASON_CONTRACT_CREATION2 is the amount of gas that will be charged for a 'CREATE2' opcode executed by the EVM and for the gas
1437
+ * burned for a CREATE2, today controlled by EIP150 rules
1438
+ *
1439
+ * @generated from enum value: REASON_CONTRACT_CREATION2 = 7;
1440
+ */
1441
+ CONTRACT_CREATION2 = 7,
1442
+ /**
1443
+ * REASON_DELEGATE_CALL is the amount of gas that will be charged for a 'DELEGATECALL' opcode executed by the EVM
1444
+ *
1445
+ * @generated from enum value: REASON_DELEGATE_CALL = 8;
1446
+ */
1447
+ DELEGATE_CALL = 8,
1448
+ /**
1449
+ * REASON_EVENT_LOG is the amount of gas that will be charged for a 'LOG<N>' opcode executed by the EVM
1450
+ *
1451
+ * @generated from enum value: REASON_EVENT_LOG = 9;
1452
+ */
1453
+ EVENT_LOG = 9,
1454
+ /**
1455
+ * REASON_EXT_CODE_COPY is the amount of gas that will be charged for a 'LOG<N>' opcode executed by the EVM
1456
+ *
1457
+ * @generated from enum value: REASON_EXT_CODE_COPY = 10;
1458
+ */
1459
+ EXT_CODE_COPY = 10,
1460
+ /**
1461
+ * REASON_FAILED_EXECUTION is the burning of the remaining gas when the execution failed without a revert
1462
+ *
1463
+ * @generated from enum value: REASON_FAILED_EXECUTION = 11;
1464
+ */
1465
+ FAILED_EXECUTION = 11,
1466
+ /**
1467
+ * REASON_INTRINSIC_GAS is the amount of gas that will be charged for the intrinsic cost of the transaction, there is
1468
+ * always exactly one of those per transaction
1469
+ *
1470
+ * @generated from enum value: REASON_INTRINSIC_GAS = 12;
1471
+ */
1472
+ INTRINSIC_GAS = 12,
1473
+ /**
1474
+ * GasChangePrecompiledContract is the amount of gas that will be charged for a precompiled contract execution
1475
+ *
1476
+ * @generated from enum value: REASON_PRECOMPILED_CONTRACT = 13;
1477
+ */
1478
+ PRECOMPILED_CONTRACT = 13,
1479
+ /**
1480
+ * REASON_REFUND_AFTER_EXECUTION is the amount of gas that will be refunded to the caller after the execution of the call,
1481
+ * if there is left over at the end of execution
1482
+ *
1483
+ * @generated from enum value: REASON_REFUND_AFTER_EXECUTION = 14;
1484
+ */
1485
+ REFUND_AFTER_EXECUTION = 14,
1486
+ /**
1487
+ * REASON_RETURN is the amount of gas that will be charged for a 'RETURN' opcode executed by the EVM
1488
+ *
1489
+ * @generated from enum value: REASON_RETURN = 15;
1490
+ */
1491
+ RETURN = 15,
1492
+ /**
1493
+ * REASON_RETURN_DATA_COPY is the amount of gas that will be charged for a 'RETURNDATACOPY' opcode executed by the EVM
1494
+ *
1495
+ * @generated from enum value: REASON_RETURN_DATA_COPY = 16;
1496
+ */
1497
+ RETURN_DATA_COPY = 16,
1498
+ /**
1499
+ * REASON_REVERT is the amount of gas that will be charged for a 'REVERT' opcode executed by the EVM
1500
+ *
1501
+ * @generated from enum value: REASON_REVERT = 17;
1502
+ */
1503
+ REVERT = 17,
1504
+ /**
1505
+ * REASON_SELF_DESTRUCT is the amount of gas that will be charged for a 'SELFDESTRUCT' opcode executed by the EVM
1506
+ *
1507
+ * @generated from enum value: REASON_SELF_DESTRUCT = 18;
1508
+ */
1509
+ SELF_DESTRUCT = 18,
1510
+ /**
1511
+ * REASON_STATIC_CALL is the amount of gas that will be charged for a 'STATICALL' opcode executed by the EVM
1512
+ *
1513
+ * @generated from enum value: REASON_STATIC_CALL = 19;
1514
+ */
1515
+ STATIC_CALL = 19,
1516
+ /**
1517
+ * REASON_STATE_COLD_ACCESS is the amount of gas that will be charged for a cold storage access as controlled by EIP2929 rules
1518
+ *
1519
+ * Added in Berlin fork (Geth 1.10+)
1520
+ *
1521
+ * @generated from enum value: REASON_STATE_COLD_ACCESS = 20;
1522
+ */
1523
+ STATE_COLD_ACCESS = 20,
1524
+ /**
1525
+ * REASON_TX_INITIAL_BALANCE is the initial balance for the call which will be equal to the gasLimit of the call
1526
+ *
1527
+ * Added as new tracing reason in Geth, available only on some chains
1528
+ *
1529
+ * @generated from enum value: REASON_TX_INITIAL_BALANCE = 21;
1530
+ */
1531
+ TX_INITIAL_BALANCE = 21,
1532
+ /**
1533
+ * REASON_TX_REFUNDS is the sum of all refunds which happened during the tx execution (e.g. storage slot being cleared)
1534
+ * this generates an increase in gas. There is only one such gas change per transaction.
1535
+ *
1536
+ * Added as new tracing reason in Geth, available only on some chains
1537
+ *
1538
+ * @generated from enum value: REASON_TX_REFUNDS = 22;
1539
+ */
1540
+ TX_REFUNDS = 22,
1541
+ /**
1542
+ * REASON_TX_LEFT_OVER_RETURNED is the amount of gas left over at the end of transaction's execution that will be returned
1543
+ * to the chain. This change will always be a negative change as we "drain" left over gas towards 0. If there was no gas
1544
+ * left at the end of execution, no such even will be emitted. The returned gas's value in Wei is returned to caller.
1545
+ * There is at most one of such gas change per transaction.
1546
+ *
1547
+ * Added as new tracing reason in Geth, available only on some chains
1548
+ *
1549
+ * @generated from enum value: REASON_TX_LEFT_OVER_RETURNED = 23;
1550
+ */
1551
+ TX_LEFT_OVER_RETURNED = 23,
1552
+ /**
1553
+ * REASON_CALL_INITIAL_BALANCE is the initial balance for the call which will be equal to the gasLimit of the call. There is only
1554
+ * one such gas change per call.
1555
+ *
1556
+ * Added as new tracing reason in Geth, available only on some chains
1557
+ *
1558
+ * @generated from enum value: REASON_CALL_INITIAL_BALANCE = 24;
1559
+ */
1560
+ CALL_INITIAL_BALANCE = 24,
1561
+ /**
1562
+ * REASON_CALL_LEFT_OVER_RETURNED is the amount of gas left over that will be returned to the caller, this change will always
1563
+ * be a negative change as we "drain" left over gas towards 0. If there was no gas left at the end of execution, no such even
1564
+ * will be emitted.
1565
+ *
1566
+ * @generated from enum value: REASON_CALL_LEFT_OVER_RETURNED = 25;
1567
+ */
1568
+ CALL_LEFT_OVER_RETURNED = 25
1569
+ }
1570
+ /**
1571
+ * Describes the enum sf.ethereum.type.v2.GasChange.Reason.
1572
+ */
1573
+ export declare const GasChange_ReasonSchema: GenEnum<GasChange_Reason>;
1574
+ /**
1575
+ * HeaderOnlyBlock is used to optimally unpack the [Block] structure (note the
1576
+ * corresponding message number for the `header` field) while consuming less
1577
+ * memory, when only the `header` is desired.
1578
+ *
1579
+ * WARN: this is a client-side optimization pattern and should be moved in the
1580
+ * consuming code.
1581
+ *
1582
+ * @generated from message sf.ethereum.type.v2.HeaderOnlyBlock
1583
+ */
1584
+ export type HeaderOnlyBlock = Message<"sf.ethereum.type.v2.HeaderOnlyBlock"> & {
1585
+ /**
1586
+ * @generated from field: sf.ethereum.type.v2.BlockHeader header = 5;
1587
+ */
1588
+ header?: BlockHeader;
1589
+ };
1590
+ /**
1591
+ * Describes the message sf.ethereum.type.v2.HeaderOnlyBlock.
1592
+ * Use `create(HeaderOnlyBlockSchema)` to create a new message.
1593
+ */
1594
+ export declare const HeaderOnlyBlockSchema: GenMessage<HeaderOnlyBlock>;
1595
+ /**
1596
+ * BlockWithRefs is a lightweight block, with traces and transactions
1597
+ * purged from the `block` within, and only. It is used in transports
1598
+ * to pass block data around.
1599
+ *
1600
+ * @generated from message sf.ethereum.type.v2.BlockWithRefs
1601
+ */
1602
+ export type BlockWithRefs = Message<"sf.ethereum.type.v2.BlockWithRefs"> & {
1603
+ /**
1604
+ * @generated from field: string id = 1;
1605
+ */
1606
+ id: string;
1607
+ /**
1608
+ * @generated from field: sf.ethereum.type.v2.Block block = 2;
1609
+ */
1610
+ block?: Block;
1611
+ /**
1612
+ * @generated from field: sf.ethereum.type.v2.TransactionRefs transaction_trace_refs = 3;
1613
+ */
1614
+ transactionTraceRefs?: TransactionRefs;
1615
+ /**
1616
+ * @generated from field: bool irreversible = 4;
1617
+ */
1618
+ irreversible: boolean;
1619
+ };
1620
+ /**
1621
+ * Describes the message sf.ethereum.type.v2.BlockWithRefs.
1622
+ * Use `create(BlockWithRefsSchema)` to create a new message.
1623
+ */
1624
+ export declare const BlockWithRefsSchema: GenMessage<BlockWithRefs>;
1625
+ /**
1626
+ * @generated from message sf.ethereum.type.v2.TransactionTraceWithBlockRef
1627
+ */
1628
+ export type TransactionTraceWithBlockRef = Message<"sf.ethereum.type.v2.TransactionTraceWithBlockRef"> & {
1629
+ /**
1630
+ * @generated from field: sf.ethereum.type.v2.TransactionTrace trace = 1;
1631
+ */
1632
+ trace?: TransactionTrace;
1633
+ /**
1634
+ * @generated from field: sf.ethereum.type.v2.BlockRef block_ref = 2;
1635
+ */
1636
+ blockRef?: BlockRef;
1637
+ };
1638
+ /**
1639
+ * Describes the message sf.ethereum.type.v2.TransactionTraceWithBlockRef.
1640
+ * Use `create(TransactionTraceWithBlockRefSchema)` to create a new message.
1641
+ */
1642
+ export declare const TransactionTraceWithBlockRefSchema: GenMessage<TransactionTraceWithBlockRef>;
1643
+ /**
1644
+ * @generated from message sf.ethereum.type.v2.TransactionRefs
1645
+ */
1646
+ export type TransactionRefs = Message<"sf.ethereum.type.v2.TransactionRefs"> & {
1647
+ /**
1648
+ * @generated from field: repeated bytes hashes = 1;
1649
+ */
1650
+ hashes: Uint8Array[];
1651
+ };
1652
+ /**
1653
+ * Describes the message sf.ethereum.type.v2.TransactionRefs.
1654
+ * Use `create(TransactionRefsSchema)` to create a new message.
1655
+ */
1656
+ export declare const TransactionRefsSchema: GenMessage<TransactionRefs>;
1657
+ /**
1658
+ * @generated from message sf.ethereum.type.v2.BlockRef
1659
+ */
1660
+ export type BlockRef = Message<"sf.ethereum.type.v2.BlockRef"> & {
1661
+ /**
1662
+ * @generated from field: bytes hash = 1;
1663
+ */
1664
+ hash: Uint8Array;
1665
+ /**
1666
+ * @generated from field: uint64 number = 2;
1667
+ */
1668
+ number: bigint;
1669
+ };
1670
+ /**
1671
+ * Describes the message sf.ethereum.type.v2.BlockRef.
1672
+ * Use `create(BlockRefSchema)` to create a new message.
1673
+ */
1674
+ export declare const BlockRefSchema: GenMessage<BlockRef>;
1675
+ /**
1676
+ * @generated from enum sf.ethereum.type.v2.TransactionTraceStatus
1677
+ */
1678
+ export declare enum TransactionTraceStatus {
1679
+ /**
1680
+ * @generated from enum value: UNKNOWN = 0;
1681
+ */
1682
+ UNKNOWN = 0,
1683
+ /**
1684
+ * @generated from enum value: SUCCEEDED = 1;
1685
+ */
1686
+ SUCCEEDED = 1,
1687
+ /**
1688
+ * @generated from enum value: FAILED = 2;
1689
+ */
1690
+ FAILED = 2,
1691
+ /**
1692
+ * @generated from enum value: REVERTED = 3;
1693
+ */
1694
+ REVERTED = 3
1695
+ }
1696
+ /**
1697
+ * Describes the enum sf.ethereum.type.v2.TransactionTraceStatus.
1698
+ */
1699
+ export declare const TransactionTraceStatusSchema: GenEnum<TransactionTraceStatus>;
1700
+ /**
1701
+ * @generated from enum sf.ethereum.type.v2.CallType
1702
+ */
1703
+ export declare enum CallType {
1704
+ /**
1705
+ * @generated from enum value: UNSPECIFIED = 0;
1706
+ */
1707
+ UNSPECIFIED = 0,
1708
+ /**
1709
+ * direct? what's the name for `Call` alone?
1710
+ *
1711
+ * @generated from enum value: CALL = 1;
1712
+ */
1713
+ CALL = 1,
1714
+ /**
1715
+ * @generated from enum value: CALLCODE = 2;
1716
+ */
1717
+ CALLCODE = 2,
1718
+ /**
1719
+ * @generated from enum value: DELEGATE = 3;
1720
+ */
1721
+ DELEGATE = 3,
1722
+ /**
1723
+ * @generated from enum value: STATIC = 4;
1724
+ */
1725
+ STATIC = 4,
1726
+ /**
1727
+ * create2 ? any other form of calls?
1728
+ *
1729
+ * @generated from enum value: CREATE = 5;
1730
+ */
1731
+ CREATE = 5
1732
+ }
1733
+ /**
1734
+ * Describes the enum sf.ethereum.type.v2.CallType.
1735
+ */
1736
+ export declare const CallTypeSchema: GenEnum<CallType>;