injectivejs 0.1.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 (359) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +335 -0
  3. package/main/codegen/AtomicOrder.client.js +76 -0
  4. package/main/codegen/AtomicOrder.types.js +1 -0
  5. package/main/codegen/Registry.client.js +293 -0
  6. package/main/codegen/Registry.types.js +1 -0
  7. package/main/codegen/confio/proofs.js +1256 -0
  8. package/main/codegen/contracts.js +37 -0
  9. package/main/codegen/cosmos/app/v1alpha1/config.js +138 -0
  10. package/main/codegen/cosmos/app/v1alpha1/module.js +215 -0
  11. package/main/codegen/cosmos/app/v1alpha1/query.js +94 -0
  12. package/main/codegen/cosmos/app/v1alpha1/query.rpc.query.js +64 -0
  13. package/main/codegen/cosmos/auth/v1beta1/auth.js +265 -0
  14. package/main/codegen/cosmos/auth/v1beta1/genesis.js +94 -0
  15. package/main/codegen/cosmos/auth/v1beta1/query.js +672 -0
  16. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +293 -0
  17. package/main/codegen/cosmos/auth/v1beta1/query.rpc.query.js +156 -0
  18. package/main/codegen/cosmos/authz/v1beta1/authz.js +266 -0
  19. package/main/codegen/cosmos/authz/v1beta1/event.js +148 -0
  20. package/main/codegen/cosmos/authz/v1beta1/genesis.js +82 -0
  21. package/main/codegen/cosmos/authz/v1beta1/query.js +425 -0
  22. package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +173 -0
  23. package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +90 -0
  24. package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +96 -0
  25. package/main/codegen/cosmos/authz/v1beta1/tx.js +353 -0
  26. package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +90 -0
  27. package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +70 -0
  28. package/main/codegen/cosmos/bank/v1beta1/authz.js +82 -0
  29. package/main/codegen/cosmos/bank/v1beta1/bank.js +556 -0
  30. package/main/codegen/cosmos/bank/v1beta1/genesis.js +209 -0
  31. package/main/codegen/cosmos/bank/v1beta1/query.js +1057 -0
  32. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +406 -0
  33. package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +184 -0
  34. package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +101 -0
  35. package/main/codegen/cosmos/bank/v1beta1/tx.js +253 -0
  36. package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +72 -0
  37. package/main/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +59 -0
  38. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +884 -0
  39. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +136 -0
  40. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +160 -0
  41. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +218 -0
  42. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1390 -0
  43. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +607 -0
  44. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +205 -0
  45. package/main/codegen/cosmos/base/store/v1beta1/listening.js +91 -0
  46. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +919 -0
  47. package/main/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +266 -0
  48. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +142 -0
  49. package/main/codegen/cosmos/base/v1beta1/coin.js +222 -0
  50. package/main/codegen/cosmos/bundle.js +587 -0
  51. package/main/codegen/cosmos/capability/v1beta1/capability.js +183 -0
  52. package/main/codegen/cosmos/capability/v1beta1/genesis.js +148 -0
  53. package/main/codegen/cosmos/client.js +138 -0
  54. package/main/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
  55. package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +32 -0
  56. package/main/codegen/cosmos/crisis/v1beta1/tx.js +114 -0
  57. package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
  58. package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +48 -0
  59. package/main/codegen/cosmos/crypto/ed25519/keys.js +108 -0
  60. package/main/codegen/cosmos/crypto/hd/v1/hd.js +101 -0
  61. package/main/codegen/cosmos/crypto/keyring/v1/record.js +283 -0
  62. package/main/codegen/cosmos/crypto/multisig/keys.js +92 -0
  63. package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +136 -0
  64. package/main/codegen/cosmos/crypto/secp256k1/keys.js +108 -0
  65. package/main/codegen/cosmos/crypto/secp256r1/keys.js +108 -0
  66. package/main/codegen/cosmos/distribution/v1beta1/distribution.js +851 -0
  67. package/main/codegen/cosmos/distribution/v1beta1/genesis.js +699 -0
  68. package/main/codegen/cosmos/distribution/v1beta1/query.js +977 -0
  69. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +356 -0
  70. package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +178 -0
  71. package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +91 -0
  72. package/main/codegen/cosmos/distribution/v1beta1/tx.js +439 -0
  73. package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +108 -0
  74. package/main/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +81 -0
  75. package/main/codegen/cosmos/evidence/v1beta1/evidence.js +95 -0
  76. package/main/codegen/cosmos/evidence/v1beta1/genesis.js +82 -0
  77. package/main/codegen/cosmos/evidence/v1beta1/query.js +231 -0
  78. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +114 -0
  79. package/main/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +80 -0
  80. package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +34 -0
  81. package/main/codegen/cosmos/evidence/v1beta1/tx.js +120 -0
  82. package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
  83. package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +48 -0
  84. package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +349 -0
  85. package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +82 -0
  86. package/main/codegen/cosmos/feegrant/v1beta1/query.js +380 -0
  87. package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +150 -0
  88. package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +90 -0
  89. package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +57 -0
  90. package/main/codegen/cosmos/feegrant/v1beta1/tx.js +206 -0
  91. package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +72 -0
  92. package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +59 -0
  93. package/main/codegen/cosmos/genutil/v1beta1/genesis.js +79 -0
  94. package/main/codegen/cosmos/gov/v1/genesis.js +170 -0
  95. package/main/codegen/cosmos/gov/v1/gov.js +852 -0
  96. package/main/codegen/cosmos/gov/v1/query.js +919 -0
  97. package/main/codegen/cosmos/gov/v1/query.lcd.js +334 -0
  98. package/main/codegen/cosmos/gov/v1/query.rpc.query.js +160 -0
  99. package/main/codegen/cosmos/gov/v1/tx.amino.js +183 -0
  100. package/main/codegen/cosmos/gov/v1/tx.js +612 -0
  101. package/main/codegen/cosmos/gov/v1/tx.registry.js +126 -0
  102. package/main/codegen/cosmos/gov/v1/tx.rpc.msg.js +92 -0
  103. package/main/codegen/cosmos/gov/v1beta1/genesis.js +170 -0
  104. package/main/codegen/cosmos/gov/v1beta1/gov.js +890 -0
  105. package/main/codegen/cosmos/gov/v1beta1/query.js +919 -0
  106. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +334 -0
  107. package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +160 -0
  108. package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +142 -0
  109. package/main/codegen/cosmos/gov/v1beta1/tx.js +479 -0
  110. package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +108 -0
  111. package/main/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +81 -0
  112. package/main/codegen/cosmos/group/v1/events.js +449 -0
  113. package/main/codegen/cosmos/group/v1/genesis.js +206 -0
  114. package/main/codegen/cosmos/group/v1/query.js +1500 -0
  115. package/main/codegen/cosmos/group/v1/query.lcd.js +527 -0
  116. package/main/codegen/cosmos/group/v1/query.rpc.query.js +230 -0
  117. package/main/codegen/cosmos/group/v1/tx.amino.js +428 -0
  118. package/main/codegen/cosmos/group/v1/tx.js +1657 -0
  119. package/main/codegen/cosmos/group/v1/tx.registry.js +288 -0
  120. package/main/codegen/cosmos/group/v1/tx.rpc.msg.js +191 -0
  121. package/main/codegen/cosmos/group/v1/types.js +1260 -0
  122. package/main/codegen/cosmos/lcd.js +307 -0
  123. package/main/codegen/cosmos/mint/v1beta1/genesis.js +71 -0
  124. package/main/codegen/cosmos/mint/v1beta1/mint.js +170 -0
  125. package/main/codegen/cosmos/mint/v1beta1/query.js +254 -0
  126. package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +143 -0
  127. package/main/codegen/cosmos/mint/v1beta1/query.rpc.query.js +96 -0
  128. package/main/codegen/cosmos/msg/v1/msg.js +5 -0
  129. package/main/codegen/cosmos/nft/v1beta1/event.js +225 -0
  130. package/main/codegen/cosmos/nft/v1beta1/genesis.js +174 -0
  131. package/main/codegen/cosmos/nft/v1beta1/nft.js +210 -0
  132. package/main/codegen/cosmos/nft/v1beta1/query.js +770 -0
  133. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +296 -0
  134. package/main/codegen/cosmos/nft/v1beta1/query.rpc.query.js +150 -0
  135. package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +36 -0
  136. package/main/codegen/cosmos/nft/v1beta1/tx.js +124 -0
  137. package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
  138. package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +48 -0
  139. package/main/codegen/cosmos/orm/v1/orm.js +270 -0
  140. package/main/codegen/cosmos/orm/v1alpha1/schema.js +238 -0
  141. package/main/codegen/cosmos/params/v1beta1/params.js +166 -0
  142. package/main/codegen/cosmos/params/v1beta1/query.js +285 -0
  143. package/main/codegen/cosmos/params/v1beta1/query.lcd.js +115 -0
  144. package/main/codegen/cosmos/params/v1beta1/query.rpc.query.js +78 -0
  145. package/main/codegen/cosmos/rpc.query.js +255 -0
  146. package/main/codegen/cosmos/rpc.tx.js +226 -0
  147. package/main/codegen/cosmos/slashing/v1beta1/genesis.js +298 -0
  148. package/main/codegen/cosmos/slashing/v1beta1/query.js +309 -0
  149. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +151 -0
  150. package/main/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +96 -0
  151. package/main/codegen/cosmos/slashing/v1beta1/slashing.js +204 -0
  152. package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +24 -0
  153. package/main/codegen/cosmos/slashing/v1beta1/tx.js +94 -0
  154. package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
  155. package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +48 -0
  156. package/main/codegen/cosmos/staking/v1beta1/authz.js +243 -0
  157. package/main/codegen/cosmos/staking/v1beta1/genesis.js +262 -0
  158. package/main/codegen/cosmos/staking/v1beta1/query.js +1579 -0
  159. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +576 -0
  160. package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +248 -0
  161. package/main/codegen/cosmos/staking/v1beta1/staking.js +1562 -0
  162. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +217 -0
  163. package/main/codegen/cosmos/staking/v1beta1/tx.js +612 -0
  164. package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +126 -0
  165. package/main/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +92 -0
  166. package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +431 -0
  167. package/main/codegen/cosmos/tx/v1beta1/service.js +804 -0
  168. package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +159 -0
  169. package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +118 -0
  170. package/main/codegen/cosmos/tx/v1beta1/tx.js +1038 -0
  171. package/main/codegen/cosmos/upgrade/v1beta1/query.js +473 -0
  172. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +220 -0
  173. package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +122 -0
  174. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +64 -0
  175. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +186 -0
  176. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +72 -0
  177. package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +59 -0
  178. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +288 -0
  179. package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +133 -0
  180. package/main/codegen/cosmos/vesting/v1beta1/tx.js +395 -0
  181. package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +90 -0
  182. package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +70 -0
  183. package/main/codegen/cosmos/vesting/v1beta1/vesting.js +446 -0
  184. package/main/codegen/cosmos_proto/bundle.js +26 -0
  185. package/main/codegen/cosmos_proto/cosmos.js +232 -0
  186. package/main/codegen/cosmwasm/bundle.js +61 -0
  187. package/main/codegen/cosmwasm/client.js +92 -0
  188. package/main/codegen/cosmwasm/lcd.js +325 -0
  189. package/main/codegen/cosmwasm/rpc.query.js +269 -0
  190. package/main/codegen/cosmwasm/rpc.tx.js +242 -0
  191. package/main/codegen/cosmwasm/wasm/v1/genesis.js +440 -0
  192. package/main/codegen/cosmwasm/wasm/v1/ibc.js +140 -0
  193. package/main/codegen/cosmwasm/wasm/v1/proposal.js +843 -0
  194. package/main/codegen/cosmwasm/wasm/v1/query.js +1125 -0
  195. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +383 -0
  196. package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +182 -0
  197. package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +196 -0
  198. package/main/codegen/cosmwasm/wasm/v1/tx.js +756 -0
  199. package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +144 -0
  200. package/main/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +103 -0
  201. package/main/codegen/cosmwasm/wasm/v1/types.js +697 -0
  202. package/main/codegen/gogoproto/bundle.js +26 -0
  203. package/main/codegen/gogoproto/gogo.js +5 -0
  204. package/main/codegen/google/api/annotations.js +5 -0
  205. package/main/codegen/google/api/http.js +295 -0
  206. package/main/codegen/google/bundle.js +49 -0
  207. package/main/codegen/google/protobuf/any.js +71 -0
  208. package/main/codegen/google/protobuf/descriptor.js +3264 -0
  209. package/main/codegen/google/protobuf/duration.js +73 -0
  210. package/main/codegen/google/protobuf/empty.js +47 -0
  211. package/main/codegen/google/protobuf/field_mask.js +79 -0
  212. package/main/codegen/google/protobuf/struct.js +358 -0
  213. package/main/codegen/google/protobuf/timestamp.js +73 -0
  214. package/main/codegen/google/protobuf/wrappers.js +435 -0
  215. package/main/codegen/ibc/applications/transfer/v1/genesis.js +102 -0
  216. package/main/codegen/ibc/applications/transfer/v1/query.js +309 -0
  217. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +151 -0
  218. package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +96 -0
  219. package/main/codegen/ibc/applications/transfer/v1/transfer.js +128 -0
  220. package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +65 -0
  221. package/main/codegen/ibc/applications/transfer/v1/tx.js +160 -0
  222. package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +54 -0
  223. package/main/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +48 -0
  224. package/main/codegen/ibc/applications/transfer/v2/packet.js +91 -0
  225. package/main/codegen/ibc/bundle.js +199 -0
  226. package/main/codegen/ibc/client.js +104 -0
  227. package/main/codegen/ibc/core/channel/v1/channel.js +705 -0
  228. package/main/codegen/ibc/core/channel/v1/genesis.js +296 -0
  229. package/main/codegen/ibc/core/channel/v1/query.js +1892 -0
  230. package/main/codegen/ibc/core/channel/v1/query.lcd.js +513 -0
  231. package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +234 -0
  232. package/main/codegen/ibc/core/channel/v1/tx.amino.js +520 -0
  233. package/main/codegen/ibc/core/channel/v1/tx.js +1220 -0
  234. package/main/codegen/ibc/core/channel/v1/tx.registry.js +216 -0
  235. package/main/codegen/ibc/core/channel/v1/tx.rpc.msg.js +147 -0
  236. package/main/codegen/ibc/core/client/v1/client.js +475 -0
  237. package/main/codegen/ibc/core/client/v1/genesis.js +285 -0
  238. package/main/codegen/ibc/core/client/v1/query.js +856 -0
  239. package/main/codegen/ibc/core/client/v1/query.lcd.js +342 -0
  240. package/main/codegen/ibc/core/client/v1/query.rpc.query.js +170 -0
  241. package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
  242. package/main/codegen/ibc/core/client/v1/tx.js +446 -0
  243. package/main/codegen/ibc/core/client/v1/tx.registry.js +108 -0
  244. package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
  245. package/main/codegen/ibc/core/commitment/v1/commitment.js +235 -0
  246. package/main/codegen/ibc/core/connection/v1/connection.js +625 -0
  247. package/main/codegen/ibc/core/connection/v1/genesis.js +127 -0
  248. package/main/codegen/ibc/core/connection/v1/query.js +653 -0
  249. package/main/codegen/ibc/core/connection/v1/query.lcd.js +216 -0
  250. package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +122 -0
  251. package/main/codegen/ibc/core/connection/v1/tx.amino.js +274 -0
  252. package/main/codegen/ibc/core/connection/v1/tx.js +631 -0
  253. package/main/codegen/ibc/core/connection/v1/tx.registry.js +108 -0
  254. package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +81 -0
  255. package/main/codegen/ibc/core/port/v1/query.js +160 -0
  256. package/main/codegen/ibc/core/port/v1/query.rpc.query.js +62 -0
  257. package/main/codegen/ibc/core/types/v1/genesis.js +85 -0
  258. package/main/codegen/ibc/lcd.js +376 -0
  259. package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +73 -0
  260. package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1190 -0
  261. package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1190 -0
  262. package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +472 -0
  263. package/main/codegen/ibc/rpc.query.js +319 -0
  264. package/main/codegen/ibc/rpc.tx.js +287 -0
  265. package/main/codegen/ics23/bundle.js +26 -0
  266. package/main/codegen/index.js +187 -0
  267. package/main/codegen/injective/auction/v1beta1/auction.js +352 -0
  268. package/main/codegen/injective/auction/v1beta1/genesis.js +93 -0
  269. package/main/codegen/injective/auction/v1beta1/query.js +317 -0
  270. package/main/codegen/injective/auction/v1beta1/query.lcd.js +143 -0
  271. package/main/codegen/injective/auction/v1beta1/query.rpc.query.js +96 -0
  272. package/main/codegen/injective/auction/v1beta1/tx.amino.js +41 -0
  273. package/main/codegen/injective/auction/v1beta1/tx.js +118 -0
  274. package/main/codegen/injective/auction/v1beta1/tx.registry.js +54 -0
  275. package/main/codegen/injective/auction/v1beta1/tx.rpc.msg.js +48 -0
  276. package/main/codegen/injective/bundle.js +239 -0
  277. package/main/codegen/injective/client.js +112 -0
  278. package/main/codegen/injective/crypto/v1beta1/ethsecp256k1/keys.js +108 -0
  279. package/main/codegen/injective/exchange/v1beta1/authz.js +801 -0
  280. package/main/codegen/injective/exchange/v1beta1/events.js +1892 -0
  281. package/main/codegen/injective/exchange/v1beta1/exchange.js +3929 -0
  282. package/main/codegen/injective/exchange/v1beta1/genesis.js +1573 -0
  283. package/main/codegen/injective/exchange/v1beta1/query.js +6020 -0
  284. package/main/codegen/injective/exchange/v1beta1/query.lcd.js +1718 -0
  285. package/main/codegen/injective/exchange/v1beta1/query.rpc.query.js +712 -0
  286. package/main/codegen/injective/exchange/v1beta1/tx.amino.js +1248 -0
  287. package/main/codegen/injective/exchange/v1beta1/tx.js +6365 -0
  288. package/main/codegen/injective/exchange/v1beta1/tx.registry.js +540 -0
  289. package/main/codegen/injective/exchange/v1beta1/tx.rpc.msg.js +345 -0
  290. package/main/codegen/injective/insurance/v1beta1/genesis.js +137 -0
  291. package/main/codegen/injective/insurance/v1beta1/insurance.js +525 -0
  292. package/main/codegen/injective/insurance/v1beta1/query.js +601 -0
  293. package/main/codegen/injective/insurance/v1beta1/query.lcd.js +266 -0
  294. package/main/codegen/injective/insurance/v1beta1/query.rpc.query.js +138 -0
  295. package/main/codegen/injective/insurance/v1beta1/tx.amino.js +121 -0
  296. package/main/codegen/injective/insurance/v1beta1/tx.js +368 -0
  297. package/main/codegen/injective/insurance/v1beta1/tx.registry.js +90 -0
  298. package/main/codegen/injective/insurance/v1beta1/tx.rpc.msg.js +70 -0
  299. package/main/codegen/injective/lcd.js +415 -0
  300. package/main/codegen/injective/ocr/v1beta1/genesis.js +671 -0
  301. package/main/codegen/injective/ocr/v1beta1/ocr.js +1875 -0
  302. package/main/codegen/injective/ocr/v1beta1/query.js +690 -0
  303. package/main/codegen/injective/ocr/v1beta1/query.lcd.js +271 -0
  304. package/main/codegen/injective/ocr/v1beta1/query.rpc.query.js +150 -0
  305. package/main/codegen/injective/ocr/v1beta1/tx.amino.js +302 -0
  306. package/main/codegen/injective/ocr/v1beta1/tx.js +1006 -0
  307. package/main/codegen/injective/ocr/v1beta1/tx.registry.js +180 -0
  308. package/main/codegen/injective/ocr/v1beta1/tx.rpc.msg.js +125 -0
  309. package/main/codegen/injective/oracle/v1beta1/events.js +677 -0
  310. package/main/codegen/injective/oracle/v1beta1/genesis.js +386 -0
  311. package/main/codegen/injective/oracle/v1beta1/oracle.js +1588 -0
  312. package/main/codegen/injective/oracle/v1beta1/proposal.js +769 -0
  313. package/main/codegen/injective/oracle/v1beta1/query.js +1277 -0
  314. package/main/codegen/injective/oracle/v1beta1/query.lcd.js +496 -0
  315. package/main/codegen/injective/oracle/v1beta1/query.rpc.query.js +232 -0
  316. package/main/codegen/injective/oracle/v1beta1/tx.amino.js +151 -0
  317. package/main/codegen/injective/oracle/v1beta1/tx.js +720 -0
  318. package/main/codegen/injective/oracle/v1beta1/tx.registry.js +126 -0
  319. package/main/codegen/injective/oracle/v1beta1/tx.rpc.msg.js +92 -0
  320. package/main/codegen/injective/peggy/v1/attestation.js +274 -0
  321. package/main/codegen/injective/peggy/v1/batch.js +210 -0
  322. package/main/codegen/injective/peggy/v1/ethereum_signer.js +68 -0
  323. package/main/codegen/injective/peggy/v1/events.js +1374 -0
  324. package/main/codegen/injective/peggy/v1/genesis.js +582 -0
  325. package/main/codegen/injective/peggy/v1/msgs.amino.js +365 -0
  326. package/main/codegen/injective/peggy/v1/msgs.js +1321 -0
  327. package/main/codegen/injective/peggy/v1/msgs.registry.js +234 -0
  328. package/main/codegen/injective/peggy/v1/msgs.rpc.msg.js +158 -0
  329. package/main/codegen/injective/peggy/v1/pool.js +149 -0
  330. package/main/codegen/injective/peggy/v1/proposal.js +178 -0
  331. package/main/codegen/injective/peggy/v1/query.js +2002 -0
  332. package/main/codegen/injective/peggy/v1/query.lcd.js +824 -0
  333. package/main/codegen/injective/peggy/v1/query.rpc.query.js +340 -0
  334. package/main/codegen/injective/peggy/v1/types.js +345 -0
  335. package/main/codegen/injective/rpc.query.js +335 -0
  336. package/main/codegen/injective/rpc.tx.js +307 -0
  337. package/main/codegen/injective/types/v1beta1/account.js +73 -0
  338. package/main/codegen/injective/types/v1beta1/tx_ext.js +83 -0
  339. package/main/codegen/injective/types/v1beta1/tx_response.js +136 -0
  340. package/main/codegen/injective/wasmx/v1/genesis.js +61 -0
  341. package/main/codegen/injective/wasmx/v1/query.js +174 -0
  342. package/main/codegen/injective/wasmx/v1/query.lcd.js +106 -0
  343. package/main/codegen/injective/wasmx/v1/query.rpc.query.js +80 -0
  344. package/main/codegen/injective/wasmx/v1/tx.js +5 -0
  345. package/main/codegen/injective/wasmx/v1/wasmx.js +332 -0
  346. package/main/codegen/tendermint/abci/types.js +3542 -0
  347. package/main/codegen/tendermint/bundle.js +63 -0
  348. package/main/codegen/tendermint/crypto/keys.js +71 -0
  349. package/main/codegen/tendermint/crypto/proof.js +361 -0
  350. package/main/codegen/tendermint/libs/bits/types.js +103 -0
  351. package/main/codegen/tendermint/p2p/types.js +419 -0
  352. package/main/codegen/tendermint/types/block.js +93 -0
  353. package/main/codegen/tendermint/types/evidence.js +329 -0
  354. package/main/codegen/tendermint/types/params.js +390 -0
  355. package/main/codegen/tendermint/types/types.js +1234 -0
  356. package/main/codegen/tendermint/types/validator.js +235 -0
  357. package/main/codegen/tendermint/version/types.js +128 -0
  358. package/main/index.js +18 -0
  359. package/package.json +86 -0
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.registry = exports.load = exports.MessageComposer = void 0;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+
12
+ var _tx = require("./tx");
13
+
14
+ var registry = [["/injective.oracle.v1beta1.MsgRelayProviderPrices", _tx.MsgRelayProviderPrices], ["/injective.oracle.v1beta1.MsgRelayPriceFeedPrice", _tx.MsgRelayPriceFeedPrice], ["/injective.oracle.v1beta1.MsgRelayBandRates", _tx.MsgRelayBandRates], ["/injective.oracle.v1beta1.MsgRequestBandIBCRates", _tx.MsgRequestBandIBCRates], ["/injective.oracle.v1beta1.MsgRelayCoinbaseMessages", _tx.MsgRelayCoinbaseMessages]];
15
+ exports.registry = registry;
16
+
17
+ var load = function load(protoRegistry) {
18
+ registry.forEach(function (_ref) {
19
+ var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
20
+ typeUrl = _ref2[0],
21
+ mod = _ref2[1];
22
+
23
+ protoRegistry.register(typeUrl, mod);
24
+ });
25
+ };
26
+
27
+ exports.load = load;
28
+ var MessageComposer = {
29
+ encoded: {
30
+ relayProviderPrices: function relayProviderPrices(value) {
31
+ return {
32
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
33
+ value: _tx.MsgRelayProviderPrices.encode(value).finish()
34
+ };
35
+ },
36
+ relayPriceFeedPrice: function relayPriceFeedPrice(value) {
37
+ return {
38
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
39
+ value: _tx.MsgRelayPriceFeedPrice.encode(value).finish()
40
+ };
41
+ },
42
+ relayBandRates: function relayBandRates(value) {
43
+ return {
44
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
45
+ value: _tx.MsgRelayBandRates.encode(value).finish()
46
+ };
47
+ },
48
+ requestBandIBCRates: function requestBandIBCRates(value) {
49
+ return {
50
+ typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
51
+ value: _tx.MsgRequestBandIBCRates.encode(value).finish()
52
+ };
53
+ },
54
+ relayCoinbaseMessages: function relayCoinbaseMessages(value) {
55
+ return {
56
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
57
+ value: _tx.MsgRelayCoinbaseMessages.encode(value).finish()
58
+ };
59
+ }
60
+ },
61
+ withTypeUrl: {
62
+ relayProviderPrices: function relayProviderPrices(value) {
63
+ return {
64
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
65
+ value: value
66
+ };
67
+ },
68
+ relayPriceFeedPrice: function relayPriceFeedPrice(value) {
69
+ return {
70
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
71
+ value: value
72
+ };
73
+ },
74
+ relayBandRates: function relayBandRates(value) {
75
+ return {
76
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
77
+ value: value
78
+ };
79
+ },
80
+ requestBandIBCRates: function requestBandIBCRates(value) {
81
+ return {
82
+ typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
83
+ value: value
84
+ };
85
+ },
86
+ relayCoinbaseMessages: function relayCoinbaseMessages(value) {
87
+ return {
88
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
89
+ value: value
90
+ };
91
+ }
92
+ },
93
+ fromPartial: {
94
+ relayProviderPrices: function relayProviderPrices(value) {
95
+ return {
96
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
97
+ value: _tx.MsgRelayProviderPrices.fromPartial(value)
98
+ };
99
+ },
100
+ relayPriceFeedPrice: function relayPriceFeedPrice(value) {
101
+ return {
102
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
103
+ value: _tx.MsgRelayPriceFeedPrice.fromPartial(value)
104
+ };
105
+ },
106
+ relayBandRates: function relayBandRates(value) {
107
+ return {
108
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
109
+ value: _tx.MsgRelayBandRates.fromPartial(value)
110
+ };
111
+ },
112
+ requestBandIBCRates: function requestBandIBCRates(value) {
113
+ return {
114
+ typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
115
+ value: _tx.MsgRequestBandIBCRates.fromPartial(value)
116
+ };
117
+ },
118
+ relayCoinbaseMessages: function relayCoinbaseMessages(value) {
119
+ return {
120
+ typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
121
+ value: _tx.MsgRelayCoinbaseMessages.fromPartial(value)
122
+ };
123
+ }
124
+ }
125
+ };
126
+ exports.MessageComposer = MessageComposer;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.MsgClientImpl = void 0;
11
+
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
+
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
+
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
+
18
+ var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
19
+
20
+ var _tx = require("./tx");
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ var MsgClientImpl = /*#__PURE__*/function () {
27
+ function MsgClientImpl(rpc) {
28
+ (0, _classCallCheck2["default"])(this, MsgClientImpl);
29
+ (0, _defineProperty2["default"])(this, "rpc", void 0);
30
+ this.rpc = rpc;
31
+ this.relayProviderPrices = this.relayProviderPrices.bind(this);
32
+ this.relayPriceFeedPrice = this.relayPriceFeedPrice.bind(this);
33
+ this.relayBandRates = this.relayBandRates.bind(this);
34
+ this.requestBandIBCRates = this.requestBandIBCRates.bind(this);
35
+ this.relayCoinbaseMessages = this.relayCoinbaseMessages.bind(this);
36
+ }
37
+
38
+ (0, _createClass2["default"])(MsgClientImpl, [{
39
+ key: "relayProviderPrices",
40
+ value: function relayProviderPrices(request) {
41
+ var data = _tx.MsgRelayProviderPrices.encode(request).finish();
42
+
43
+ var promise = this.rpc.request("injective.oracle.v1beta1.Msg", "RelayProviderPrices", data);
44
+ return promise.then(function (data) {
45
+ return _tx.MsgRelayProviderPricesResponse.decode(new _m0.Reader(data));
46
+ });
47
+ }
48
+ }, {
49
+ key: "relayPriceFeedPrice",
50
+ value: function relayPriceFeedPrice(request) {
51
+ var data = _tx.MsgRelayPriceFeedPrice.encode(request).finish();
52
+
53
+ var promise = this.rpc.request("injective.oracle.v1beta1.Msg", "RelayPriceFeedPrice", data);
54
+ return promise.then(function (data) {
55
+ return _tx.MsgRelayPriceFeedPriceResponse.decode(new _m0.Reader(data));
56
+ });
57
+ }
58
+ }, {
59
+ key: "relayBandRates",
60
+ value: function relayBandRates(request) {
61
+ var data = _tx.MsgRelayBandRates.encode(request).finish();
62
+
63
+ var promise = this.rpc.request("injective.oracle.v1beta1.Msg", "RelayBandRates", data);
64
+ return promise.then(function (data) {
65
+ return _tx.MsgRelayBandRatesResponse.decode(new _m0.Reader(data));
66
+ });
67
+ }
68
+ }, {
69
+ key: "requestBandIBCRates",
70
+ value: function requestBandIBCRates(request) {
71
+ var data = _tx.MsgRequestBandIBCRates.encode(request).finish();
72
+
73
+ var promise = this.rpc.request("injective.oracle.v1beta1.Msg", "RequestBandIBCRates", data);
74
+ return promise.then(function (data) {
75
+ return _tx.MsgRequestBandIBCRatesResponse.decode(new _m0.Reader(data));
76
+ });
77
+ }
78
+ }, {
79
+ key: "relayCoinbaseMessages",
80
+ value: function relayCoinbaseMessages(request) {
81
+ var data = _tx.MsgRelayCoinbaseMessages.encode(request).finish();
82
+
83
+ var promise = this.rpc.request("injective.oracle.v1beta1.Msg", "RelayCoinbaseMessages", data);
84
+ return promise.then(function (data) {
85
+ return _tx.MsgRelayCoinbaseMessagesResponse.decode(new _m0.Reader(data));
86
+ });
87
+ }
88
+ }]);
89
+ return MsgClientImpl;
90
+ }();
91
+
92
+ exports.MsgClientImpl = MsgClientImpl;
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ERC20Token = exports.ClaimTypeSDKType = exports.ClaimType = exports.Attestation = void 0;
9
+ exports.claimTypeFromJSON = claimTypeFromJSON;
10
+ exports.claimTypeToJSON = claimTypeToJSON;
11
+
12
+ var _any = require("../../../google/protobuf/any");
13
+
14
+ var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
15
+
16
+ var _helpers = require("@osmonauts/helpers");
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
23
+
24
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
+
26
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
+
28
+ /**
29
+ * ClaimType is the cosmos type of an event from the counterpart chain that can
30
+ * be handled
31
+ */
32
+ var ClaimType;
33
+ /**
34
+ * ClaimType is the cosmos type of an event from the counterpart chain that can
35
+ * be handled
36
+ */
37
+
38
+ exports.ClaimType = ClaimType;
39
+
40
+ (function (ClaimType) {
41
+ ClaimType[ClaimType["CLAIM_TYPE_UNKNOWN"] = 0] = "CLAIM_TYPE_UNKNOWN";
42
+ ClaimType[ClaimType["CLAIM_TYPE_DEPOSIT"] = 1] = "CLAIM_TYPE_DEPOSIT";
43
+ ClaimType[ClaimType["CLAIM_TYPE_WITHDRAW"] = 2] = "CLAIM_TYPE_WITHDRAW";
44
+ ClaimType[ClaimType["CLAIM_TYPE_ERC20_DEPLOYED"] = 3] = "CLAIM_TYPE_ERC20_DEPLOYED";
45
+ ClaimType[ClaimType["CLAIM_TYPE_VALSET_UPDATED"] = 4] = "CLAIM_TYPE_VALSET_UPDATED";
46
+ ClaimType[ClaimType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
47
+ })(ClaimType || (exports.ClaimType = ClaimType = {}));
48
+
49
+ var ClaimTypeSDKType;
50
+ exports.ClaimTypeSDKType = ClaimTypeSDKType;
51
+
52
+ (function (ClaimTypeSDKType) {
53
+ ClaimTypeSDKType[ClaimTypeSDKType["CLAIM_TYPE_UNKNOWN"] = 0] = "CLAIM_TYPE_UNKNOWN";
54
+ ClaimTypeSDKType[ClaimTypeSDKType["CLAIM_TYPE_DEPOSIT"] = 1] = "CLAIM_TYPE_DEPOSIT";
55
+ ClaimTypeSDKType[ClaimTypeSDKType["CLAIM_TYPE_WITHDRAW"] = 2] = "CLAIM_TYPE_WITHDRAW";
56
+ ClaimTypeSDKType[ClaimTypeSDKType["CLAIM_TYPE_ERC20_DEPLOYED"] = 3] = "CLAIM_TYPE_ERC20_DEPLOYED";
57
+ ClaimTypeSDKType[ClaimTypeSDKType["CLAIM_TYPE_VALSET_UPDATED"] = 4] = "CLAIM_TYPE_VALSET_UPDATED";
58
+ ClaimTypeSDKType[ClaimTypeSDKType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
59
+ })(ClaimTypeSDKType || (exports.ClaimTypeSDKType = ClaimTypeSDKType = {}));
60
+
61
+ function claimTypeFromJSON(object) {
62
+ switch (object) {
63
+ case 0:
64
+ case "CLAIM_TYPE_UNKNOWN":
65
+ return ClaimType.CLAIM_TYPE_UNKNOWN;
66
+
67
+ case 1:
68
+ case "CLAIM_TYPE_DEPOSIT":
69
+ return ClaimType.CLAIM_TYPE_DEPOSIT;
70
+
71
+ case 2:
72
+ case "CLAIM_TYPE_WITHDRAW":
73
+ return ClaimType.CLAIM_TYPE_WITHDRAW;
74
+
75
+ case 3:
76
+ case "CLAIM_TYPE_ERC20_DEPLOYED":
77
+ return ClaimType.CLAIM_TYPE_ERC20_DEPLOYED;
78
+
79
+ case 4:
80
+ case "CLAIM_TYPE_VALSET_UPDATED":
81
+ return ClaimType.CLAIM_TYPE_VALSET_UPDATED;
82
+
83
+ case -1:
84
+ case "UNRECOGNIZED":
85
+ default:
86
+ return ClaimType.UNRECOGNIZED;
87
+ }
88
+ }
89
+
90
+ function claimTypeToJSON(object) {
91
+ switch (object) {
92
+ case ClaimType.CLAIM_TYPE_UNKNOWN:
93
+ return "CLAIM_TYPE_UNKNOWN";
94
+
95
+ case ClaimType.CLAIM_TYPE_DEPOSIT:
96
+ return "CLAIM_TYPE_DEPOSIT";
97
+
98
+ case ClaimType.CLAIM_TYPE_WITHDRAW:
99
+ return "CLAIM_TYPE_WITHDRAW";
100
+
101
+ case ClaimType.CLAIM_TYPE_ERC20_DEPLOYED:
102
+ return "CLAIM_TYPE_ERC20_DEPLOYED";
103
+
104
+ case ClaimType.CLAIM_TYPE_VALSET_UPDATED:
105
+ return "CLAIM_TYPE_VALSET_UPDATED";
106
+
107
+ default:
108
+ return "UNKNOWN";
109
+ }
110
+ }
111
+ /**
112
+ * Attestation is an aggregate of `claims` that eventually becomes `observed` by
113
+ * all orchestrators
114
+ * EVENT_NONCE:
115
+ * EventNonce a nonce provided by the peggy contract that is unique per event fired
116
+ * These event nonces must be relayed in order. This is a correctness issue,
117
+ * if relaying out of order transaction replay attacks become possible
118
+ * OBSERVED:
119
+ * Observed indicates that >67% of validators have attested to the event,
120
+ * and that the event should be executed by the peggy state machine
121
+ *
122
+ * The actual content of the claims is passed in with the transaction making the claim
123
+ * and then passed through the call stack alongside the attestation while it is processed
124
+ * the key in which the attestation is stored is keyed on the exact details of the claim
125
+ * but there is no reason to store those exact details becuause the next message sender
126
+ * will kindly provide you with them.
127
+ */
128
+
129
+
130
+ function createBaseAttestation() {
131
+ return {
132
+ observed: false,
133
+ votes: [],
134
+ height: _helpers.Long.UZERO,
135
+ claim: undefined
136
+ };
137
+ }
138
+
139
+ var Attestation = {
140
+ encode: function encode(message) {
141
+ var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
142
+
143
+ if (message.observed === true) {
144
+ writer.uint32(8).bool(message.observed);
145
+ }
146
+
147
+ var _iterator = _createForOfIteratorHelper(message.votes),
148
+ _step;
149
+
150
+ try {
151
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
152
+ var v = _step.value;
153
+ writer.uint32(18).string(v);
154
+ }
155
+ } catch (err) {
156
+ _iterator.e(err);
157
+ } finally {
158
+ _iterator.f();
159
+ }
160
+
161
+ if (!message.height.isZero()) {
162
+ writer.uint32(24).uint64(message.height);
163
+ }
164
+
165
+ if (message.claim !== undefined) {
166
+ _any.Any.encode(message.claim, writer.uint32(34).fork()).ldelim();
167
+ }
168
+
169
+ return writer;
170
+ },
171
+ decode: function decode(input, length) {
172
+ var reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
173
+ var end = length === undefined ? reader.len : reader.pos + length;
174
+ var message = createBaseAttestation();
175
+
176
+ while (reader.pos < end) {
177
+ var tag = reader.uint32();
178
+
179
+ switch (tag >>> 3) {
180
+ case 1:
181
+ message.observed = reader.bool();
182
+ break;
183
+
184
+ case 2:
185
+ message.votes.push(reader.string());
186
+ break;
187
+
188
+ case 3:
189
+ message.height = reader.uint64();
190
+ break;
191
+
192
+ case 4:
193
+ message.claim = _any.Any.decode(reader, reader.uint32());
194
+ break;
195
+
196
+ default:
197
+ reader.skipType(tag & 7);
198
+ break;
199
+ }
200
+ }
201
+
202
+ return message;
203
+ },
204
+ fromPartial: function fromPartial(object) {
205
+ var _object$observed, _object$votes;
206
+
207
+ var message = createBaseAttestation();
208
+ message.observed = (_object$observed = object.observed) !== null && _object$observed !== void 0 ? _object$observed : false;
209
+ message.votes = ((_object$votes = object.votes) === null || _object$votes === void 0 ? void 0 : _object$votes.map(function (e) {
210
+ return e;
211
+ })) || [];
212
+ message.height = object.height !== undefined && object.height !== null ? _helpers.Long.fromValue(object.height) : _helpers.Long.UZERO;
213
+ message.claim = object.claim !== undefined && object.claim !== null ? _any.Any.fromPartial(object.claim) : undefined;
214
+ return message;
215
+ }
216
+ };
217
+ exports.Attestation = Attestation;
218
+
219
+ function createBaseERC20Token() {
220
+ return {
221
+ contract: "",
222
+ amount: ""
223
+ };
224
+ }
225
+
226
+ var ERC20Token = {
227
+ encode: function encode(message) {
228
+ var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
229
+
230
+ if (message.contract !== "") {
231
+ writer.uint32(10).string(message.contract);
232
+ }
233
+
234
+ if (message.amount !== "") {
235
+ writer.uint32(18).string(message.amount);
236
+ }
237
+
238
+ return writer;
239
+ },
240
+ decode: function decode(input, length) {
241
+ var reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
242
+ var end = length === undefined ? reader.len : reader.pos + length;
243
+ var message = createBaseERC20Token();
244
+
245
+ while (reader.pos < end) {
246
+ var tag = reader.uint32();
247
+
248
+ switch (tag >>> 3) {
249
+ case 1:
250
+ message.contract = reader.string();
251
+ break;
252
+
253
+ case 2:
254
+ message.amount = reader.string();
255
+ break;
256
+
257
+ default:
258
+ reader.skipType(tag & 7);
259
+ break;
260
+ }
261
+ }
262
+
263
+ return message;
264
+ },
265
+ fromPartial: function fromPartial(object) {
266
+ var _object$contract, _object$amount;
267
+
268
+ var message = createBaseERC20Token();
269
+ message.contract = (_object$contract = object.contract) !== null && _object$contract !== void 0 ? _object$contract : "";
270
+ message.amount = (_object$amount = object.amount) !== null && _object$amount !== void 0 ? _object$amount : "";
271
+ return message;
272
+ }
273
+ };
274
+ exports.ERC20Token = ERC20Token;