@xpla/xpla-react 1.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +47 -0
  3. package/src/amino/amino.ts +1 -0
  4. package/src/binary.ts +534 -0
  5. package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
  6. package/src/cosmos/app/runtime/v2/module.ts +589 -0
  7. package/src/cosmos/app/v1alpha1/config.ts +422 -0
  8. package/src/cosmos/app/v1alpha1/module.ts +461 -0
  9. package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
  10. package/src/cosmos/app/v1alpha1/query.ts +177 -0
  11. package/src/cosmos/auth/module/v1/module.ts +253 -0
  12. package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
  13. package/src/cosmos/auth/v1beta1/auth.ts +550 -0
  14. package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
  15. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
  16. package/src/cosmos/auth/v1beta1/query.ts +2034 -0
  17. package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
  18. package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
  19. package/src/cosmos/auth/v1beta1/tx.ts +219 -0
  20. package/src/cosmos/authz/module/v1/module.ts +80 -0
  21. package/src/cosmos/authz/v1beta1/authz.ts +481 -0
  22. package/src/cosmos/authz/v1beta1/event.ts +259 -0
  23. package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
  24. package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
  25. package/src/cosmos/authz/v1beta1/query.ts +707 -0
  26. package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
  27. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
  28. package/src/cosmos/authz/v1beta1/tx.ts +647 -0
  29. package/src/cosmos/autocli/v1/options.ts +1145 -0
  30. package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
  31. package/src/cosmos/autocli/v1/query.ts +288 -0
  32. package/src/cosmos/bank/module/v1/module.ts +153 -0
  33. package/src/cosmos/bank/v1beta1/authz.ts +138 -0
  34. package/src/cosmos/bank/v1beta1/bank.ts +974 -0
  35. package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
  36. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
  37. package/src/cosmos/bank/v1beta1/query.ts +3027 -0
  38. package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
  39. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
  40. package/src/cosmos/bank/v1beta1/tx.ts +861 -0
  41. package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
  42. package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
  43. package/src/cosmos/base/grpc/v2/service.ts +473 -0
  44. package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
  45. package/src/cosmos/base/node/v1beta1/query.ts +454 -0
  46. package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
  47. package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
  48. package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
  49. package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
  50. package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
  51. package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
  52. package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
  53. package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
  54. package/src/cosmos/base/v1beta1/coin.ts +439 -0
  55. package/src/cosmos/circuit/module/v1/module.ts +99 -0
  56. package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
  57. package/src/cosmos/circuit/v1/query.ts +574 -0
  58. package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
  59. package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
  60. package/src/cosmos/circuit/v1/tx.ts +676 -0
  61. package/src/cosmos/circuit/v1/types.ts +413 -0
  62. package/src/cosmos/consensus/module/v1/module.ts +99 -0
  63. package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
  64. package/src/cosmos/consensus/v1/query.ts +185 -0
  65. package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
  66. package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
  67. package/src/cosmos/consensus/v1/tx.ts +255 -0
  68. package/src/cosmos/crisis/module/v1/module.ts +115 -0
  69. package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
  70. package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
  71. package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
  72. package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
  73. package/src/cosmos/crypto/ed25519/keys.ts +209 -0
  74. package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
  75. package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
  76. package/src/cosmos/crypto/multisig/keys.ts +122 -0
  77. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
  78. package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
  79. package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
  80. package/src/cosmos/distribution/module/v1/module.ts +113 -0
  81. package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
  82. package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
  83. package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
  84. package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
  85. package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
  86. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
  87. package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
  88. package/src/cosmos/evidence/module/v1/module.ts +80 -0
  89. package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
  90. package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
  91. package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
  92. package/src/cosmos/evidence/v1beta1/query.ts +451 -0
  93. package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
  94. package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
  95. package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
  96. package/src/cosmos/feegrant/module/v1/module.ts +80 -0
  97. package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
  98. package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
  99. package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
  100. package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
  101. package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
  102. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
  103. package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
  104. package/src/cosmos/genutil/module/v1/module.ts +80 -0
  105. package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
  106. package/src/cosmos/gov/module/v1/module.ts +121 -0
  107. package/src/cosmos/gov/v1/genesis.ts +280 -0
  108. package/src/cosmos/gov/v1/gov.ts +1843 -0
  109. package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
  110. package/src/cosmos/gov/v1/query.ts +1970 -0
  111. package/src/cosmos/gov/v1/tx.registry.ts +137 -0
  112. package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
  113. package/src/cosmos/gov/v1/tx.ts +1657 -0
  114. package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
  115. package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
  116. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
  117. package/src/cosmos/gov/v1beta1/query.ts +1749 -0
  118. package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
  119. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
  120. package/src/cosmos/gov/v1beta1/tx.ts +881 -0
  121. package/src/cosmos/group/module/v1/module.ts +128 -0
  122. package/src/cosmos/group/v1/events.ts +1044 -0
  123. package/src/cosmos/group/v1/genesis.ts +240 -0
  124. package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
  125. package/src/cosmos/group/v1/query.ts +3015 -0
  126. package/src/cosmos/group/v1/tx.registry.ts +263 -0
  127. package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
  128. package/src/cosmos/group/v1/tx.ts +3207 -0
  129. package/src/cosmos/group/v1/types.ts +2081 -0
  130. package/src/cosmos/ics23/v1/proofs.ts +2060 -0
  131. package/src/cosmos/mint/module/v1/module.ts +113 -0
  132. package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
  133. package/src/cosmos/mint/v1beta1/mint.ts +291 -0
  134. package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
  135. package/src/cosmos/mint/v1beta1/query.ts +541 -0
  136. package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
  137. package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
  138. package/src/cosmos/mint/v1beta1/tx.ts +219 -0
  139. package/src/cosmos/msg/textual/v1/textual.ts +1 -0
  140. package/src/cosmos/msg/v1/msg.ts +1 -0
  141. package/src/cosmos/nft/module/v1/module.ts +80 -0
  142. package/src/cosmos/nft/v1beta1/event.ts +403 -0
  143. package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
  144. package/src/cosmos/nft/v1beta1/nft.ts +356 -0
  145. package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
  146. package/src/cosmos/nft/v1beta1/query.ts +1465 -0
  147. package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
  148. package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
  149. package/src/cosmos/nft/v1beta1/tx.ts +224 -0
  150. package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
  151. package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
  152. package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
  153. package/src/cosmos/orm/v1/orm.ts +589 -0
  154. package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
  155. package/src/cosmos/params/module/v1/module.ts +80 -0
  156. package/src/cosmos/params/v1beta1/params.ts +255 -0
  157. package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
  158. package/src/cosmos/params/v1beta1/query.ts +525 -0
  159. package/src/cosmos/query/v1/query.ts +1 -0
  160. package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
  161. package/src/cosmos/reflection/v1/reflection.ts +179 -0
  162. package/src/cosmos/slashing/module/v1/module.ts +99 -0
  163. package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
  164. package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
  165. package/src/cosmos/slashing/v1beta1/query.ts +598 -0
  166. package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
  167. package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
  168. package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
  169. package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
  170. package/src/cosmos/staking/module/v1/module.ts +157 -0
  171. package/src/cosmos/staking/v1beta1/authz.ts +323 -0
  172. package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
  173. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
  174. package/src/cosmos/staking/v1beta1/query.ts +3073 -0
  175. package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
  176. package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
  177. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
  178. package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
  179. package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
  180. package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
  181. package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
  182. package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
  183. package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
  184. package/src/cosmos/store/v1beta1/listening.ts +286 -0
  185. package/src/cosmos/streaming/v1/grpc.ts +985 -0
  186. package/src/cosmos/tx/config/v1/config.ts +127 -0
  187. package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
  188. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
  189. package/src/cosmos/tx/v1beta1/service.ts +2294 -0
  190. package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
  191. package/src/cosmos/upgrade/module/v1/module.ts +99 -0
  192. package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
  193. package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
  194. package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
  195. package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
  196. package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
  197. package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
  198. package/src/cosmos/validate/module/v1/module.ts +80 -0
  199. package/src/cosmos/vesting/module/v1/module.ts +80 -0
  200. package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
  201. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
  202. package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
  203. package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
  204. package/src/cosmos_proto/cosmos.ts +341 -0
  205. package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
  206. package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
  207. package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
  208. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
  209. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
  210. package/src/cosmwasm/wasm/v1/query.ts +2560 -0
  211. package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
  212. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
  213. package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
  214. package/src/cosmwasm/wasm/v1/types.ts +1120 -0
  215. package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
  216. package/src/ethermint/evm/v1/events.ts +485 -0
  217. package/src/ethermint/evm/v1/evm.ts +1590 -0
  218. package/src/ethermint/evm/v1/genesis.ts +240 -0
  219. package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
  220. package/src/ethermint/evm/v1/query.ts +2535 -0
  221. package/src/ethermint/evm/v1/tx.registry.ts +47 -0
  222. package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
  223. package/src/ethermint/evm/v1/tx.ts +1333 -0
  224. package/src/ethermint/feemarket/v1/events.ts +195 -0
  225. package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
  226. package/src/ethermint/feemarket/v1/genesis.ts +114 -0
  227. package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
  228. package/src/ethermint/feemarket/v1/query.ts +487 -0
  229. package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
  230. package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
  231. package/src/ethermint/feemarket/v1/tx.ts +197 -0
  232. package/src/ethermint/types/v1/account.ts +114 -0
  233. package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
  234. package/src/ethermint/types/v1/indexer.ts +205 -0
  235. package/src/ethermint/types/v1/web3.ts +147 -0
  236. package/src/extern.ts +38 -0
  237. package/src/gogoproto/gogo.ts +1 -0
  238. package/src/google/api/annotations.ts +1 -0
  239. package/src/google/api/http.ts +1069 -0
  240. package/src/google/protobuf/any.ts +331 -0
  241. package/src/google/protobuf/descriptor.ts +7177 -0
  242. package/src/google/protobuf/duration.ts +225 -0
  243. package/src/google/protobuf/timestamp.ts +281 -0
  244. package/src/helper-func-types.ts +191 -0
  245. package/src/helpers.ts +259 -0
  246. package/src/ibc/applications/fee/v1/ack.ts +131 -0
  247. package/src/ibc/applications/fee/v1/fee.ts +481 -0
  248. package/src/ibc/applications/fee/v1/genesis.ts +661 -0
  249. package/src/ibc/applications/fee/v1/metadata.ts +121 -0
  250. package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
  251. package/src/ibc/applications/fee/v1/query.ts +2134 -0
  252. package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
  253. package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
  254. package/src/ibc/applications/fee/v1/tx.ts +889 -0
  255. package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
  256. package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
  257. package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  258. package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
  259. package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
  260. package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
  261. package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
  262. package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
  263. package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
  264. package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
  265. package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
  266. package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
  267. package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
  268. package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
  269. package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
  270. package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
  271. package/src/ibc/applications/transfer/v1/authz.ts +280 -0
  272. package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
  273. package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
  274. package/src/ibc/applications/transfer/v1/query.ts +1205 -0
  275. package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
  276. package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
  277. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
  278. package/src/ibc/applications/transfer/v1/tx.ts +532 -0
  279. package/src/ibc/applications/transfer/v2/packet.ts +171 -0
  280. package/src/ibc/core/channel/v1/channel.ts +1510 -0
  281. package/src/ibc/core/channel/v1/genesis.ts +354 -0
  282. package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
  283. package/src/ibc/core/channel/v1/query.ts +4354 -0
  284. package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
  285. package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
  286. package/src/ibc/core/channel/v1/tx.ts +4866 -0
  287. package/src/ibc/core/channel/v1/upgrade.ts +388 -0
  288. package/src/ibc/core/client/v1/client.ts +927 -0
  289. package/src/ibc/core/client/v1/genesis.ts +426 -0
  290. package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
  291. package/src/ibc/core/client/v1/query.ts +2280 -0
  292. package/src/ibc/core/client/v1/tx.registry.ts +137 -0
  293. package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
  294. package/src/ibc/core/client/v1/tx.ts +1543 -0
  295. package/src/ibc/core/commitment/v1/commitment.ts +418 -0
  296. package/src/ibc/core/connection/v1/connection.ts +1010 -0
  297. package/src/ibc/core/connection/v1/genesis.ts +146 -0
  298. package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
  299. package/src/ibc/core/connection/v1/query.ts +1408 -0
  300. package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
  301. package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
  302. package/src/ibc/core/connection/v1/tx.ts +1365 -0
  303. package/src/ibc/core/types/v1/genesis.ts +137 -0
  304. package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
  305. package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
  306. package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
  307. package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
  308. package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
  309. package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
  310. package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
  311. package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
  312. package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
  313. package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
  314. package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
  315. package/src/react-query.ts +185 -0
  316. package/src/registry.ts +218 -0
  317. package/src/tendermint/abci/types.ts +6283 -0
  318. package/src/tendermint/crypto/keys.ts +103 -0
  319. package/src/tendermint/crypto/proof.ts +555 -0
  320. package/src/tendermint/p2p/types.ts +507 -0
  321. package/src/tendermint/types/block.ts +131 -0
  322. package/src/tendermint/types/evidence.ts +476 -0
  323. package/src/tendermint/types/params.ts +814 -0
  324. package/src/tendermint/types/types.ts +2157 -0
  325. package/src/tendermint/types/validator.ts +389 -0
  326. package/src/tendermint/version/types.ts +219 -0
  327. package/src/types.ts +155 -0
  328. package/src/utf8.ts +148 -0
  329. package/src/varint.ts +488 -0
  330. package/src/xpla/reward/v1beta1/genesis.ts +92 -0
  331. package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
  332. package/src/xpla/reward/v1beta1/query.ts +333 -0
  333. package/src/xpla/reward/v1beta1/reward.ts +153 -0
  334. package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
  335. package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
  336. package/src/xpla/reward/v1beta1/tx.ts +391 -0
  337. package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
  338. package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
  339. package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
  340. package/src/xpla/volunteer/v1beta1/query.ts +160 -0
  341. package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
  342. package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
  343. package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
  344. package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
  345. package/tsconfig.esm.json +10 -0
  346. package/tsconfig.json +10 -0
@@ -0,0 +1,1590 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
3
+ import { GlobalDecoderRegistry } from "../../../registry";
4
+ /** Params defines the EVM module parameters */
5
+ export interface Params {
6
+ /**
7
+ * evm_denom represents the token denomination used to run the EVM state
8
+ * transitions.
9
+ */
10
+ evmDenom: string;
11
+ /** enable_create toggles state transitions that use the vm.Create function */
12
+ enableCreate: boolean;
13
+ /** enable_call toggles state transitions that use the vm.Call function */
14
+ enableCall: boolean;
15
+ /** extra_eips defines the additional EIPs for the vm.Config */
16
+ extraEips: bigint[];
17
+ /** chain_config defines the EVM chain configuration parameters */
18
+ chainConfig: ChainConfig;
19
+ /**
20
+ * allow_unprotected_txs defines if replay-protected (i.e non EIP155
21
+ * signed) transactions can be executed on the state machine.
22
+ */
23
+ allowUnprotectedTxs: boolean;
24
+ }
25
+ export interface ParamsProtoMsg {
26
+ typeUrl: "/ethermint.evm.v1.Params";
27
+ value: Uint8Array;
28
+ }
29
+ /** Params defines the EVM module parameters */
30
+ export interface ParamsAmino {
31
+ /**
32
+ * evm_denom represents the token denomination used to run the EVM state
33
+ * transitions.
34
+ */
35
+ evm_denom: string;
36
+ /** enable_create toggles state transitions that use the vm.Create function */
37
+ enable_create: boolean;
38
+ /** enable_call toggles state transitions that use the vm.Call function */
39
+ enable_call: boolean;
40
+ /** extra_eips defines the additional EIPs for the vm.Config */
41
+ extra_eips: string[];
42
+ /** chain_config defines the EVM chain configuration parameters */
43
+ chain_config: ChainConfigAmino;
44
+ /**
45
+ * allow_unprotected_txs defines if replay-protected (i.e non EIP155
46
+ * signed) transactions can be executed on the state machine.
47
+ */
48
+ allow_unprotected_txs: boolean;
49
+ }
50
+ export interface ParamsAminoMsg {
51
+ type: "ethermint/x/evm/Params";
52
+ value: ParamsAmino;
53
+ }
54
+ /**
55
+ * ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
56
+ * instead of *big.Int.
57
+ */
58
+ export interface ChainConfig {
59
+ /** homestead_block switch (nil no fork, 0 = already homestead) */
60
+ homesteadBlock: string;
61
+ /** dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) */
62
+ daoForkBlock: string;
63
+ /** dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork */
64
+ daoForkSupport: boolean;
65
+ /**
66
+ * eip150_block: EIP150 implements the Gas price changes
67
+ * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
68
+ */
69
+ eip150Block: string;
70
+ /** eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed) */
71
+ eip150Hash: string;
72
+ /** eip155_block: EIP155Block HF block */
73
+ eip155Block: string;
74
+ /** eip158_block: EIP158 HF block */
75
+ eip158Block: string;
76
+ /** byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium) */
77
+ byzantiumBlock: string;
78
+ /** constantinople_block: Constantinople switch block (nil no fork, 0 = already activated) */
79
+ constantinopleBlock: string;
80
+ /** petersburg_block: Petersburg switch block (nil same as Constantinople) */
81
+ petersburgBlock: string;
82
+ /** istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul) */
83
+ istanbulBlock: string;
84
+ /** muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated) */
85
+ muirGlacierBlock: string;
86
+ /** berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) */
87
+ berlinBlock: string;
88
+ /** london_block: London switch block (nil = no fork, 0 = already on london) */
89
+ londonBlock: string;
90
+ /** arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) */
91
+ arrowGlacierBlock: string;
92
+ /** gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) */
93
+ grayGlacierBlock: string;
94
+ /** merge_netsplit_block: Virtual fork after The Merge to use as a network splitter */
95
+ mergeNetsplitBlock: string;
96
+ /** shanghai_block switch block (nil = no fork, 0 = already on shanghai) */
97
+ shanghaiBlock: string;
98
+ /** cancun_block switch block (nil = no fork, 0 = already on cancun) */
99
+ cancunBlock: string;
100
+ }
101
+ export interface ChainConfigProtoMsg {
102
+ typeUrl: "/ethermint.evm.v1.ChainConfig";
103
+ value: Uint8Array;
104
+ }
105
+ /**
106
+ * ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
107
+ * instead of *big.Int.
108
+ */
109
+ export interface ChainConfigAmino {
110
+ /** homestead_block switch (nil no fork, 0 = already homestead) */
111
+ homestead_block: string;
112
+ /** dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) */
113
+ dao_fork_block: string;
114
+ /** dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork */
115
+ dao_fork_support: boolean;
116
+ /**
117
+ * eip150_block: EIP150 implements the Gas price changes
118
+ * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
119
+ */
120
+ eip150_block: string;
121
+ /** eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed) */
122
+ eip150_hash: string;
123
+ /** eip155_block: EIP155Block HF block */
124
+ eip155_block: string;
125
+ /** eip158_block: EIP158 HF block */
126
+ eip158_block: string;
127
+ /** byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium) */
128
+ byzantium_block: string;
129
+ /** constantinople_block: Constantinople switch block (nil no fork, 0 = already activated) */
130
+ constantinople_block: string;
131
+ /** petersburg_block: Petersburg switch block (nil same as Constantinople) */
132
+ petersburg_block: string;
133
+ /** istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul) */
134
+ istanbul_block: string;
135
+ /** muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated) */
136
+ muir_glacier_block: string;
137
+ /** berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) */
138
+ berlin_block: string;
139
+ /** london_block: London switch block (nil = no fork, 0 = already on london) */
140
+ london_block: string;
141
+ /** arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) */
142
+ arrow_glacier_block: string;
143
+ /** gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) */
144
+ gray_glacier_block: string;
145
+ /** merge_netsplit_block: Virtual fork after The Merge to use as a network splitter */
146
+ merge_netsplit_block: string;
147
+ /** shanghai_block switch block (nil = no fork, 0 = already on shanghai) */
148
+ shanghai_block: string;
149
+ /** cancun_block switch block (nil = no fork, 0 = already on cancun) */
150
+ cancun_block: string;
151
+ }
152
+ export interface ChainConfigAminoMsg {
153
+ type: "/ethermint.evm.v1.ChainConfig";
154
+ value: ChainConfigAmino;
155
+ }
156
+ /** State represents a single Storage key value pair item. */
157
+ export interface State {
158
+ /** key is the stored key */
159
+ key: string;
160
+ /** value is the stored value for the given key */
161
+ value: string;
162
+ }
163
+ export interface StateProtoMsg {
164
+ typeUrl: "/ethermint.evm.v1.State";
165
+ value: Uint8Array;
166
+ }
167
+ /** State represents a single Storage key value pair item. */
168
+ export interface StateAmino {
169
+ /** key is the stored key */
170
+ key: string;
171
+ /** value is the stored value for the given key */
172
+ value: string;
173
+ }
174
+ export interface StateAminoMsg {
175
+ type: "/ethermint.evm.v1.State";
176
+ value: StateAmino;
177
+ }
178
+ /**
179
+ * TransactionLogs define the logs generated from a transaction execution
180
+ * with a given hash. It it used for import/export data as transactions are not
181
+ * persisted on blockchain state after an upgrade.
182
+ */
183
+ export interface TransactionLogs {
184
+ /** hash of the transaction */
185
+ hash: string;
186
+ /** logs is an array of Logs for the given transaction hash */
187
+ logs: Log[];
188
+ }
189
+ export interface TransactionLogsProtoMsg {
190
+ typeUrl: "/ethermint.evm.v1.TransactionLogs";
191
+ value: Uint8Array;
192
+ }
193
+ /**
194
+ * TransactionLogs define the logs generated from a transaction execution
195
+ * with a given hash. It it used for import/export data as transactions are not
196
+ * persisted on blockchain state after an upgrade.
197
+ */
198
+ export interface TransactionLogsAmino {
199
+ /** hash of the transaction */
200
+ hash: string;
201
+ /** logs is an array of Logs for the given transaction hash */
202
+ logs: LogAmino[];
203
+ }
204
+ export interface TransactionLogsAminoMsg {
205
+ type: "/ethermint.evm.v1.TransactionLogs";
206
+ value: TransactionLogsAmino;
207
+ }
208
+ /**
209
+ * Log represents an protobuf compatible Ethereum Log that defines a contract
210
+ * log event. These events are generated by the LOG opcode and stored/indexed by
211
+ * the node.
212
+ *
213
+ * NOTE: address, topics and data are consensus fields. The rest of the fields
214
+ * are derived, i.e. filled in by the nodes, but not secured by consensus.
215
+ */
216
+ export interface Log {
217
+ /** address of the contract that generated the event */
218
+ address: string;
219
+ /** topics is a list of topics provided by the contract. */
220
+ topics: string[];
221
+ /** data which is supplied by the contract, usually ABI-encoded */
222
+ data: Uint8Array;
223
+ /** block_number of the block in which the transaction was included */
224
+ blockNumber: bigint;
225
+ /** tx_hash is the transaction hash */
226
+ txHash: string;
227
+ /** tx_index of the transaction in the block */
228
+ txIndex: bigint;
229
+ /** block_hash of the block in which the transaction was included */
230
+ blockHash: string;
231
+ /** index of the log in the block */
232
+ index: bigint;
233
+ /**
234
+ * removed is true if this log was reverted due to a chain
235
+ * reorganisation. You must pay attention to this field if you receive logs
236
+ * through a filter query.
237
+ */
238
+ removed: boolean;
239
+ }
240
+ export interface LogProtoMsg {
241
+ typeUrl: "/ethermint.evm.v1.Log";
242
+ value: Uint8Array;
243
+ }
244
+ /**
245
+ * Log represents an protobuf compatible Ethereum Log that defines a contract
246
+ * log event. These events are generated by the LOG opcode and stored/indexed by
247
+ * the node.
248
+ *
249
+ * NOTE: address, topics and data are consensus fields. The rest of the fields
250
+ * are derived, i.e. filled in by the nodes, but not secured by consensus.
251
+ */
252
+ export interface LogAmino {
253
+ /** address of the contract that generated the event */
254
+ address: string;
255
+ /** topics is a list of topics provided by the contract. */
256
+ topics: string[];
257
+ /** data which is supplied by the contract, usually ABI-encoded */
258
+ data: string;
259
+ /** block_number of the block in which the transaction was included */
260
+ block_number: string;
261
+ /** tx_hash is the transaction hash */
262
+ tx_hash: string;
263
+ /** tx_index of the transaction in the block */
264
+ tx_index: string;
265
+ /** block_hash of the block in which the transaction was included */
266
+ block_hash: string;
267
+ /** index of the log in the block */
268
+ index: string;
269
+ /**
270
+ * removed is true if this log was reverted due to a chain
271
+ * reorganisation. You must pay attention to this field if you receive logs
272
+ * through a filter query.
273
+ */
274
+ removed: boolean;
275
+ }
276
+ export interface LogAminoMsg {
277
+ type: "/ethermint.evm.v1.Log";
278
+ value: LogAmino;
279
+ }
280
+ /** TxResult stores results of Tx execution. */
281
+ export interface TxResult {
282
+ /**
283
+ * contract_address contains the ethereum address of the created contract (if
284
+ * any). If the state transition is an evm.Call, the contract address will be
285
+ * empty.
286
+ */
287
+ contractAddress: string;
288
+ /** bloom represents the bloom filter bytes */
289
+ bloom: Uint8Array;
290
+ /**
291
+ * tx_logs contains the transaction hash and the proto-compatible ethereum
292
+ * logs.
293
+ */
294
+ txLogs: TransactionLogs;
295
+ /** ret defines the bytes from the execution. */
296
+ ret: Uint8Array;
297
+ /** reverted flag is set to true when the call has been reverted */
298
+ reverted: boolean;
299
+ /** gas_used notes the amount of gas consumed while execution */
300
+ gasUsed: bigint;
301
+ }
302
+ export interface TxResultProtoMsg {
303
+ typeUrl: "/ethermint.evm.v1.TxResult";
304
+ value: Uint8Array;
305
+ }
306
+ /** TxResult stores results of Tx execution. */
307
+ export interface TxResultAmino {
308
+ /**
309
+ * contract_address contains the ethereum address of the created contract (if
310
+ * any). If the state transition is an evm.Call, the contract address will be
311
+ * empty.
312
+ */
313
+ contract_address: string;
314
+ /** bloom represents the bloom filter bytes */
315
+ bloom: string;
316
+ /**
317
+ * tx_logs contains the transaction hash and the proto-compatible ethereum
318
+ * logs.
319
+ */
320
+ tx_logs: TransactionLogsAmino;
321
+ /** ret defines the bytes from the execution. */
322
+ ret: string;
323
+ /** reverted flag is set to true when the call has been reverted */
324
+ reverted: boolean;
325
+ /** gas_used notes the amount of gas consumed while execution */
326
+ gas_used: string;
327
+ }
328
+ export interface TxResultAminoMsg {
329
+ type: "/ethermint.evm.v1.TxResult";
330
+ value: TxResultAmino;
331
+ }
332
+ /** AccessTuple is the element type of an access list. */
333
+ export interface AccessTuple {
334
+ /** address is a hex formatted ethereum address */
335
+ address: string;
336
+ /** storage_keys are hex formatted hashes of the storage keys */
337
+ storageKeys: string[];
338
+ }
339
+ export interface AccessTupleProtoMsg {
340
+ typeUrl: "/ethermint.evm.v1.AccessTuple";
341
+ value: Uint8Array;
342
+ }
343
+ /** AccessTuple is the element type of an access list. */
344
+ export interface AccessTupleAmino {
345
+ /** address is a hex formatted ethereum address */
346
+ address: string;
347
+ /** storage_keys are hex formatted hashes of the storage keys */
348
+ storage_keys: string[];
349
+ }
350
+ export interface AccessTupleAminoMsg {
351
+ type: "/ethermint.evm.v1.AccessTuple";
352
+ value: AccessTupleAmino;
353
+ }
354
+ /** TraceConfig holds extra parameters to trace functions. */
355
+ export interface TraceConfig {
356
+ /** tracer is a custom javascript tracer */
357
+ tracer: string;
358
+ /**
359
+ * timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
360
+ * calls
361
+ */
362
+ timeout: string;
363
+ /** reexec defines the number of blocks the tracer is willing to go back */
364
+ reexec: bigint;
365
+ /** disable_stack switches stack capture */
366
+ disableStack: boolean;
367
+ /** disable_storage switches storage capture */
368
+ disableStorage: boolean;
369
+ /** debug can be used to print output during capture end */
370
+ debug: boolean;
371
+ /** limit defines the maximum length of output, but zero means unlimited */
372
+ limit: number;
373
+ /** overrides can be used to execute a trace using future fork rules */
374
+ overrides?: ChainConfig;
375
+ /** enable_memory switches memory capture */
376
+ enableMemory: boolean;
377
+ /** enable_return_data switches the capture of return data */
378
+ enableReturnData: boolean;
379
+ /** tracer_json_config configures the tracer using a JSON string */
380
+ tracerJsonConfig: string;
381
+ }
382
+ export interface TraceConfigProtoMsg {
383
+ typeUrl: "/ethermint.evm.v1.TraceConfig";
384
+ value: Uint8Array;
385
+ }
386
+ /** TraceConfig holds extra parameters to trace functions. */
387
+ export interface TraceConfigAmino {
388
+ /** tracer is a custom javascript tracer */
389
+ tracer: string;
390
+ /**
391
+ * timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
392
+ * calls
393
+ */
394
+ timeout: string;
395
+ /** reexec defines the number of blocks the tracer is willing to go back */
396
+ reexec: string;
397
+ /** disable_stack switches stack capture */
398
+ disable_stack: boolean;
399
+ /** disable_storage switches storage capture */
400
+ disable_storage: boolean;
401
+ /** debug can be used to print output during capture end */
402
+ debug: boolean;
403
+ /** limit defines the maximum length of output, but zero means unlimited */
404
+ limit: number;
405
+ /** overrides can be used to execute a trace using future fork rules */
406
+ overrides?: ChainConfigAmino;
407
+ /** enable_memory switches memory capture */
408
+ enable_memory: boolean;
409
+ /** enable_return_data switches the capture of return data */
410
+ enable_return_data: boolean;
411
+ /** tracer_json_config configures the tracer using a JSON string */
412
+ tracer_json_config: string;
413
+ }
414
+ export interface TraceConfigAminoMsg {
415
+ type: "/ethermint.evm.v1.TraceConfig";
416
+ value: TraceConfigAmino;
417
+ }
418
+ function createBaseParams(): Params {
419
+ return {
420
+ evmDenom: "",
421
+ enableCreate: false,
422
+ enableCall: false,
423
+ extraEips: [],
424
+ chainConfig: ChainConfig.fromPartial({}),
425
+ allowUnprotectedTxs: false
426
+ };
427
+ }
428
+ export const Params = {
429
+ typeUrl: "/ethermint.evm.v1.Params",
430
+ aminoType: "ethermint/x/evm/Params",
431
+ is(o: any): o is Params {
432
+ return o && (o.$typeUrl === Params.typeUrl || typeof o.evmDenom === "string" && typeof o.enableCreate === "boolean" && typeof o.enableCall === "boolean" && Array.isArray(o.extraEips) && (!o.extraEips.length || typeof o.extraEips[0] === "bigint") && ChainConfig.is(o.chainConfig) && typeof o.allowUnprotectedTxs === "boolean");
433
+ },
434
+ isAmino(o: any): o is ParamsAmino {
435
+ return o && (o.$typeUrl === Params.typeUrl || typeof o.evm_denom === "string" && typeof o.enable_create === "boolean" && typeof o.enable_call === "boolean" && Array.isArray(o.extra_eips) && (!o.extra_eips.length || typeof o.extra_eips[0] === "bigint") && ChainConfig.isAmino(o.chain_config) && typeof o.allow_unprotected_txs === "boolean");
436
+ },
437
+ encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
438
+ if (message.evmDenom !== "") {
439
+ writer.uint32(10).string(message.evmDenom);
440
+ }
441
+ if (message.enableCreate === true) {
442
+ writer.uint32(16).bool(message.enableCreate);
443
+ }
444
+ if (message.enableCall === true) {
445
+ writer.uint32(24).bool(message.enableCall);
446
+ }
447
+ writer.uint32(34).fork();
448
+ for (const v of message.extraEips) {
449
+ writer.int64(v);
450
+ }
451
+ writer.ldelim();
452
+ if (message.chainConfig !== undefined) {
453
+ ChainConfig.encode(message.chainConfig, writer.uint32(42).fork()).ldelim();
454
+ }
455
+ if (message.allowUnprotectedTxs === true) {
456
+ writer.uint32(48).bool(message.allowUnprotectedTxs);
457
+ }
458
+ return writer;
459
+ },
460
+ decode(input: BinaryReader | Uint8Array, length?: number): Params {
461
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
462
+ let end = length === undefined ? reader.len : reader.pos + length;
463
+ const message = createBaseParams();
464
+ while (reader.pos < end) {
465
+ const tag = reader.uint32();
466
+ switch (tag >>> 3) {
467
+ case 1:
468
+ message.evmDenom = reader.string();
469
+ break;
470
+ case 2:
471
+ message.enableCreate = reader.bool();
472
+ break;
473
+ case 3:
474
+ message.enableCall = reader.bool();
475
+ break;
476
+ case 4:
477
+ if ((tag & 7) === 2) {
478
+ const end2 = reader.uint32() + reader.pos;
479
+ while (reader.pos < end2) {
480
+ message.extraEips.push(reader.int64());
481
+ }
482
+ } else {
483
+ message.extraEips.push(reader.int64());
484
+ }
485
+ break;
486
+ case 5:
487
+ message.chainConfig = ChainConfig.decode(reader, reader.uint32());
488
+ break;
489
+ case 6:
490
+ message.allowUnprotectedTxs = reader.bool();
491
+ break;
492
+ default:
493
+ reader.skipType(tag & 7);
494
+ break;
495
+ }
496
+ }
497
+ return message;
498
+ },
499
+ fromPartial(object: DeepPartial<Params>): Params {
500
+ const message = createBaseParams();
501
+ message.evmDenom = object.evmDenom ?? "";
502
+ message.enableCreate = object.enableCreate ?? false;
503
+ message.enableCall = object.enableCall ?? false;
504
+ message.extraEips = object.extraEips?.map(e => BigInt(e.toString())) || [];
505
+ message.chainConfig = object.chainConfig !== undefined && object.chainConfig !== null ? ChainConfig.fromPartial(object.chainConfig) : undefined;
506
+ message.allowUnprotectedTxs = object.allowUnprotectedTxs ?? false;
507
+ return message;
508
+ },
509
+ fromAmino(object: ParamsAmino): Params {
510
+ const message = createBaseParams();
511
+ if (object.evm_denom !== undefined && object.evm_denom !== null) {
512
+ message.evmDenom = object.evm_denom;
513
+ }
514
+ if (object.enable_create !== undefined && object.enable_create !== null) {
515
+ message.enableCreate = object.enable_create;
516
+ }
517
+ if (object.enable_call !== undefined && object.enable_call !== null) {
518
+ message.enableCall = object.enable_call;
519
+ }
520
+ message.extraEips = object.extra_eips?.map(e => BigInt(e)) || [];
521
+ if (object.chain_config !== undefined && object.chain_config !== null) {
522
+ message.chainConfig = ChainConfig.fromAmino(object.chain_config);
523
+ }
524
+ if (object.allow_unprotected_txs !== undefined && object.allow_unprotected_txs !== null) {
525
+ message.allowUnprotectedTxs = object.allow_unprotected_txs;
526
+ }
527
+ return message;
528
+ },
529
+ toAmino(message: Params): ParamsAmino {
530
+ const obj: any = {};
531
+ obj.evm_denom = message.evmDenom === "" ? undefined : message.evmDenom;
532
+ obj.enable_create = message.enableCreate === false ? undefined : message.enableCreate;
533
+ obj.enable_call = message.enableCall === false ? undefined : message.enableCall;
534
+ if (message.extraEips) {
535
+ obj.extra_eips = message.extraEips.map(e => e.toString());
536
+ } else {
537
+ obj.extra_eips = message.extraEips;
538
+ }
539
+ obj.chain_config = message.chainConfig ? ChainConfig.toAmino(message.chainConfig) : ChainConfig.toAmino(ChainConfig.fromPartial({}));
540
+ obj.allow_unprotected_txs = message.allowUnprotectedTxs === false ? undefined : message.allowUnprotectedTxs;
541
+ return obj;
542
+ },
543
+ fromAminoMsg(object: ParamsAminoMsg): Params {
544
+ return Params.fromAmino(object.value);
545
+ },
546
+ toAminoMsg(message: Params): ParamsAminoMsg {
547
+ return {
548
+ type: "ethermint/x/evm/Params",
549
+ value: Params.toAmino(message)
550
+ };
551
+ },
552
+ fromProtoMsg(message: ParamsProtoMsg): Params {
553
+ return Params.decode(message.value);
554
+ },
555
+ toProto(message: Params): Uint8Array {
556
+ return Params.encode(message).finish();
557
+ },
558
+ toProtoMsg(message: Params): ParamsProtoMsg {
559
+ return {
560
+ typeUrl: "/ethermint.evm.v1.Params",
561
+ value: Params.encode(message).finish()
562
+ };
563
+ }
564
+ };
565
+ GlobalDecoderRegistry.register(Params.typeUrl, Params);
566
+ GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
567
+ function createBaseChainConfig(): ChainConfig {
568
+ return {
569
+ homesteadBlock: "",
570
+ daoForkBlock: "",
571
+ daoForkSupport: false,
572
+ eip150Block: "",
573
+ eip150Hash: "",
574
+ eip155Block: "",
575
+ eip158Block: "",
576
+ byzantiumBlock: "",
577
+ constantinopleBlock: "",
578
+ petersburgBlock: "",
579
+ istanbulBlock: "",
580
+ muirGlacierBlock: "",
581
+ berlinBlock: "",
582
+ londonBlock: "",
583
+ arrowGlacierBlock: "",
584
+ grayGlacierBlock: "",
585
+ mergeNetsplitBlock: "",
586
+ shanghaiBlock: "",
587
+ cancunBlock: ""
588
+ };
589
+ }
590
+ export const ChainConfig = {
591
+ typeUrl: "/ethermint.evm.v1.ChainConfig",
592
+ is(o: any): o is ChainConfig {
593
+ return o && (o.$typeUrl === ChainConfig.typeUrl || typeof o.homesteadBlock === "string" && typeof o.daoForkBlock === "string" && typeof o.daoForkSupport === "boolean" && typeof o.eip150Block === "string" && typeof o.eip150Hash === "string" && typeof o.eip155Block === "string" && typeof o.eip158Block === "string" && typeof o.byzantiumBlock === "string" && typeof o.constantinopleBlock === "string" && typeof o.petersburgBlock === "string" && typeof o.istanbulBlock === "string" && typeof o.muirGlacierBlock === "string" && typeof o.berlinBlock === "string" && typeof o.londonBlock === "string" && typeof o.arrowGlacierBlock === "string" && typeof o.grayGlacierBlock === "string" && typeof o.mergeNetsplitBlock === "string" && typeof o.shanghaiBlock === "string" && typeof o.cancunBlock === "string");
594
+ },
595
+ isAmino(o: any): o is ChainConfigAmino {
596
+ return o && (o.$typeUrl === ChainConfig.typeUrl || typeof o.homestead_block === "string" && typeof o.dao_fork_block === "string" && typeof o.dao_fork_support === "boolean" && typeof o.eip150_block === "string" && typeof o.eip150_hash === "string" && typeof o.eip155_block === "string" && typeof o.eip158_block === "string" && typeof o.byzantium_block === "string" && typeof o.constantinople_block === "string" && typeof o.petersburg_block === "string" && typeof o.istanbul_block === "string" && typeof o.muir_glacier_block === "string" && typeof o.berlin_block === "string" && typeof o.london_block === "string" && typeof o.arrow_glacier_block === "string" && typeof o.gray_glacier_block === "string" && typeof o.merge_netsplit_block === "string" && typeof o.shanghai_block === "string" && typeof o.cancun_block === "string");
597
+ },
598
+ encode(message: ChainConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
599
+ if (message.homesteadBlock !== "") {
600
+ writer.uint32(10).string(message.homesteadBlock);
601
+ }
602
+ if (message.daoForkBlock !== "") {
603
+ writer.uint32(18).string(message.daoForkBlock);
604
+ }
605
+ if (message.daoForkSupport === true) {
606
+ writer.uint32(24).bool(message.daoForkSupport);
607
+ }
608
+ if (message.eip150Block !== "") {
609
+ writer.uint32(34).string(message.eip150Block);
610
+ }
611
+ if (message.eip150Hash !== "") {
612
+ writer.uint32(42).string(message.eip150Hash);
613
+ }
614
+ if (message.eip155Block !== "") {
615
+ writer.uint32(50).string(message.eip155Block);
616
+ }
617
+ if (message.eip158Block !== "") {
618
+ writer.uint32(58).string(message.eip158Block);
619
+ }
620
+ if (message.byzantiumBlock !== "") {
621
+ writer.uint32(66).string(message.byzantiumBlock);
622
+ }
623
+ if (message.constantinopleBlock !== "") {
624
+ writer.uint32(74).string(message.constantinopleBlock);
625
+ }
626
+ if (message.petersburgBlock !== "") {
627
+ writer.uint32(82).string(message.petersburgBlock);
628
+ }
629
+ if (message.istanbulBlock !== "") {
630
+ writer.uint32(90).string(message.istanbulBlock);
631
+ }
632
+ if (message.muirGlacierBlock !== "") {
633
+ writer.uint32(98).string(message.muirGlacierBlock);
634
+ }
635
+ if (message.berlinBlock !== "") {
636
+ writer.uint32(106).string(message.berlinBlock);
637
+ }
638
+ if (message.londonBlock !== "") {
639
+ writer.uint32(138).string(message.londonBlock);
640
+ }
641
+ if (message.arrowGlacierBlock !== "") {
642
+ writer.uint32(146).string(message.arrowGlacierBlock);
643
+ }
644
+ if (message.grayGlacierBlock !== "") {
645
+ writer.uint32(162).string(message.grayGlacierBlock);
646
+ }
647
+ if (message.mergeNetsplitBlock !== "") {
648
+ writer.uint32(170).string(message.mergeNetsplitBlock);
649
+ }
650
+ if (message.shanghaiBlock !== "") {
651
+ writer.uint32(178).string(message.shanghaiBlock);
652
+ }
653
+ if (message.cancunBlock !== "") {
654
+ writer.uint32(186).string(message.cancunBlock);
655
+ }
656
+ return writer;
657
+ },
658
+ decode(input: BinaryReader | Uint8Array, length?: number): ChainConfig {
659
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
660
+ let end = length === undefined ? reader.len : reader.pos + length;
661
+ const message = createBaseChainConfig();
662
+ while (reader.pos < end) {
663
+ const tag = reader.uint32();
664
+ switch (tag >>> 3) {
665
+ case 1:
666
+ message.homesteadBlock = reader.string();
667
+ break;
668
+ case 2:
669
+ message.daoForkBlock = reader.string();
670
+ break;
671
+ case 3:
672
+ message.daoForkSupport = reader.bool();
673
+ break;
674
+ case 4:
675
+ message.eip150Block = reader.string();
676
+ break;
677
+ case 5:
678
+ message.eip150Hash = reader.string();
679
+ break;
680
+ case 6:
681
+ message.eip155Block = reader.string();
682
+ break;
683
+ case 7:
684
+ message.eip158Block = reader.string();
685
+ break;
686
+ case 8:
687
+ message.byzantiumBlock = reader.string();
688
+ break;
689
+ case 9:
690
+ message.constantinopleBlock = reader.string();
691
+ break;
692
+ case 10:
693
+ message.petersburgBlock = reader.string();
694
+ break;
695
+ case 11:
696
+ message.istanbulBlock = reader.string();
697
+ break;
698
+ case 12:
699
+ message.muirGlacierBlock = reader.string();
700
+ break;
701
+ case 13:
702
+ message.berlinBlock = reader.string();
703
+ break;
704
+ case 17:
705
+ message.londonBlock = reader.string();
706
+ break;
707
+ case 18:
708
+ message.arrowGlacierBlock = reader.string();
709
+ break;
710
+ case 20:
711
+ message.grayGlacierBlock = reader.string();
712
+ break;
713
+ case 21:
714
+ message.mergeNetsplitBlock = reader.string();
715
+ break;
716
+ case 22:
717
+ message.shanghaiBlock = reader.string();
718
+ break;
719
+ case 23:
720
+ message.cancunBlock = reader.string();
721
+ break;
722
+ default:
723
+ reader.skipType(tag & 7);
724
+ break;
725
+ }
726
+ }
727
+ return message;
728
+ },
729
+ fromPartial(object: DeepPartial<ChainConfig>): ChainConfig {
730
+ const message = createBaseChainConfig();
731
+ message.homesteadBlock = object.homesteadBlock ?? "";
732
+ message.daoForkBlock = object.daoForkBlock ?? "";
733
+ message.daoForkSupport = object.daoForkSupport ?? false;
734
+ message.eip150Block = object.eip150Block ?? "";
735
+ message.eip150Hash = object.eip150Hash ?? "";
736
+ message.eip155Block = object.eip155Block ?? "";
737
+ message.eip158Block = object.eip158Block ?? "";
738
+ message.byzantiumBlock = object.byzantiumBlock ?? "";
739
+ message.constantinopleBlock = object.constantinopleBlock ?? "";
740
+ message.petersburgBlock = object.petersburgBlock ?? "";
741
+ message.istanbulBlock = object.istanbulBlock ?? "";
742
+ message.muirGlacierBlock = object.muirGlacierBlock ?? "";
743
+ message.berlinBlock = object.berlinBlock ?? "";
744
+ message.londonBlock = object.londonBlock ?? "";
745
+ message.arrowGlacierBlock = object.arrowGlacierBlock ?? "";
746
+ message.grayGlacierBlock = object.grayGlacierBlock ?? "";
747
+ message.mergeNetsplitBlock = object.mergeNetsplitBlock ?? "";
748
+ message.shanghaiBlock = object.shanghaiBlock ?? "";
749
+ message.cancunBlock = object.cancunBlock ?? "";
750
+ return message;
751
+ },
752
+ fromAmino(object: ChainConfigAmino): ChainConfig {
753
+ const message = createBaseChainConfig();
754
+ if (object.homestead_block !== undefined && object.homestead_block !== null) {
755
+ message.homesteadBlock = object.homestead_block;
756
+ }
757
+ if (object.dao_fork_block !== undefined && object.dao_fork_block !== null) {
758
+ message.daoForkBlock = object.dao_fork_block;
759
+ }
760
+ if (object.dao_fork_support !== undefined && object.dao_fork_support !== null) {
761
+ message.daoForkSupport = object.dao_fork_support;
762
+ }
763
+ if (object.eip150_block !== undefined && object.eip150_block !== null) {
764
+ message.eip150Block = object.eip150_block;
765
+ }
766
+ if (object.eip150_hash !== undefined && object.eip150_hash !== null) {
767
+ message.eip150Hash = object.eip150_hash;
768
+ }
769
+ if (object.eip155_block !== undefined && object.eip155_block !== null) {
770
+ message.eip155Block = object.eip155_block;
771
+ }
772
+ if (object.eip158_block !== undefined && object.eip158_block !== null) {
773
+ message.eip158Block = object.eip158_block;
774
+ }
775
+ if (object.byzantium_block !== undefined && object.byzantium_block !== null) {
776
+ message.byzantiumBlock = object.byzantium_block;
777
+ }
778
+ if (object.constantinople_block !== undefined && object.constantinople_block !== null) {
779
+ message.constantinopleBlock = object.constantinople_block;
780
+ }
781
+ if (object.petersburg_block !== undefined && object.petersburg_block !== null) {
782
+ message.petersburgBlock = object.petersburg_block;
783
+ }
784
+ if (object.istanbul_block !== undefined && object.istanbul_block !== null) {
785
+ message.istanbulBlock = object.istanbul_block;
786
+ }
787
+ if (object.muir_glacier_block !== undefined && object.muir_glacier_block !== null) {
788
+ message.muirGlacierBlock = object.muir_glacier_block;
789
+ }
790
+ if (object.berlin_block !== undefined && object.berlin_block !== null) {
791
+ message.berlinBlock = object.berlin_block;
792
+ }
793
+ if (object.london_block !== undefined && object.london_block !== null) {
794
+ message.londonBlock = object.london_block;
795
+ }
796
+ if (object.arrow_glacier_block !== undefined && object.arrow_glacier_block !== null) {
797
+ message.arrowGlacierBlock = object.arrow_glacier_block;
798
+ }
799
+ if (object.gray_glacier_block !== undefined && object.gray_glacier_block !== null) {
800
+ message.grayGlacierBlock = object.gray_glacier_block;
801
+ }
802
+ if (object.merge_netsplit_block !== undefined && object.merge_netsplit_block !== null) {
803
+ message.mergeNetsplitBlock = object.merge_netsplit_block;
804
+ }
805
+ if (object.shanghai_block !== undefined && object.shanghai_block !== null) {
806
+ message.shanghaiBlock = object.shanghai_block;
807
+ }
808
+ if (object.cancun_block !== undefined && object.cancun_block !== null) {
809
+ message.cancunBlock = object.cancun_block;
810
+ }
811
+ return message;
812
+ },
813
+ toAmino(message: ChainConfig): ChainConfigAmino {
814
+ const obj: any = {};
815
+ obj.homestead_block = message.homesteadBlock === "" ? undefined : message.homesteadBlock;
816
+ obj.dao_fork_block = message.daoForkBlock === "" ? undefined : message.daoForkBlock;
817
+ obj.dao_fork_support = message.daoForkSupport === false ? undefined : message.daoForkSupport;
818
+ obj.eip150_block = message.eip150Block === "" ? undefined : message.eip150Block;
819
+ obj.eip150_hash = message.eip150Hash === "" ? undefined : message.eip150Hash;
820
+ obj.eip155_block = message.eip155Block === "" ? undefined : message.eip155Block;
821
+ obj.eip158_block = message.eip158Block === "" ? undefined : message.eip158Block;
822
+ obj.byzantium_block = message.byzantiumBlock === "" ? undefined : message.byzantiumBlock;
823
+ obj.constantinople_block = message.constantinopleBlock === "" ? undefined : message.constantinopleBlock;
824
+ obj.petersburg_block = message.petersburgBlock === "" ? undefined : message.petersburgBlock;
825
+ obj.istanbul_block = message.istanbulBlock === "" ? undefined : message.istanbulBlock;
826
+ obj.muir_glacier_block = message.muirGlacierBlock === "" ? undefined : message.muirGlacierBlock;
827
+ obj.berlin_block = message.berlinBlock === "" ? undefined : message.berlinBlock;
828
+ obj.london_block = message.londonBlock === "" ? undefined : message.londonBlock;
829
+ obj.arrow_glacier_block = message.arrowGlacierBlock === "" ? undefined : message.arrowGlacierBlock;
830
+ obj.gray_glacier_block = message.grayGlacierBlock === "" ? undefined : message.grayGlacierBlock;
831
+ obj.merge_netsplit_block = message.mergeNetsplitBlock === "" ? undefined : message.mergeNetsplitBlock;
832
+ obj.shanghai_block = message.shanghaiBlock === "" ? undefined : message.shanghaiBlock;
833
+ obj.cancun_block = message.cancunBlock === "" ? undefined : message.cancunBlock;
834
+ return obj;
835
+ },
836
+ fromAminoMsg(object: ChainConfigAminoMsg): ChainConfig {
837
+ return ChainConfig.fromAmino(object.value);
838
+ },
839
+ fromProtoMsg(message: ChainConfigProtoMsg): ChainConfig {
840
+ return ChainConfig.decode(message.value);
841
+ },
842
+ toProto(message: ChainConfig): Uint8Array {
843
+ return ChainConfig.encode(message).finish();
844
+ },
845
+ toProtoMsg(message: ChainConfig): ChainConfigProtoMsg {
846
+ return {
847
+ typeUrl: "/ethermint.evm.v1.ChainConfig",
848
+ value: ChainConfig.encode(message).finish()
849
+ };
850
+ }
851
+ };
852
+ GlobalDecoderRegistry.register(ChainConfig.typeUrl, ChainConfig);
853
+ function createBaseState(): State {
854
+ return {
855
+ key: "",
856
+ value: ""
857
+ };
858
+ }
859
+ export const State = {
860
+ typeUrl: "/ethermint.evm.v1.State",
861
+ is(o: any): o is State {
862
+ return o && (o.$typeUrl === State.typeUrl || typeof o.key === "string" && typeof o.value === "string");
863
+ },
864
+ isAmino(o: any): o is StateAmino {
865
+ return o && (o.$typeUrl === State.typeUrl || typeof o.key === "string" && typeof o.value === "string");
866
+ },
867
+ encode(message: State, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
868
+ if (message.key !== "") {
869
+ writer.uint32(10).string(message.key);
870
+ }
871
+ if (message.value !== "") {
872
+ writer.uint32(18).string(message.value);
873
+ }
874
+ return writer;
875
+ },
876
+ decode(input: BinaryReader | Uint8Array, length?: number): State {
877
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
878
+ let end = length === undefined ? reader.len : reader.pos + length;
879
+ const message = createBaseState();
880
+ while (reader.pos < end) {
881
+ const tag = reader.uint32();
882
+ switch (tag >>> 3) {
883
+ case 1:
884
+ message.key = reader.string();
885
+ break;
886
+ case 2:
887
+ message.value = reader.string();
888
+ break;
889
+ default:
890
+ reader.skipType(tag & 7);
891
+ break;
892
+ }
893
+ }
894
+ return message;
895
+ },
896
+ fromPartial(object: DeepPartial<State>): State {
897
+ const message = createBaseState();
898
+ message.key = object.key ?? "";
899
+ message.value = object.value ?? "";
900
+ return message;
901
+ },
902
+ fromAmino(object: StateAmino): State {
903
+ const message = createBaseState();
904
+ if (object.key !== undefined && object.key !== null) {
905
+ message.key = object.key;
906
+ }
907
+ if (object.value !== undefined && object.value !== null) {
908
+ message.value = object.value;
909
+ }
910
+ return message;
911
+ },
912
+ toAmino(message: State): StateAmino {
913
+ const obj: any = {};
914
+ obj.key = message.key === "" ? undefined : message.key;
915
+ obj.value = message.value === "" ? undefined : message.value;
916
+ return obj;
917
+ },
918
+ fromAminoMsg(object: StateAminoMsg): State {
919
+ return State.fromAmino(object.value);
920
+ },
921
+ fromProtoMsg(message: StateProtoMsg): State {
922
+ return State.decode(message.value);
923
+ },
924
+ toProto(message: State): Uint8Array {
925
+ return State.encode(message).finish();
926
+ },
927
+ toProtoMsg(message: State): StateProtoMsg {
928
+ return {
929
+ typeUrl: "/ethermint.evm.v1.State",
930
+ value: State.encode(message).finish()
931
+ };
932
+ }
933
+ };
934
+ GlobalDecoderRegistry.register(State.typeUrl, State);
935
+ function createBaseTransactionLogs(): TransactionLogs {
936
+ return {
937
+ hash: "",
938
+ logs: []
939
+ };
940
+ }
941
+ export const TransactionLogs = {
942
+ typeUrl: "/ethermint.evm.v1.TransactionLogs",
943
+ is(o: any): o is TransactionLogs {
944
+ return o && (o.$typeUrl === TransactionLogs.typeUrl || typeof o.hash === "string" && Array.isArray(o.logs) && (!o.logs.length || Log.is(o.logs[0])));
945
+ },
946
+ isAmino(o: any): o is TransactionLogsAmino {
947
+ return o && (o.$typeUrl === TransactionLogs.typeUrl || typeof o.hash === "string" && Array.isArray(o.logs) && (!o.logs.length || Log.isAmino(o.logs[0])));
948
+ },
949
+ encode(message: TransactionLogs, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
950
+ if (message.hash !== "") {
951
+ writer.uint32(10).string(message.hash);
952
+ }
953
+ for (const v of message.logs) {
954
+ Log.encode(v!, writer.uint32(18).fork()).ldelim();
955
+ }
956
+ return writer;
957
+ },
958
+ decode(input: BinaryReader | Uint8Array, length?: number): TransactionLogs {
959
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
960
+ let end = length === undefined ? reader.len : reader.pos + length;
961
+ const message = createBaseTransactionLogs();
962
+ while (reader.pos < end) {
963
+ const tag = reader.uint32();
964
+ switch (tag >>> 3) {
965
+ case 1:
966
+ message.hash = reader.string();
967
+ break;
968
+ case 2:
969
+ message.logs.push(Log.decode(reader, reader.uint32()));
970
+ break;
971
+ default:
972
+ reader.skipType(tag & 7);
973
+ break;
974
+ }
975
+ }
976
+ return message;
977
+ },
978
+ fromPartial(object: DeepPartial<TransactionLogs>): TransactionLogs {
979
+ const message = createBaseTransactionLogs();
980
+ message.hash = object.hash ?? "";
981
+ message.logs = object.logs?.map(e => Log.fromPartial(e)) || [];
982
+ return message;
983
+ },
984
+ fromAmino(object: TransactionLogsAmino): TransactionLogs {
985
+ const message = createBaseTransactionLogs();
986
+ if (object.hash !== undefined && object.hash !== null) {
987
+ message.hash = object.hash;
988
+ }
989
+ message.logs = object.logs?.map(e => Log.fromAmino(e)) || [];
990
+ return message;
991
+ },
992
+ toAmino(message: TransactionLogs): TransactionLogsAmino {
993
+ const obj: any = {};
994
+ obj.hash = message.hash === "" ? undefined : message.hash;
995
+ if (message.logs) {
996
+ obj.logs = message.logs.map(e => e ? Log.toAmino(e) : undefined);
997
+ } else {
998
+ obj.logs = message.logs;
999
+ }
1000
+ return obj;
1001
+ },
1002
+ fromAminoMsg(object: TransactionLogsAminoMsg): TransactionLogs {
1003
+ return TransactionLogs.fromAmino(object.value);
1004
+ },
1005
+ fromProtoMsg(message: TransactionLogsProtoMsg): TransactionLogs {
1006
+ return TransactionLogs.decode(message.value);
1007
+ },
1008
+ toProto(message: TransactionLogs): Uint8Array {
1009
+ return TransactionLogs.encode(message).finish();
1010
+ },
1011
+ toProtoMsg(message: TransactionLogs): TransactionLogsProtoMsg {
1012
+ return {
1013
+ typeUrl: "/ethermint.evm.v1.TransactionLogs",
1014
+ value: TransactionLogs.encode(message).finish()
1015
+ };
1016
+ }
1017
+ };
1018
+ GlobalDecoderRegistry.register(TransactionLogs.typeUrl, TransactionLogs);
1019
+ function createBaseLog(): Log {
1020
+ return {
1021
+ address: "",
1022
+ topics: [],
1023
+ data: new Uint8Array(),
1024
+ blockNumber: BigInt(0),
1025
+ txHash: "",
1026
+ txIndex: BigInt(0),
1027
+ blockHash: "",
1028
+ index: BigInt(0),
1029
+ removed: false
1030
+ };
1031
+ }
1032
+ export const Log = {
1033
+ typeUrl: "/ethermint.evm.v1.Log",
1034
+ is(o: any): o is Log {
1035
+ return o && (o.$typeUrl === Log.typeUrl || typeof o.address === "string" && Array.isArray(o.topics) && (!o.topics.length || typeof o.topics[0] === "string") && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.blockNumber === "bigint" && typeof o.txHash === "string" && typeof o.txIndex === "bigint" && typeof o.blockHash === "string" && typeof o.index === "bigint" && typeof o.removed === "boolean");
1036
+ },
1037
+ isAmino(o: any): o is LogAmino {
1038
+ return o && (o.$typeUrl === Log.typeUrl || typeof o.address === "string" && Array.isArray(o.topics) && (!o.topics.length || typeof o.topics[0] === "string") && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.block_number === "bigint" && typeof o.tx_hash === "string" && typeof o.tx_index === "bigint" && typeof o.block_hash === "string" && typeof o.index === "bigint" && typeof o.removed === "boolean");
1039
+ },
1040
+ encode(message: Log, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1041
+ if (message.address !== "") {
1042
+ writer.uint32(10).string(message.address);
1043
+ }
1044
+ for (const v of message.topics) {
1045
+ writer.uint32(18).string(v!);
1046
+ }
1047
+ if (message.data.length !== 0) {
1048
+ writer.uint32(26).bytes(message.data);
1049
+ }
1050
+ if (message.blockNumber !== BigInt(0)) {
1051
+ writer.uint32(32).uint64(message.blockNumber);
1052
+ }
1053
+ if (message.txHash !== "") {
1054
+ writer.uint32(42).string(message.txHash);
1055
+ }
1056
+ if (message.txIndex !== BigInt(0)) {
1057
+ writer.uint32(48).uint64(message.txIndex);
1058
+ }
1059
+ if (message.blockHash !== "") {
1060
+ writer.uint32(58).string(message.blockHash);
1061
+ }
1062
+ if (message.index !== BigInt(0)) {
1063
+ writer.uint32(64).uint64(message.index);
1064
+ }
1065
+ if (message.removed === true) {
1066
+ writer.uint32(72).bool(message.removed);
1067
+ }
1068
+ return writer;
1069
+ },
1070
+ decode(input: BinaryReader | Uint8Array, length?: number): Log {
1071
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1072
+ let end = length === undefined ? reader.len : reader.pos + length;
1073
+ const message = createBaseLog();
1074
+ while (reader.pos < end) {
1075
+ const tag = reader.uint32();
1076
+ switch (tag >>> 3) {
1077
+ case 1:
1078
+ message.address = reader.string();
1079
+ break;
1080
+ case 2:
1081
+ message.topics.push(reader.string());
1082
+ break;
1083
+ case 3:
1084
+ message.data = reader.bytes();
1085
+ break;
1086
+ case 4:
1087
+ message.blockNumber = reader.uint64();
1088
+ break;
1089
+ case 5:
1090
+ message.txHash = reader.string();
1091
+ break;
1092
+ case 6:
1093
+ message.txIndex = reader.uint64();
1094
+ break;
1095
+ case 7:
1096
+ message.blockHash = reader.string();
1097
+ break;
1098
+ case 8:
1099
+ message.index = reader.uint64();
1100
+ break;
1101
+ case 9:
1102
+ message.removed = reader.bool();
1103
+ break;
1104
+ default:
1105
+ reader.skipType(tag & 7);
1106
+ break;
1107
+ }
1108
+ }
1109
+ return message;
1110
+ },
1111
+ fromPartial(object: DeepPartial<Log>): Log {
1112
+ const message = createBaseLog();
1113
+ message.address = object.address ?? "";
1114
+ message.topics = object.topics?.map(e => e) || [];
1115
+ message.data = object.data ?? new Uint8Array();
1116
+ message.blockNumber = object.blockNumber !== undefined && object.blockNumber !== null ? BigInt(object.blockNumber.toString()) : BigInt(0);
1117
+ message.txHash = object.txHash ?? "";
1118
+ message.txIndex = object.txIndex !== undefined && object.txIndex !== null ? BigInt(object.txIndex.toString()) : BigInt(0);
1119
+ message.blockHash = object.blockHash ?? "";
1120
+ message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0);
1121
+ message.removed = object.removed ?? false;
1122
+ return message;
1123
+ },
1124
+ fromAmino(object: LogAmino): Log {
1125
+ const message = createBaseLog();
1126
+ if (object.address !== undefined && object.address !== null) {
1127
+ message.address = object.address;
1128
+ }
1129
+ message.topics = object.topics?.map(e => e) || [];
1130
+ if (object.data !== undefined && object.data !== null) {
1131
+ message.data = bytesFromBase64(object.data);
1132
+ }
1133
+ if (object.block_number !== undefined && object.block_number !== null) {
1134
+ message.blockNumber = BigInt(object.block_number);
1135
+ }
1136
+ if (object.tx_hash !== undefined && object.tx_hash !== null) {
1137
+ message.txHash = object.tx_hash;
1138
+ }
1139
+ if (object.tx_index !== undefined && object.tx_index !== null) {
1140
+ message.txIndex = BigInt(object.tx_index);
1141
+ }
1142
+ if (object.block_hash !== undefined && object.block_hash !== null) {
1143
+ message.blockHash = object.block_hash;
1144
+ }
1145
+ if (object.index !== undefined && object.index !== null) {
1146
+ message.index = BigInt(object.index);
1147
+ }
1148
+ if (object.removed !== undefined && object.removed !== null) {
1149
+ message.removed = object.removed;
1150
+ }
1151
+ return message;
1152
+ },
1153
+ toAmino(message: Log): LogAmino {
1154
+ const obj: any = {};
1155
+ obj.address = message.address === "" ? undefined : message.address;
1156
+ if (message.topics) {
1157
+ obj.topics = message.topics.map(e => e);
1158
+ } else {
1159
+ obj.topics = message.topics;
1160
+ }
1161
+ obj.data = message.data ? base64FromBytes(message.data) : undefined;
1162
+ obj.block_number = message.blockNumber ? message.blockNumber?.toString() : "0";
1163
+ obj.tx_hash = message.txHash ?? "";
1164
+ obj.tx_index = message.txIndex ? message.txIndex?.toString() : "0";
1165
+ obj.block_hash = message.blockHash ?? "";
1166
+ obj.index = message.index ? message.index?.toString() : "0";
1167
+ obj.removed = message.removed === false ? undefined : message.removed;
1168
+ return obj;
1169
+ },
1170
+ fromAminoMsg(object: LogAminoMsg): Log {
1171
+ return Log.fromAmino(object.value);
1172
+ },
1173
+ fromProtoMsg(message: LogProtoMsg): Log {
1174
+ return Log.decode(message.value);
1175
+ },
1176
+ toProto(message: Log): Uint8Array {
1177
+ return Log.encode(message).finish();
1178
+ },
1179
+ toProtoMsg(message: Log): LogProtoMsg {
1180
+ return {
1181
+ typeUrl: "/ethermint.evm.v1.Log",
1182
+ value: Log.encode(message).finish()
1183
+ };
1184
+ }
1185
+ };
1186
+ GlobalDecoderRegistry.register(Log.typeUrl, Log);
1187
+ function createBaseTxResult(): TxResult {
1188
+ return {
1189
+ contractAddress: "",
1190
+ bloom: new Uint8Array(),
1191
+ txLogs: TransactionLogs.fromPartial({}),
1192
+ ret: new Uint8Array(),
1193
+ reverted: false,
1194
+ gasUsed: BigInt(0)
1195
+ };
1196
+ }
1197
+ export const TxResult = {
1198
+ typeUrl: "/ethermint.evm.v1.TxResult",
1199
+ is(o: any): o is TxResult {
1200
+ return o && (o.$typeUrl === TxResult.typeUrl || typeof o.contractAddress === "string" && (o.bloom instanceof Uint8Array || typeof o.bloom === "string") && TransactionLogs.is(o.txLogs) && (o.ret instanceof Uint8Array || typeof o.ret === "string") && typeof o.reverted === "boolean" && typeof o.gasUsed === "bigint");
1201
+ },
1202
+ isAmino(o: any): o is TxResultAmino {
1203
+ return o && (o.$typeUrl === TxResult.typeUrl || typeof o.contract_address === "string" && (o.bloom instanceof Uint8Array || typeof o.bloom === "string") && TransactionLogs.isAmino(o.tx_logs) && (o.ret instanceof Uint8Array || typeof o.ret === "string") && typeof o.reverted === "boolean" && typeof o.gas_used === "bigint");
1204
+ },
1205
+ encode(message: TxResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1206
+ if (message.contractAddress !== "") {
1207
+ writer.uint32(10).string(message.contractAddress);
1208
+ }
1209
+ if (message.bloom.length !== 0) {
1210
+ writer.uint32(18).bytes(message.bloom);
1211
+ }
1212
+ if (message.txLogs !== undefined) {
1213
+ TransactionLogs.encode(message.txLogs, writer.uint32(26).fork()).ldelim();
1214
+ }
1215
+ if (message.ret.length !== 0) {
1216
+ writer.uint32(34).bytes(message.ret);
1217
+ }
1218
+ if (message.reverted === true) {
1219
+ writer.uint32(40).bool(message.reverted);
1220
+ }
1221
+ if (message.gasUsed !== BigInt(0)) {
1222
+ writer.uint32(48).uint64(message.gasUsed);
1223
+ }
1224
+ return writer;
1225
+ },
1226
+ decode(input: BinaryReader | Uint8Array, length?: number): TxResult {
1227
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1228
+ let end = length === undefined ? reader.len : reader.pos + length;
1229
+ const message = createBaseTxResult();
1230
+ while (reader.pos < end) {
1231
+ const tag = reader.uint32();
1232
+ switch (tag >>> 3) {
1233
+ case 1:
1234
+ message.contractAddress = reader.string();
1235
+ break;
1236
+ case 2:
1237
+ message.bloom = reader.bytes();
1238
+ break;
1239
+ case 3:
1240
+ message.txLogs = TransactionLogs.decode(reader, reader.uint32());
1241
+ break;
1242
+ case 4:
1243
+ message.ret = reader.bytes();
1244
+ break;
1245
+ case 5:
1246
+ message.reverted = reader.bool();
1247
+ break;
1248
+ case 6:
1249
+ message.gasUsed = reader.uint64();
1250
+ break;
1251
+ default:
1252
+ reader.skipType(tag & 7);
1253
+ break;
1254
+ }
1255
+ }
1256
+ return message;
1257
+ },
1258
+ fromPartial(object: DeepPartial<TxResult>): TxResult {
1259
+ const message = createBaseTxResult();
1260
+ message.contractAddress = object.contractAddress ?? "";
1261
+ message.bloom = object.bloom ?? new Uint8Array();
1262
+ message.txLogs = object.txLogs !== undefined && object.txLogs !== null ? TransactionLogs.fromPartial(object.txLogs) : undefined;
1263
+ message.ret = object.ret ?? new Uint8Array();
1264
+ message.reverted = object.reverted ?? false;
1265
+ message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
1266
+ return message;
1267
+ },
1268
+ fromAmino(object: TxResultAmino): TxResult {
1269
+ const message = createBaseTxResult();
1270
+ if (object.contract_address !== undefined && object.contract_address !== null) {
1271
+ message.contractAddress = object.contract_address;
1272
+ }
1273
+ if (object.bloom !== undefined && object.bloom !== null) {
1274
+ message.bloom = bytesFromBase64(object.bloom);
1275
+ }
1276
+ if (object.tx_logs !== undefined && object.tx_logs !== null) {
1277
+ message.txLogs = TransactionLogs.fromAmino(object.tx_logs);
1278
+ }
1279
+ if (object.ret !== undefined && object.ret !== null) {
1280
+ message.ret = bytesFromBase64(object.ret);
1281
+ }
1282
+ if (object.reverted !== undefined && object.reverted !== null) {
1283
+ message.reverted = object.reverted;
1284
+ }
1285
+ if (object.gas_used !== undefined && object.gas_used !== null) {
1286
+ message.gasUsed = BigInt(object.gas_used);
1287
+ }
1288
+ return message;
1289
+ },
1290
+ toAmino(message: TxResult): TxResultAmino {
1291
+ const obj: any = {};
1292
+ obj.contract_address = message.contractAddress === "" ? undefined : message.contractAddress;
1293
+ obj.bloom = message.bloom ? base64FromBytes(message.bloom) : undefined;
1294
+ obj.tx_logs = message.txLogs ? TransactionLogs.toAmino(message.txLogs) : TransactionLogs.toAmino(TransactionLogs.fromPartial({}));
1295
+ obj.ret = message.ret ? base64FromBytes(message.ret) : undefined;
1296
+ obj.reverted = message.reverted === false ? undefined : message.reverted;
1297
+ obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
1298
+ return obj;
1299
+ },
1300
+ fromAminoMsg(object: TxResultAminoMsg): TxResult {
1301
+ return TxResult.fromAmino(object.value);
1302
+ },
1303
+ fromProtoMsg(message: TxResultProtoMsg): TxResult {
1304
+ return TxResult.decode(message.value);
1305
+ },
1306
+ toProto(message: TxResult): Uint8Array {
1307
+ return TxResult.encode(message).finish();
1308
+ },
1309
+ toProtoMsg(message: TxResult): TxResultProtoMsg {
1310
+ return {
1311
+ typeUrl: "/ethermint.evm.v1.TxResult",
1312
+ value: TxResult.encode(message).finish()
1313
+ };
1314
+ }
1315
+ };
1316
+ GlobalDecoderRegistry.register(TxResult.typeUrl, TxResult);
1317
+ function createBaseAccessTuple(): AccessTuple {
1318
+ return {
1319
+ address: "",
1320
+ storageKeys: []
1321
+ };
1322
+ }
1323
+ export const AccessTuple = {
1324
+ typeUrl: "/ethermint.evm.v1.AccessTuple",
1325
+ is(o: any): o is AccessTuple {
1326
+ return o && (o.$typeUrl === AccessTuple.typeUrl || typeof o.address === "string" && Array.isArray(o.storageKeys) && (!o.storageKeys.length || typeof o.storageKeys[0] === "string"));
1327
+ },
1328
+ isAmino(o: any): o is AccessTupleAmino {
1329
+ return o && (o.$typeUrl === AccessTuple.typeUrl || typeof o.address === "string" && Array.isArray(o.storage_keys) && (!o.storage_keys.length || typeof o.storage_keys[0] === "string"));
1330
+ },
1331
+ encode(message: AccessTuple, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1332
+ if (message.address !== "") {
1333
+ writer.uint32(10).string(message.address);
1334
+ }
1335
+ for (const v of message.storageKeys) {
1336
+ writer.uint32(18).string(v!);
1337
+ }
1338
+ return writer;
1339
+ },
1340
+ decode(input: BinaryReader | Uint8Array, length?: number): AccessTuple {
1341
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1342
+ let end = length === undefined ? reader.len : reader.pos + length;
1343
+ const message = createBaseAccessTuple();
1344
+ while (reader.pos < end) {
1345
+ const tag = reader.uint32();
1346
+ switch (tag >>> 3) {
1347
+ case 1:
1348
+ message.address = reader.string();
1349
+ break;
1350
+ case 2:
1351
+ message.storageKeys.push(reader.string());
1352
+ break;
1353
+ default:
1354
+ reader.skipType(tag & 7);
1355
+ break;
1356
+ }
1357
+ }
1358
+ return message;
1359
+ },
1360
+ fromPartial(object: DeepPartial<AccessTuple>): AccessTuple {
1361
+ const message = createBaseAccessTuple();
1362
+ message.address = object.address ?? "";
1363
+ message.storageKeys = object.storageKeys?.map(e => e) || [];
1364
+ return message;
1365
+ },
1366
+ fromAmino(object: AccessTupleAmino): AccessTuple {
1367
+ const message = createBaseAccessTuple();
1368
+ if (object.address !== undefined && object.address !== null) {
1369
+ message.address = object.address;
1370
+ }
1371
+ message.storageKeys = object.storage_keys?.map(e => e) || [];
1372
+ return message;
1373
+ },
1374
+ toAmino(message: AccessTuple): AccessTupleAmino {
1375
+ const obj: any = {};
1376
+ obj.address = message.address === "" ? undefined : message.address;
1377
+ if (message.storageKeys) {
1378
+ obj.storage_keys = message.storageKeys.map(e => e);
1379
+ } else {
1380
+ obj.storage_keys = message.storageKeys;
1381
+ }
1382
+ return obj;
1383
+ },
1384
+ fromAminoMsg(object: AccessTupleAminoMsg): AccessTuple {
1385
+ return AccessTuple.fromAmino(object.value);
1386
+ },
1387
+ fromProtoMsg(message: AccessTupleProtoMsg): AccessTuple {
1388
+ return AccessTuple.decode(message.value);
1389
+ },
1390
+ toProto(message: AccessTuple): Uint8Array {
1391
+ return AccessTuple.encode(message).finish();
1392
+ },
1393
+ toProtoMsg(message: AccessTuple): AccessTupleProtoMsg {
1394
+ return {
1395
+ typeUrl: "/ethermint.evm.v1.AccessTuple",
1396
+ value: AccessTuple.encode(message).finish()
1397
+ };
1398
+ }
1399
+ };
1400
+ GlobalDecoderRegistry.register(AccessTuple.typeUrl, AccessTuple);
1401
+ function createBaseTraceConfig(): TraceConfig {
1402
+ return {
1403
+ tracer: "",
1404
+ timeout: "",
1405
+ reexec: BigInt(0),
1406
+ disableStack: false,
1407
+ disableStorage: false,
1408
+ debug: false,
1409
+ limit: 0,
1410
+ overrides: undefined,
1411
+ enableMemory: false,
1412
+ enableReturnData: false,
1413
+ tracerJsonConfig: ""
1414
+ };
1415
+ }
1416
+ export const TraceConfig = {
1417
+ typeUrl: "/ethermint.evm.v1.TraceConfig",
1418
+ is(o: any): o is TraceConfig {
1419
+ return o && (o.$typeUrl === TraceConfig.typeUrl || typeof o.tracer === "string" && typeof o.timeout === "string" && typeof o.reexec === "bigint" && typeof o.disableStack === "boolean" && typeof o.disableStorage === "boolean" && typeof o.debug === "boolean" && typeof o.limit === "number" && typeof o.enableMemory === "boolean" && typeof o.enableReturnData === "boolean" && typeof o.tracerJsonConfig === "string");
1420
+ },
1421
+ isAmino(o: any): o is TraceConfigAmino {
1422
+ return o && (o.$typeUrl === TraceConfig.typeUrl || typeof o.tracer === "string" && typeof o.timeout === "string" && typeof o.reexec === "bigint" && typeof o.disable_stack === "boolean" && typeof o.disable_storage === "boolean" && typeof o.debug === "boolean" && typeof o.limit === "number" && typeof o.enable_memory === "boolean" && typeof o.enable_return_data === "boolean" && typeof o.tracer_json_config === "string");
1423
+ },
1424
+ encode(message: TraceConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1425
+ if (message.tracer !== "") {
1426
+ writer.uint32(10).string(message.tracer);
1427
+ }
1428
+ if (message.timeout !== "") {
1429
+ writer.uint32(18).string(message.timeout);
1430
+ }
1431
+ if (message.reexec !== BigInt(0)) {
1432
+ writer.uint32(24).uint64(message.reexec);
1433
+ }
1434
+ if (message.disableStack === true) {
1435
+ writer.uint32(40).bool(message.disableStack);
1436
+ }
1437
+ if (message.disableStorage === true) {
1438
+ writer.uint32(48).bool(message.disableStorage);
1439
+ }
1440
+ if (message.debug === true) {
1441
+ writer.uint32(64).bool(message.debug);
1442
+ }
1443
+ if (message.limit !== 0) {
1444
+ writer.uint32(72).int32(message.limit);
1445
+ }
1446
+ if (message.overrides !== undefined) {
1447
+ ChainConfig.encode(message.overrides, writer.uint32(82).fork()).ldelim();
1448
+ }
1449
+ if (message.enableMemory === true) {
1450
+ writer.uint32(88).bool(message.enableMemory);
1451
+ }
1452
+ if (message.enableReturnData === true) {
1453
+ writer.uint32(96).bool(message.enableReturnData);
1454
+ }
1455
+ if (message.tracerJsonConfig !== "") {
1456
+ writer.uint32(106).string(message.tracerJsonConfig);
1457
+ }
1458
+ return writer;
1459
+ },
1460
+ decode(input: BinaryReader | Uint8Array, length?: number): TraceConfig {
1461
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1462
+ let end = length === undefined ? reader.len : reader.pos + length;
1463
+ const message = createBaseTraceConfig();
1464
+ while (reader.pos < end) {
1465
+ const tag = reader.uint32();
1466
+ switch (tag >>> 3) {
1467
+ case 1:
1468
+ message.tracer = reader.string();
1469
+ break;
1470
+ case 2:
1471
+ message.timeout = reader.string();
1472
+ break;
1473
+ case 3:
1474
+ message.reexec = reader.uint64();
1475
+ break;
1476
+ case 5:
1477
+ message.disableStack = reader.bool();
1478
+ break;
1479
+ case 6:
1480
+ message.disableStorage = reader.bool();
1481
+ break;
1482
+ case 8:
1483
+ message.debug = reader.bool();
1484
+ break;
1485
+ case 9:
1486
+ message.limit = reader.int32();
1487
+ break;
1488
+ case 10:
1489
+ message.overrides = ChainConfig.decode(reader, reader.uint32());
1490
+ break;
1491
+ case 11:
1492
+ message.enableMemory = reader.bool();
1493
+ break;
1494
+ case 12:
1495
+ message.enableReturnData = reader.bool();
1496
+ break;
1497
+ case 13:
1498
+ message.tracerJsonConfig = reader.string();
1499
+ break;
1500
+ default:
1501
+ reader.skipType(tag & 7);
1502
+ break;
1503
+ }
1504
+ }
1505
+ return message;
1506
+ },
1507
+ fromPartial(object: DeepPartial<TraceConfig>): TraceConfig {
1508
+ const message = createBaseTraceConfig();
1509
+ message.tracer = object.tracer ?? "";
1510
+ message.timeout = object.timeout ?? "";
1511
+ message.reexec = object.reexec !== undefined && object.reexec !== null ? BigInt(object.reexec.toString()) : BigInt(0);
1512
+ message.disableStack = object.disableStack ?? false;
1513
+ message.disableStorage = object.disableStorage ?? false;
1514
+ message.debug = object.debug ?? false;
1515
+ message.limit = object.limit ?? 0;
1516
+ message.overrides = object.overrides !== undefined && object.overrides !== null ? ChainConfig.fromPartial(object.overrides) : undefined;
1517
+ message.enableMemory = object.enableMemory ?? false;
1518
+ message.enableReturnData = object.enableReturnData ?? false;
1519
+ message.tracerJsonConfig = object.tracerJsonConfig ?? "";
1520
+ return message;
1521
+ },
1522
+ fromAmino(object: TraceConfigAmino): TraceConfig {
1523
+ const message = createBaseTraceConfig();
1524
+ if (object.tracer !== undefined && object.tracer !== null) {
1525
+ message.tracer = object.tracer;
1526
+ }
1527
+ if (object.timeout !== undefined && object.timeout !== null) {
1528
+ message.timeout = object.timeout;
1529
+ }
1530
+ if (object.reexec !== undefined && object.reexec !== null) {
1531
+ message.reexec = BigInt(object.reexec);
1532
+ }
1533
+ if (object.disable_stack !== undefined && object.disable_stack !== null) {
1534
+ message.disableStack = object.disable_stack;
1535
+ }
1536
+ if (object.disable_storage !== undefined && object.disable_storage !== null) {
1537
+ message.disableStorage = object.disable_storage;
1538
+ }
1539
+ if (object.debug !== undefined && object.debug !== null) {
1540
+ message.debug = object.debug;
1541
+ }
1542
+ if (object.limit !== undefined && object.limit !== null) {
1543
+ message.limit = object.limit;
1544
+ }
1545
+ if (object.overrides !== undefined && object.overrides !== null) {
1546
+ message.overrides = ChainConfig.fromAmino(object.overrides);
1547
+ }
1548
+ if (object.enable_memory !== undefined && object.enable_memory !== null) {
1549
+ message.enableMemory = object.enable_memory;
1550
+ }
1551
+ if (object.enable_return_data !== undefined && object.enable_return_data !== null) {
1552
+ message.enableReturnData = object.enable_return_data;
1553
+ }
1554
+ if (object.tracer_json_config !== undefined && object.tracer_json_config !== null) {
1555
+ message.tracerJsonConfig = object.tracer_json_config;
1556
+ }
1557
+ return message;
1558
+ },
1559
+ toAmino(message: TraceConfig): TraceConfigAmino {
1560
+ const obj: any = {};
1561
+ obj.tracer = message.tracer === "" ? undefined : message.tracer;
1562
+ obj.timeout = message.timeout === "" ? undefined : message.timeout;
1563
+ obj.reexec = message.reexec !== BigInt(0) ? message.reexec?.toString() : undefined;
1564
+ obj.disable_stack = message.disableStack ?? false;
1565
+ obj.disable_storage = message.disableStorage ?? false;
1566
+ obj.debug = message.debug === false ? undefined : message.debug;
1567
+ obj.limit = message.limit === 0 ? undefined : message.limit;
1568
+ obj.overrides = message.overrides ? ChainConfig.toAmino(message.overrides) : undefined;
1569
+ obj.enable_memory = message.enableMemory ?? false;
1570
+ obj.enable_return_data = message.enableReturnData ?? false;
1571
+ obj.tracer_json_config = message.tracerJsonConfig ?? "";
1572
+ return obj;
1573
+ },
1574
+ fromAminoMsg(object: TraceConfigAminoMsg): TraceConfig {
1575
+ return TraceConfig.fromAmino(object.value);
1576
+ },
1577
+ fromProtoMsg(message: TraceConfigProtoMsg): TraceConfig {
1578
+ return TraceConfig.decode(message.value);
1579
+ },
1580
+ toProto(message: TraceConfig): Uint8Array {
1581
+ return TraceConfig.encode(message).finish();
1582
+ },
1583
+ toProtoMsg(message: TraceConfig): TraceConfigProtoMsg {
1584
+ return {
1585
+ typeUrl: "/ethermint.evm.v1.TraceConfig",
1586
+ value: TraceConfig.encode(message).finish()
1587
+ };
1588
+ }
1589
+ };
1590
+ GlobalDecoderRegistry.register(TraceConfig.typeUrl, TraceConfig);