@dydxprotocol/v4-client-js 1.0.11 → 1.0.12

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 (221) hide show
  1. package/__native__/__ios__/v4-native-client.js +22 -5
  2. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/app/runtime/v1alpha1/module.d.ts +21 -0
  3. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/app/runtime/v1alpha1/module.js +27 -3
  4. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/app/v1alpha1/module.d.ts +1 -1
  5. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/authz/v1beta1/query.d.ts +2 -2
  6. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/authz/v1beta1/tx.d.ts +18 -18
  7. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/authz/v1beta1/tx.js +26 -26
  8. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/module/v1/module.d.ts +2 -2
  9. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.d.ts +48 -0
  10. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.js +83 -4
  11. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +2 -1
  12. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.lcd.js +16 -1
  13. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts +5 -1
  14. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.js +10 -1
  15. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/tx.d.ts +1 -0
  16. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bank/v1beta1/tx.js +1 -1
  17. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/abci/v1beta1/abci.d.ts +30 -0
  18. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/abci/v1beta1/abci.js +79 -2
  19. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.d.ts +44 -1
  20. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.js +116 -4
  21. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts +2 -1
  22. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.lcd.js +7 -1
  23. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.d.ts +5 -1
  24. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.js +10 -1
  25. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/v1beta1/coin.d.ts +16 -4
  26. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/v1beta1/coin.js +1 -1
  27. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bundle.d.ts +3339 -2738
  28. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bundle.js +355 -332
  29. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{capability → circuit}/module/v1/module.d.ts +5 -8
  30. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{capability → circuit}/module/v1/module.js +6 -6
  31. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.d.ts +84 -0
  32. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.js +242 -0
  33. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.lcd.d.ts +11 -0
  34. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.lcd.js +37 -0
  35. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.rpc.Query.d.ts +24 -0
  36. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/query.rpc.Query.js +72 -0
  37. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/tx.d.ts +113 -0
  38. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/tx.js +277 -0
  39. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/tx.rpc.msg.d.ts +24 -0
  40. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/tx.rpc.msg.js +53 -0
  41. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/types.d.ts +88 -0
  42. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/circuit/v1/types.js +225 -0
  43. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/consensus/v1/query.lcd.js +2 -2
  44. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/consensus/v1/query.rpc.Query.d.ts +1 -1
  45. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/consensus/v1/tx.d.ts +4 -1
  46. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/consensus/v1/tx.js +10 -2
  47. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/consensus/v1/tx.rpc.msg.d.ts +2 -2
  48. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/crypto/ed25519/keys.d.ts +2 -2
  49. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
  50. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts +1 -1
  51. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/tx.d.ts +48 -0
  52. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/tx.js +80 -2
  53. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +9 -1
  54. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +7 -1
  55. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/query.lcd.js +3 -3
  56. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +2 -2
  57. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/tx.d.ts +41 -0
  58. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/tx.js +64 -2
  59. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +8 -1
  60. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +7 -1
  61. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/genesis.d.ts +10 -0
  62. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/genesis.js +11 -3
  63. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/gov.d.ts +71 -3
  64. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/gov.js +72 -8
  65. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.d.ts +25 -1
  66. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.js +65 -3
  67. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.lcd.d.ts +2 -1
  68. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.lcd.js +8 -2
  69. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.rpc.Query.d.ts +6 -2
  70. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/query.rpc.Query.js +10 -1
  71. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/tx.d.ts +62 -0
  72. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/tx.js +109 -4
  73. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +8 -1
  74. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1/tx.rpc.msg.js +7 -1
  75. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  76. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
  77. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts +1 -1
  78. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +1 -1
  79. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/events.d.ts +21 -1
  80. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/events.js +55 -2
  81. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.d.ts +47 -0
  82. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.js +81 -2
  83. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.lcd.d.ts +2 -1
  84. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.lcd.js +17 -1
  85. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.rpc.Query.d.ts +9 -1
  86. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/query.rpc.Query.js +12 -1
  87. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/types.d.ts +20 -6
  88. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/group/v1/types.js +1 -1
  89. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/lcd.d.ts +3 -0
  90. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/lcd.js +6 -1
  91. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/msg/textual/v1/textual.d.ts +1 -0
  92. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/msg/textual/v1/textual.js +3 -0
  93. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/orm/module/v1alpha1/module.d.ts +4 -4
  94. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/orm/v1/orm.d.ts +5 -2
  95. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/orm/v1/orm.js +1 -1
  96. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/orm/v1alpha1/schema.d.ts +2 -22
  97. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/orm/v1alpha1/schema.js +3 -33
  98. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/rpc.query.d.ts +11 -0
  99. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/rpc.query.js +4 -1
  100. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/rpc.tx.d.ts +3 -0
  101. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/rpc.tx.js +4 -1
  102. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/slashing/v1beta1/slashing.d.ts +9 -8
  103. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/slashing/v1beta1/slashing.js +1 -1
  104. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/module/v1/module.d.ts +6 -0
  105. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/module/v1/module.js +19 -3
  106. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/authz.d.ts +2 -0
  107. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/authz.js +8 -1
  108. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/genesis.d.ts +2 -1
  109. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/genesis.js +1 -1
  110. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/staking.d.ts +4 -4
  111. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/tx.d.ts +14 -0
  112. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/staking/v1beta1/tx.js +10 -2
  113. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{base → store/internal}/kv/v1beta1/kv.d.ts +1 -1
  114. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{base → store/internal}/kv/v1beta1/kv.js +1 -1
  115. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{base/snapshots/v1beta1 → store/snapshots/v1}/snapshot.d.ts +0 -60
  116. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/store/snapshots/v1/snapshot.js +368 -0
  117. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/store/streaming/abci/grpc.d.ts +60 -0
  118. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/store/streaming/abci/grpc.js +178 -0
  119. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{base/store → store}/v1beta1/commit_info.d.ts +3 -1
  120. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/store/v1beta1/commit_info.js +170 -0
  121. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/{base/store → store}/v1beta1/listening.d.ts +7 -27
  122. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/store/v1beta1/listening.js +140 -0
  123. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +4 -3
  124. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/signing/v1beta1/signing.js +5 -4
  125. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/v1beta1/service.d.ts +35 -10
  126. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/v1beta1/service.js +23 -9
  127. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/v1beta1/service.lcd.js +4 -1
  128. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/v1beta1/tx.d.ts +7 -8
  129. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/tx/v1beta1/tx.js +1 -1
  130. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/vesting/v1beta1/tx.d.ts +2 -0
  131. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/vesting/v1beta1/tx.js +1 -1
  132. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/vesting/v1beta1/vesting.d.ts +3 -0
  133. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/vesting/v1beta1/vesting.js +1 -1
  134. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/bundle.d.ts +1695 -1261
  135. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/bundle.js +237 -220
  136. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/clob_pair.d.ts +7 -0
  137. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/clob_pair.js +13 -1
  138. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/liquidations.d.ts +24 -0
  139. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/liquidations.js +54 -2
  140. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/matches.d.ts +8 -0
  141. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/matches.js +11 -3
  142. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/mev.d.ts +4 -0
  143. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/mev.js +18 -2
  144. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.d.ts +74 -0
  145. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.js +126 -2
  146. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.lcd.d.ts +3 -1
  147. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.lcd.js +13 -1
  148. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.rpc.Query.d.ts +9 -1
  149. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.rpc.Query.js +19 -1
  150. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/events/events.d.ts +123 -25
  151. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/events/events.js +166 -2
  152. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/indexer_manager/event.d.ts +2 -2
  153. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/off_chain_updates/off_chain_updates.d.ts +12 -12
  154. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/off_chain_updates/off_chain_updates.js +12 -12
  155. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/protocol/v1/clob.d.ts +7 -0
  156. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/protocol/v1/clob.js +13 -1
  157. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/redis/redis_order.d.ts +2 -2
  158. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/shared/removal_reason.d.ts +2 -0
  159. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/shared/removal_reason.js +8 -1
  160. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/lcd.d.ts +4 -0
  161. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/lcd.js +9 -1
  162. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/perpetual.d.ts +4 -0
  163. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/perpetual.js +1 -1
  164. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.d.ts +126 -1
  165. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.js +265 -2
  166. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.lcd.d.ts +5 -1
  167. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.lcd.js +33 -1
  168. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.rpc.Query.d.ts +17 -1
  169. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/perpetuals/query.rpc.Query.js +39 -1
  170. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/capacity.d.ts +26 -0
  171. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/capacity.js +72 -0
  172. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/genesis.d.ts +17 -0
  173. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/genesis.js +65 -0
  174. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/limit_params.d.ts +56 -0
  175. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/limit_params.js +124 -0
  176. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.d.ts +89 -0
  177. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.js +207 -0
  178. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.lcd.d.ts +10 -0
  179. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.lcd.js +28 -0
  180. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.rpc.Query.d.ts +20 -0
  181. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/query.rpc.Query.js +61 -0
  182. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/tx.d.ts +57 -0
  183. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/tx.js +169 -0
  184. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/tx.rpc.msg.d.ts +15 -0
  185. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/ratelimit/tx.rpc.msg.js +47 -0
  186. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.query.d.ts +21 -0
  187. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.query.js +5 -1
  188. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.tx.d.ts +4 -0
  189. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.tx.js +5 -1
  190. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/gogoproto/bundle.js +2 -2
  191. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/api/http.d.ts +14 -7
  192. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/api/http.js +1 -1
  193. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/bundle.d.ts +174 -174
  194. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/bundle.js +12 -12
  195. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/abci/types.d.ts +221 -133
  196. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/abci/types.js +709 -524
  197. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/bundle.d.ts +686 -574
  198. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/bundle.js +22 -22
  199. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/params.d.ts +26 -0
  200. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/params.js +46 -3
  201. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/types.d.ts +71 -14
  202. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/types.js +156 -51
  203. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/validator.d.ts +14 -0
  204. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/types/validator.js +52 -2
  205. package/build/src/clients/modules/get.d.ts +1 -1
  206. package/build/src/clients/modules/get.js +49 -22
  207. package/build/src/clients/modules/post.js +3 -5
  208. package/build/src/clients/modules/tendermintClient.js +3 -1
  209. package/build/src/clients/native.js +4 -2
  210. package/package.json +10 -10
  211. package/src/clients/modules/get.ts +57 -31
  212. package/src/clients/modules/post.ts +5 -6
  213. package/src/clients/modules/tendermintClient.ts +2 -0
  214. package/src/clients/native.ts +5 -1
  215. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +0 -464
  216. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/store/v1beta1/commit_info.js +0 -161
  217. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/base/store/v1beta1/listening.js +0 -208
  218. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/capability/v1beta1/capability.d.ts +0 -62
  219. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/capability/v1beta1/capability.js +0 -144
  220. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/capability/v1beta1/genesis.d.ts +0 -41
  221. package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/capability/v1beta1/genesis.js +0 -117
@@ -92,7 +92,7 @@ export interface FundingEventV1SDKType {
92
92
  }
93
93
  /**
94
94
  * MarketEvent message contains all the information about a market event on
95
- * the V4 chain.
95
+ * the dYdX chain.
96
96
  */
97
97
  export interface MarketEventV1 {
98
98
  /** market id. */
@@ -103,7 +103,7 @@ export interface MarketEventV1 {
103
103
  }
104
104
  /**
105
105
  * MarketEvent message contains all the information about a market event on
106
- * the V4 chain.
106
+ * the dYdX chain.
107
107
  */
108
108
  export interface MarketEventV1SDKType {
109
109
  market_id: number;
@@ -113,7 +113,7 @@ export interface MarketEventV1SDKType {
113
113
  }
114
114
  /**
115
115
  * MarketPriceUpdateEvent message contains all the information about a price
116
- * update on the V4 chain.
116
+ * update on the dYdX chain.
117
117
  */
118
118
  export interface MarketPriceUpdateEventV1 {
119
119
  /**
@@ -125,7 +125,7 @@ export interface MarketPriceUpdateEventV1 {
125
125
  }
126
126
  /**
127
127
  * MarketPriceUpdateEvent message contains all the information about a price
128
- * update on the V4 chain.
128
+ * update on the dYdX chain.
129
129
  */
130
130
  export interface MarketPriceUpdateEventV1SDKType {
131
131
  price_with_exponent: Long;
@@ -147,7 +147,7 @@ export interface MarketBaseEventV1SDKType {
147
147
  }
148
148
  /**
149
149
  * MarketCreateEvent message contains all the information about a new market on
150
- * the V4 chain.
150
+ * the dYdX chain.
151
151
  */
152
152
  export interface MarketCreateEventV1 {
153
153
  base?: MarketBaseEventV1;
@@ -161,7 +161,7 @@ export interface MarketCreateEventV1 {
161
161
  }
162
162
  /**
163
163
  * MarketCreateEvent message contains all the information about a new market on
164
- * the V4 chain.
164
+ * the dYdX chain.
165
165
  */
166
166
  export interface MarketCreateEventV1SDKType {
167
167
  base?: MarketBaseEventV1SDKType;
@@ -169,18 +169,18 @@ export interface MarketCreateEventV1SDKType {
169
169
  }
170
170
  /**
171
171
  * MarketModifyEvent message contains all the information about a market update
172
- * on the V4 chain
172
+ * on the dYdX chain
173
173
  */
174
174
  export interface MarketModifyEventV1 {
175
175
  /**
176
176
  * MarketModifyEvent message contains all the information about a market update
177
- * on the V4 chain
177
+ * on the dYdX chain
178
178
  */
179
179
  base?: MarketBaseEventV1;
180
180
  }
181
181
  /**
182
182
  * MarketModifyEvent message contains all the information about a market update
183
- * on the V4 chain
183
+ * on the dYdX chain
184
184
  */
185
185
  export interface MarketModifyEventV1SDKType {
186
186
  base?: MarketBaseEventV1SDKType;
@@ -197,7 +197,7 @@ export interface SourceOfFundsSDKType {
197
197
  }
198
198
  /**
199
199
  * TransferEvent message contains all the information about a transfer,
200
- * deposit-to-subaccount, or withdraw-from-subaccount on the V4 chain.
200
+ * deposit-to-subaccount, or withdraw-from-subaccount on the dYdX chain.
201
201
  * When a subaccount is involved, a SubaccountUpdateEvent message will
202
202
  * be produced with the updated asset positions.
203
203
  */
@@ -223,7 +223,7 @@ export interface TransferEventV1 {
223
223
  }
224
224
  /**
225
225
  * TransferEvent message contains all the information about a transfer,
226
- * deposit-to-subaccount, or withdraw-from-subaccount on the V4 chain.
226
+ * deposit-to-subaccount, or withdraw-from-subaccount on the dYdX chain.
227
227
  * When a subaccount is involved, a SubaccountUpdateEvent message will
228
228
  * be produced with the updated asset positions.
229
229
  */
@@ -237,7 +237,7 @@ export interface TransferEventV1SDKType {
237
237
  }
238
238
  /**
239
239
  * OrderFillEvent message contains all the information from an order match in
240
- * the V4 chain. This includes the maker/taker orders that matched and the
240
+ * the dYdX chain. This includes the maker/taker orders that matched and the
241
241
  * amount filled.
242
242
  */
243
243
  export interface OrderFillEventV1 {
@@ -260,7 +260,7 @@ export interface OrderFillEventV1 {
260
260
  }
261
261
  /**
262
262
  * OrderFillEvent message contains all the information from an order match in
263
- * the V4 chain. This includes the maker/taker orders that matched and the
263
+ * the dYdX chain. This includes the maker/taker orders that matched and the
264
264
  * amount filled.
265
265
  */
266
266
  export interface OrderFillEventV1SDKType {
@@ -273,6 +273,49 @@ export interface OrderFillEventV1SDKType {
273
273
  total_filled_maker: Long;
274
274
  total_filled_taker: Long;
275
275
  }
276
+ /**
277
+ * DeleveragingEvent message contains all the information for a deleveraging
278
+ * on the dYdX chain. This includes the liquidated/offsetting subaccounts and
279
+ * the amount filled.
280
+ */
281
+ export interface DeleveragingEventV1 {
282
+ /** ID of the subaccount that was liquidated. */
283
+ liquidated?: IndexerSubaccountId;
284
+ /** ID of the subaccount that was used to offset the position. */
285
+ offsetting?: IndexerSubaccountId;
286
+ /** The ID of the perpetual that was liquidated. */
287
+ perpetualId: number;
288
+ /**
289
+ * The amount filled between the liquidated and offsetting position, in
290
+ * base quantums.
291
+ */
292
+ fillAmount: Long;
293
+ /** Fill price of deleveraging event, in USDC quote quantums. */
294
+ price: Long;
295
+ /** `true` if liquidating a short position, `false` otherwise. */
296
+ isBuy: boolean;
297
+ /**
298
+ * `true` if the deleveraging event is for final settlement, indicating
299
+ * the match occurred at the oracle price rather than bankruptcy price.
300
+ * When this flag is `false`, the fill price is the bankruptcy price
301
+ * of the liquidated subaccount.
302
+ */
303
+ isFinalSettlement: boolean;
304
+ }
305
+ /**
306
+ * DeleveragingEvent message contains all the information for a deleveraging
307
+ * on the dYdX chain. This includes the liquidated/offsetting subaccounts and
308
+ * the amount filled.
309
+ */
310
+ export interface DeleveragingEventV1SDKType {
311
+ liquidated?: IndexerSubaccountIdSDKType;
312
+ offsetting?: IndexerSubaccountIdSDKType;
313
+ perpetual_id: number;
314
+ fill_amount: Long;
315
+ price: Long;
316
+ is_buy: boolean;
317
+ is_final_settlement: boolean;
318
+ }
276
319
  /**
277
320
  * LiquidationOrder represents the liquidation taker order to be included in a
278
321
  * liquidation order fill event.
@@ -314,7 +357,7 @@ export interface LiquidationOrderV1SDKType {
314
357
  }
315
358
  /**
316
359
  * SubaccountUpdateEvent message contains information about an update to a
317
- * subaccount in the V4 chain. This includes the list of updated perpetual
360
+ * subaccount in the dYdX chain. This includes the list of updated perpetual
318
361
  * and asset positions for the subaccount.
319
362
  * Note: This event message will contain all the updates to a subaccount
320
363
  * at the end of a block which is why multiple asset/perpetual position
@@ -327,7 +370,7 @@ export interface SubaccountUpdateEventV1 {
327
370
  }
328
371
  /**
329
372
  * SubaccountUpdateEvent message contains information about an update to a
330
- * subaccount in the V4 chain. This includes the list of updated perpetual
373
+ * subaccount in the dYdX chain. This includes the list of updated perpetual
331
374
  * and asset positions for the subaccount.
332
375
  * Note: This event message will contain all the updates to a subaccount
333
376
  * at the end of a block which is why multiple asset/perpetual position
@@ -426,7 +469,7 @@ export interface StatefulOrderEventV1_LongTermOrderPlacementV1SDKType {
426
469
  }
427
470
  /**
428
471
  * AssetCreateEventV1 message contains all the information about an new Asset on
429
- * the v4 chain.
472
+ * the dYdX chain.
430
473
  */
431
474
  export interface AssetCreateEventV1 {
432
475
  /** Unique, sequentially-generated. */
@@ -455,7 +498,7 @@ export interface AssetCreateEventV1 {
455
498
  }
456
499
  /**
457
500
  * AssetCreateEventV1 message contains all the information about an new Asset on
458
- * the v4 chain.
501
+ * the dYdX chain.
459
502
  */
460
503
  export interface AssetCreateEventV1SDKType {
461
504
  id: number;
@@ -466,7 +509,7 @@ export interface AssetCreateEventV1SDKType {
466
509
  }
467
510
  /**
468
511
  * PerpetualMarketCreateEventV1 message contains all the information about a
469
- * new Perpetual Market on the v4 chain.
512
+ * new Perpetual Market on the dYdX chain.
470
513
  */
471
514
  export interface PerpetualMarketCreateEventV1 {
472
515
  /**
@@ -526,7 +569,7 @@ export interface PerpetualMarketCreateEventV1 {
526
569
  }
527
570
  /**
528
571
  * PerpetualMarketCreateEventV1 message contains all the information about a
529
- * new Perpetual Market on the v4 chain.
572
+ * new Perpetual Market on the dYdX chain.
530
573
  */
531
574
  export interface PerpetualMarketCreateEventV1SDKType {
532
575
  id: number;
@@ -542,7 +585,7 @@ export interface PerpetualMarketCreateEventV1SDKType {
542
585
  }
543
586
  /**
544
587
  * LiquidityTierUpsertEventV1 message contains all the information to
545
- * create/update a Liquidity Tier on the v4 chain.
588
+ * create/update a Liquidity Tier on the dYdX chain.
546
589
  */
547
590
  export interface LiquidityTierUpsertEventV1 {
548
591
  /** Unique id. */
@@ -563,23 +606,27 @@ export interface LiquidityTierUpsertEventV1 {
563
606
  * The maximum position size at which the margin requirements are
564
607
  * not increased over the default values. Above this position size,
565
608
  * the margin requirements increase at a rate of sqrt(size).
609
+ *
610
+ * Deprecated since v3.x.
566
611
  */
612
+ /** @deprecated */
567
613
  basePositionNotional: Long;
568
614
  }
569
615
  /**
570
616
  * LiquidityTierUpsertEventV1 message contains all the information to
571
- * create/update a Liquidity Tier on the v4 chain.
617
+ * create/update a Liquidity Tier on the dYdX chain.
572
618
  */
573
619
  export interface LiquidityTierUpsertEventV1SDKType {
574
620
  id: number;
575
621
  name: string;
576
622
  initial_margin_ppm: number;
577
623
  maintenance_fraction_ppm: number;
624
+ /** @deprecated */
578
625
  base_position_notional: Long;
579
626
  }
580
627
  /**
581
628
  * UpdateClobPairEventV1 message contains all the information about an update to
582
- * a clob pair on the v4 chain.
629
+ * a clob pair on the dYdX chain.
583
630
  */
584
631
  export interface UpdateClobPairEventV1 {
585
632
  /**
@@ -611,7 +658,7 @@ export interface UpdateClobPairEventV1 {
611
658
  }
612
659
  /**
613
660
  * UpdateClobPairEventV1 message contains all the information about an update to
614
- * a clob pair on the v4 chain.
661
+ * a clob pair on the dYdX chain.
615
662
  */
616
663
  export interface UpdateClobPairEventV1SDKType {
617
664
  clob_pair_id: number;
@@ -622,7 +669,7 @@ export interface UpdateClobPairEventV1SDKType {
622
669
  }
623
670
  /**
624
671
  * UpdatePerpetualEventV1 message contains all the information about an update
625
- * to a perpetual on the v4 chain.
672
+ * to a perpetual on the dYdX chain.
626
673
  */
627
674
  export interface UpdatePerpetualEventV1 {
628
675
  /**
@@ -656,7 +703,7 @@ export interface UpdatePerpetualEventV1 {
656
703
  }
657
704
  /**
658
705
  * UpdatePerpetualEventV1 message contains all the information about an update
659
- * to a perpetual on the v4 chain.
706
+ * to a perpetual on the dYdX chain.
660
707
  */
661
708
  export interface UpdatePerpetualEventV1SDKType {
662
709
  id: number;
@@ -665,6 +712,42 @@ export interface UpdatePerpetualEventV1SDKType {
665
712
  atomic_resolution: number;
666
713
  liquidity_tier: number;
667
714
  }
715
+ /**
716
+ * TradingRewardsEventV1 is communicates all trading rewards for all accounts
717
+ * that receive trade rewards in the block.
718
+ */
719
+ export interface TradingRewardsEventV1 {
720
+ /** The list of all trading rewards in the block. */
721
+ tradingRewards: AddressTradingReward[];
722
+ }
723
+ /**
724
+ * TradingRewardsEventV1 is communicates all trading rewards for all accounts
725
+ * that receive trade rewards in the block.
726
+ */
727
+ export interface TradingRewardsEventV1SDKType {
728
+ trading_rewards: AddressTradingRewardSDKType[];
729
+ }
730
+ /**
731
+ * AddressTradingReward contains info on an instance of an address receiving a
732
+ * reward
733
+ */
734
+ export interface AddressTradingReward {
735
+ /** The address of the wallet that will receive the trading reward. */
736
+ owner: string;
737
+ /**
738
+ * The amount of trading rewards earned by the address above in denoms. 1e18
739
+ * denoms is equivalent to a single coin.
740
+ */
741
+ denomAmount: Uint8Array;
742
+ }
743
+ /**
744
+ * AddressTradingReward contains info on an instance of an address receiving a
745
+ * reward
746
+ */
747
+ export interface AddressTradingRewardSDKType {
748
+ owner: string;
749
+ denom_amount: Uint8Array;
750
+ }
668
751
  export declare const FundingUpdateV1: {
669
752
  encode(message: FundingUpdateV1, writer?: _m0.Writer): _m0.Writer;
670
753
  decode(input: _m0.Reader | Uint8Array, length?: number): FundingUpdateV1;
@@ -715,6 +798,11 @@ export declare const OrderFillEventV1: {
715
798
  decode(input: _m0.Reader | Uint8Array, length?: number): OrderFillEventV1;
716
799
  fromPartial(object: DeepPartial<OrderFillEventV1>): OrderFillEventV1;
717
800
  };
801
+ export declare const DeleveragingEventV1: {
802
+ encode(message: DeleveragingEventV1, writer?: _m0.Writer): _m0.Writer;
803
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeleveragingEventV1;
804
+ fromPartial(object: DeepPartial<DeleveragingEventV1>): DeleveragingEventV1;
805
+ };
718
806
  export declare const LiquidationOrderV1: {
719
807
  encode(message: LiquidationOrderV1, writer?: _m0.Writer): _m0.Writer;
720
808
  decode(input: _m0.Reader | Uint8Array, length?: number): LiquidationOrderV1;
@@ -780,3 +868,13 @@ export declare const UpdatePerpetualEventV1: {
780
868
  decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePerpetualEventV1;
781
869
  fromPartial(object: DeepPartial<UpdatePerpetualEventV1>): UpdatePerpetualEventV1;
782
870
  };
871
+ export declare const TradingRewardsEventV1: {
872
+ encode(message: TradingRewardsEventV1, writer?: _m0.Writer): _m0.Writer;
873
+ decode(input: _m0.Reader | Uint8Array, length?: number): TradingRewardsEventV1;
874
+ fromPartial(object: DeepPartial<TradingRewardsEventV1>): TradingRewardsEventV1;
875
+ };
876
+ export declare const AddressTradingReward: {
877
+ encode(message: AddressTradingReward, writer?: _m0.Writer): _m0.Writer;
878
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddressTradingReward;
879
+ fromPartial(object: DeepPartial<AddressTradingReward>): AddressTradingReward;
880
+ };