@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,1333 @@
1
+ import { Any, AnyAmino } from "../../../google/protobuf/any";
2
+ import { Params, ParamsAmino, AccessTuple, AccessTupleAmino, Log, LogAmino } from "./evm";
3
+ import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
5
+ import { GlobalDecoderRegistry } from "../../../registry";
6
+ /** MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. */
7
+ export interface MsgEthereumTx {
8
+ /** data is inner transaction data of the Ethereum transaction */
9
+ data?: Any;
10
+ /** size is the encoded storage size of the transaction (DEPRECATED) */
11
+ size: number;
12
+ /** hash of the transaction in hex format */
13
+ hash: string;
14
+ /**
15
+ * from is the ethereum signer address in hex format. This address value is checked
16
+ * against the address derived from the signature (V, R, S) using the
17
+ * secp256k1 elliptic curve
18
+ */
19
+ from: string;
20
+ }
21
+ export interface MsgEthereumTxProtoMsg {
22
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTx";
23
+ value: Uint8Array;
24
+ }
25
+ /** MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. */
26
+ export interface MsgEthereumTxAmino {
27
+ /** data is inner transaction data of the Ethereum transaction */
28
+ data?: AnyAmino;
29
+ /** size is the encoded storage size of the transaction (DEPRECATED) */
30
+ size: number;
31
+ /** hash of the transaction in hex format */
32
+ hash: string;
33
+ /**
34
+ * from is the ethereum signer address in hex format. This address value is checked
35
+ * against the address derived from the signature (V, R, S) using the
36
+ * secp256k1 elliptic curve
37
+ */
38
+ from: string;
39
+ }
40
+ export interface MsgEthereumTxAminoMsg {
41
+ type: "ethermint/MsgEthereumTx";
42
+ value: MsgEthereumTxAmino;
43
+ }
44
+ /**
45
+ * LegacyTx is the transaction data of regular Ethereum transactions.
46
+ * NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the
47
+ * AllowUnprotectedTxs parameter is disabled.
48
+ */
49
+ export interface LegacyTx {
50
+ /** nonce corresponds to the account nonce (transaction sequence). */
51
+ nonce: bigint;
52
+ /** gas_price defines the value for each gas unit */
53
+ gasPrice: string;
54
+ /** gas defines the gas limit defined for the transaction. */
55
+ gas: bigint;
56
+ /** to is the hex formatted address of the recipient */
57
+ to: string;
58
+ /** value defines the unsigned integer value of the transaction amount. */
59
+ value: string;
60
+ /** data is the data payload bytes of the transaction. */
61
+ data: Uint8Array;
62
+ /** v defines the signature value */
63
+ v: Uint8Array;
64
+ /** r defines the signature value */
65
+ r: Uint8Array;
66
+ /** s define the signature value */
67
+ s: Uint8Array;
68
+ }
69
+ export interface LegacyTxProtoMsg {
70
+ typeUrl: "/ethermint.evm.v1.LegacyTx";
71
+ value: Uint8Array;
72
+ }
73
+ /**
74
+ * LegacyTx is the transaction data of regular Ethereum transactions.
75
+ * NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the
76
+ * AllowUnprotectedTxs parameter is disabled.
77
+ */
78
+ export interface LegacyTxAmino {
79
+ /** nonce corresponds to the account nonce (transaction sequence). */
80
+ nonce: string;
81
+ /** gas_price defines the value for each gas unit */
82
+ gas_price: string;
83
+ /** gas defines the gas limit defined for the transaction. */
84
+ gas: string;
85
+ /** to is the hex formatted address of the recipient */
86
+ to: string;
87
+ /** value defines the unsigned integer value of the transaction amount. */
88
+ value: string;
89
+ /** data is the data payload bytes of the transaction. */
90
+ data: string;
91
+ /** v defines the signature value */
92
+ v: string;
93
+ /** r defines the signature value */
94
+ r: string;
95
+ /** s define the signature value */
96
+ s: string;
97
+ }
98
+ export interface LegacyTxAminoMsg {
99
+ type: "/ethermint.evm.v1.LegacyTx";
100
+ value: LegacyTxAmino;
101
+ }
102
+ /** AccessListTx is the data of EIP-2930 access list transactions. */
103
+ export interface AccessListTx {
104
+ /** chain_id of the destination EVM chain */
105
+ chainId: string;
106
+ /** nonce corresponds to the account nonce (transaction sequence). */
107
+ nonce: bigint;
108
+ /** gas_price defines the value for each gas unit */
109
+ gasPrice: string;
110
+ /** gas defines the gas limit defined for the transaction. */
111
+ gas: bigint;
112
+ /** to is the recipient address in hex format */
113
+ to: string;
114
+ /** value defines the unsigned integer value of the transaction amount. */
115
+ value: string;
116
+ /** data is the data payload bytes of the transaction. */
117
+ data: Uint8Array;
118
+ /** accesses is an array of access tuples */
119
+ accesses: AccessTuple[];
120
+ /** v defines the signature value */
121
+ v: Uint8Array;
122
+ /** r defines the signature value */
123
+ r: Uint8Array;
124
+ /** s define the signature value */
125
+ s: Uint8Array;
126
+ }
127
+ export interface AccessListTxProtoMsg {
128
+ typeUrl: "/ethermint.evm.v1.AccessListTx";
129
+ value: Uint8Array;
130
+ }
131
+ /** AccessListTx is the data of EIP-2930 access list transactions. */
132
+ export interface AccessListTxAmino {
133
+ /** chain_id of the destination EVM chain */
134
+ chain_id: string;
135
+ /** nonce corresponds to the account nonce (transaction sequence). */
136
+ nonce: string;
137
+ /** gas_price defines the value for each gas unit */
138
+ gas_price: string;
139
+ /** gas defines the gas limit defined for the transaction. */
140
+ gas: string;
141
+ /** to is the recipient address in hex format */
142
+ to: string;
143
+ /** value defines the unsigned integer value of the transaction amount. */
144
+ value: string;
145
+ /** data is the data payload bytes of the transaction. */
146
+ data: string;
147
+ /** accesses is an array of access tuples */
148
+ accesses: AccessTupleAmino[];
149
+ /** v defines the signature value */
150
+ v: string;
151
+ /** r defines the signature value */
152
+ r: string;
153
+ /** s define the signature value */
154
+ s: string;
155
+ }
156
+ export interface AccessListTxAminoMsg {
157
+ type: "/ethermint.evm.v1.AccessListTx";
158
+ value: AccessListTxAmino;
159
+ }
160
+ /** DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. */
161
+ export interface DynamicFeeTx {
162
+ /** chain_id of the destination EVM chain */
163
+ chainId: string;
164
+ /** nonce corresponds to the account nonce (transaction sequence). */
165
+ nonce: bigint;
166
+ /** gas_tip_cap defines the max value for the gas tip */
167
+ gasTipCap: string;
168
+ /** gas_fee_cap defines the max value for the gas fee */
169
+ gasFeeCap: string;
170
+ /** gas defines the gas limit defined for the transaction. */
171
+ gas: bigint;
172
+ /** to is the hex formatted address of the recipient */
173
+ to: string;
174
+ /** value defines the transaction amount. */
175
+ value: string;
176
+ /** data is the data payload bytes of the transaction. */
177
+ data: Uint8Array;
178
+ /** accesses is an array of access tuples */
179
+ accesses: AccessTuple[];
180
+ /** v defines the signature value */
181
+ v: Uint8Array;
182
+ /** r defines the signature value */
183
+ r: Uint8Array;
184
+ /** s define the signature value */
185
+ s: Uint8Array;
186
+ }
187
+ export interface DynamicFeeTxProtoMsg {
188
+ typeUrl: "/ethermint.evm.v1.DynamicFeeTx";
189
+ value: Uint8Array;
190
+ }
191
+ /** DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. */
192
+ export interface DynamicFeeTxAmino {
193
+ /** chain_id of the destination EVM chain */
194
+ chain_id: string;
195
+ /** nonce corresponds to the account nonce (transaction sequence). */
196
+ nonce: string;
197
+ /** gas_tip_cap defines the max value for the gas tip */
198
+ gas_tip_cap: string;
199
+ /** gas_fee_cap defines the max value for the gas fee */
200
+ gas_fee_cap: string;
201
+ /** gas defines the gas limit defined for the transaction. */
202
+ gas: string;
203
+ /** to is the hex formatted address of the recipient */
204
+ to: string;
205
+ /** value defines the transaction amount. */
206
+ value: string;
207
+ /** data is the data payload bytes of the transaction. */
208
+ data: string;
209
+ /** accesses is an array of access tuples */
210
+ accesses: AccessTupleAmino[];
211
+ /** v defines the signature value */
212
+ v: string;
213
+ /** r defines the signature value */
214
+ r: string;
215
+ /** s define the signature value */
216
+ s: string;
217
+ }
218
+ export interface DynamicFeeTxAminoMsg {
219
+ type: "/ethermint.evm.v1.DynamicFeeTx";
220
+ value: DynamicFeeTxAmino;
221
+ }
222
+ /** ExtensionOptionsEthereumTx is an extension option for ethereum transactions */
223
+ export interface ExtensionOptionsEthereumTx {}
224
+ export interface ExtensionOptionsEthereumTxProtoMsg {
225
+ typeUrl: "/ethermint.evm.v1.ExtensionOptionsEthereumTx";
226
+ value: Uint8Array;
227
+ }
228
+ /** ExtensionOptionsEthereumTx is an extension option for ethereum transactions */
229
+ export interface ExtensionOptionsEthereumTxAmino {}
230
+ export interface ExtensionOptionsEthereumTxAminoMsg {
231
+ type: "/ethermint.evm.v1.ExtensionOptionsEthereumTx";
232
+ value: ExtensionOptionsEthereumTxAmino;
233
+ }
234
+ /** MsgEthereumTxResponse defines the Msg/EthereumTx response type. */
235
+ export interface MsgEthereumTxResponse {
236
+ /**
237
+ * hash of the ethereum transaction in hex format. This hash differs from the
238
+ * Tendermint sha256 hash of the transaction bytes. See
239
+ * https://github.com/tendermint/tendermint/issues/6539 for reference
240
+ */
241
+ hash: string;
242
+ /**
243
+ * logs contains the transaction hash and the proto-compatible ethereum
244
+ * logs.
245
+ */
246
+ logs: Log[];
247
+ /**
248
+ * ret is the returned data from evm function (result or data supplied with revert
249
+ * opcode)
250
+ */
251
+ ret: Uint8Array;
252
+ /** vm_error is the error returned by vm execution */
253
+ vmError: string;
254
+ /** gas_used specifies how much gas was consumed by the transaction */
255
+ gasUsed: bigint;
256
+ }
257
+ export interface MsgEthereumTxResponseProtoMsg {
258
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTxResponse";
259
+ value: Uint8Array;
260
+ }
261
+ /** MsgEthereumTxResponse defines the Msg/EthereumTx response type. */
262
+ export interface MsgEthereumTxResponseAmino {
263
+ /**
264
+ * hash of the ethereum transaction in hex format. This hash differs from the
265
+ * Tendermint sha256 hash of the transaction bytes. See
266
+ * https://github.com/tendermint/tendermint/issues/6539 for reference
267
+ */
268
+ hash: string;
269
+ /**
270
+ * logs contains the transaction hash and the proto-compatible ethereum
271
+ * logs.
272
+ */
273
+ logs: LogAmino[];
274
+ /**
275
+ * ret is the returned data from evm function (result or data supplied with revert
276
+ * opcode)
277
+ */
278
+ ret: string;
279
+ /** vm_error is the error returned by vm execution */
280
+ vm_error: string;
281
+ /** gas_used specifies how much gas was consumed by the transaction */
282
+ gas_used: string;
283
+ }
284
+ export interface MsgEthereumTxResponseAminoMsg {
285
+ type: "/ethermint.evm.v1.MsgEthereumTxResponse";
286
+ value: MsgEthereumTxResponseAmino;
287
+ }
288
+ /** MsgUpdateParams defines a Msg for updating the x/evm module parameters. */
289
+ export interface MsgUpdateParams {
290
+ /** authority is the address of the governance account. */
291
+ authority: string;
292
+ /**
293
+ * params defines the x/evm parameters to update.
294
+ * NOTE: All parameters must be supplied.
295
+ */
296
+ params: Params;
297
+ }
298
+ export interface MsgUpdateParamsProtoMsg {
299
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParams";
300
+ value: Uint8Array;
301
+ }
302
+ /** MsgUpdateParams defines a Msg for updating the x/evm module parameters. */
303
+ export interface MsgUpdateParamsAmino {
304
+ /** authority is the address of the governance account. */
305
+ authority: string;
306
+ /**
307
+ * params defines the x/evm parameters to update.
308
+ * NOTE: All parameters must be supplied.
309
+ */
310
+ params: ParamsAmino;
311
+ }
312
+ export interface MsgUpdateParamsAminoMsg {
313
+ type: "ethermint/x/evm/MsgUpdateParams";
314
+ value: MsgUpdateParamsAmino;
315
+ }
316
+ /**
317
+ * MsgUpdateParamsResponse defines the response structure for executing a
318
+ * MsgUpdateParams message.
319
+ */
320
+ export interface MsgUpdateParamsResponse {}
321
+ export interface MsgUpdateParamsResponseProtoMsg {
322
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParamsResponse";
323
+ value: Uint8Array;
324
+ }
325
+ /**
326
+ * MsgUpdateParamsResponse defines the response structure for executing a
327
+ * MsgUpdateParams message.
328
+ */
329
+ export interface MsgUpdateParamsResponseAmino {}
330
+ export interface MsgUpdateParamsResponseAminoMsg {
331
+ type: "/ethermint.evm.v1.MsgUpdateParamsResponse";
332
+ value: MsgUpdateParamsResponseAmino;
333
+ }
334
+ function createBaseMsgEthereumTx(): MsgEthereumTx {
335
+ return {
336
+ data: undefined,
337
+ size: 0,
338
+ hash: "",
339
+ from: ""
340
+ };
341
+ }
342
+ export const MsgEthereumTx = {
343
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTx",
344
+ aminoType: "ethermint/MsgEthereumTx",
345
+ is(o: any): o is MsgEthereumTx {
346
+ return o && (o.$typeUrl === MsgEthereumTx.typeUrl || typeof o.size === "number" && typeof o.hash === "string" && typeof o.from === "string");
347
+ },
348
+ isAmino(o: any): o is MsgEthereumTxAmino {
349
+ return o && (o.$typeUrl === MsgEthereumTx.typeUrl || typeof o.size === "number" && typeof o.hash === "string" && typeof o.from === "string");
350
+ },
351
+ encode(message: MsgEthereumTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
352
+ if (message.data !== undefined) {
353
+ Any.encode(message.data, writer.uint32(10).fork()).ldelim();
354
+ }
355
+ if (message.size !== 0) {
356
+ writer.uint32(17).double(message.size);
357
+ }
358
+ if (message.hash !== "") {
359
+ writer.uint32(26).string(message.hash);
360
+ }
361
+ if (message.from !== "") {
362
+ writer.uint32(34).string(message.from);
363
+ }
364
+ return writer;
365
+ },
366
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgEthereumTx {
367
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
368
+ let end = length === undefined ? reader.len : reader.pos + length;
369
+ const message = createBaseMsgEthereumTx();
370
+ while (reader.pos < end) {
371
+ const tag = reader.uint32();
372
+ switch (tag >>> 3) {
373
+ case 1:
374
+ message.data = Any.decode(reader, reader.uint32());
375
+ break;
376
+ case 2:
377
+ message.size = reader.double();
378
+ break;
379
+ case 3:
380
+ message.hash = reader.string();
381
+ break;
382
+ case 4:
383
+ message.from = reader.string();
384
+ break;
385
+ default:
386
+ reader.skipType(tag & 7);
387
+ break;
388
+ }
389
+ }
390
+ return message;
391
+ },
392
+ fromPartial(object: DeepPartial<MsgEthereumTx>): MsgEthereumTx {
393
+ const message = createBaseMsgEthereumTx();
394
+ message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined;
395
+ message.size = object.size ?? 0;
396
+ message.hash = object.hash ?? "";
397
+ message.from = object.from ?? "";
398
+ return message;
399
+ },
400
+ fromAmino(object: MsgEthereumTxAmino): MsgEthereumTx {
401
+ const message = createBaseMsgEthereumTx();
402
+ if (object.data !== undefined && object.data !== null) {
403
+ message.data = Any.fromAmino(object.data);
404
+ }
405
+ if (object.size !== undefined && object.size !== null) {
406
+ message.size = object.size;
407
+ }
408
+ if (object.hash !== undefined && object.hash !== null) {
409
+ message.hash = object.hash;
410
+ }
411
+ if (object.from !== undefined && object.from !== null) {
412
+ message.from = object.from;
413
+ }
414
+ return message;
415
+ },
416
+ toAmino(message: MsgEthereumTx): MsgEthereumTxAmino {
417
+ const obj: any = {};
418
+ obj.data = message.data ? Any.toAmino(message.data) : undefined;
419
+ obj.size = message.size ?? 0;
420
+ obj.hash = message.hash === "" ? undefined : message.hash;
421
+ obj.from = message.from === "" ? undefined : message.from;
422
+ return obj;
423
+ },
424
+ fromAminoMsg(object: MsgEthereumTxAminoMsg): MsgEthereumTx {
425
+ return MsgEthereumTx.fromAmino(object.value);
426
+ },
427
+ toAminoMsg(message: MsgEthereumTx): MsgEthereumTxAminoMsg {
428
+ return {
429
+ type: "ethermint/MsgEthereumTx",
430
+ value: MsgEthereumTx.toAmino(message)
431
+ };
432
+ },
433
+ fromProtoMsg(message: MsgEthereumTxProtoMsg): MsgEthereumTx {
434
+ return MsgEthereumTx.decode(message.value);
435
+ },
436
+ toProto(message: MsgEthereumTx): Uint8Array {
437
+ return MsgEthereumTx.encode(message).finish();
438
+ },
439
+ toProtoMsg(message: MsgEthereumTx): MsgEthereumTxProtoMsg {
440
+ return {
441
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTx",
442
+ value: MsgEthereumTx.encode(message).finish()
443
+ };
444
+ }
445
+ };
446
+ GlobalDecoderRegistry.register(MsgEthereumTx.typeUrl, MsgEthereumTx);
447
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgEthereumTx.aminoType, MsgEthereumTx.typeUrl);
448
+ function createBaseLegacyTx(): LegacyTx {
449
+ return {
450
+ nonce: BigInt(0),
451
+ gasPrice: "",
452
+ gas: BigInt(0),
453
+ to: "",
454
+ value: "",
455
+ data: new Uint8Array(),
456
+ v: new Uint8Array(),
457
+ r: new Uint8Array(),
458
+ s: new Uint8Array()
459
+ };
460
+ }
461
+ export const LegacyTx = {
462
+ typeUrl: "/ethermint.evm.v1.LegacyTx",
463
+ is(o: any): o is LegacyTx {
464
+ return o && (o.$typeUrl === LegacyTx.typeUrl || typeof o.nonce === "bigint" && typeof o.gasPrice === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
465
+ },
466
+ isAmino(o: any): o is LegacyTxAmino {
467
+ return o && (o.$typeUrl === LegacyTx.typeUrl || typeof o.nonce === "bigint" && typeof o.gas_price === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
468
+ },
469
+ encode(message: LegacyTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
470
+ if (message.nonce !== BigInt(0)) {
471
+ writer.uint32(8).uint64(message.nonce);
472
+ }
473
+ if (message.gasPrice !== "") {
474
+ writer.uint32(18).string(message.gasPrice);
475
+ }
476
+ if (message.gas !== BigInt(0)) {
477
+ writer.uint32(24).uint64(message.gas);
478
+ }
479
+ if (message.to !== "") {
480
+ writer.uint32(34).string(message.to);
481
+ }
482
+ if (message.value !== "") {
483
+ writer.uint32(42).string(message.value);
484
+ }
485
+ if (message.data.length !== 0) {
486
+ writer.uint32(50).bytes(message.data);
487
+ }
488
+ if (message.v.length !== 0) {
489
+ writer.uint32(58).bytes(message.v);
490
+ }
491
+ if (message.r.length !== 0) {
492
+ writer.uint32(66).bytes(message.r);
493
+ }
494
+ if (message.s.length !== 0) {
495
+ writer.uint32(74).bytes(message.s);
496
+ }
497
+ return writer;
498
+ },
499
+ decode(input: BinaryReader | Uint8Array, length?: number): LegacyTx {
500
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
501
+ let end = length === undefined ? reader.len : reader.pos + length;
502
+ const message = createBaseLegacyTx();
503
+ while (reader.pos < end) {
504
+ const tag = reader.uint32();
505
+ switch (tag >>> 3) {
506
+ case 1:
507
+ message.nonce = reader.uint64();
508
+ break;
509
+ case 2:
510
+ message.gasPrice = reader.string();
511
+ break;
512
+ case 3:
513
+ message.gas = reader.uint64();
514
+ break;
515
+ case 4:
516
+ message.to = reader.string();
517
+ break;
518
+ case 5:
519
+ message.value = reader.string();
520
+ break;
521
+ case 6:
522
+ message.data = reader.bytes();
523
+ break;
524
+ case 7:
525
+ message.v = reader.bytes();
526
+ break;
527
+ case 8:
528
+ message.r = reader.bytes();
529
+ break;
530
+ case 9:
531
+ message.s = reader.bytes();
532
+ break;
533
+ default:
534
+ reader.skipType(tag & 7);
535
+ break;
536
+ }
537
+ }
538
+ return message;
539
+ },
540
+ fromPartial(object: DeepPartial<LegacyTx>): LegacyTx {
541
+ const message = createBaseLegacyTx();
542
+ message.nonce = object.nonce !== undefined && object.nonce !== null ? BigInt(object.nonce.toString()) : BigInt(0);
543
+ message.gasPrice = object.gasPrice ?? "";
544
+ message.gas = object.gas !== undefined && object.gas !== null ? BigInt(object.gas.toString()) : BigInt(0);
545
+ message.to = object.to ?? "";
546
+ message.value = object.value ?? "";
547
+ message.data = object.data ?? new Uint8Array();
548
+ message.v = object.v ?? new Uint8Array();
549
+ message.r = object.r ?? new Uint8Array();
550
+ message.s = object.s ?? new Uint8Array();
551
+ return message;
552
+ },
553
+ fromAmino(object: LegacyTxAmino): LegacyTx {
554
+ const message = createBaseLegacyTx();
555
+ if (object.nonce !== undefined && object.nonce !== null) {
556
+ message.nonce = BigInt(object.nonce);
557
+ }
558
+ if (object.gas_price !== undefined && object.gas_price !== null) {
559
+ message.gasPrice = object.gas_price;
560
+ }
561
+ if (object.gas !== undefined && object.gas !== null) {
562
+ message.gas = BigInt(object.gas);
563
+ }
564
+ if (object.to !== undefined && object.to !== null) {
565
+ message.to = object.to;
566
+ }
567
+ if (object.value !== undefined && object.value !== null) {
568
+ message.value = object.value;
569
+ }
570
+ if (object.data !== undefined && object.data !== null) {
571
+ message.data = bytesFromBase64(object.data);
572
+ }
573
+ if (object.v !== undefined && object.v !== null) {
574
+ message.v = bytesFromBase64(object.v);
575
+ }
576
+ if (object.r !== undefined && object.r !== null) {
577
+ message.r = bytesFromBase64(object.r);
578
+ }
579
+ if (object.s !== undefined && object.s !== null) {
580
+ message.s = bytesFromBase64(object.s);
581
+ }
582
+ return message;
583
+ },
584
+ toAmino(message: LegacyTx): LegacyTxAmino {
585
+ const obj: any = {};
586
+ obj.nonce = message.nonce !== BigInt(0) ? message.nonce?.toString() : undefined;
587
+ obj.gas_price = message.gasPrice === "" ? undefined : message.gasPrice;
588
+ obj.gas = message.gas !== BigInt(0) ? message.gas?.toString() : undefined;
589
+ obj.to = message.to === "" ? undefined : message.to;
590
+ obj.value = message.value === "" ? undefined : message.value;
591
+ obj.data = message.data ? base64FromBytes(message.data) : undefined;
592
+ obj.v = message.v ? base64FromBytes(message.v) : undefined;
593
+ obj.r = message.r ? base64FromBytes(message.r) : undefined;
594
+ obj.s = message.s ? base64FromBytes(message.s) : undefined;
595
+ return obj;
596
+ },
597
+ fromAminoMsg(object: LegacyTxAminoMsg): LegacyTx {
598
+ return LegacyTx.fromAmino(object.value);
599
+ },
600
+ fromProtoMsg(message: LegacyTxProtoMsg): LegacyTx {
601
+ return LegacyTx.decode(message.value);
602
+ },
603
+ toProto(message: LegacyTx): Uint8Array {
604
+ return LegacyTx.encode(message).finish();
605
+ },
606
+ toProtoMsg(message: LegacyTx): LegacyTxProtoMsg {
607
+ return {
608
+ typeUrl: "/ethermint.evm.v1.LegacyTx",
609
+ value: LegacyTx.encode(message).finish()
610
+ };
611
+ }
612
+ };
613
+ GlobalDecoderRegistry.register(LegacyTx.typeUrl, LegacyTx);
614
+ function createBaseAccessListTx(): AccessListTx {
615
+ return {
616
+ chainId: "",
617
+ nonce: BigInt(0),
618
+ gasPrice: "",
619
+ gas: BigInt(0),
620
+ to: "",
621
+ value: "",
622
+ data: new Uint8Array(),
623
+ accesses: [],
624
+ v: new Uint8Array(),
625
+ r: new Uint8Array(),
626
+ s: new Uint8Array()
627
+ };
628
+ }
629
+ export const AccessListTx = {
630
+ typeUrl: "/ethermint.evm.v1.AccessListTx",
631
+ is(o: any): o is AccessListTx {
632
+ return o && (o.$typeUrl === AccessListTx.typeUrl || typeof o.chainId === "string" && typeof o.nonce === "bigint" && typeof o.gasPrice === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && Array.isArray(o.accesses) && (!o.accesses.length || AccessTuple.is(o.accesses[0])) && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
633
+ },
634
+ isAmino(o: any): o is AccessListTxAmino {
635
+ return o && (o.$typeUrl === AccessListTx.typeUrl || typeof o.chain_id === "string" && typeof o.nonce === "bigint" && typeof o.gas_price === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && Array.isArray(o.accesses) && (!o.accesses.length || AccessTuple.isAmino(o.accesses[0])) && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
636
+ },
637
+ encode(message: AccessListTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
638
+ if (message.chainId !== "") {
639
+ writer.uint32(10).string(message.chainId);
640
+ }
641
+ if (message.nonce !== BigInt(0)) {
642
+ writer.uint32(16).uint64(message.nonce);
643
+ }
644
+ if (message.gasPrice !== "") {
645
+ writer.uint32(26).string(message.gasPrice);
646
+ }
647
+ if (message.gas !== BigInt(0)) {
648
+ writer.uint32(32).uint64(message.gas);
649
+ }
650
+ if (message.to !== "") {
651
+ writer.uint32(42).string(message.to);
652
+ }
653
+ if (message.value !== "") {
654
+ writer.uint32(50).string(message.value);
655
+ }
656
+ if (message.data.length !== 0) {
657
+ writer.uint32(58).bytes(message.data);
658
+ }
659
+ for (const v of message.accesses) {
660
+ AccessTuple.encode(v!, writer.uint32(66).fork()).ldelim();
661
+ }
662
+ if (message.v.length !== 0) {
663
+ writer.uint32(74).bytes(message.v);
664
+ }
665
+ if (message.r.length !== 0) {
666
+ writer.uint32(82).bytes(message.r);
667
+ }
668
+ if (message.s.length !== 0) {
669
+ writer.uint32(90).bytes(message.s);
670
+ }
671
+ return writer;
672
+ },
673
+ decode(input: BinaryReader | Uint8Array, length?: number): AccessListTx {
674
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
675
+ let end = length === undefined ? reader.len : reader.pos + length;
676
+ const message = createBaseAccessListTx();
677
+ while (reader.pos < end) {
678
+ const tag = reader.uint32();
679
+ switch (tag >>> 3) {
680
+ case 1:
681
+ message.chainId = reader.string();
682
+ break;
683
+ case 2:
684
+ message.nonce = reader.uint64();
685
+ break;
686
+ case 3:
687
+ message.gasPrice = reader.string();
688
+ break;
689
+ case 4:
690
+ message.gas = reader.uint64();
691
+ break;
692
+ case 5:
693
+ message.to = reader.string();
694
+ break;
695
+ case 6:
696
+ message.value = reader.string();
697
+ break;
698
+ case 7:
699
+ message.data = reader.bytes();
700
+ break;
701
+ case 8:
702
+ message.accesses.push(AccessTuple.decode(reader, reader.uint32()));
703
+ break;
704
+ case 9:
705
+ message.v = reader.bytes();
706
+ break;
707
+ case 10:
708
+ message.r = reader.bytes();
709
+ break;
710
+ case 11:
711
+ message.s = reader.bytes();
712
+ break;
713
+ default:
714
+ reader.skipType(tag & 7);
715
+ break;
716
+ }
717
+ }
718
+ return message;
719
+ },
720
+ fromPartial(object: DeepPartial<AccessListTx>): AccessListTx {
721
+ const message = createBaseAccessListTx();
722
+ message.chainId = object.chainId ?? "";
723
+ message.nonce = object.nonce !== undefined && object.nonce !== null ? BigInt(object.nonce.toString()) : BigInt(0);
724
+ message.gasPrice = object.gasPrice ?? "";
725
+ message.gas = object.gas !== undefined && object.gas !== null ? BigInt(object.gas.toString()) : BigInt(0);
726
+ message.to = object.to ?? "";
727
+ message.value = object.value ?? "";
728
+ message.data = object.data ?? new Uint8Array();
729
+ message.accesses = object.accesses?.map(e => AccessTuple.fromPartial(e)) || [];
730
+ message.v = object.v ?? new Uint8Array();
731
+ message.r = object.r ?? new Uint8Array();
732
+ message.s = object.s ?? new Uint8Array();
733
+ return message;
734
+ },
735
+ fromAmino(object: AccessListTxAmino): AccessListTx {
736
+ const message = createBaseAccessListTx();
737
+ if (object.chain_id !== undefined && object.chain_id !== null) {
738
+ message.chainId = object.chain_id;
739
+ }
740
+ if (object.nonce !== undefined && object.nonce !== null) {
741
+ message.nonce = BigInt(object.nonce);
742
+ }
743
+ if (object.gas_price !== undefined && object.gas_price !== null) {
744
+ message.gasPrice = object.gas_price;
745
+ }
746
+ if (object.gas !== undefined && object.gas !== null) {
747
+ message.gas = BigInt(object.gas);
748
+ }
749
+ if (object.to !== undefined && object.to !== null) {
750
+ message.to = object.to;
751
+ }
752
+ if (object.value !== undefined && object.value !== null) {
753
+ message.value = object.value;
754
+ }
755
+ if (object.data !== undefined && object.data !== null) {
756
+ message.data = bytesFromBase64(object.data);
757
+ }
758
+ message.accesses = object.accesses?.map(e => AccessTuple.fromAmino(e)) || [];
759
+ if (object.v !== undefined && object.v !== null) {
760
+ message.v = bytesFromBase64(object.v);
761
+ }
762
+ if (object.r !== undefined && object.r !== null) {
763
+ message.r = bytesFromBase64(object.r);
764
+ }
765
+ if (object.s !== undefined && object.s !== null) {
766
+ message.s = bytesFromBase64(object.s);
767
+ }
768
+ return message;
769
+ },
770
+ toAmino(message: AccessListTx): AccessListTxAmino {
771
+ const obj: any = {};
772
+ obj.chain_id = message.chainId ?? "";
773
+ obj.nonce = message.nonce !== BigInt(0) ? message.nonce?.toString() : undefined;
774
+ obj.gas_price = message.gasPrice === "" ? undefined : message.gasPrice;
775
+ obj.gas = message.gas !== BigInt(0) ? message.gas?.toString() : undefined;
776
+ obj.to = message.to === "" ? undefined : message.to;
777
+ obj.value = message.value === "" ? undefined : message.value;
778
+ obj.data = message.data ? base64FromBytes(message.data) : undefined;
779
+ if (message.accesses) {
780
+ obj.accesses = message.accesses.map(e => e ? AccessTuple.toAmino(e) : undefined);
781
+ } else {
782
+ obj.accesses = message.accesses;
783
+ }
784
+ obj.v = message.v ? base64FromBytes(message.v) : undefined;
785
+ obj.r = message.r ? base64FromBytes(message.r) : undefined;
786
+ obj.s = message.s ? base64FromBytes(message.s) : undefined;
787
+ return obj;
788
+ },
789
+ fromAminoMsg(object: AccessListTxAminoMsg): AccessListTx {
790
+ return AccessListTx.fromAmino(object.value);
791
+ },
792
+ fromProtoMsg(message: AccessListTxProtoMsg): AccessListTx {
793
+ return AccessListTx.decode(message.value);
794
+ },
795
+ toProto(message: AccessListTx): Uint8Array {
796
+ return AccessListTx.encode(message).finish();
797
+ },
798
+ toProtoMsg(message: AccessListTx): AccessListTxProtoMsg {
799
+ return {
800
+ typeUrl: "/ethermint.evm.v1.AccessListTx",
801
+ value: AccessListTx.encode(message).finish()
802
+ };
803
+ }
804
+ };
805
+ GlobalDecoderRegistry.register(AccessListTx.typeUrl, AccessListTx);
806
+ function createBaseDynamicFeeTx(): DynamicFeeTx {
807
+ return {
808
+ chainId: "",
809
+ nonce: BigInt(0),
810
+ gasTipCap: "",
811
+ gasFeeCap: "",
812
+ gas: BigInt(0),
813
+ to: "",
814
+ value: "",
815
+ data: new Uint8Array(),
816
+ accesses: [],
817
+ v: new Uint8Array(),
818
+ r: new Uint8Array(),
819
+ s: new Uint8Array()
820
+ };
821
+ }
822
+ export const DynamicFeeTx = {
823
+ typeUrl: "/ethermint.evm.v1.DynamicFeeTx",
824
+ is(o: any): o is DynamicFeeTx {
825
+ return o && (o.$typeUrl === DynamicFeeTx.typeUrl || typeof o.chainId === "string" && typeof o.nonce === "bigint" && typeof o.gasTipCap === "string" && typeof o.gasFeeCap === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && Array.isArray(o.accesses) && (!o.accesses.length || AccessTuple.is(o.accesses[0])) && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
826
+ },
827
+ isAmino(o: any): o is DynamicFeeTxAmino {
828
+ return o && (o.$typeUrl === DynamicFeeTx.typeUrl || typeof o.chain_id === "string" && typeof o.nonce === "bigint" && typeof o.gas_tip_cap === "string" && typeof o.gas_fee_cap === "string" && typeof o.gas === "bigint" && typeof o.to === "string" && typeof o.value === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && Array.isArray(o.accesses) && (!o.accesses.length || AccessTuple.isAmino(o.accesses[0])) && (o.v instanceof Uint8Array || typeof o.v === "string") && (o.r instanceof Uint8Array || typeof o.r === "string") && (o.s instanceof Uint8Array || typeof o.s === "string"));
829
+ },
830
+ encode(message: DynamicFeeTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
831
+ if (message.chainId !== "") {
832
+ writer.uint32(10).string(message.chainId);
833
+ }
834
+ if (message.nonce !== BigInt(0)) {
835
+ writer.uint32(16).uint64(message.nonce);
836
+ }
837
+ if (message.gasTipCap !== "") {
838
+ writer.uint32(26).string(message.gasTipCap);
839
+ }
840
+ if (message.gasFeeCap !== "") {
841
+ writer.uint32(34).string(message.gasFeeCap);
842
+ }
843
+ if (message.gas !== BigInt(0)) {
844
+ writer.uint32(40).uint64(message.gas);
845
+ }
846
+ if (message.to !== "") {
847
+ writer.uint32(50).string(message.to);
848
+ }
849
+ if (message.value !== "") {
850
+ writer.uint32(58).string(message.value);
851
+ }
852
+ if (message.data.length !== 0) {
853
+ writer.uint32(66).bytes(message.data);
854
+ }
855
+ for (const v of message.accesses) {
856
+ AccessTuple.encode(v!, writer.uint32(74).fork()).ldelim();
857
+ }
858
+ if (message.v.length !== 0) {
859
+ writer.uint32(82).bytes(message.v);
860
+ }
861
+ if (message.r.length !== 0) {
862
+ writer.uint32(90).bytes(message.r);
863
+ }
864
+ if (message.s.length !== 0) {
865
+ writer.uint32(98).bytes(message.s);
866
+ }
867
+ return writer;
868
+ },
869
+ decode(input: BinaryReader | Uint8Array, length?: number): DynamicFeeTx {
870
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
871
+ let end = length === undefined ? reader.len : reader.pos + length;
872
+ const message = createBaseDynamicFeeTx();
873
+ while (reader.pos < end) {
874
+ const tag = reader.uint32();
875
+ switch (tag >>> 3) {
876
+ case 1:
877
+ message.chainId = reader.string();
878
+ break;
879
+ case 2:
880
+ message.nonce = reader.uint64();
881
+ break;
882
+ case 3:
883
+ message.gasTipCap = reader.string();
884
+ break;
885
+ case 4:
886
+ message.gasFeeCap = reader.string();
887
+ break;
888
+ case 5:
889
+ message.gas = reader.uint64();
890
+ break;
891
+ case 6:
892
+ message.to = reader.string();
893
+ break;
894
+ case 7:
895
+ message.value = reader.string();
896
+ break;
897
+ case 8:
898
+ message.data = reader.bytes();
899
+ break;
900
+ case 9:
901
+ message.accesses.push(AccessTuple.decode(reader, reader.uint32()));
902
+ break;
903
+ case 10:
904
+ message.v = reader.bytes();
905
+ break;
906
+ case 11:
907
+ message.r = reader.bytes();
908
+ break;
909
+ case 12:
910
+ message.s = reader.bytes();
911
+ break;
912
+ default:
913
+ reader.skipType(tag & 7);
914
+ break;
915
+ }
916
+ }
917
+ return message;
918
+ },
919
+ fromPartial(object: DeepPartial<DynamicFeeTx>): DynamicFeeTx {
920
+ const message = createBaseDynamicFeeTx();
921
+ message.chainId = object.chainId ?? "";
922
+ message.nonce = object.nonce !== undefined && object.nonce !== null ? BigInt(object.nonce.toString()) : BigInt(0);
923
+ message.gasTipCap = object.gasTipCap ?? "";
924
+ message.gasFeeCap = object.gasFeeCap ?? "";
925
+ message.gas = object.gas !== undefined && object.gas !== null ? BigInt(object.gas.toString()) : BigInt(0);
926
+ message.to = object.to ?? "";
927
+ message.value = object.value ?? "";
928
+ message.data = object.data ?? new Uint8Array();
929
+ message.accesses = object.accesses?.map(e => AccessTuple.fromPartial(e)) || [];
930
+ message.v = object.v ?? new Uint8Array();
931
+ message.r = object.r ?? new Uint8Array();
932
+ message.s = object.s ?? new Uint8Array();
933
+ return message;
934
+ },
935
+ fromAmino(object: DynamicFeeTxAmino): DynamicFeeTx {
936
+ const message = createBaseDynamicFeeTx();
937
+ if (object.chain_id !== undefined && object.chain_id !== null) {
938
+ message.chainId = object.chain_id;
939
+ }
940
+ if (object.nonce !== undefined && object.nonce !== null) {
941
+ message.nonce = BigInt(object.nonce);
942
+ }
943
+ if (object.gas_tip_cap !== undefined && object.gas_tip_cap !== null) {
944
+ message.gasTipCap = object.gas_tip_cap;
945
+ }
946
+ if (object.gas_fee_cap !== undefined && object.gas_fee_cap !== null) {
947
+ message.gasFeeCap = object.gas_fee_cap;
948
+ }
949
+ if (object.gas !== undefined && object.gas !== null) {
950
+ message.gas = BigInt(object.gas);
951
+ }
952
+ if (object.to !== undefined && object.to !== null) {
953
+ message.to = object.to;
954
+ }
955
+ if (object.value !== undefined && object.value !== null) {
956
+ message.value = object.value;
957
+ }
958
+ if (object.data !== undefined && object.data !== null) {
959
+ message.data = bytesFromBase64(object.data);
960
+ }
961
+ message.accesses = object.accesses?.map(e => AccessTuple.fromAmino(e)) || [];
962
+ if (object.v !== undefined && object.v !== null) {
963
+ message.v = bytesFromBase64(object.v);
964
+ }
965
+ if (object.r !== undefined && object.r !== null) {
966
+ message.r = bytesFromBase64(object.r);
967
+ }
968
+ if (object.s !== undefined && object.s !== null) {
969
+ message.s = bytesFromBase64(object.s);
970
+ }
971
+ return message;
972
+ },
973
+ toAmino(message: DynamicFeeTx): DynamicFeeTxAmino {
974
+ const obj: any = {};
975
+ obj.chain_id = message.chainId ?? "";
976
+ obj.nonce = message.nonce !== BigInt(0) ? message.nonce?.toString() : undefined;
977
+ obj.gas_tip_cap = message.gasTipCap === "" ? undefined : message.gasTipCap;
978
+ obj.gas_fee_cap = message.gasFeeCap === "" ? undefined : message.gasFeeCap;
979
+ obj.gas = message.gas !== BigInt(0) ? message.gas?.toString() : undefined;
980
+ obj.to = message.to === "" ? undefined : message.to;
981
+ obj.value = message.value === "" ? undefined : message.value;
982
+ obj.data = message.data ? base64FromBytes(message.data) : undefined;
983
+ if (message.accesses) {
984
+ obj.accesses = message.accesses.map(e => e ? AccessTuple.toAmino(e) : undefined);
985
+ } else {
986
+ obj.accesses = message.accesses;
987
+ }
988
+ obj.v = message.v ? base64FromBytes(message.v) : undefined;
989
+ obj.r = message.r ? base64FromBytes(message.r) : undefined;
990
+ obj.s = message.s ? base64FromBytes(message.s) : undefined;
991
+ return obj;
992
+ },
993
+ fromAminoMsg(object: DynamicFeeTxAminoMsg): DynamicFeeTx {
994
+ return DynamicFeeTx.fromAmino(object.value);
995
+ },
996
+ fromProtoMsg(message: DynamicFeeTxProtoMsg): DynamicFeeTx {
997
+ return DynamicFeeTx.decode(message.value);
998
+ },
999
+ toProto(message: DynamicFeeTx): Uint8Array {
1000
+ return DynamicFeeTx.encode(message).finish();
1001
+ },
1002
+ toProtoMsg(message: DynamicFeeTx): DynamicFeeTxProtoMsg {
1003
+ return {
1004
+ typeUrl: "/ethermint.evm.v1.DynamicFeeTx",
1005
+ value: DynamicFeeTx.encode(message).finish()
1006
+ };
1007
+ }
1008
+ };
1009
+ GlobalDecoderRegistry.register(DynamicFeeTx.typeUrl, DynamicFeeTx);
1010
+ function createBaseExtensionOptionsEthereumTx(): ExtensionOptionsEthereumTx {
1011
+ return {};
1012
+ }
1013
+ export const ExtensionOptionsEthereumTx = {
1014
+ typeUrl: "/ethermint.evm.v1.ExtensionOptionsEthereumTx",
1015
+ is(o: any): o is ExtensionOptionsEthereumTx {
1016
+ return o && o.$typeUrl === ExtensionOptionsEthereumTx.typeUrl;
1017
+ },
1018
+ isAmino(o: any): o is ExtensionOptionsEthereumTxAmino {
1019
+ return o && o.$typeUrl === ExtensionOptionsEthereumTx.typeUrl;
1020
+ },
1021
+ encode(_: ExtensionOptionsEthereumTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1022
+ return writer;
1023
+ },
1024
+ decode(input: BinaryReader | Uint8Array, length?: number): ExtensionOptionsEthereumTx {
1025
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1026
+ let end = length === undefined ? reader.len : reader.pos + length;
1027
+ const message = createBaseExtensionOptionsEthereumTx();
1028
+ while (reader.pos < end) {
1029
+ const tag = reader.uint32();
1030
+ switch (tag >>> 3) {
1031
+ default:
1032
+ reader.skipType(tag & 7);
1033
+ break;
1034
+ }
1035
+ }
1036
+ return message;
1037
+ },
1038
+ fromPartial(_: DeepPartial<ExtensionOptionsEthereumTx>): ExtensionOptionsEthereumTx {
1039
+ const message = createBaseExtensionOptionsEthereumTx();
1040
+ return message;
1041
+ },
1042
+ fromAmino(_: ExtensionOptionsEthereumTxAmino): ExtensionOptionsEthereumTx {
1043
+ const message = createBaseExtensionOptionsEthereumTx();
1044
+ return message;
1045
+ },
1046
+ toAmino(_: ExtensionOptionsEthereumTx): ExtensionOptionsEthereumTxAmino {
1047
+ const obj: any = {};
1048
+ return obj;
1049
+ },
1050
+ fromAminoMsg(object: ExtensionOptionsEthereumTxAminoMsg): ExtensionOptionsEthereumTx {
1051
+ return ExtensionOptionsEthereumTx.fromAmino(object.value);
1052
+ },
1053
+ fromProtoMsg(message: ExtensionOptionsEthereumTxProtoMsg): ExtensionOptionsEthereumTx {
1054
+ return ExtensionOptionsEthereumTx.decode(message.value);
1055
+ },
1056
+ toProto(message: ExtensionOptionsEthereumTx): Uint8Array {
1057
+ return ExtensionOptionsEthereumTx.encode(message).finish();
1058
+ },
1059
+ toProtoMsg(message: ExtensionOptionsEthereumTx): ExtensionOptionsEthereumTxProtoMsg {
1060
+ return {
1061
+ typeUrl: "/ethermint.evm.v1.ExtensionOptionsEthereumTx",
1062
+ value: ExtensionOptionsEthereumTx.encode(message).finish()
1063
+ };
1064
+ }
1065
+ };
1066
+ GlobalDecoderRegistry.register(ExtensionOptionsEthereumTx.typeUrl, ExtensionOptionsEthereumTx);
1067
+ function createBaseMsgEthereumTxResponse(): MsgEthereumTxResponse {
1068
+ return {
1069
+ hash: "",
1070
+ logs: [],
1071
+ ret: new Uint8Array(),
1072
+ vmError: "",
1073
+ gasUsed: BigInt(0)
1074
+ };
1075
+ }
1076
+ export const MsgEthereumTxResponse = {
1077
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTxResponse",
1078
+ is(o: any): o is MsgEthereumTxResponse {
1079
+ return o && (o.$typeUrl === MsgEthereumTxResponse.typeUrl || typeof o.hash === "string" && Array.isArray(o.logs) && (!o.logs.length || Log.is(o.logs[0])) && (o.ret instanceof Uint8Array || typeof o.ret === "string") && typeof o.vmError === "string" && typeof o.gasUsed === "bigint");
1080
+ },
1081
+ isAmino(o: any): o is MsgEthereumTxResponseAmino {
1082
+ return o && (o.$typeUrl === MsgEthereumTxResponse.typeUrl || typeof o.hash === "string" && Array.isArray(o.logs) && (!o.logs.length || Log.isAmino(o.logs[0])) && (o.ret instanceof Uint8Array || typeof o.ret === "string") && typeof o.vm_error === "string" && typeof o.gas_used === "bigint");
1083
+ },
1084
+ encode(message: MsgEthereumTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1085
+ if (message.hash !== "") {
1086
+ writer.uint32(10).string(message.hash);
1087
+ }
1088
+ for (const v of message.logs) {
1089
+ Log.encode(v!, writer.uint32(18).fork()).ldelim();
1090
+ }
1091
+ if (message.ret.length !== 0) {
1092
+ writer.uint32(26).bytes(message.ret);
1093
+ }
1094
+ if (message.vmError !== "") {
1095
+ writer.uint32(34).string(message.vmError);
1096
+ }
1097
+ if (message.gasUsed !== BigInt(0)) {
1098
+ writer.uint32(40).uint64(message.gasUsed);
1099
+ }
1100
+ return writer;
1101
+ },
1102
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgEthereumTxResponse {
1103
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1104
+ let end = length === undefined ? reader.len : reader.pos + length;
1105
+ const message = createBaseMsgEthereumTxResponse();
1106
+ while (reader.pos < end) {
1107
+ const tag = reader.uint32();
1108
+ switch (tag >>> 3) {
1109
+ case 1:
1110
+ message.hash = reader.string();
1111
+ break;
1112
+ case 2:
1113
+ message.logs.push(Log.decode(reader, reader.uint32()));
1114
+ break;
1115
+ case 3:
1116
+ message.ret = reader.bytes();
1117
+ break;
1118
+ case 4:
1119
+ message.vmError = reader.string();
1120
+ break;
1121
+ case 5:
1122
+ message.gasUsed = reader.uint64();
1123
+ break;
1124
+ default:
1125
+ reader.skipType(tag & 7);
1126
+ break;
1127
+ }
1128
+ }
1129
+ return message;
1130
+ },
1131
+ fromPartial(object: DeepPartial<MsgEthereumTxResponse>): MsgEthereumTxResponse {
1132
+ const message = createBaseMsgEthereumTxResponse();
1133
+ message.hash = object.hash ?? "";
1134
+ message.logs = object.logs?.map(e => Log.fromPartial(e)) || [];
1135
+ message.ret = object.ret ?? new Uint8Array();
1136
+ message.vmError = object.vmError ?? "";
1137
+ message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
1138
+ return message;
1139
+ },
1140
+ fromAmino(object: MsgEthereumTxResponseAmino): MsgEthereumTxResponse {
1141
+ const message = createBaseMsgEthereumTxResponse();
1142
+ if (object.hash !== undefined && object.hash !== null) {
1143
+ message.hash = object.hash;
1144
+ }
1145
+ message.logs = object.logs?.map(e => Log.fromAmino(e)) || [];
1146
+ if (object.ret !== undefined && object.ret !== null) {
1147
+ message.ret = bytesFromBase64(object.ret);
1148
+ }
1149
+ if (object.vm_error !== undefined && object.vm_error !== null) {
1150
+ message.vmError = object.vm_error;
1151
+ }
1152
+ if (object.gas_used !== undefined && object.gas_used !== null) {
1153
+ message.gasUsed = BigInt(object.gas_used);
1154
+ }
1155
+ return message;
1156
+ },
1157
+ toAmino(message: MsgEthereumTxResponse): MsgEthereumTxResponseAmino {
1158
+ const obj: any = {};
1159
+ obj.hash = message.hash === "" ? undefined : message.hash;
1160
+ if (message.logs) {
1161
+ obj.logs = message.logs.map(e => e ? Log.toAmino(e) : undefined);
1162
+ } else {
1163
+ obj.logs = message.logs;
1164
+ }
1165
+ obj.ret = message.ret ? base64FromBytes(message.ret) : undefined;
1166
+ obj.vm_error = message.vmError === "" ? undefined : message.vmError;
1167
+ obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
1168
+ return obj;
1169
+ },
1170
+ fromAminoMsg(object: MsgEthereumTxResponseAminoMsg): MsgEthereumTxResponse {
1171
+ return MsgEthereumTxResponse.fromAmino(object.value);
1172
+ },
1173
+ fromProtoMsg(message: MsgEthereumTxResponseProtoMsg): MsgEthereumTxResponse {
1174
+ return MsgEthereumTxResponse.decode(message.value);
1175
+ },
1176
+ toProto(message: MsgEthereumTxResponse): Uint8Array {
1177
+ return MsgEthereumTxResponse.encode(message).finish();
1178
+ },
1179
+ toProtoMsg(message: MsgEthereumTxResponse): MsgEthereumTxResponseProtoMsg {
1180
+ return {
1181
+ typeUrl: "/ethermint.evm.v1.MsgEthereumTxResponse",
1182
+ value: MsgEthereumTxResponse.encode(message).finish()
1183
+ };
1184
+ }
1185
+ };
1186
+ GlobalDecoderRegistry.register(MsgEthereumTxResponse.typeUrl, MsgEthereumTxResponse);
1187
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
1188
+ return {
1189
+ authority: "",
1190
+ params: Params.fromPartial({})
1191
+ };
1192
+ }
1193
+ export const MsgUpdateParams = {
1194
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParams",
1195
+ aminoType: "ethermint/x/evm/MsgUpdateParams",
1196
+ is(o: any): o is MsgUpdateParams {
1197
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
1198
+ },
1199
+ isAmino(o: any): o is MsgUpdateParamsAmino {
1200
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
1201
+ },
1202
+ encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1203
+ if (message.authority !== "") {
1204
+ writer.uint32(10).string(message.authority);
1205
+ }
1206
+ if (message.params !== undefined) {
1207
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
1208
+ }
1209
+ return writer;
1210
+ },
1211
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
1212
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1213
+ let end = length === undefined ? reader.len : reader.pos + length;
1214
+ const message = createBaseMsgUpdateParams();
1215
+ while (reader.pos < end) {
1216
+ const tag = reader.uint32();
1217
+ switch (tag >>> 3) {
1218
+ case 1:
1219
+ message.authority = reader.string();
1220
+ break;
1221
+ case 2:
1222
+ message.params = Params.decode(reader, reader.uint32());
1223
+ break;
1224
+ default:
1225
+ reader.skipType(tag & 7);
1226
+ break;
1227
+ }
1228
+ }
1229
+ return message;
1230
+ },
1231
+ fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
1232
+ const message = createBaseMsgUpdateParams();
1233
+ message.authority = object.authority ?? "";
1234
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
1235
+ return message;
1236
+ },
1237
+ fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
1238
+ const message = createBaseMsgUpdateParams();
1239
+ if (object.authority !== undefined && object.authority !== null) {
1240
+ message.authority = object.authority;
1241
+ }
1242
+ if (object.params !== undefined && object.params !== null) {
1243
+ message.params = Params.fromAmino(object.params);
1244
+ }
1245
+ return message;
1246
+ },
1247
+ toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
1248
+ const obj: any = {};
1249
+ obj.authority = message.authority === "" ? undefined : message.authority;
1250
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
1251
+ return obj;
1252
+ },
1253
+ fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
1254
+ return MsgUpdateParams.fromAmino(object.value);
1255
+ },
1256
+ toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
1257
+ return {
1258
+ type: "ethermint/x/evm/MsgUpdateParams",
1259
+ value: MsgUpdateParams.toAmino(message)
1260
+ };
1261
+ },
1262
+ fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
1263
+ return MsgUpdateParams.decode(message.value);
1264
+ },
1265
+ toProto(message: MsgUpdateParams): Uint8Array {
1266
+ return MsgUpdateParams.encode(message).finish();
1267
+ },
1268
+ toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
1269
+ return {
1270
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParams",
1271
+ value: MsgUpdateParams.encode(message).finish()
1272
+ };
1273
+ }
1274
+ };
1275
+ GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
1276
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
1277
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
1278
+ return {};
1279
+ }
1280
+ export const MsgUpdateParamsResponse = {
1281
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParamsResponse",
1282
+ is(o: any): o is MsgUpdateParamsResponse {
1283
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
1284
+ },
1285
+ isAmino(o: any): o is MsgUpdateParamsResponseAmino {
1286
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
1287
+ },
1288
+ encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1289
+ return writer;
1290
+ },
1291
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
1292
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1293
+ let end = length === undefined ? reader.len : reader.pos + length;
1294
+ const message = createBaseMsgUpdateParamsResponse();
1295
+ while (reader.pos < end) {
1296
+ const tag = reader.uint32();
1297
+ switch (tag >>> 3) {
1298
+ default:
1299
+ reader.skipType(tag & 7);
1300
+ break;
1301
+ }
1302
+ }
1303
+ return message;
1304
+ },
1305
+ fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
1306
+ const message = createBaseMsgUpdateParamsResponse();
1307
+ return message;
1308
+ },
1309
+ fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
1310
+ const message = createBaseMsgUpdateParamsResponse();
1311
+ return message;
1312
+ },
1313
+ toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
1314
+ const obj: any = {};
1315
+ return obj;
1316
+ },
1317
+ fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
1318
+ return MsgUpdateParamsResponse.fromAmino(object.value);
1319
+ },
1320
+ fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
1321
+ return MsgUpdateParamsResponse.decode(message.value);
1322
+ },
1323
+ toProto(message: MsgUpdateParamsResponse): Uint8Array {
1324
+ return MsgUpdateParamsResponse.encode(message).finish();
1325
+ },
1326
+ toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
1327
+ return {
1328
+ typeUrl: "/ethermint.evm.v1.MsgUpdateParamsResponse",
1329
+ value: MsgUpdateParamsResponse.encode(message).finish()
1330
+ };
1331
+ }
1332
+ };
1333
+ GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);