injectivejs 0.0.1-beta.30

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 (181) hide show
  1. package/.eslintignore +1 -0
  2. package/CHANGELOG.md +176 -0
  3. package/README.md +21 -0
  4. package/jest.starship.config.js +18 -0
  5. package/package.json +48 -0
  6. package/src/amino/amino.ts +1 -0
  7. package/src/binary.ts +534 -0
  8. package/src/cosmos/auth/v1beta1/auth.ts +550 -0
  9. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +72 -0
  10. package/src/cosmos/auth/v1beta1/query.ts +2034 -0
  11. package/src/cosmos/authz/v1beta1/authz.ts +477 -0
  12. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +21 -0
  13. package/src/cosmos/authz/v1beta1/tx.ts +647 -0
  14. package/src/cosmos/bank/v1beta1/bank.ts +974 -0
  15. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +93 -0
  16. package/src/cosmos/bank/v1beta1/query.ts +3027 -0
  17. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +27 -0
  18. package/src/cosmos/bank/v1beta1/tx.ts +861 -0
  19. package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
  20. package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
  21. package/src/cosmos/base/v1beta1/coin.ts +439 -0
  22. package/src/cosmos/crypto/ed25519/keys.ts +209 -0
  23. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
  24. package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
  25. package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
  26. package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
  27. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +45 -0
  28. package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
  29. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +21 -0
  30. package/src/cosmos/feegrant/v1beta1/tx.ts +596 -0
  31. package/src/cosmos/gov/v1/gov.ts +1843 -0
  32. package/src/cosmos/gov/v1/tx.rpc.func.ts +45 -0
  33. package/src/cosmos/gov/v1/tx.ts +1660 -0
  34. package/src/cosmos/gov/v1beta1/gov.ts +1428 -0
  35. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +58 -0
  36. package/src/cosmos/gov/v1beta1/query.ts +1749 -0
  37. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +27 -0
  38. package/src/cosmos/gov/v1beta1/tx.ts +884 -0
  39. package/src/cosmos/group/v1/tx.rpc.func.ts +87 -0
  40. package/src/cosmos/group/v1/tx.ts +3207 -0
  41. package/src/cosmos/group/v1/types.ts +2081 -0
  42. package/src/cosmos/ics23/v1/proofs.ts +2060 -0
  43. package/src/cosmos/msg/v1/msg.ts +1 -0
  44. package/src/cosmos/query/v1/query.ts +1 -0
  45. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +100 -0
  46. package/src/cosmos/staking/v1beta1/query.ts +3073 -0
  47. package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
  48. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +45 -0
  49. package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
  50. package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
  51. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +65 -0
  52. package/src/cosmos/tx/v1beta1/service.ts +2294 -0
  53. package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
  54. package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
  55. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +21 -0
  56. package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
  57. package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
  58. package/src/cosmos_proto/cosmos.ts +341 -0
  59. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
  60. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +100 -0
  61. package/src/cosmwasm/wasm/v1/query.ts +3235 -0
  62. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +105 -0
  63. package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
  64. package/src/cosmwasm/wasm/v1/types.ts +1120 -0
  65. package/src/extern.ts +38 -0
  66. package/src/gogoproto/gogo.ts +1 -0
  67. package/src/google/api/annotations.ts +1 -0
  68. package/src/google/api/http.ts +1069 -0
  69. package/src/google/protobuf/any.ts +331 -0
  70. package/src/google/protobuf/descriptor.ts +7177 -0
  71. package/src/google/protobuf/duration.ts +225 -0
  72. package/src/google/protobuf/timestamp.ts +281 -0
  73. package/src/helper-func-types.ts +191 -0
  74. package/src/helpers.ts +259 -0
  75. package/src/ibc/applications/transfer/v1/transfer.ts +373 -0
  76. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +15 -0
  77. package/src/ibc/applications/transfer/v1/tx.ts +569 -0
  78. package/src/ibc/core/channel/v1/channel.ts +1510 -0
  79. package/src/ibc/core/channel/v1/tx.rpc.func.ts +117 -0
  80. package/src/ibc/core/channel/v1/tx.ts +4866 -0
  81. package/src/ibc/core/channel/v1/upgrade.ts +388 -0
  82. package/src/ibc/core/client/v1/client.ts +602 -0
  83. package/src/ibc/core/client/v1/tx.rpc.func.ts +45 -0
  84. package/src/ibc/core/client/v1/tx.ts +1560 -0
  85. package/src/ibc/core/commitment/v1/commitment.ts +314 -0
  86. package/src/ibc/core/connection/v1/connection.ts +1010 -0
  87. package/src/ibc/core/connection/v1/tx.rpc.func.ts +33 -0
  88. package/src/ibc/core/connection/v1/tx.ts +1393 -0
  89. package/src/injective/auction/v1beta1/auction.ts +692 -0
  90. package/src/injective/auction/v1beta1/genesis.ts +156 -0
  91. package/src/injective/auction/v1beta1/query.rpc.func.ts +30 -0
  92. package/src/injective/auction/v1beta1/query.ts +726 -0
  93. package/src/injective/auction/v1beta1/tx.rpc.func.ts +15 -0
  94. package/src/injective/auction/v1beta1/tx.ts +383 -0
  95. package/src/injective/crypto/v1beta1/ethsecp256k1/keys.ts +205 -0
  96. package/src/injective/exchange/v1beta1/authz.ts +1213 -0
  97. package/src/injective/exchange/v1beta1/events.ts +4016 -0
  98. package/src/injective/exchange/v1beta1/exchange.ts +7789 -0
  99. package/src/injective/exchange/v1beta1/genesis.ts +2460 -0
  100. package/src/injective/exchange/v1beta1/proposal.ts +4383 -0
  101. package/src/injective/exchange/v1beta1/query.rpc.func.ts +422 -0
  102. package/src/injective/exchange/v1beta1/query.ts +13590 -0
  103. package/src/injective/exchange/v1beta1/tx.rpc.func.ts +213 -0
  104. package/src/injective/exchange/v1beta1/tx.ts +9492 -0
  105. package/src/injective/insurance/v1beta1/events.ts +521 -0
  106. package/src/injective/insurance/v1beta1/genesis.ts +178 -0
  107. package/src/injective/insurance/v1beta1/insurance.ts +531 -0
  108. package/src/injective/insurance/v1beta1/query.rpc.func.ts +44 -0
  109. package/src/injective/insurance/v1beta1/query.ts +1095 -0
  110. package/src/injective/insurance/v1beta1/tx.rpc.func.ts +27 -0
  111. package/src/injective/insurance/v1beta1/tx.ts +892 -0
  112. package/src/injective/ocr/v1beta1/genesis.ts +945 -0
  113. package/src/injective/ocr/v1beta1/ocr.ts +3044 -0
  114. package/src/injective/ocr/v1beta1/query.rpc.func.ts +51 -0
  115. package/src/injective/ocr/v1beta1/query.ts +1218 -0
  116. package/src/injective/ocr/v1beta1/tx.rpc.func.ts +57 -0
  117. package/src/injective/ocr/v1beta1/tx.ts +1900 -0
  118. package/src/injective/oracle/v1beta1/events.ts +1234 -0
  119. package/src/injective/oracle/v1beta1/genesis.ts +440 -0
  120. package/src/injective/oracle/v1beta1/oracle.ts +3206 -0
  121. package/src/injective/oracle/v1beta1/proposal.ts +1449 -0
  122. package/src/injective/oracle/v1beta1/query.rpc.func.ts +121 -0
  123. package/src/injective/oracle/v1beta1/query.ts +3446 -0
  124. package/src/injective/oracle/v1beta1/tx.rpc.func.ts +51 -0
  125. package/src/injective/oracle/v1beta1/tx.ts +1605 -0
  126. package/src/injective/peggy/v1/attestation.ts +333 -0
  127. package/src/injective/peggy/v1/batch.ts +290 -0
  128. package/src/injective/peggy/v1/ethereum_signer.ts +38 -0
  129. package/src/injective/peggy/v1/events.ts +2274 -0
  130. package/src/injective/peggy/v1/genesis.ts +308 -0
  131. package/src/injective/peggy/v1/msgs.rpc.func.ts +87 -0
  132. package/src/injective/peggy/v1/msgs.ts +3087 -0
  133. package/src/injective/peggy/v1/params.ts +392 -0
  134. package/src/injective/peggy/v1/pool.ts +198 -0
  135. package/src/injective/peggy/v1/proposal.ts +231 -0
  136. package/src/injective/peggy/v1/query.rpc.func.ts +149 -0
  137. package/src/injective/peggy/v1/query.ts +3578 -0
  138. package/src/injective/peggy/v1/types.ts +575 -0
  139. package/src/injective/permissions/v1beta1/events.ts +102 -0
  140. package/src/injective/permissions/v1beta1/genesis.ts +109 -0
  141. package/src/injective/permissions/v1beta1/params.ts +97 -0
  142. package/src/injective/permissions/v1beta1/permissions.ts +709 -0
  143. package/src/injective/permissions/v1beta1/query.rpc.func.ts +44 -0
  144. package/src/injective/permissions/v1beta1/query.ts +1084 -0
  145. package/src/injective/permissions/v1beta1/tx.rpc.func.ts +45 -0
  146. package/src/injective/permissions/v1beta1/tx.ts +1682 -0
  147. package/src/injective/stream/v1beta1/query.ts +2870 -0
  148. package/src/injective/tokenfactory/v1beta1/authorityMetadata.ts +99 -0
  149. package/src/injective/tokenfactory/v1beta1/events.ts +495 -0
  150. package/src/injective/tokenfactory/v1beta1/genesis.ts +259 -0
  151. package/src/injective/tokenfactory/v1beta1/params.ts +100 -0
  152. package/src/injective/tokenfactory/v1beta1/query.rpc.func.ts +30 -0
  153. package/src/injective/tokenfactory/v1beta1/query.ts +714 -0
  154. package/src/injective/tokenfactory/v1beta1/tx.rpc.func.ts +39 -0
  155. package/src/injective/tokenfactory/v1beta1/tx.ts +1208 -0
  156. package/src/injective/types/v1beta1/account.ts +110 -0
  157. package/src/injective/types/v1beta1/tx_ext.ts +139 -0
  158. package/src/injective/types/v1beta1/tx_response.ts +197 -0
  159. package/src/injective/wasmx/v1/events.ts +396 -0
  160. package/src/injective/wasmx/v1/genesis.ts +214 -0
  161. package/src/injective/wasmx/v1/proposal.ts +769 -0
  162. package/src/injective/wasmx/v1/query.rpc.func.ts +23 -0
  163. package/src/injective/wasmx/v1/query.ts +509 -0
  164. package/src/injective/wasmx/v1/tx.rpc.func.ts +39 -0
  165. package/src/injective/wasmx/v1/tx.ts +1174 -0
  166. package/src/injective/wasmx/v1/wasmx.ts +379 -0
  167. package/src/registry.ts +218 -0
  168. package/src/tendermint/abci/types.ts +6283 -0
  169. package/src/tendermint/crypto/keys.ts +103 -0
  170. package/src/tendermint/crypto/proof.ts +555 -0
  171. package/src/tendermint/types/block.ts +131 -0
  172. package/src/tendermint/types/evidence.ts +476 -0
  173. package/src/tendermint/types/params.ts +814 -0
  174. package/src/tendermint/types/types.ts +2157 -0
  175. package/src/tendermint/types/validator.ts +389 -0
  176. package/src/tendermint/version/types.ts +219 -0
  177. package/src/types.ts +155 -0
  178. package/src/utf8.ts +148 -0
  179. package/src/varint.ts +488 -0
  180. package/tsconfig.esm.json +9 -0
  181. package/tsconfig.json +9 -0
@@ -0,0 +1,4383 @@
1
+ import { MarketStatus, DenomDecimals, DenomDecimalsAmino, TradingRewardCampaignInfo, TradingRewardCampaignInfoAmino, CampaignRewardPool, CampaignRewardPoolAmino, FeeDiscountSchedule, FeeDiscountScheduleAmino, MarketFeeMultiplier, MarketFeeMultiplierAmino } from "./exchange";
2
+ import { OracleType } from "../../oracle/v1beta1/oracle";
3
+ import { CommunityPoolSpendProposal, CommunityPoolSpendProposalAmino } from "../../../cosmos/distribution/v1beta1/distribution";
4
+ import { isSet, DeepPartial } from "../../../helpers";
5
+ import { BinaryReader, BinaryWriter } from "../../../binary";
6
+ import { GlobalDecoderRegistry } from "../../../registry";
7
+ export enum ExchangeType {
8
+ EXCHANGE_UNSPECIFIED = 0,
9
+ SPOT = 1,
10
+ DERIVATIVES = 2,
11
+ UNRECOGNIZED = -1,
12
+ }
13
+ export const ExchangeTypeAmino = ExchangeType;
14
+ export function exchangeTypeFromJSON(object: any): ExchangeType {
15
+ switch (object) {
16
+ case 0:
17
+ case "EXCHANGE_UNSPECIFIED":
18
+ return ExchangeType.EXCHANGE_UNSPECIFIED;
19
+ case 1:
20
+ case "SPOT":
21
+ return ExchangeType.SPOT;
22
+ case 2:
23
+ case "DERIVATIVES":
24
+ return ExchangeType.DERIVATIVES;
25
+ case -1:
26
+ case "UNRECOGNIZED":
27
+ default:
28
+ return ExchangeType.UNRECOGNIZED;
29
+ }
30
+ }
31
+ export function exchangeTypeToJSON(object: ExchangeType): string {
32
+ switch (object) {
33
+ case ExchangeType.EXCHANGE_UNSPECIFIED:
34
+ return "EXCHANGE_UNSPECIFIED";
35
+ case ExchangeType.SPOT:
36
+ return "SPOT";
37
+ case ExchangeType.DERIVATIVES:
38
+ return "DERIVATIVES";
39
+ case ExchangeType.UNRECOGNIZED:
40
+ default:
41
+ return "UNRECOGNIZED";
42
+ }
43
+ }
44
+ export interface SpotMarketParamUpdateProposal {
45
+ title: string;
46
+ description: string;
47
+ marketId: string;
48
+ /** maker_fee_rate defines the trade fee rate for makers on the spot market */
49
+ makerFeeRate?: string;
50
+ /** taker_fee_rate defines the trade fee rate for takers on the spot market */
51
+ takerFeeRate?: string;
52
+ /**
53
+ * relayer_fee_share_rate defines the relayer fee share rate for the spot
54
+ * market
55
+ */
56
+ relayerFeeShareRate?: string;
57
+ /**
58
+ * min_price_tick_size defines the minimum tick size of the order's price and
59
+ * margin
60
+ */
61
+ minPriceTickSize?: string;
62
+ /**
63
+ * min_quantity_tick_size defines the minimum tick size of the order's
64
+ * quantity
65
+ */
66
+ minQuantityTickSize?: string;
67
+ status: MarketStatus;
68
+ ticker?: string;
69
+ /**
70
+ * min_notional defines the minimum notional (in quote asset) required for
71
+ * orders in the market
72
+ */
73
+ minNotional?: string;
74
+ adminInfo?: AdminInfo;
75
+ }
76
+ export interface SpotMarketParamUpdateProposalProtoMsg {
77
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketParamUpdateProposal";
78
+ value: Uint8Array;
79
+ }
80
+ export interface SpotMarketParamUpdateProposalAmino {
81
+ title: string;
82
+ description: string;
83
+ market_id: string;
84
+ /** maker_fee_rate defines the trade fee rate for makers on the spot market */
85
+ maker_fee_rate?: string;
86
+ /** taker_fee_rate defines the trade fee rate for takers on the spot market */
87
+ taker_fee_rate?: string;
88
+ /**
89
+ * relayer_fee_share_rate defines the relayer fee share rate for the spot
90
+ * market
91
+ */
92
+ relayer_fee_share_rate?: string;
93
+ /**
94
+ * min_price_tick_size defines the minimum tick size of the order's price and
95
+ * margin
96
+ */
97
+ min_price_tick_size?: string;
98
+ /**
99
+ * min_quantity_tick_size defines the minimum tick size of the order's
100
+ * quantity
101
+ */
102
+ min_quantity_tick_size?: string;
103
+ status: MarketStatus;
104
+ ticker?: string;
105
+ /**
106
+ * min_notional defines the minimum notional (in quote asset) required for
107
+ * orders in the market
108
+ */
109
+ min_notional?: string;
110
+ admin_info?: AdminInfoAmino;
111
+ }
112
+ export interface SpotMarketParamUpdateProposalAminoMsg {
113
+ type: "exchange/SpotMarketParamUpdateProposal";
114
+ value: SpotMarketParamUpdateProposalAmino;
115
+ }
116
+ export interface ExchangeEnableProposal {
117
+ title: string;
118
+ description: string;
119
+ exchangeType: ExchangeType;
120
+ }
121
+ export interface ExchangeEnableProposalProtoMsg {
122
+ typeUrl: "/injective.exchange.v1beta1.ExchangeEnableProposal";
123
+ value: Uint8Array;
124
+ }
125
+ export interface ExchangeEnableProposalAmino {
126
+ title: string;
127
+ description: string;
128
+ exchangeType: ExchangeType;
129
+ }
130
+ export interface ExchangeEnableProposalAminoMsg {
131
+ type: "exchange/ExchangeEnableProposal";
132
+ value: ExchangeEnableProposalAmino;
133
+ }
134
+ export interface BatchExchangeModificationProposal {
135
+ title: string;
136
+ description: string;
137
+ spotMarketParamUpdateProposals: SpotMarketParamUpdateProposal[];
138
+ derivativeMarketParamUpdateProposals: DerivativeMarketParamUpdateProposal[];
139
+ spotMarketLaunchProposals: SpotMarketLaunchProposal[];
140
+ perpetualMarketLaunchProposals: PerpetualMarketLaunchProposal[];
141
+ expiryFuturesMarketLaunchProposals: ExpiryFuturesMarketLaunchProposal[];
142
+ tradingRewardCampaignUpdateProposal?: TradingRewardCampaignUpdateProposal;
143
+ binaryOptionsMarketLaunchProposals: BinaryOptionsMarketLaunchProposal[];
144
+ binaryOptionsParamUpdateProposals: BinaryOptionsMarketParamUpdateProposal[];
145
+ denomDecimalsUpdateProposal?: UpdateDenomDecimalsProposal;
146
+ feeDiscountProposal?: FeeDiscountProposal;
147
+ marketForcedSettlementProposals: MarketForcedSettlementProposal[];
148
+ }
149
+ export interface BatchExchangeModificationProposalProtoMsg {
150
+ typeUrl: "/injective.exchange.v1beta1.BatchExchangeModificationProposal";
151
+ value: Uint8Array;
152
+ }
153
+ export interface BatchExchangeModificationProposalAmino {
154
+ title: string;
155
+ description: string;
156
+ spot_market_param_update_proposals: SpotMarketParamUpdateProposalAmino[];
157
+ derivative_market_param_update_proposals: DerivativeMarketParamUpdateProposalAmino[];
158
+ spot_market_launch_proposals: SpotMarketLaunchProposalAmino[];
159
+ perpetual_market_launch_proposals: PerpetualMarketLaunchProposalAmino[];
160
+ expiry_futures_market_launch_proposals: ExpiryFuturesMarketLaunchProposalAmino[];
161
+ trading_reward_campaign_update_proposal?: TradingRewardCampaignUpdateProposalAmino;
162
+ binary_options_market_launch_proposals: BinaryOptionsMarketLaunchProposalAmino[];
163
+ binary_options_param_update_proposals: BinaryOptionsMarketParamUpdateProposalAmino[];
164
+ denom_decimals_update_proposal?: UpdateDenomDecimalsProposalAmino;
165
+ fee_discount_proposal?: FeeDiscountProposalAmino;
166
+ market_forced_settlement_proposals: MarketForcedSettlementProposalAmino[];
167
+ }
168
+ export interface BatchExchangeModificationProposalAminoMsg {
169
+ type: "exchange/BatchExchangeModificationProposal";
170
+ value: BatchExchangeModificationProposalAmino;
171
+ }
172
+ /**
173
+ * SpotMarketLaunchProposal defines a SDK message for proposing a new spot
174
+ * market through governance
175
+ */
176
+ export interface SpotMarketLaunchProposal {
177
+ title: string;
178
+ description: string;
179
+ /** Ticker for the spot market. */
180
+ ticker: string;
181
+ /** type of coin to use as the base currency */
182
+ baseDenom: string;
183
+ /** type of coin to use as the quote currency */
184
+ quoteDenom: string;
185
+ /** min_price_tick_size defines the minimum tick size of the order's price */
186
+ minPriceTickSize: string;
187
+ /**
188
+ * min_quantity_tick_size defines the minimum tick size of the order's
189
+ * quantity
190
+ */
191
+ minQuantityTickSize: string;
192
+ /** maker_fee_rate defines the fee percentage makers pay when trading */
193
+ makerFeeRate?: string;
194
+ /** taker_fee_rate defines the fee percentage takers pay when trading */
195
+ takerFeeRate?: string;
196
+ /** min_notional defines the minimum notional for orders in the market */
197
+ minNotional: string;
198
+ adminInfo?: AdminInfo;
199
+ }
200
+ export interface SpotMarketLaunchProposalProtoMsg {
201
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketLaunchProposal";
202
+ value: Uint8Array;
203
+ }
204
+ /**
205
+ * SpotMarketLaunchProposal defines a SDK message for proposing a new spot
206
+ * market through governance
207
+ */
208
+ export interface SpotMarketLaunchProposalAmino {
209
+ title: string;
210
+ description: string;
211
+ /** Ticker for the spot market. */
212
+ ticker: string;
213
+ /** type of coin to use as the base currency */
214
+ base_denom: string;
215
+ /** type of coin to use as the quote currency */
216
+ quote_denom: string;
217
+ /** min_price_tick_size defines the minimum tick size of the order's price */
218
+ min_price_tick_size: string;
219
+ /**
220
+ * min_quantity_tick_size defines the minimum tick size of the order's
221
+ * quantity
222
+ */
223
+ min_quantity_tick_size: string;
224
+ /** maker_fee_rate defines the fee percentage makers pay when trading */
225
+ maker_fee_rate?: string;
226
+ /** taker_fee_rate defines the fee percentage takers pay when trading */
227
+ taker_fee_rate?: string;
228
+ /** min_notional defines the minimum notional for orders in the market */
229
+ min_notional: string;
230
+ admin_info?: AdminInfoAmino;
231
+ }
232
+ export interface SpotMarketLaunchProposalAminoMsg {
233
+ type: "exchange/SpotMarketLaunchProposal";
234
+ value: SpotMarketLaunchProposalAmino;
235
+ }
236
+ /**
237
+ * PerpetualMarketLaunchProposal defines a SDK message for proposing a new
238
+ * perpetual futures market through governance
239
+ */
240
+ export interface PerpetualMarketLaunchProposal {
241
+ title: string;
242
+ description: string;
243
+ /** Ticker for the derivative market. */
244
+ ticker: string;
245
+ /** type of coin to use as the base currency */
246
+ quoteDenom: string;
247
+ /** Oracle base currency */
248
+ oracleBase: string;
249
+ /** Oracle quote currency */
250
+ oracleQuote: string;
251
+ /** Scale factor for oracle prices. */
252
+ oracleScaleFactor: number;
253
+ /** Oracle type */
254
+ oracleType: OracleType;
255
+ /**
256
+ * initial_margin_ratio defines the initial margin ratio for the derivative
257
+ * market
258
+ */
259
+ initialMarginRatio: string;
260
+ /**
261
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
262
+ * derivative market
263
+ */
264
+ maintenanceMarginRatio: string;
265
+ /**
266
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
267
+ * market
268
+ */
269
+ makerFeeRate: string;
270
+ /**
271
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
272
+ * market
273
+ */
274
+ takerFeeRate: string;
275
+ /**
276
+ * min_price_tick_size defines the minimum tick size of the order's price and
277
+ * margin
278
+ */
279
+ minPriceTickSize: string;
280
+ /**
281
+ * min_quantity_tick_size defines the minimum tick size of the order's
282
+ * quantity
283
+ */
284
+ minQuantityTickSize: string;
285
+ /**
286
+ * min_notional defines the minimum notional (in quote asset) required for
287
+ * orders in the market
288
+ */
289
+ minNotional: string;
290
+ adminInfo?: AdminInfo;
291
+ }
292
+ export interface PerpetualMarketLaunchProposalProtoMsg {
293
+ typeUrl: "/injective.exchange.v1beta1.PerpetualMarketLaunchProposal";
294
+ value: Uint8Array;
295
+ }
296
+ /**
297
+ * PerpetualMarketLaunchProposal defines a SDK message for proposing a new
298
+ * perpetual futures market through governance
299
+ */
300
+ export interface PerpetualMarketLaunchProposalAmino {
301
+ title: string;
302
+ description: string;
303
+ /** Ticker for the derivative market. */
304
+ ticker: string;
305
+ /** type of coin to use as the base currency */
306
+ quote_denom: string;
307
+ /** Oracle base currency */
308
+ oracle_base: string;
309
+ /** Oracle quote currency */
310
+ oracle_quote: string;
311
+ /** Scale factor for oracle prices. */
312
+ oracle_scale_factor: number;
313
+ /** Oracle type */
314
+ oracle_type: OracleType;
315
+ /**
316
+ * initial_margin_ratio defines the initial margin ratio for the derivative
317
+ * market
318
+ */
319
+ initial_margin_ratio: string;
320
+ /**
321
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
322
+ * derivative market
323
+ */
324
+ maintenance_margin_ratio: string;
325
+ /**
326
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
327
+ * market
328
+ */
329
+ maker_fee_rate: string;
330
+ /**
331
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
332
+ * market
333
+ */
334
+ taker_fee_rate: string;
335
+ /**
336
+ * min_price_tick_size defines the minimum tick size of the order's price and
337
+ * margin
338
+ */
339
+ min_price_tick_size: string;
340
+ /**
341
+ * min_quantity_tick_size defines the minimum tick size of the order's
342
+ * quantity
343
+ */
344
+ min_quantity_tick_size: string;
345
+ /**
346
+ * min_notional defines the minimum notional (in quote asset) required for
347
+ * orders in the market
348
+ */
349
+ min_notional: string;
350
+ admin_info?: AdminInfoAmino;
351
+ }
352
+ export interface PerpetualMarketLaunchProposalAminoMsg {
353
+ type: "exchange/PerpetualMarketLaunchProposal";
354
+ value: PerpetualMarketLaunchProposalAmino;
355
+ }
356
+ export interface BinaryOptionsMarketLaunchProposal {
357
+ title: string;
358
+ description: string;
359
+ /** Ticker for the derivative contract. */
360
+ ticker: string;
361
+ /** Oracle symbol */
362
+ oracleSymbol: string;
363
+ /** Oracle Provider */
364
+ oracleProvider: string;
365
+ /** Oracle type */
366
+ oracleType: OracleType;
367
+ /** Scale factor for oracle prices. */
368
+ oracleScaleFactor: number;
369
+ /** expiration timestamp */
370
+ expirationTimestamp: bigint;
371
+ /** expiration timestamp */
372
+ settlementTimestamp: bigint;
373
+ /** admin of the market */
374
+ admin: string;
375
+ /** Address of the quote currency denomination for the binary options contract */
376
+ quoteDenom: string;
377
+ /** maker_fee_rate defines the maker fee rate of a binary options market */
378
+ makerFeeRate: string;
379
+ /** taker_fee_rate defines the taker fee rate of a derivative market */
380
+ takerFeeRate: string;
381
+ /**
382
+ * min_price_tick_size defines the minimum tick size that the price and margin
383
+ * required for orders in the market
384
+ */
385
+ minPriceTickSize: string;
386
+ /**
387
+ * min_quantity_tick_size defines the minimum tick size of the quantity
388
+ * required for orders in the market
389
+ */
390
+ minQuantityTickSize: string;
391
+ /**
392
+ * min_notional defines the minimum notional (in quote asset) required for
393
+ * orders in the market
394
+ */
395
+ minNotional: string;
396
+ adminPermissions: number;
397
+ }
398
+ export interface BinaryOptionsMarketLaunchProposalProtoMsg {
399
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal";
400
+ value: Uint8Array;
401
+ }
402
+ export interface BinaryOptionsMarketLaunchProposalAmino {
403
+ title: string;
404
+ description: string;
405
+ /** Ticker for the derivative contract. */
406
+ ticker: string;
407
+ /** Oracle symbol */
408
+ oracle_symbol: string;
409
+ /** Oracle Provider */
410
+ oracle_provider: string;
411
+ /** Oracle type */
412
+ oracle_type: OracleType;
413
+ /** Scale factor for oracle prices. */
414
+ oracle_scale_factor: number;
415
+ /** expiration timestamp */
416
+ expiration_timestamp: string;
417
+ /** expiration timestamp */
418
+ settlement_timestamp: string;
419
+ /** admin of the market */
420
+ admin: string;
421
+ /** Address of the quote currency denomination for the binary options contract */
422
+ quote_denom: string;
423
+ /** maker_fee_rate defines the maker fee rate of a binary options market */
424
+ maker_fee_rate: string;
425
+ /** taker_fee_rate defines the taker fee rate of a derivative market */
426
+ taker_fee_rate: string;
427
+ /**
428
+ * min_price_tick_size defines the minimum tick size that the price and margin
429
+ * required for orders in the market
430
+ */
431
+ min_price_tick_size: string;
432
+ /**
433
+ * min_quantity_tick_size defines the minimum tick size of the quantity
434
+ * required for orders in the market
435
+ */
436
+ min_quantity_tick_size: string;
437
+ /**
438
+ * min_notional defines the minimum notional (in quote asset) required for
439
+ * orders in the market
440
+ */
441
+ min_notional: string;
442
+ admin_permissions: number;
443
+ }
444
+ export interface BinaryOptionsMarketLaunchProposalAminoMsg {
445
+ type: "exchange/BinaryOptionsMarketLaunchProposal";
446
+ value: BinaryOptionsMarketLaunchProposalAmino;
447
+ }
448
+ /**
449
+ * ExpiryFuturesMarketLaunchProposal defines a SDK message for proposing a new
450
+ * expiry futures market through governance
451
+ */
452
+ export interface ExpiryFuturesMarketLaunchProposal {
453
+ title: string;
454
+ description: string;
455
+ /** Ticker for the derivative market. */
456
+ ticker: string;
457
+ /** type of coin to use as the quote currency */
458
+ quoteDenom: string;
459
+ /** Oracle base currency */
460
+ oracleBase: string;
461
+ /** Oracle quote currency */
462
+ oracleQuote: string;
463
+ /** Scale factor for oracle prices. */
464
+ oracleScaleFactor: number;
465
+ /** Oracle type */
466
+ oracleType: OracleType;
467
+ /** Expiration time of the market */
468
+ expiry: bigint;
469
+ /**
470
+ * initial_margin_ratio defines the initial margin ratio for the derivative
471
+ * market
472
+ */
473
+ initialMarginRatio: string;
474
+ /**
475
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
476
+ * derivative market
477
+ */
478
+ maintenanceMarginRatio: string;
479
+ /**
480
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
481
+ * market
482
+ */
483
+ makerFeeRate: string;
484
+ /**
485
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
486
+ * market
487
+ */
488
+ takerFeeRate: string;
489
+ /**
490
+ * min_price_tick_size defines the minimum tick size of the order's price and
491
+ * margin
492
+ */
493
+ minPriceTickSize: string;
494
+ /**
495
+ * min_quantity_tick_size defines the minimum tick size of the order's
496
+ * quantity
497
+ */
498
+ minQuantityTickSize: string;
499
+ /**
500
+ * min_notional defines the minimum notional (in quote asset) required for
501
+ * orders in the market
502
+ */
503
+ minNotional: string;
504
+ adminInfo?: AdminInfo;
505
+ }
506
+ export interface ExpiryFuturesMarketLaunchProposalProtoMsg {
507
+ typeUrl: "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal";
508
+ value: Uint8Array;
509
+ }
510
+ /**
511
+ * ExpiryFuturesMarketLaunchProposal defines a SDK message for proposing a new
512
+ * expiry futures market through governance
513
+ */
514
+ export interface ExpiryFuturesMarketLaunchProposalAmino {
515
+ title: string;
516
+ description: string;
517
+ /** Ticker for the derivative market. */
518
+ ticker: string;
519
+ /** type of coin to use as the quote currency */
520
+ quote_denom: string;
521
+ /** Oracle base currency */
522
+ oracle_base: string;
523
+ /** Oracle quote currency */
524
+ oracle_quote: string;
525
+ /** Scale factor for oracle prices. */
526
+ oracle_scale_factor: number;
527
+ /** Oracle type */
528
+ oracle_type: OracleType;
529
+ /** Expiration time of the market */
530
+ expiry: string;
531
+ /**
532
+ * initial_margin_ratio defines the initial margin ratio for the derivative
533
+ * market
534
+ */
535
+ initial_margin_ratio: string;
536
+ /**
537
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
538
+ * derivative market
539
+ */
540
+ maintenance_margin_ratio: string;
541
+ /**
542
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
543
+ * market
544
+ */
545
+ maker_fee_rate: string;
546
+ /**
547
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
548
+ * market
549
+ */
550
+ taker_fee_rate: string;
551
+ /**
552
+ * min_price_tick_size defines the minimum tick size of the order's price and
553
+ * margin
554
+ */
555
+ min_price_tick_size: string;
556
+ /**
557
+ * min_quantity_tick_size defines the minimum tick size of the order's
558
+ * quantity
559
+ */
560
+ min_quantity_tick_size: string;
561
+ /**
562
+ * min_notional defines the minimum notional (in quote asset) required for
563
+ * orders in the market
564
+ */
565
+ min_notional: string;
566
+ admin_info?: AdminInfoAmino;
567
+ }
568
+ export interface ExpiryFuturesMarketLaunchProposalAminoMsg {
569
+ type: "exchange/ExpiryFuturesMarketLaunchProposal";
570
+ value: ExpiryFuturesMarketLaunchProposalAmino;
571
+ }
572
+ export interface DerivativeMarketParamUpdateProposal {
573
+ title: string;
574
+ description: string;
575
+ marketId: string;
576
+ /**
577
+ * initial_margin_ratio defines the initial margin ratio for the derivative
578
+ * market
579
+ */
580
+ initialMarginRatio?: string;
581
+ /**
582
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
583
+ * derivative market
584
+ */
585
+ maintenanceMarginRatio?: string;
586
+ /**
587
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
588
+ * market
589
+ */
590
+ makerFeeRate?: string;
591
+ /**
592
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
593
+ * market
594
+ */
595
+ takerFeeRate?: string;
596
+ /**
597
+ * relayer_fee_share_rate defines the relayer fee share rate for the
598
+ * derivative market
599
+ */
600
+ relayerFeeShareRate?: string;
601
+ /**
602
+ * min_price_tick_size defines the minimum tick size of the order's price and
603
+ * margin
604
+ */
605
+ minPriceTickSize?: string;
606
+ /**
607
+ * min_quantity_tick_size defines the minimum tick size of the order's
608
+ * quantity
609
+ */
610
+ minQuantityTickSize?: string;
611
+ /** hourly_interest_rate defines the hourly interest rate */
612
+ hourlyInterestRate?: string;
613
+ /**
614
+ * hourly_funding_rate_cap defines the maximum absolute value of the hourly
615
+ * funding rate
616
+ */
617
+ hourlyFundingRateCap?: string;
618
+ status: MarketStatus;
619
+ oracleParams?: OracleParams;
620
+ ticker?: string;
621
+ /**
622
+ * min_notional defines the minimum notional (in quote asset) required for
623
+ * orders in the market
624
+ */
625
+ minNotional?: string;
626
+ adminInfo?: AdminInfo;
627
+ }
628
+ export interface DerivativeMarketParamUpdateProposalProtoMsg {
629
+ typeUrl: "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal";
630
+ value: Uint8Array;
631
+ }
632
+ export interface DerivativeMarketParamUpdateProposalAmino {
633
+ title: string;
634
+ description: string;
635
+ market_id: string;
636
+ /**
637
+ * initial_margin_ratio defines the initial margin ratio for the derivative
638
+ * market
639
+ */
640
+ initial_margin_ratio?: string;
641
+ /**
642
+ * maintenance_margin_ratio defines the maintenance margin ratio for the
643
+ * derivative market
644
+ */
645
+ maintenance_margin_ratio?: string;
646
+ /**
647
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
648
+ * market
649
+ */
650
+ maker_fee_rate?: string;
651
+ /**
652
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
653
+ * market
654
+ */
655
+ taker_fee_rate?: string;
656
+ /**
657
+ * relayer_fee_share_rate defines the relayer fee share rate for the
658
+ * derivative market
659
+ */
660
+ relayer_fee_share_rate?: string;
661
+ /**
662
+ * min_price_tick_size defines the minimum tick size of the order's price and
663
+ * margin
664
+ */
665
+ min_price_tick_size?: string;
666
+ /**
667
+ * min_quantity_tick_size defines the minimum tick size of the order's
668
+ * quantity
669
+ */
670
+ min_quantity_tick_size?: string;
671
+ /** hourly_interest_rate defines the hourly interest rate */
672
+ HourlyInterestRate?: string;
673
+ /**
674
+ * hourly_funding_rate_cap defines the maximum absolute value of the hourly
675
+ * funding rate
676
+ */
677
+ HourlyFundingRateCap?: string;
678
+ status: MarketStatus;
679
+ oracle_params?: OracleParamsAmino;
680
+ ticker?: string;
681
+ /**
682
+ * min_notional defines the minimum notional (in quote asset) required for
683
+ * orders in the market
684
+ */
685
+ min_notional?: string;
686
+ admin_info?: AdminInfoAmino;
687
+ }
688
+ export interface DerivativeMarketParamUpdateProposalAminoMsg {
689
+ type: "exchange/DerivativeMarketParamUpdateProposal";
690
+ value: DerivativeMarketParamUpdateProposalAmino;
691
+ }
692
+ export interface AdminInfo {
693
+ admin: string;
694
+ adminPermissions: number;
695
+ }
696
+ export interface AdminInfoProtoMsg {
697
+ typeUrl: "/injective.exchange.v1beta1.AdminInfo";
698
+ value: Uint8Array;
699
+ }
700
+ export interface AdminInfoAmino {
701
+ admin: string;
702
+ admin_permissions: number;
703
+ }
704
+ export interface AdminInfoAminoMsg {
705
+ type: "/injective.exchange.v1beta1.AdminInfo";
706
+ value: AdminInfoAmino;
707
+ }
708
+ export interface MarketForcedSettlementProposal {
709
+ title: string;
710
+ description: string;
711
+ marketId: string;
712
+ settlementPrice?: string;
713
+ }
714
+ export interface MarketForcedSettlementProposalProtoMsg {
715
+ typeUrl: "/injective.exchange.v1beta1.MarketForcedSettlementProposal";
716
+ value: Uint8Array;
717
+ }
718
+ export interface MarketForcedSettlementProposalAmino {
719
+ title: string;
720
+ description: string;
721
+ market_id: string;
722
+ settlement_price?: string;
723
+ }
724
+ export interface MarketForcedSettlementProposalAminoMsg {
725
+ type: "exchange/MarketForcedSettlementProposal";
726
+ value: MarketForcedSettlementProposalAmino;
727
+ }
728
+ export interface UpdateDenomDecimalsProposal {
729
+ title: string;
730
+ description: string;
731
+ denomDecimals: DenomDecimals[];
732
+ }
733
+ export interface UpdateDenomDecimalsProposalProtoMsg {
734
+ typeUrl: "/injective.exchange.v1beta1.UpdateDenomDecimalsProposal";
735
+ value: Uint8Array;
736
+ }
737
+ export interface UpdateDenomDecimalsProposalAmino {
738
+ title: string;
739
+ description: string;
740
+ denom_decimals: DenomDecimalsAmino[];
741
+ }
742
+ export interface UpdateDenomDecimalsProposalAminoMsg {
743
+ type: "exchange/UpdateDenomDecimalsProposal";
744
+ value: UpdateDenomDecimalsProposalAmino;
745
+ }
746
+ export interface BinaryOptionsMarketParamUpdateProposal {
747
+ title: string;
748
+ description: string;
749
+ marketId: string;
750
+ /**
751
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
752
+ * market
753
+ */
754
+ makerFeeRate?: string;
755
+ /**
756
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
757
+ * market
758
+ */
759
+ takerFeeRate?: string;
760
+ /**
761
+ * relayer_fee_share_rate defines the relayer fee share rate for the
762
+ * derivative market
763
+ */
764
+ relayerFeeShareRate?: string;
765
+ /**
766
+ * min_price_tick_size defines the minimum tick size of the order's price and
767
+ * margin
768
+ */
769
+ minPriceTickSize?: string;
770
+ /**
771
+ * min_quantity_tick_size defines the minimum tick size of the order's
772
+ * quantity
773
+ */
774
+ minQuantityTickSize?: string;
775
+ /** expiration timestamp */
776
+ expirationTimestamp: bigint;
777
+ /** expiration timestamp */
778
+ settlementTimestamp: bigint;
779
+ /** new price at which market will be settled */
780
+ settlementPrice?: string;
781
+ /** admin of the market */
782
+ admin: string;
783
+ status: MarketStatus;
784
+ oracleParams?: ProviderOracleParams;
785
+ ticker?: string;
786
+ /**
787
+ * min_notional defines the minimum notional (in quote asset) required for
788
+ * orders in the market
789
+ */
790
+ minNotional?: string;
791
+ }
792
+ export interface BinaryOptionsMarketParamUpdateProposalProtoMsg {
793
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal";
794
+ value: Uint8Array;
795
+ }
796
+ export interface BinaryOptionsMarketParamUpdateProposalAmino {
797
+ title: string;
798
+ description: string;
799
+ market_id: string;
800
+ /**
801
+ * maker_fee_rate defines the exchange trade fee for makers for the derivative
802
+ * market
803
+ */
804
+ maker_fee_rate?: string;
805
+ /**
806
+ * taker_fee_rate defines the exchange trade fee for takers for the derivative
807
+ * market
808
+ */
809
+ taker_fee_rate?: string;
810
+ /**
811
+ * relayer_fee_share_rate defines the relayer fee share rate for the
812
+ * derivative market
813
+ */
814
+ relayer_fee_share_rate?: string;
815
+ /**
816
+ * min_price_tick_size defines the minimum tick size of the order's price and
817
+ * margin
818
+ */
819
+ min_price_tick_size?: string;
820
+ /**
821
+ * min_quantity_tick_size defines the minimum tick size of the order's
822
+ * quantity
823
+ */
824
+ min_quantity_tick_size?: string;
825
+ /** expiration timestamp */
826
+ expiration_timestamp: string;
827
+ /** expiration timestamp */
828
+ settlement_timestamp: string;
829
+ /** new price at which market will be settled */
830
+ settlement_price?: string;
831
+ /** admin of the market */
832
+ admin: string;
833
+ status: MarketStatus;
834
+ oracle_params?: ProviderOracleParamsAmino;
835
+ ticker?: string;
836
+ /**
837
+ * min_notional defines the minimum notional (in quote asset) required for
838
+ * orders in the market
839
+ */
840
+ min_notional?: string;
841
+ }
842
+ export interface BinaryOptionsMarketParamUpdateProposalAminoMsg {
843
+ type: "exchange/BinaryOptionsMarketParamUpdateProposal";
844
+ value: BinaryOptionsMarketParamUpdateProposalAmino;
845
+ }
846
+ export interface ProviderOracleParams {
847
+ /** Oracle base currency */
848
+ symbol: string;
849
+ /** Oracle quote currency */
850
+ provider: string;
851
+ /** Scale factor for oracle prices. */
852
+ oracleScaleFactor: number;
853
+ /** Oracle type */
854
+ oracleType: OracleType;
855
+ }
856
+ export interface ProviderOracleParamsProtoMsg {
857
+ typeUrl: "/injective.exchange.v1beta1.ProviderOracleParams";
858
+ value: Uint8Array;
859
+ }
860
+ export interface ProviderOracleParamsAmino {
861
+ /** Oracle base currency */
862
+ symbol: string;
863
+ /** Oracle quote currency */
864
+ provider: string;
865
+ /** Scale factor for oracle prices. */
866
+ oracle_scale_factor: number;
867
+ /** Oracle type */
868
+ oracle_type: OracleType;
869
+ }
870
+ export interface ProviderOracleParamsAminoMsg {
871
+ type: "/injective.exchange.v1beta1.ProviderOracleParams";
872
+ value: ProviderOracleParamsAmino;
873
+ }
874
+ export interface OracleParams {
875
+ /** Oracle base currency */
876
+ oracleBase: string;
877
+ /** Oracle quote currency */
878
+ oracleQuote: string;
879
+ /** Scale factor for oracle prices. */
880
+ oracleScaleFactor: number;
881
+ /** Oracle type */
882
+ oracleType: OracleType;
883
+ }
884
+ export interface OracleParamsProtoMsg {
885
+ typeUrl: "/injective.exchange.v1beta1.OracleParams";
886
+ value: Uint8Array;
887
+ }
888
+ export interface OracleParamsAmino {
889
+ /** Oracle base currency */
890
+ oracle_base: string;
891
+ /** Oracle quote currency */
892
+ oracle_quote: string;
893
+ /** Scale factor for oracle prices. */
894
+ oracle_scale_factor: number;
895
+ /** Oracle type */
896
+ oracle_type: OracleType;
897
+ }
898
+ export interface OracleParamsAminoMsg {
899
+ type: "/injective.exchange.v1beta1.OracleParams";
900
+ value: OracleParamsAmino;
901
+ }
902
+ export interface TradingRewardCampaignLaunchProposal {
903
+ title: string;
904
+ description: string;
905
+ campaignInfo?: TradingRewardCampaignInfo;
906
+ campaignRewardPools: CampaignRewardPool[];
907
+ }
908
+ export interface TradingRewardCampaignLaunchProposalProtoMsg {
909
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal";
910
+ value: Uint8Array;
911
+ }
912
+ export interface TradingRewardCampaignLaunchProposalAmino {
913
+ title: string;
914
+ description: string;
915
+ campaign_info?: TradingRewardCampaignInfoAmino;
916
+ campaign_reward_pools: CampaignRewardPoolAmino[];
917
+ }
918
+ export interface TradingRewardCampaignLaunchProposalAminoMsg {
919
+ type: "exchange/TradingRewardCampaignLaunchProposal";
920
+ value: TradingRewardCampaignLaunchProposalAmino;
921
+ }
922
+ export interface TradingRewardCampaignUpdateProposal {
923
+ title: string;
924
+ description: string;
925
+ campaignInfo?: TradingRewardCampaignInfo;
926
+ campaignRewardPoolsAdditions: CampaignRewardPool[];
927
+ campaignRewardPoolsUpdates: CampaignRewardPool[];
928
+ }
929
+ export interface TradingRewardCampaignUpdateProposalProtoMsg {
930
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal";
931
+ value: Uint8Array;
932
+ }
933
+ export interface TradingRewardCampaignUpdateProposalAmino {
934
+ title: string;
935
+ description: string;
936
+ campaign_info?: TradingRewardCampaignInfoAmino;
937
+ campaign_reward_pools_additions: CampaignRewardPoolAmino[];
938
+ campaign_reward_pools_updates: CampaignRewardPoolAmino[];
939
+ }
940
+ export interface TradingRewardCampaignUpdateProposalAminoMsg {
941
+ type: "exchange/TradingRewardCampaignUpdateProposal";
942
+ value: TradingRewardCampaignUpdateProposalAmino;
943
+ }
944
+ export interface RewardPointUpdate {
945
+ accountAddress: string;
946
+ /** new_points overwrites the current trading reward points for the account */
947
+ newPoints: string;
948
+ }
949
+ export interface RewardPointUpdateProtoMsg {
950
+ typeUrl: "/injective.exchange.v1beta1.RewardPointUpdate";
951
+ value: Uint8Array;
952
+ }
953
+ export interface RewardPointUpdateAmino {
954
+ account_address: string;
955
+ /** new_points overwrites the current trading reward points for the account */
956
+ new_points: string;
957
+ }
958
+ export interface RewardPointUpdateAminoMsg {
959
+ type: "/injective.exchange.v1beta1.RewardPointUpdate";
960
+ value: RewardPointUpdateAmino;
961
+ }
962
+ export interface TradingRewardPendingPointsUpdateProposal {
963
+ title: string;
964
+ description: string;
965
+ pendingPoolTimestamp: bigint;
966
+ rewardPointUpdates: RewardPointUpdate[];
967
+ }
968
+ export interface TradingRewardPendingPointsUpdateProposalProtoMsg {
969
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal";
970
+ value: Uint8Array;
971
+ }
972
+ export interface TradingRewardPendingPointsUpdateProposalAmino {
973
+ title: string;
974
+ description: string;
975
+ pending_pool_timestamp: string;
976
+ reward_point_updates: RewardPointUpdateAmino[];
977
+ }
978
+ export interface TradingRewardPendingPointsUpdateProposalAminoMsg {
979
+ type: "exchange/TradingRewardPendingPointsUpdateProposal";
980
+ value: TradingRewardPendingPointsUpdateProposalAmino;
981
+ }
982
+ export interface FeeDiscountProposal {
983
+ title: string;
984
+ description: string;
985
+ schedule?: FeeDiscountSchedule;
986
+ }
987
+ export interface FeeDiscountProposalProtoMsg {
988
+ typeUrl: "/injective.exchange.v1beta1.FeeDiscountProposal";
989
+ value: Uint8Array;
990
+ }
991
+ export interface FeeDiscountProposalAmino {
992
+ title: string;
993
+ description: string;
994
+ schedule?: FeeDiscountScheduleAmino;
995
+ }
996
+ export interface FeeDiscountProposalAminoMsg {
997
+ type: "exchange/FeeDiscountProposal";
998
+ value: FeeDiscountProposalAmino;
999
+ }
1000
+ export interface BatchCommunityPoolSpendProposal {
1001
+ title: string;
1002
+ description: string;
1003
+ proposals: CommunityPoolSpendProposal[];
1004
+ }
1005
+ export interface BatchCommunityPoolSpendProposalProtoMsg {
1006
+ typeUrl: "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal";
1007
+ value: Uint8Array;
1008
+ }
1009
+ export interface BatchCommunityPoolSpendProposalAmino {
1010
+ title: string;
1011
+ description: string;
1012
+ proposals: CommunityPoolSpendProposalAmino[];
1013
+ }
1014
+ export interface BatchCommunityPoolSpendProposalAminoMsg {
1015
+ type: "exchange/BatchCommunityPoolSpendProposal";
1016
+ value: BatchCommunityPoolSpendProposalAmino;
1017
+ }
1018
+ /**
1019
+ * AtomicMarketOrderFeeMultiplierScheduleProposal defines a SDK message for
1020
+ * proposing new atomic take fee multipliers for specified markets
1021
+ */
1022
+ export interface AtomicMarketOrderFeeMultiplierScheduleProposal {
1023
+ title: string;
1024
+ description: string;
1025
+ marketFeeMultipliers: MarketFeeMultiplier[];
1026
+ }
1027
+ export interface AtomicMarketOrderFeeMultiplierScheduleProposalProtoMsg {
1028
+ typeUrl: "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal";
1029
+ value: Uint8Array;
1030
+ }
1031
+ /**
1032
+ * AtomicMarketOrderFeeMultiplierScheduleProposal defines a SDK message for
1033
+ * proposing new atomic take fee multipliers for specified markets
1034
+ */
1035
+ export interface AtomicMarketOrderFeeMultiplierScheduleProposalAmino {
1036
+ title: string;
1037
+ description: string;
1038
+ market_fee_multipliers: MarketFeeMultiplierAmino[];
1039
+ }
1040
+ export interface AtomicMarketOrderFeeMultiplierScheduleProposalAminoMsg {
1041
+ type: "exchange/AtomicMarketOrderFeeMultiplierScheduleProposal";
1042
+ value: AtomicMarketOrderFeeMultiplierScheduleProposalAmino;
1043
+ }
1044
+ function createBaseSpotMarketParamUpdateProposal(): SpotMarketParamUpdateProposal {
1045
+ return {
1046
+ title: "",
1047
+ description: "",
1048
+ marketId: "",
1049
+ makerFeeRate: undefined,
1050
+ takerFeeRate: undefined,
1051
+ relayerFeeShareRate: undefined,
1052
+ minPriceTickSize: undefined,
1053
+ minQuantityTickSize: undefined,
1054
+ status: 0,
1055
+ ticker: undefined,
1056
+ minNotional: undefined,
1057
+ adminInfo: undefined
1058
+ };
1059
+ }
1060
+ export const SpotMarketParamUpdateProposal = {
1061
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketParamUpdateProposal",
1062
+ aminoType: "exchange/SpotMarketParamUpdateProposal",
1063
+ is(o: any): o is SpotMarketParamUpdateProposal {
1064
+ return o && (o.$typeUrl === SpotMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.marketId === "string" && isSet(o.status));
1065
+ },
1066
+ isAmino(o: any): o is SpotMarketParamUpdateProposalAmino {
1067
+ return o && (o.$typeUrl === SpotMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.market_id === "string" && isSet(o.status));
1068
+ },
1069
+ encode(message: SpotMarketParamUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1070
+ if (message.title !== "") {
1071
+ writer.uint32(10).string(message.title);
1072
+ }
1073
+ if (message.description !== "") {
1074
+ writer.uint32(18).string(message.description);
1075
+ }
1076
+ if (message.marketId !== "") {
1077
+ writer.uint32(26).string(message.marketId);
1078
+ }
1079
+ if (message.makerFeeRate !== undefined) {
1080
+ writer.uint32(34).string(message.makerFeeRate);
1081
+ }
1082
+ if (message.takerFeeRate !== undefined) {
1083
+ writer.uint32(42).string(message.takerFeeRate);
1084
+ }
1085
+ if (message.relayerFeeShareRate !== undefined) {
1086
+ writer.uint32(50).string(message.relayerFeeShareRate);
1087
+ }
1088
+ if (message.minPriceTickSize !== undefined) {
1089
+ writer.uint32(58).string(message.minPriceTickSize);
1090
+ }
1091
+ if (message.minQuantityTickSize !== undefined) {
1092
+ writer.uint32(66).string(message.minQuantityTickSize);
1093
+ }
1094
+ if (message.status !== 0) {
1095
+ writer.uint32(72).int32(message.status);
1096
+ }
1097
+ if (message.ticker !== undefined) {
1098
+ writer.uint32(82).string(message.ticker);
1099
+ }
1100
+ if (message.minNotional !== undefined) {
1101
+ writer.uint32(90).string(message.minNotional);
1102
+ }
1103
+ if (message.adminInfo !== undefined) {
1104
+ AdminInfo.encode(message.adminInfo, writer.uint32(98).fork()).ldelim();
1105
+ }
1106
+ return writer;
1107
+ },
1108
+ decode(input: BinaryReader | Uint8Array, length?: number): SpotMarketParamUpdateProposal {
1109
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1110
+ let end = length === undefined ? reader.len : reader.pos + length;
1111
+ const message = createBaseSpotMarketParamUpdateProposal();
1112
+ while (reader.pos < end) {
1113
+ const tag = reader.uint32();
1114
+ switch (tag >>> 3) {
1115
+ case 1:
1116
+ message.title = reader.string();
1117
+ break;
1118
+ case 2:
1119
+ message.description = reader.string();
1120
+ break;
1121
+ case 3:
1122
+ message.marketId = reader.string();
1123
+ break;
1124
+ case 4:
1125
+ message.makerFeeRate = reader.string();
1126
+ break;
1127
+ case 5:
1128
+ message.takerFeeRate = reader.string();
1129
+ break;
1130
+ case 6:
1131
+ message.relayerFeeShareRate = reader.string();
1132
+ break;
1133
+ case 7:
1134
+ message.minPriceTickSize = reader.string();
1135
+ break;
1136
+ case 8:
1137
+ message.minQuantityTickSize = reader.string();
1138
+ break;
1139
+ case 9:
1140
+ message.status = (reader.int32() as any);
1141
+ break;
1142
+ case 10:
1143
+ message.ticker = reader.string();
1144
+ break;
1145
+ case 11:
1146
+ message.minNotional = reader.string();
1147
+ break;
1148
+ case 12:
1149
+ message.adminInfo = AdminInfo.decode(reader, reader.uint32());
1150
+ break;
1151
+ default:
1152
+ reader.skipType(tag & 7);
1153
+ break;
1154
+ }
1155
+ }
1156
+ return message;
1157
+ },
1158
+ fromPartial(object: DeepPartial<SpotMarketParamUpdateProposal>): SpotMarketParamUpdateProposal {
1159
+ const message = createBaseSpotMarketParamUpdateProposal();
1160
+ message.title = object.title ?? "";
1161
+ message.description = object.description ?? "";
1162
+ message.marketId = object.marketId ?? "";
1163
+ message.makerFeeRate = object.makerFeeRate ?? undefined;
1164
+ message.takerFeeRate = object.takerFeeRate ?? undefined;
1165
+ message.relayerFeeShareRate = object.relayerFeeShareRate ?? undefined;
1166
+ message.minPriceTickSize = object.minPriceTickSize ?? undefined;
1167
+ message.minQuantityTickSize = object.minQuantityTickSize ?? undefined;
1168
+ message.status = object.status ?? 0;
1169
+ message.ticker = object.ticker ?? undefined;
1170
+ message.minNotional = object.minNotional ?? undefined;
1171
+ message.adminInfo = object.adminInfo !== undefined && object.adminInfo !== null ? AdminInfo.fromPartial(object.adminInfo) : undefined;
1172
+ return message;
1173
+ },
1174
+ fromAmino(object: SpotMarketParamUpdateProposalAmino): SpotMarketParamUpdateProposal {
1175
+ const message = createBaseSpotMarketParamUpdateProposal();
1176
+ if (object.title !== undefined && object.title !== null) {
1177
+ message.title = object.title;
1178
+ }
1179
+ if (object.description !== undefined && object.description !== null) {
1180
+ message.description = object.description;
1181
+ }
1182
+ if (object.market_id !== undefined && object.market_id !== null) {
1183
+ message.marketId = object.market_id;
1184
+ }
1185
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
1186
+ message.makerFeeRate = object.maker_fee_rate;
1187
+ }
1188
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
1189
+ message.takerFeeRate = object.taker_fee_rate;
1190
+ }
1191
+ if (object.relayer_fee_share_rate !== undefined && object.relayer_fee_share_rate !== null) {
1192
+ message.relayerFeeShareRate = object.relayer_fee_share_rate;
1193
+ }
1194
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
1195
+ message.minPriceTickSize = object.min_price_tick_size;
1196
+ }
1197
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
1198
+ message.minQuantityTickSize = object.min_quantity_tick_size;
1199
+ }
1200
+ if (object.status !== undefined && object.status !== null) {
1201
+ message.status = object.status;
1202
+ }
1203
+ if (object.ticker !== undefined && object.ticker !== null) {
1204
+ message.ticker = object.ticker;
1205
+ }
1206
+ if (object.min_notional !== undefined && object.min_notional !== null) {
1207
+ message.minNotional = object.min_notional;
1208
+ }
1209
+ if (object.admin_info !== undefined && object.admin_info !== null) {
1210
+ message.adminInfo = AdminInfo.fromAmino(object.admin_info);
1211
+ }
1212
+ return message;
1213
+ },
1214
+ toAmino(message: SpotMarketParamUpdateProposal): SpotMarketParamUpdateProposalAmino {
1215
+ const obj: any = {};
1216
+ obj.title = message.title === "" ? undefined : message.title;
1217
+ obj.description = message.description === "" ? undefined : message.description;
1218
+ obj.market_id = message.marketId === "" ? undefined : message.marketId;
1219
+ obj.maker_fee_rate = message.makerFeeRate === null ? undefined : message.makerFeeRate;
1220
+ obj.taker_fee_rate = message.takerFeeRate === null ? undefined : message.takerFeeRate;
1221
+ obj.relayer_fee_share_rate = message.relayerFeeShareRate === null ? undefined : message.relayerFeeShareRate;
1222
+ obj.min_price_tick_size = message.minPriceTickSize === null ? undefined : message.minPriceTickSize;
1223
+ obj.min_quantity_tick_size = message.minQuantityTickSize === null ? undefined : message.minQuantityTickSize;
1224
+ obj.status = message.status === 0 ? undefined : message.status;
1225
+ obj.ticker = message.ticker === null ? undefined : message.ticker;
1226
+ obj.min_notional = message.minNotional === null ? undefined : message.minNotional;
1227
+ obj.admin_info = message.adminInfo ? AdminInfo.toAmino(message.adminInfo) : undefined;
1228
+ return obj;
1229
+ },
1230
+ fromAminoMsg(object: SpotMarketParamUpdateProposalAminoMsg): SpotMarketParamUpdateProposal {
1231
+ return SpotMarketParamUpdateProposal.fromAmino(object.value);
1232
+ },
1233
+ toAminoMsg(message: SpotMarketParamUpdateProposal): SpotMarketParamUpdateProposalAminoMsg {
1234
+ return {
1235
+ type: "exchange/SpotMarketParamUpdateProposal",
1236
+ value: SpotMarketParamUpdateProposal.toAmino(message)
1237
+ };
1238
+ },
1239
+ fromProtoMsg(message: SpotMarketParamUpdateProposalProtoMsg): SpotMarketParamUpdateProposal {
1240
+ return SpotMarketParamUpdateProposal.decode(message.value);
1241
+ },
1242
+ toProto(message: SpotMarketParamUpdateProposal): Uint8Array {
1243
+ return SpotMarketParamUpdateProposal.encode(message).finish();
1244
+ },
1245
+ toProtoMsg(message: SpotMarketParamUpdateProposal): SpotMarketParamUpdateProposalProtoMsg {
1246
+ return {
1247
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketParamUpdateProposal",
1248
+ value: SpotMarketParamUpdateProposal.encode(message).finish()
1249
+ };
1250
+ }
1251
+ };
1252
+ GlobalDecoderRegistry.register(SpotMarketParamUpdateProposal.typeUrl, SpotMarketParamUpdateProposal);
1253
+ GlobalDecoderRegistry.registerAminoProtoMapping(SpotMarketParamUpdateProposal.aminoType, SpotMarketParamUpdateProposal.typeUrl);
1254
+ function createBaseExchangeEnableProposal(): ExchangeEnableProposal {
1255
+ return {
1256
+ title: "",
1257
+ description: "",
1258
+ exchangeType: 0
1259
+ };
1260
+ }
1261
+ export const ExchangeEnableProposal = {
1262
+ typeUrl: "/injective.exchange.v1beta1.ExchangeEnableProposal",
1263
+ aminoType: "exchange/ExchangeEnableProposal",
1264
+ is(o: any): o is ExchangeEnableProposal {
1265
+ return o && (o.$typeUrl === ExchangeEnableProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && isSet(o.exchangeType));
1266
+ },
1267
+ isAmino(o: any): o is ExchangeEnableProposalAmino {
1268
+ return o && (o.$typeUrl === ExchangeEnableProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && isSet(o.exchangeType));
1269
+ },
1270
+ encode(message: ExchangeEnableProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1271
+ if (message.title !== "") {
1272
+ writer.uint32(10).string(message.title);
1273
+ }
1274
+ if (message.description !== "") {
1275
+ writer.uint32(18).string(message.description);
1276
+ }
1277
+ if (message.exchangeType !== 0) {
1278
+ writer.uint32(24).int32(message.exchangeType);
1279
+ }
1280
+ return writer;
1281
+ },
1282
+ decode(input: BinaryReader | Uint8Array, length?: number): ExchangeEnableProposal {
1283
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1284
+ let end = length === undefined ? reader.len : reader.pos + length;
1285
+ const message = createBaseExchangeEnableProposal();
1286
+ while (reader.pos < end) {
1287
+ const tag = reader.uint32();
1288
+ switch (tag >>> 3) {
1289
+ case 1:
1290
+ message.title = reader.string();
1291
+ break;
1292
+ case 2:
1293
+ message.description = reader.string();
1294
+ break;
1295
+ case 3:
1296
+ message.exchangeType = (reader.int32() as any);
1297
+ break;
1298
+ default:
1299
+ reader.skipType(tag & 7);
1300
+ break;
1301
+ }
1302
+ }
1303
+ return message;
1304
+ },
1305
+ fromPartial(object: DeepPartial<ExchangeEnableProposal>): ExchangeEnableProposal {
1306
+ const message = createBaseExchangeEnableProposal();
1307
+ message.title = object.title ?? "";
1308
+ message.description = object.description ?? "";
1309
+ message.exchangeType = object.exchangeType ?? 0;
1310
+ return message;
1311
+ },
1312
+ fromAmino(object: ExchangeEnableProposalAmino): ExchangeEnableProposal {
1313
+ const message = createBaseExchangeEnableProposal();
1314
+ if (object.title !== undefined && object.title !== null) {
1315
+ message.title = object.title;
1316
+ }
1317
+ if (object.description !== undefined && object.description !== null) {
1318
+ message.description = object.description;
1319
+ }
1320
+ if (object.exchangeType !== undefined && object.exchangeType !== null) {
1321
+ message.exchangeType = object.exchangeType;
1322
+ }
1323
+ return message;
1324
+ },
1325
+ toAmino(message: ExchangeEnableProposal): ExchangeEnableProposalAmino {
1326
+ const obj: any = {};
1327
+ obj.title = message.title === "" ? undefined : message.title;
1328
+ obj.description = message.description === "" ? undefined : message.description;
1329
+ obj.exchangeType = message.exchangeType === 0 ? undefined : message.exchangeType;
1330
+ return obj;
1331
+ },
1332
+ fromAminoMsg(object: ExchangeEnableProposalAminoMsg): ExchangeEnableProposal {
1333
+ return ExchangeEnableProposal.fromAmino(object.value);
1334
+ },
1335
+ toAminoMsg(message: ExchangeEnableProposal): ExchangeEnableProposalAminoMsg {
1336
+ return {
1337
+ type: "exchange/ExchangeEnableProposal",
1338
+ value: ExchangeEnableProposal.toAmino(message)
1339
+ };
1340
+ },
1341
+ fromProtoMsg(message: ExchangeEnableProposalProtoMsg): ExchangeEnableProposal {
1342
+ return ExchangeEnableProposal.decode(message.value);
1343
+ },
1344
+ toProto(message: ExchangeEnableProposal): Uint8Array {
1345
+ return ExchangeEnableProposal.encode(message).finish();
1346
+ },
1347
+ toProtoMsg(message: ExchangeEnableProposal): ExchangeEnableProposalProtoMsg {
1348
+ return {
1349
+ typeUrl: "/injective.exchange.v1beta1.ExchangeEnableProposal",
1350
+ value: ExchangeEnableProposal.encode(message).finish()
1351
+ };
1352
+ }
1353
+ };
1354
+ GlobalDecoderRegistry.register(ExchangeEnableProposal.typeUrl, ExchangeEnableProposal);
1355
+ GlobalDecoderRegistry.registerAminoProtoMapping(ExchangeEnableProposal.aminoType, ExchangeEnableProposal.typeUrl);
1356
+ function createBaseBatchExchangeModificationProposal(): BatchExchangeModificationProposal {
1357
+ return {
1358
+ title: "",
1359
+ description: "",
1360
+ spotMarketParamUpdateProposals: [],
1361
+ derivativeMarketParamUpdateProposals: [],
1362
+ spotMarketLaunchProposals: [],
1363
+ perpetualMarketLaunchProposals: [],
1364
+ expiryFuturesMarketLaunchProposals: [],
1365
+ tradingRewardCampaignUpdateProposal: undefined,
1366
+ binaryOptionsMarketLaunchProposals: [],
1367
+ binaryOptionsParamUpdateProposals: [],
1368
+ denomDecimalsUpdateProposal: undefined,
1369
+ feeDiscountProposal: undefined,
1370
+ marketForcedSettlementProposals: []
1371
+ };
1372
+ }
1373
+ export const BatchExchangeModificationProposal = {
1374
+ typeUrl: "/injective.exchange.v1beta1.BatchExchangeModificationProposal",
1375
+ aminoType: "exchange/BatchExchangeModificationProposal",
1376
+ is(o: any): o is BatchExchangeModificationProposal {
1377
+ return o && (o.$typeUrl === BatchExchangeModificationProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.spotMarketParamUpdateProposals) && (!o.spotMarketParamUpdateProposals.length || SpotMarketParamUpdateProposal.is(o.spotMarketParamUpdateProposals[0])) && Array.isArray(o.derivativeMarketParamUpdateProposals) && (!o.derivativeMarketParamUpdateProposals.length || DerivativeMarketParamUpdateProposal.is(o.derivativeMarketParamUpdateProposals[0])) && Array.isArray(o.spotMarketLaunchProposals) && (!o.spotMarketLaunchProposals.length || SpotMarketLaunchProposal.is(o.spotMarketLaunchProposals[0])) && Array.isArray(o.perpetualMarketLaunchProposals) && (!o.perpetualMarketLaunchProposals.length || PerpetualMarketLaunchProposal.is(o.perpetualMarketLaunchProposals[0])) && Array.isArray(o.expiryFuturesMarketLaunchProposals) && (!o.expiryFuturesMarketLaunchProposals.length || ExpiryFuturesMarketLaunchProposal.is(o.expiryFuturesMarketLaunchProposals[0])) && Array.isArray(o.binaryOptionsMarketLaunchProposals) && (!o.binaryOptionsMarketLaunchProposals.length || BinaryOptionsMarketLaunchProposal.is(o.binaryOptionsMarketLaunchProposals[0])) && Array.isArray(o.binaryOptionsParamUpdateProposals) && (!o.binaryOptionsParamUpdateProposals.length || BinaryOptionsMarketParamUpdateProposal.is(o.binaryOptionsParamUpdateProposals[0])) && Array.isArray(o.marketForcedSettlementProposals) && (!o.marketForcedSettlementProposals.length || MarketForcedSettlementProposal.is(o.marketForcedSettlementProposals[0])));
1378
+ },
1379
+ isAmino(o: any): o is BatchExchangeModificationProposalAmino {
1380
+ return o && (o.$typeUrl === BatchExchangeModificationProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.spot_market_param_update_proposals) && (!o.spot_market_param_update_proposals.length || SpotMarketParamUpdateProposal.isAmino(o.spot_market_param_update_proposals[0])) && Array.isArray(o.derivative_market_param_update_proposals) && (!o.derivative_market_param_update_proposals.length || DerivativeMarketParamUpdateProposal.isAmino(o.derivative_market_param_update_proposals[0])) && Array.isArray(o.spot_market_launch_proposals) && (!o.spot_market_launch_proposals.length || SpotMarketLaunchProposal.isAmino(o.spot_market_launch_proposals[0])) && Array.isArray(o.perpetual_market_launch_proposals) && (!o.perpetual_market_launch_proposals.length || PerpetualMarketLaunchProposal.isAmino(o.perpetual_market_launch_proposals[0])) && Array.isArray(o.expiry_futures_market_launch_proposals) && (!o.expiry_futures_market_launch_proposals.length || ExpiryFuturesMarketLaunchProposal.isAmino(o.expiry_futures_market_launch_proposals[0])) && Array.isArray(o.binary_options_market_launch_proposals) && (!o.binary_options_market_launch_proposals.length || BinaryOptionsMarketLaunchProposal.isAmino(o.binary_options_market_launch_proposals[0])) && Array.isArray(o.binary_options_param_update_proposals) && (!o.binary_options_param_update_proposals.length || BinaryOptionsMarketParamUpdateProposal.isAmino(o.binary_options_param_update_proposals[0])) && Array.isArray(o.market_forced_settlement_proposals) && (!o.market_forced_settlement_proposals.length || MarketForcedSettlementProposal.isAmino(o.market_forced_settlement_proposals[0])));
1381
+ },
1382
+ encode(message: BatchExchangeModificationProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1383
+ if (message.title !== "") {
1384
+ writer.uint32(10).string(message.title);
1385
+ }
1386
+ if (message.description !== "") {
1387
+ writer.uint32(18).string(message.description);
1388
+ }
1389
+ for (const v of message.spotMarketParamUpdateProposals) {
1390
+ SpotMarketParamUpdateProposal.encode(v!, writer.uint32(26).fork()).ldelim();
1391
+ }
1392
+ for (const v of message.derivativeMarketParamUpdateProposals) {
1393
+ DerivativeMarketParamUpdateProposal.encode(v!, writer.uint32(34).fork()).ldelim();
1394
+ }
1395
+ for (const v of message.spotMarketLaunchProposals) {
1396
+ SpotMarketLaunchProposal.encode(v!, writer.uint32(42).fork()).ldelim();
1397
+ }
1398
+ for (const v of message.perpetualMarketLaunchProposals) {
1399
+ PerpetualMarketLaunchProposal.encode(v!, writer.uint32(50).fork()).ldelim();
1400
+ }
1401
+ for (const v of message.expiryFuturesMarketLaunchProposals) {
1402
+ ExpiryFuturesMarketLaunchProposal.encode(v!, writer.uint32(58).fork()).ldelim();
1403
+ }
1404
+ if (message.tradingRewardCampaignUpdateProposal !== undefined) {
1405
+ TradingRewardCampaignUpdateProposal.encode(message.tradingRewardCampaignUpdateProposal, writer.uint32(66).fork()).ldelim();
1406
+ }
1407
+ for (const v of message.binaryOptionsMarketLaunchProposals) {
1408
+ BinaryOptionsMarketLaunchProposal.encode(v!, writer.uint32(74).fork()).ldelim();
1409
+ }
1410
+ for (const v of message.binaryOptionsParamUpdateProposals) {
1411
+ BinaryOptionsMarketParamUpdateProposal.encode(v!, writer.uint32(82).fork()).ldelim();
1412
+ }
1413
+ if (message.denomDecimalsUpdateProposal !== undefined) {
1414
+ UpdateDenomDecimalsProposal.encode(message.denomDecimalsUpdateProposal, writer.uint32(90).fork()).ldelim();
1415
+ }
1416
+ if (message.feeDiscountProposal !== undefined) {
1417
+ FeeDiscountProposal.encode(message.feeDiscountProposal, writer.uint32(98).fork()).ldelim();
1418
+ }
1419
+ for (const v of message.marketForcedSettlementProposals) {
1420
+ MarketForcedSettlementProposal.encode(v!, writer.uint32(106).fork()).ldelim();
1421
+ }
1422
+ return writer;
1423
+ },
1424
+ decode(input: BinaryReader | Uint8Array, length?: number): BatchExchangeModificationProposal {
1425
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1426
+ let end = length === undefined ? reader.len : reader.pos + length;
1427
+ const message = createBaseBatchExchangeModificationProposal();
1428
+ while (reader.pos < end) {
1429
+ const tag = reader.uint32();
1430
+ switch (tag >>> 3) {
1431
+ case 1:
1432
+ message.title = reader.string();
1433
+ break;
1434
+ case 2:
1435
+ message.description = reader.string();
1436
+ break;
1437
+ case 3:
1438
+ message.spotMarketParamUpdateProposals.push(SpotMarketParamUpdateProposal.decode(reader, reader.uint32()));
1439
+ break;
1440
+ case 4:
1441
+ message.derivativeMarketParamUpdateProposals.push(DerivativeMarketParamUpdateProposal.decode(reader, reader.uint32()));
1442
+ break;
1443
+ case 5:
1444
+ message.spotMarketLaunchProposals.push(SpotMarketLaunchProposal.decode(reader, reader.uint32()));
1445
+ break;
1446
+ case 6:
1447
+ message.perpetualMarketLaunchProposals.push(PerpetualMarketLaunchProposal.decode(reader, reader.uint32()));
1448
+ break;
1449
+ case 7:
1450
+ message.expiryFuturesMarketLaunchProposals.push(ExpiryFuturesMarketLaunchProposal.decode(reader, reader.uint32()));
1451
+ break;
1452
+ case 8:
1453
+ message.tradingRewardCampaignUpdateProposal = TradingRewardCampaignUpdateProposal.decode(reader, reader.uint32());
1454
+ break;
1455
+ case 9:
1456
+ message.binaryOptionsMarketLaunchProposals.push(BinaryOptionsMarketLaunchProposal.decode(reader, reader.uint32()));
1457
+ break;
1458
+ case 10:
1459
+ message.binaryOptionsParamUpdateProposals.push(BinaryOptionsMarketParamUpdateProposal.decode(reader, reader.uint32()));
1460
+ break;
1461
+ case 11:
1462
+ message.denomDecimalsUpdateProposal = UpdateDenomDecimalsProposal.decode(reader, reader.uint32());
1463
+ break;
1464
+ case 12:
1465
+ message.feeDiscountProposal = FeeDiscountProposal.decode(reader, reader.uint32());
1466
+ break;
1467
+ case 13:
1468
+ message.marketForcedSettlementProposals.push(MarketForcedSettlementProposal.decode(reader, reader.uint32()));
1469
+ break;
1470
+ default:
1471
+ reader.skipType(tag & 7);
1472
+ break;
1473
+ }
1474
+ }
1475
+ return message;
1476
+ },
1477
+ fromPartial(object: DeepPartial<BatchExchangeModificationProposal>): BatchExchangeModificationProposal {
1478
+ const message = createBaseBatchExchangeModificationProposal();
1479
+ message.title = object.title ?? "";
1480
+ message.description = object.description ?? "";
1481
+ message.spotMarketParamUpdateProposals = object.spotMarketParamUpdateProposals?.map(e => SpotMarketParamUpdateProposal.fromPartial(e)) || [];
1482
+ message.derivativeMarketParamUpdateProposals = object.derivativeMarketParamUpdateProposals?.map(e => DerivativeMarketParamUpdateProposal.fromPartial(e)) || [];
1483
+ message.spotMarketLaunchProposals = object.spotMarketLaunchProposals?.map(e => SpotMarketLaunchProposal.fromPartial(e)) || [];
1484
+ message.perpetualMarketLaunchProposals = object.perpetualMarketLaunchProposals?.map(e => PerpetualMarketLaunchProposal.fromPartial(e)) || [];
1485
+ message.expiryFuturesMarketLaunchProposals = object.expiryFuturesMarketLaunchProposals?.map(e => ExpiryFuturesMarketLaunchProposal.fromPartial(e)) || [];
1486
+ message.tradingRewardCampaignUpdateProposal = object.tradingRewardCampaignUpdateProposal !== undefined && object.tradingRewardCampaignUpdateProposal !== null ? TradingRewardCampaignUpdateProposal.fromPartial(object.tradingRewardCampaignUpdateProposal) : undefined;
1487
+ message.binaryOptionsMarketLaunchProposals = object.binaryOptionsMarketLaunchProposals?.map(e => BinaryOptionsMarketLaunchProposal.fromPartial(e)) || [];
1488
+ message.binaryOptionsParamUpdateProposals = object.binaryOptionsParamUpdateProposals?.map(e => BinaryOptionsMarketParamUpdateProposal.fromPartial(e)) || [];
1489
+ message.denomDecimalsUpdateProposal = object.denomDecimalsUpdateProposal !== undefined && object.denomDecimalsUpdateProposal !== null ? UpdateDenomDecimalsProposal.fromPartial(object.denomDecimalsUpdateProposal) : undefined;
1490
+ message.feeDiscountProposal = object.feeDiscountProposal !== undefined && object.feeDiscountProposal !== null ? FeeDiscountProposal.fromPartial(object.feeDiscountProposal) : undefined;
1491
+ message.marketForcedSettlementProposals = object.marketForcedSettlementProposals?.map(e => MarketForcedSettlementProposal.fromPartial(e)) || [];
1492
+ return message;
1493
+ },
1494
+ fromAmino(object: BatchExchangeModificationProposalAmino): BatchExchangeModificationProposal {
1495
+ const message = createBaseBatchExchangeModificationProposal();
1496
+ if (object.title !== undefined && object.title !== null) {
1497
+ message.title = object.title;
1498
+ }
1499
+ if (object.description !== undefined && object.description !== null) {
1500
+ message.description = object.description;
1501
+ }
1502
+ message.spotMarketParamUpdateProposals = object.spot_market_param_update_proposals?.map(e => SpotMarketParamUpdateProposal.fromAmino(e)) || [];
1503
+ message.derivativeMarketParamUpdateProposals = object.derivative_market_param_update_proposals?.map(e => DerivativeMarketParamUpdateProposal.fromAmino(e)) || [];
1504
+ message.spotMarketLaunchProposals = object.spot_market_launch_proposals?.map(e => SpotMarketLaunchProposal.fromAmino(e)) || [];
1505
+ message.perpetualMarketLaunchProposals = object.perpetual_market_launch_proposals?.map(e => PerpetualMarketLaunchProposal.fromAmino(e)) || [];
1506
+ message.expiryFuturesMarketLaunchProposals = object.expiry_futures_market_launch_proposals?.map(e => ExpiryFuturesMarketLaunchProposal.fromAmino(e)) || [];
1507
+ if (object.trading_reward_campaign_update_proposal !== undefined && object.trading_reward_campaign_update_proposal !== null) {
1508
+ message.tradingRewardCampaignUpdateProposal = TradingRewardCampaignUpdateProposal.fromAmino(object.trading_reward_campaign_update_proposal);
1509
+ }
1510
+ message.binaryOptionsMarketLaunchProposals = object.binary_options_market_launch_proposals?.map(e => BinaryOptionsMarketLaunchProposal.fromAmino(e)) || [];
1511
+ message.binaryOptionsParamUpdateProposals = object.binary_options_param_update_proposals?.map(e => BinaryOptionsMarketParamUpdateProposal.fromAmino(e)) || [];
1512
+ if (object.denom_decimals_update_proposal !== undefined && object.denom_decimals_update_proposal !== null) {
1513
+ message.denomDecimalsUpdateProposal = UpdateDenomDecimalsProposal.fromAmino(object.denom_decimals_update_proposal);
1514
+ }
1515
+ if (object.fee_discount_proposal !== undefined && object.fee_discount_proposal !== null) {
1516
+ message.feeDiscountProposal = FeeDiscountProposal.fromAmino(object.fee_discount_proposal);
1517
+ }
1518
+ message.marketForcedSettlementProposals = object.market_forced_settlement_proposals?.map(e => MarketForcedSettlementProposal.fromAmino(e)) || [];
1519
+ return message;
1520
+ },
1521
+ toAmino(message: BatchExchangeModificationProposal): BatchExchangeModificationProposalAmino {
1522
+ const obj: any = {};
1523
+ obj.title = message.title === "" ? undefined : message.title;
1524
+ obj.description = message.description === "" ? undefined : message.description;
1525
+ if (message.spotMarketParamUpdateProposals) {
1526
+ obj.spot_market_param_update_proposals = message.spotMarketParamUpdateProposals.map(e => e ? SpotMarketParamUpdateProposal.toAmino(e) : undefined);
1527
+ } else {
1528
+ obj.spot_market_param_update_proposals = message.spotMarketParamUpdateProposals;
1529
+ }
1530
+ if (message.derivativeMarketParamUpdateProposals) {
1531
+ obj.derivative_market_param_update_proposals = message.derivativeMarketParamUpdateProposals.map(e => e ? DerivativeMarketParamUpdateProposal.toAmino(e) : undefined);
1532
+ } else {
1533
+ obj.derivative_market_param_update_proposals = message.derivativeMarketParamUpdateProposals;
1534
+ }
1535
+ if (message.spotMarketLaunchProposals) {
1536
+ obj.spot_market_launch_proposals = message.spotMarketLaunchProposals.map(e => e ? SpotMarketLaunchProposal.toAmino(e) : undefined);
1537
+ } else {
1538
+ obj.spot_market_launch_proposals = message.spotMarketLaunchProposals;
1539
+ }
1540
+ if (message.perpetualMarketLaunchProposals) {
1541
+ obj.perpetual_market_launch_proposals = message.perpetualMarketLaunchProposals.map(e => e ? PerpetualMarketLaunchProposal.toAmino(e) : undefined);
1542
+ } else {
1543
+ obj.perpetual_market_launch_proposals = message.perpetualMarketLaunchProposals;
1544
+ }
1545
+ if (message.expiryFuturesMarketLaunchProposals) {
1546
+ obj.expiry_futures_market_launch_proposals = message.expiryFuturesMarketLaunchProposals.map(e => e ? ExpiryFuturesMarketLaunchProposal.toAmino(e) : undefined);
1547
+ } else {
1548
+ obj.expiry_futures_market_launch_proposals = message.expiryFuturesMarketLaunchProposals;
1549
+ }
1550
+ obj.trading_reward_campaign_update_proposal = message.tradingRewardCampaignUpdateProposal ? TradingRewardCampaignUpdateProposal.toAmino(message.tradingRewardCampaignUpdateProposal) : undefined;
1551
+ if (message.binaryOptionsMarketLaunchProposals) {
1552
+ obj.binary_options_market_launch_proposals = message.binaryOptionsMarketLaunchProposals.map(e => e ? BinaryOptionsMarketLaunchProposal.toAmino(e) : undefined);
1553
+ } else {
1554
+ obj.binary_options_market_launch_proposals = message.binaryOptionsMarketLaunchProposals;
1555
+ }
1556
+ if (message.binaryOptionsParamUpdateProposals) {
1557
+ obj.binary_options_param_update_proposals = message.binaryOptionsParamUpdateProposals.map(e => e ? BinaryOptionsMarketParamUpdateProposal.toAmino(e) : undefined);
1558
+ } else {
1559
+ obj.binary_options_param_update_proposals = message.binaryOptionsParamUpdateProposals;
1560
+ }
1561
+ obj.denom_decimals_update_proposal = message.denomDecimalsUpdateProposal ? UpdateDenomDecimalsProposal.toAmino(message.denomDecimalsUpdateProposal) : undefined;
1562
+ obj.fee_discount_proposal = message.feeDiscountProposal ? FeeDiscountProposal.toAmino(message.feeDiscountProposal) : undefined;
1563
+ if (message.marketForcedSettlementProposals) {
1564
+ obj.market_forced_settlement_proposals = message.marketForcedSettlementProposals.map(e => e ? MarketForcedSettlementProposal.toAmino(e) : undefined);
1565
+ } else {
1566
+ obj.market_forced_settlement_proposals = message.marketForcedSettlementProposals;
1567
+ }
1568
+ return obj;
1569
+ },
1570
+ fromAminoMsg(object: BatchExchangeModificationProposalAminoMsg): BatchExchangeModificationProposal {
1571
+ return BatchExchangeModificationProposal.fromAmino(object.value);
1572
+ },
1573
+ toAminoMsg(message: BatchExchangeModificationProposal): BatchExchangeModificationProposalAminoMsg {
1574
+ return {
1575
+ type: "exchange/BatchExchangeModificationProposal",
1576
+ value: BatchExchangeModificationProposal.toAmino(message)
1577
+ };
1578
+ },
1579
+ fromProtoMsg(message: BatchExchangeModificationProposalProtoMsg): BatchExchangeModificationProposal {
1580
+ return BatchExchangeModificationProposal.decode(message.value);
1581
+ },
1582
+ toProto(message: BatchExchangeModificationProposal): Uint8Array {
1583
+ return BatchExchangeModificationProposal.encode(message).finish();
1584
+ },
1585
+ toProtoMsg(message: BatchExchangeModificationProposal): BatchExchangeModificationProposalProtoMsg {
1586
+ return {
1587
+ typeUrl: "/injective.exchange.v1beta1.BatchExchangeModificationProposal",
1588
+ value: BatchExchangeModificationProposal.encode(message).finish()
1589
+ };
1590
+ }
1591
+ };
1592
+ GlobalDecoderRegistry.register(BatchExchangeModificationProposal.typeUrl, BatchExchangeModificationProposal);
1593
+ GlobalDecoderRegistry.registerAminoProtoMapping(BatchExchangeModificationProposal.aminoType, BatchExchangeModificationProposal.typeUrl);
1594
+ function createBaseSpotMarketLaunchProposal(): SpotMarketLaunchProposal {
1595
+ return {
1596
+ title: "",
1597
+ description: "",
1598
+ ticker: "",
1599
+ baseDenom: "",
1600
+ quoteDenom: "",
1601
+ minPriceTickSize: "",
1602
+ minQuantityTickSize: "",
1603
+ makerFeeRate: undefined,
1604
+ takerFeeRate: undefined,
1605
+ minNotional: "",
1606
+ adminInfo: undefined
1607
+ };
1608
+ }
1609
+ export const SpotMarketLaunchProposal = {
1610
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketLaunchProposal",
1611
+ aminoType: "exchange/SpotMarketLaunchProposal",
1612
+ is(o: any): o is SpotMarketLaunchProposal {
1613
+ return o && (o.$typeUrl === SpotMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.baseDenom === "string" && typeof o.quoteDenom === "string" && typeof o.minPriceTickSize === "string" && typeof o.minQuantityTickSize === "string" && typeof o.minNotional === "string");
1614
+ },
1615
+ isAmino(o: any): o is SpotMarketLaunchProposalAmino {
1616
+ return o && (o.$typeUrl === SpotMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.base_denom === "string" && typeof o.quote_denom === "string" && typeof o.min_price_tick_size === "string" && typeof o.min_quantity_tick_size === "string" && typeof o.min_notional === "string");
1617
+ },
1618
+ encode(message: SpotMarketLaunchProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1619
+ if (message.title !== "") {
1620
+ writer.uint32(10).string(message.title);
1621
+ }
1622
+ if (message.description !== "") {
1623
+ writer.uint32(18).string(message.description);
1624
+ }
1625
+ if (message.ticker !== "") {
1626
+ writer.uint32(26).string(message.ticker);
1627
+ }
1628
+ if (message.baseDenom !== "") {
1629
+ writer.uint32(34).string(message.baseDenom);
1630
+ }
1631
+ if (message.quoteDenom !== "") {
1632
+ writer.uint32(42).string(message.quoteDenom);
1633
+ }
1634
+ if (message.minPriceTickSize !== "") {
1635
+ writer.uint32(50).string(message.minPriceTickSize);
1636
+ }
1637
+ if (message.minQuantityTickSize !== "") {
1638
+ writer.uint32(58).string(message.minQuantityTickSize);
1639
+ }
1640
+ if (message.makerFeeRate !== undefined) {
1641
+ writer.uint32(66).string(message.makerFeeRate);
1642
+ }
1643
+ if (message.takerFeeRate !== undefined) {
1644
+ writer.uint32(74).string(message.takerFeeRate);
1645
+ }
1646
+ if (message.minNotional !== "") {
1647
+ writer.uint32(82).string(message.minNotional);
1648
+ }
1649
+ if (message.adminInfo !== undefined) {
1650
+ AdminInfo.encode(message.adminInfo, writer.uint32(90).fork()).ldelim();
1651
+ }
1652
+ return writer;
1653
+ },
1654
+ decode(input: BinaryReader | Uint8Array, length?: number): SpotMarketLaunchProposal {
1655
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1656
+ let end = length === undefined ? reader.len : reader.pos + length;
1657
+ const message = createBaseSpotMarketLaunchProposal();
1658
+ while (reader.pos < end) {
1659
+ const tag = reader.uint32();
1660
+ switch (tag >>> 3) {
1661
+ case 1:
1662
+ message.title = reader.string();
1663
+ break;
1664
+ case 2:
1665
+ message.description = reader.string();
1666
+ break;
1667
+ case 3:
1668
+ message.ticker = reader.string();
1669
+ break;
1670
+ case 4:
1671
+ message.baseDenom = reader.string();
1672
+ break;
1673
+ case 5:
1674
+ message.quoteDenom = reader.string();
1675
+ break;
1676
+ case 6:
1677
+ message.minPriceTickSize = reader.string();
1678
+ break;
1679
+ case 7:
1680
+ message.minQuantityTickSize = reader.string();
1681
+ break;
1682
+ case 8:
1683
+ message.makerFeeRate = reader.string();
1684
+ break;
1685
+ case 9:
1686
+ message.takerFeeRate = reader.string();
1687
+ break;
1688
+ case 10:
1689
+ message.minNotional = reader.string();
1690
+ break;
1691
+ case 11:
1692
+ message.adminInfo = AdminInfo.decode(reader, reader.uint32());
1693
+ break;
1694
+ default:
1695
+ reader.skipType(tag & 7);
1696
+ break;
1697
+ }
1698
+ }
1699
+ return message;
1700
+ },
1701
+ fromPartial(object: DeepPartial<SpotMarketLaunchProposal>): SpotMarketLaunchProposal {
1702
+ const message = createBaseSpotMarketLaunchProposal();
1703
+ message.title = object.title ?? "";
1704
+ message.description = object.description ?? "";
1705
+ message.ticker = object.ticker ?? "";
1706
+ message.baseDenom = object.baseDenom ?? "";
1707
+ message.quoteDenom = object.quoteDenom ?? "";
1708
+ message.minPriceTickSize = object.minPriceTickSize ?? "";
1709
+ message.minQuantityTickSize = object.minQuantityTickSize ?? "";
1710
+ message.makerFeeRate = object.makerFeeRate ?? undefined;
1711
+ message.takerFeeRate = object.takerFeeRate ?? undefined;
1712
+ message.minNotional = object.minNotional ?? "";
1713
+ message.adminInfo = object.adminInfo !== undefined && object.adminInfo !== null ? AdminInfo.fromPartial(object.adminInfo) : undefined;
1714
+ return message;
1715
+ },
1716
+ fromAmino(object: SpotMarketLaunchProposalAmino): SpotMarketLaunchProposal {
1717
+ const message = createBaseSpotMarketLaunchProposal();
1718
+ if (object.title !== undefined && object.title !== null) {
1719
+ message.title = object.title;
1720
+ }
1721
+ if (object.description !== undefined && object.description !== null) {
1722
+ message.description = object.description;
1723
+ }
1724
+ if (object.ticker !== undefined && object.ticker !== null) {
1725
+ message.ticker = object.ticker;
1726
+ }
1727
+ if (object.base_denom !== undefined && object.base_denom !== null) {
1728
+ message.baseDenom = object.base_denom;
1729
+ }
1730
+ if (object.quote_denom !== undefined && object.quote_denom !== null) {
1731
+ message.quoteDenom = object.quote_denom;
1732
+ }
1733
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
1734
+ message.minPriceTickSize = object.min_price_tick_size;
1735
+ }
1736
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
1737
+ message.minQuantityTickSize = object.min_quantity_tick_size;
1738
+ }
1739
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
1740
+ message.makerFeeRate = object.maker_fee_rate;
1741
+ }
1742
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
1743
+ message.takerFeeRate = object.taker_fee_rate;
1744
+ }
1745
+ if (object.min_notional !== undefined && object.min_notional !== null) {
1746
+ message.minNotional = object.min_notional;
1747
+ }
1748
+ if (object.admin_info !== undefined && object.admin_info !== null) {
1749
+ message.adminInfo = AdminInfo.fromAmino(object.admin_info);
1750
+ }
1751
+ return message;
1752
+ },
1753
+ toAmino(message: SpotMarketLaunchProposal): SpotMarketLaunchProposalAmino {
1754
+ const obj: any = {};
1755
+ obj.title = message.title === "" ? undefined : message.title;
1756
+ obj.description = message.description === "" ? undefined : message.description;
1757
+ obj.ticker = message.ticker === "" ? undefined : message.ticker;
1758
+ obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom;
1759
+ obj.quote_denom = message.quoteDenom === "" ? undefined : message.quoteDenom;
1760
+ obj.min_price_tick_size = message.minPriceTickSize === "" ? undefined : message.minPriceTickSize;
1761
+ obj.min_quantity_tick_size = message.minQuantityTickSize === "" ? undefined : message.minQuantityTickSize;
1762
+ obj.maker_fee_rate = message.makerFeeRate === null ? undefined : message.makerFeeRate;
1763
+ obj.taker_fee_rate = message.takerFeeRate === null ? undefined : message.takerFeeRate;
1764
+ obj.min_notional = message.minNotional === "" ? undefined : message.minNotional;
1765
+ obj.admin_info = message.adminInfo ? AdminInfo.toAmino(message.adminInfo) : undefined;
1766
+ return obj;
1767
+ },
1768
+ fromAminoMsg(object: SpotMarketLaunchProposalAminoMsg): SpotMarketLaunchProposal {
1769
+ return SpotMarketLaunchProposal.fromAmino(object.value);
1770
+ },
1771
+ toAminoMsg(message: SpotMarketLaunchProposal): SpotMarketLaunchProposalAminoMsg {
1772
+ return {
1773
+ type: "exchange/SpotMarketLaunchProposal",
1774
+ value: SpotMarketLaunchProposal.toAmino(message)
1775
+ };
1776
+ },
1777
+ fromProtoMsg(message: SpotMarketLaunchProposalProtoMsg): SpotMarketLaunchProposal {
1778
+ return SpotMarketLaunchProposal.decode(message.value);
1779
+ },
1780
+ toProto(message: SpotMarketLaunchProposal): Uint8Array {
1781
+ return SpotMarketLaunchProposal.encode(message).finish();
1782
+ },
1783
+ toProtoMsg(message: SpotMarketLaunchProposal): SpotMarketLaunchProposalProtoMsg {
1784
+ return {
1785
+ typeUrl: "/injective.exchange.v1beta1.SpotMarketLaunchProposal",
1786
+ value: SpotMarketLaunchProposal.encode(message).finish()
1787
+ };
1788
+ }
1789
+ };
1790
+ GlobalDecoderRegistry.register(SpotMarketLaunchProposal.typeUrl, SpotMarketLaunchProposal);
1791
+ GlobalDecoderRegistry.registerAminoProtoMapping(SpotMarketLaunchProposal.aminoType, SpotMarketLaunchProposal.typeUrl);
1792
+ function createBasePerpetualMarketLaunchProposal(): PerpetualMarketLaunchProposal {
1793
+ return {
1794
+ title: "",
1795
+ description: "",
1796
+ ticker: "",
1797
+ quoteDenom: "",
1798
+ oracleBase: "",
1799
+ oracleQuote: "",
1800
+ oracleScaleFactor: 0,
1801
+ oracleType: 0,
1802
+ initialMarginRatio: "",
1803
+ maintenanceMarginRatio: "",
1804
+ makerFeeRate: "",
1805
+ takerFeeRate: "",
1806
+ minPriceTickSize: "",
1807
+ minQuantityTickSize: "",
1808
+ minNotional: "",
1809
+ adminInfo: undefined
1810
+ };
1811
+ }
1812
+ export const PerpetualMarketLaunchProposal = {
1813
+ typeUrl: "/injective.exchange.v1beta1.PerpetualMarketLaunchProposal",
1814
+ aminoType: "exchange/PerpetualMarketLaunchProposal",
1815
+ is(o: any): o is PerpetualMarketLaunchProposal {
1816
+ return o && (o.$typeUrl === PerpetualMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.quoteDenom === "string" && typeof o.oracleBase === "string" && typeof o.oracleQuote === "string" && typeof o.oracleScaleFactor === "number" && isSet(o.oracleType) && typeof o.initialMarginRatio === "string" && typeof o.maintenanceMarginRatio === "string" && typeof o.makerFeeRate === "string" && typeof o.takerFeeRate === "string" && typeof o.minPriceTickSize === "string" && typeof o.minQuantityTickSize === "string" && typeof o.minNotional === "string");
1817
+ },
1818
+ isAmino(o: any): o is PerpetualMarketLaunchProposalAmino {
1819
+ return o && (o.$typeUrl === PerpetualMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.quote_denom === "string" && typeof o.oracle_base === "string" && typeof o.oracle_quote === "string" && typeof o.oracle_scale_factor === "number" && isSet(o.oracle_type) && typeof o.initial_margin_ratio === "string" && typeof o.maintenance_margin_ratio === "string" && typeof o.maker_fee_rate === "string" && typeof o.taker_fee_rate === "string" && typeof o.min_price_tick_size === "string" && typeof o.min_quantity_tick_size === "string" && typeof o.min_notional === "string");
1820
+ },
1821
+ encode(message: PerpetualMarketLaunchProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1822
+ if (message.title !== "") {
1823
+ writer.uint32(10).string(message.title);
1824
+ }
1825
+ if (message.description !== "") {
1826
+ writer.uint32(18).string(message.description);
1827
+ }
1828
+ if (message.ticker !== "") {
1829
+ writer.uint32(26).string(message.ticker);
1830
+ }
1831
+ if (message.quoteDenom !== "") {
1832
+ writer.uint32(34).string(message.quoteDenom);
1833
+ }
1834
+ if (message.oracleBase !== "") {
1835
+ writer.uint32(42).string(message.oracleBase);
1836
+ }
1837
+ if (message.oracleQuote !== "") {
1838
+ writer.uint32(50).string(message.oracleQuote);
1839
+ }
1840
+ if (message.oracleScaleFactor !== 0) {
1841
+ writer.uint32(56).uint32(message.oracleScaleFactor);
1842
+ }
1843
+ if (message.oracleType !== 0) {
1844
+ writer.uint32(64).int32(message.oracleType);
1845
+ }
1846
+ if (message.initialMarginRatio !== "") {
1847
+ writer.uint32(74).string(message.initialMarginRatio);
1848
+ }
1849
+ if (message.maintenanceMarginRatio !== "") {
1850
+ writer.uint32(82).string(message.maintenanceMarginRatio);
1851
+ }
1852
+ if (message.makerFeeRate !== "") {
1853
+ writer.uint32(90).string(message.makerFeeRate);
1854
+ }
1855
+ if (message.takerFeeRate !== "") {
1856
+ writer.uint32(98).string(message.takerFeeRate);
1857
+ }
1858
+ if (message.minPriceTickSize !== "") {
1859
+ writer.uint32(106).string(message.minPriceTickSize);
1860
+ }
1861
+ if (message.minQuantityTickSize !== "") {
1862
+ writer.uint32(114).string(message.minQuantityTickSize);
1863
+ }
1864
+ if (message.minNotional !== "") {
1865
+ writer.uint32(122).string(message.minNotional);
1866
+ }
1867
+ if (message.adminInfo !== undefined) {
1868
+ AdminInfo.encode(message.adminInfo, writer.uint32(130).fork()).ldelim();
1869
+ }
1870
+ return writer;
1871
+ },
1872
+ decode(input: BinaryReader | Uint8Array, length?: number): PerpetualMarketLaunchProposal {
1873
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1874
+ let end = length === undefined ? reader.len : reader.pos + length;
1875
+ const message = createBasePerpetualMarketLaunchProposal();
1876
+ while (reader.pos < end) {
1877
+ const tag = reader.uint32();
1878
+ switch (tag >>> 3) {
1879
+ case 1:
1880
+ message.title = reader.string();
1881
+ break;
1882
+ case 2:
1883
+ message.description = reader.string();
1884
+ break;
1885
+ case 3:
1886
+ message.ticker = reader.string();
1887
+ break;
1888
+ case 4:
1889
+ message.quoteDenom = reader.string();
1890
+ break;
1891
+ case 5:
1892
+ message.oracleBase = reader.string();
1893
+ break;
1894
+ case 6:
1895
+ message.oracleQuote = reader.string();
1896
+ break;
1897
+ case 7:
1898
+ message.oracleScaleFactor = reader.uint32();
1899
+ break;
1900
+ case 8:
1901
+ message.oracleType = (reader.int32() as any);
1902
+ break;
1903
+ case 9:
1904
+ message.initialMarginRatio = reader.string();
1905
+ break;
1906
+ case 10:
1907
+ message.maintenanceMarginRatio = reader.string();
1908
+ break;
1909
+ case 11:
1910
+ message.makerFeeRate = reader.string();
1911
+ break;
1912
+ case 12:
1913
+ message.takerFeeRate = reader.string();
1914
+ break;
1915
+ case 13:
1916
+ message.minPriceTickSize = reader.string();
1917
+ break;
1918
+ case 14:
1919
+ message.minQuantityTickSize = reader.string();
1920
+ break;
1921
+ case 15:
1922
+ message.minNotional = reader.string();
1923
+ break;
1924
+ case 16:
1925
+ message.adminInfo = AdminInfo.decode(reader, reader.uint32());
1926
+ break;
1927
+ default:
1928
+ reader.skipType(tag & 7);
1929
+ break;
1930
+ }
1931
+ }
1932
+ return message;
1933
+ },
1934
+ fromPartial(object: DeepPartial<PerpetualMarketLaunchProposal>): PerpetualMarketLaunchProposal {
1935
+ const message = createBasePerpetualMarketLaunchProposal();
1936
+ message.title = object.title ?? "";
1937
+ message.description = object.description ?? "";
1938
+ message.ticker = object.ticker ?? "";
1939
+ message.quoteDenom = object.quoteDenom ?? "";
1940
+ message.oracleBase = object.oracleBase ?? "";
1941
+ message.oracleQuote = object.oracleQuote ?? "";
1942
+ message.oracleScaleFactor = object.oracleScaleFactor ?? 0;
1943
+ message.oracleType = object.oracleType ?? 0;
1944
+ message.initialMarginRatio = object.initialMarginRatio ?? "";
1945
+ message.maintenanceMarginRatio = object.maintenanceMarginRatio ?? "";
1946
+ message.makerFeeRate = object.makerFeeRate ?? "";
1947
+ message.takerFeeRate = object.takerFeeRate ?? "";
1948
+ message.minPriceTickSize = object.minPriceTickSize ?? "";
1949
+ message.minQuantityTickSize = object.minQuantityTickSize ?? "";
1950
+ message.minNotional = object.minNotional ?? "";
1951
+ message.adminInfo = object.adminInfo !== undefined && object.adminInfo !== null ? AdminInfo.fromPartial(object.adminInfo) : undefined;
1952
+ return message;
1953
+ },
1954
+ fromAmino(object: PerpetualMarketLaunchProposalAmino): PerpetualMarketLaunchProposal {
1955
+ const message = createBasePerpetualMarketLaunchProposal();
1956
+ if (object.title !== undefined && object.title !== null) {
1957
+ message.title = object.title;
1958
+ }
1959
+ if (object.description !== undefined && object.description !== null) {
1960
+ message.description = object.description;
1961
+ }
1962
+ if (object.ticker !== undefined && object.ticker !== null) {
1963
+ message.ticker = object.ticker;
1964
+ }
1965
+ if (object.quote_denom !== undefined && object.quote_denom !== null) {
1966
+ message.quoteDenom = object.quote_denom;
1967
+ }
1968
+ if (object.oracle_base !== undefined && object.oracle_base !== null) {
1969
+ message.oracleBase = object.oracle_base;
1970
+ }
1971
+ if (object.oracle_quote !== undefined && object.oracle_quote !== null) {
1972
+ message.oracleQuote = object.oracle_quote;
1973
+ }
1974
+ if (object.oracle_scale_factor !== undefined && object.oracle_scale_factor !== null) {
1975
+ message.oracleScaleFactor = object.oracle_scale_factor;
1976
+ }
1977
+ if (object.oracle_type !== undefined && object.oracle_type !== null) {
1978
+ message.oracleType = object.oracle_type;
1979
+ }
1980
+ if (object.initial_margin_ratio !== undefined && object.initial_margin_ratio !== null) {
1981
+ message.initialMarginRatio = object.initial_margin_ratio;
1982
+ }
1983
+ if (object.maintenance_margin_ratio !== undefined && object.maintenance_margin_ratio !== null) {
1984
+ message.maintenanceMarginRatio = object.maintenance_margin_ratio;
1985
+ }
1986
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
1987
+ message.makerFeeRate = object.maker_fee_rate;
1988
+ }
1989
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
1990
+ message.takerFeeRate = object.taker_fee_rate;
1991
+ }
1992
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
1993
+ message.minPriceTickSize = object.min_price_tick_size;
1994
+ }
1995
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
1996
+ message.minQuantityTickSize = object.min_quantity_tick_size;
1997
+ }
1998
+ if (object.min_notional !== undefined && object.min_notional !== null) {
1999
+ message.minNotional = object.min_notional;
2000
+ }
2001
+ if (object.admin_info !== undefined && object.admin_info !== null) {
2002
+ message.adminInfo = AdminInfo.fromAmino(object.admin_info);
2003
+ }
2004
+ return message;
2005
+ },
2006
+ toAmino(message: PerpetualMarketLaunchProposal): PerpetualMarketLaunchProposalAmino {
2007
+ const obj: any = {};
2008
+ obj.title = message.title === "" ? undefined : message.title;
2009
+ obj.description = message.description === "" ? undefined : message.description;
2010
+ obj.ticker = message.ticker === "" ? undefined : message.ticker;
2011
+ obj.quote_denom = message.quoteDenom === "" ? undefined : message.quoteDenom;
2012
+ obj.oracle_base = message.oracleBase === "" ? undefined : message.oracleBase;
2013
+ obj.oracle_quote = message.oracleQuote === "" ? undefined : message.oracleQuote;
2014
+ obj.oracle_scale_factor = message.oracleScaleFactor === 0 ? undefined : message.oracleScaleFactor;
2015
+ obj.oracle_type = message.oracleType === 0 ? undefined : message.oracleType;
2016
+ obj.initial_margin_ratio = message.initialMarginRatio === "" ? undefined : message.initialMarginRatio;
2017
+ obj.maintenance_margin_ratio = message.maintenanceMarginRatio === "" ? undefined : message.maintenanceMarginRatio;
2018
+ obj.maker_fee_rate = message.makerFeeRate === "" ? undefined : message.makerFeeRate;
2019
+ obj.taker_fee_rate = message.takerFeeRate === "" ? undefined : message.takerFeeRate;
2020
+ obj.min_price_tick_size = message.minPriceTickSize === "" ? undefined : message.minPriceTickSize;
2021
+ obj.min_quantity_tick_size = message.minQuantityTickSize === "" ? undefined : message.minQuantityTickSize;
2022
+ obj.min_notional = message.minNotional === "" ? undefined : message.minNotional;
2023
+ obj.admin_info = message.adminInfo ? AdminInfo.toAmino(message.adminInfo) : undefined;
2024
+ return obj;
2025
+ },
2026
+ fromAminoMsg(object: PerpetualMarketLaunchProposalAminoMsg): PerpetualMarketLaunchProposal {
2027
+ return PerpetualMarketLaunchProposal.fromAmino(object.value);
2028
+ },
2029
+ toAminoMsg(message: PerpetualMarketLaunchProposal): PerpetualMarketLaunchProposalAminoMsg {
2030
+ return {
2031
+ type: "exchange/PerpetualMarketLaunchProposal",
2032
+ value: PerpetualMarketLaunchProposal.toAmino(message)
2033
+ };
2034
+ },
2035
+ fromProtoMsg(message: PerpetualMarketLaunchProposalProtoMsg): PerpetualMarketLaunchProposal {
2036
+ return PerpetualMarketLaunchProposal.decode(message.value);
2037
+ },
2038
+ toProto(message: PerpetualMarketLaunchProposal): Uint8Array {
2039
+ return PerpetualMarketLaunchProposal.encode(message).finish();
2040
+ },
2041
+ toProtoMsg(message: PerpetualMarketLaunchProposal): PerpetualMarketLaunchProposalProtoMsg {
2042
+ return {
2043
+ typeUrl: "/injective.exchange.v1beta1.PerpetualMarketLaunchProposal",
2044
+ value: PerpetualMarketLaunchProposal.encode(message).finish()
2045
+ };
2046
+ }
2047
+ };
2048
+ GlobalDecoderRegistry.register(PerpetualMarketLaunchProposal.typeUrl, PerpetualMarketLaunchProposal);
2049
+ GlobalDecoderRegistry.registerAminoProtoMapping(PerpetualMarketLaunchProposal.aminoType, PerpetualMarketLaunchProposal.typeUrl);
2050
+ function createBaseBinaryOptionsMarketLaunchProposal(): BinaryOptionsMarketLaunchProposal {
2051
+ return {
2052
+ title: "",
2053
+ description: "",
2054
+ ticker: "",
2055
+ oracleSymbol: "",
2056
+ oracleProvider: "",
2057
+ oracleType: 0,
2058
+ oracleScaleFactor: 0,
2059
+ expirationTimestamp: BigInt(0),
2060
+ settlementTimestamp: BigInt(0),
2061
+ admin: "",
2062
+ quoteDenom: "",
2063
+ makerFeeRate: "",
2064
+ takerFeeRate: "",
2065
+ minPriceTickSize: "",
2066
+ minQuantityTickSize: "",
2067
+ minNotional: "",
2068
+ adminPermissions: 0
2069
+ };
2070
+ }
2071
+ export const BinaryOptionsMarketLaunchProposal = {
2072
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal",
2073
+ aminoType: "exchange/BinaryOptionsMarketLaunchProposal",
2074
+ is(o: any): o is BinaryOptionsMarketLaunchProposal {
2075
+ return o && (o.$typeUrl === BinaryOptionsMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.oracleSymbol === "string" && typeof o.oracleProvider === "string" && isSet(o.oracleType) && typeof o.oracleScaleFactor === "number" && typeof o.expirationTimestamp === "bigint" && typeof o.settlementTimestamp === "bigint" && typeof o.admin === "string" && typeof o.quoteDenom === "string" && typeof o.makerFeeRate === "string" && typeof o.takerFeeRate === "string" && typeof o.minPriceTickSize === "string" && typeof o.minQuantityTickSize === "string" && typeof o.minNotional === "string" && typeof o.adminPermissions === "number");
2076
+ },
2077
+ isAmino(o: any): o is BinaryOptionsMarketLaunchProposalAmino {
2078
+ return o && (o.$typeUrl === BinaryOptionsMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.oracle_symbol === "string" && typeof o.oracle_provider === "string" && isSet(o.oracle_type) && typeof o.oracle_scale_factor === "number" && typeof o.expiration_timestamp === "bigint" && typeof o.settlement_timestamp === "bigint" && typeof o.admin === "string" && typeof o.quote_denom === "string" && typeof o.maker_fee_rate === "string" && typeof o.taker_fee_rate === "string" && typeof o.min_price_tick_size === "string" && typeof o.min_quantity_tick_size === "string" && typeof o.min_notional === "string" && typeof o.admin_permissions === "number");
2079
+ },
2080
+ encode(message: BinaryOptionsMarketLaunchProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2081
+ if (message.title !== "") {
2082
+ writer.uint32(10).string(message.title);
2083
+ }
2084
+ if (message.description !== "") {
2085
+ writer.uint32(18).string(message.description);
2086
+ }
2087
+ if (message.ticker !== "") {
2088
+ writer.uint32(26).string(message.ticker);
2089
+ }
2090
+ if (message.oracleSymbol !== "") {
2091
+ writer.uint32(34).string(message.oracleSymbol);
2092
+ }
2093
+ if (message.oracleProvider !== "") {
2094
+ writer.uint32(42).string(message.oracleProvider);
2095
+ }
2096
+ if (message.oracleType !== 0) {
2097
+ writer.uint32(48).int32(message.oracleType);
2098
+ }
2099
+ if (message.oracleScaleFactor !== 0) {
2100
+ writer.uint32(56).uint32(message.oracleScaleFactor);
2101
+ }
2102
+ if (message.expirationTimestamp !== BigInt(0)) {
2103
+ writer.uint32(64).int64(message.expirationTimestamp);
2104
+ }
2105
+ if (message.settlementTimestamp !== BigInt(0)) {
2106
+ writer.uint32(72).int64(message.settlementTimestamp);
2107
+ }
2108
+ if (message.admin !== "") {
2109
+ writer.uint32(82).string(message.admin);
2110
+ }
2111
+ if (message.quoteDenom !== "") {
2112
+ writer.uint32(90).string(message.quoteDenom);
2113
+ }
2114
+ if (message.makerFeeRate !== "") {
2115
+ writer.uint32(98).string(message.makerFeeRate);
2116
+ }
2117
+ if (message.takerFeeRate !== "") {
2118
+ writer.uint32(106).string(message.takerFeeRate);
2119
+ }
2120
+ if (message.minPriceTickSize !== "") {
2121
+ writer.uint32(114).string(message.minPriceTickSize);
2122
+ }
2123
+ if (message.minQuantityTickSize !== "") {
2124
+ writer.uint32(122).string(message.minQuantityTickSize);
2125
+ }
2126
+ if (message.minNotional !== "") {
2127
+ writer.uint32(130).string(message.minNotional);
2128
+ }
2129
+ if (message.adminPermissions !== 0) {
2130
+ writer.uint32(136).uint32(message.adminPermissions);
2131
+ }
2132
+ return writer;
2133
+ },
2134
+ decode(input: BinaryReader | Uint8Array, length?: number): BinaryOptionsMarketLaunchProposal {
2135
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2136
+ let end = length === undefined ? reader.len : reader.pos + length;
2137
+ const message = createBaseBinaryOptionsMarketLaunchProposal();
2138
+ while (reader.pos < end) {
2139
+ const tag = reader.uint32();
2140
+ switch (tag >>> 3) {
2141
+ case 1:
2142
+ message.title = reader.string();
2143
+ break;
2144
+ case 2:
2145
+ message.description = reader.string();
2146
+ break;
2147
+ case 3:
2148
+ message.ticker = reader.string();
2149
+ break;
2150
+ case 4:
2151
+ message.oracleSymbol = reader.string();
2152
+ break;
2153
+ case 5:
2154
+ message.oracleProvider = reader.string();
2155
+ break;
2156
+ case 6:
2157
+ message.oracleType = (reader.int32() as any);
2158
+ break;
2159
+ case 7:
2160
+ message.oracleScaleFactor = reader.uint32();
2161
+ break;
2162
+ case 8:
2163
+ message.expirationTimestamp = reader.int64();
2164
+ break;
2165
+ case 9:
2166
+ message.settlementTimestamp = reader.int64();
2167
+ break;
2168
+ case 10:
2169
+ message.admin = reader.string();
2170
+ break;
2171
+ case 11:
2172
+ message.quoteDenom = reader.string();
2173
+ break;
2174
+ case 12:
2175
+ message.makerFeeRate = reader.string();
2176
+ break;
2177
+ case 13:
2178
+ message.takerFeeRate = reader.string();
2179
+ break;
2180
+ case 14:
2181
+ message.minPriceTickSize = reader.string();
2182
+ break;
2183
+ case 15:
2184
+ message.minQuantityTickSize = reader.string();
2185
+ break;
2186
+ case 16:
2187
+ message.minNotional = reader.string();
2188
+ break;
2189
+ case 17:
2190
+ message.adminPermissions = reader.uint32();
2191
+ break;
2192
+ default:
2193
+ reader.skipType(tag & 7);
2194
+ break;
2195
+ }
2196
+ }
2197
+ return message;
2198
+ },
2199
+ fromPartial(object: DeepPartial<BinaryOptionsMarketLaunchProposal>): BinaryOptionsMarketLaunchProposal {
2200
+ const message = createBaseBinaryOptionsMarketLaunchProposal();
2201
+ message.title = object.title ?? "";
2202
+ message.description = object.description ?? "";
2203
+ message.ticker = object.ticker ?? "";
2204
+ message.oracleSymbol = object.oracleSymbol ?? "";
2205
+ message.oracleProvider = object.oracleProvider ?? "";
2206
+ message.oracleType = object.oracleType ?? 0;
2207
+ message.oracleScaleFactor = object.oracleScaleFactor ?? 0;
2208
+ message.expirationTimestamp = object.expirationTimestamp !== undefined && object.expirationTimestamp !== null ? BigInt(object.expirationTimestamp.toString()) : BigInt(0);
2209
+ message.settlementTimestamp = object.settlementTimestamp !== undefined && object.settlementTimestamp !== null ? BigInt(object.settlementTimestamp.toString()) : BigInt(0);
2210
+ message.admin = object.admin ?? "";
2211
+ message.quoteDenom = object.quoteDenom ?? "";
2212
+ message.makerFeeRate = object.makerFeeRate ?? "";
2213
+ message.takerFeeRate = object.takerFeeRate ?? "";
2214
+ message.minPriceTickSize = object.minPriceTickSize ?? "";
2215
+ message.minQuantityTickSize = object.minQuantityTickSize ?? "";
2216
+ message.minNotional = object.minNotional ?? "";
2217
+ message.adminPermissions = object.adminPermissions ?? 0;
2218
+ return message;
2219
+ },
2220
+ fromAmino(object: BinaryOptionsMarketLaunchProposalAmino): BinaryOptionsMarketLaunchProposal {
2221
+ const message = createBaseBinaryOptionsMarketLaunchProposal();
2222
+ if (object.title !== undefined && object.title !== null) {
2223
+ message.title = object.title;
2224
+ }
2225
+ if (object.description !== undefined && object.description !== null) {
2226
+ message.description = object.description;
2227
+ }
2228
+ if (object.ticker !== undefined && object.ticker !== null) {
2229
+ message.ticker = object.ticker;
2230
+ }
2231
+ if (object.oracle_symbol !== undefined && object.oracle_symbol !== null) {
2232
+ message.oracleSymbol = object.oracle_symbol;
2233
+ }
2234
+ if (object.oracle_provider !== undefined && object.oracle_provider !== null) {
2235
+ message.oracleProvider = object.oracle_provider;
2236
+ }
2237
+ if (object.oracle_type !== undefined && object.oracle_type !== null) {
2238
+ message.oracleType = object.oracle_type;
2239
+ }
2240
+ if (object.oracle_scale_factor !== undefined && object.oracle_scale_factor !== null) {
2241
+ message.oracleScaleFactor = object.oracle_scale_factor;
2242
+ }
2243
+ if (object.expiration_timestamp !== undefined && object.expiration_timestamp !== null) {
2244
+ message.expirationTimestamp = BigInt(object.expiration_timestamp);
2245
+ }
2246
+ if (object.settlement_timestamp !== undefined && object.settlement_timestamp !== null) {
2247
+ message.settlementTimestamp = BigInt(object.settlement_timestamp);
2248
+ }
2249
+ if (object.admin !== undefined && object.admin !== null) {
2250
+ message.admin = object.admin;
2251
+ }
2252
+ if (object.quote_denom !== undefined && object.quote_denom !== null) {
2253
+ message.quoteDenom = object.quote_denom;
2254
+ }
2255
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
2256
+ message.makerFeeRate = object.maker_fee_rate;
2257
+ }
2258
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
2259
+ message.takerFeeRate = object.taker_fee_rate;
2260
+ }
2261
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
2262
+ message.minPriceTickSize = object.min_price_tick_size;
2263
+ }
2264
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
2265
+ message.minQuantityTickSize = object.min_quantity_tick_size;
2266
+ }
2267
+ if (object.min_notional !== undefined && object.min_notional !== null) {
2268
+ message.minNotional = object.min_notional;
2269
+ }
2270
+ if (object.admin_permissions !== undefined && object.admin_permissions !== null) {
2271
+ message.adminPermissions = object.admin_permissions;
2272
+ }
2273
+ return message;
2274
+ },
2275
+ toAmino(message: BinaryOptionsMarketLaunchProposal): BinaryOptionsMarketLaunchProposalAmino {
2276
+ const obj: any = {};
2277
+ obj.title = message.title === "" ? undefined : message.title;
2278
+ obj.description = message.description === "" ? undefined : message.description;
2279
+ obj.ticker = message.ticker === "" ? undefined : message.ticker;
2280
+ obj.oracle_symbol = message.oracleSymbol === "" ? undefined : message.oracleSymbol;
2281
+ obj.oracle_provider = message.oracleProvider === "" ? undefined : message.oracleProvider;
2282
+ obj.oracle_type = message.oracleType === 0 ? undefined : message.oracleType;
2283
+ obj.oracle_scale_factor = message.oracleScaleFactor === 0 ? undefined : message.oracleScaleFactor;
2284
+ obj.expiration_timestamp = message.expirationTimestamp !== BigInt(0) ? message.expirationTimestamp?.toString() : undefined;
2285
+ obj.settlement_timestamp = message.settlementTimestamp !== BigInt(0) ? message.settlementTimestamp?.toString() : undefined;
2286
+ obj.admin = message.admin === "" ? undefined : message.admin;
2287
+ obj.quote_denom = message.quoteDenom === "" ? undefined : message.quoteDenom;
2288
+ obj.maker_fee_rate = message.makerFeeRate === "" ? undefined : message.makerFeeRate;
2289
+ obj.taker_fee_rate = message.takerFeeRate === "" ? undefined : message.takerFeeRate;
2290
+ obj.min_price_tick_size = message.minPriceTickSize === "" ? undefined : message.minPriceTickSize;
2291
+ obj.min_quantity_tick_size = message.minQuantityTickSize === "" ? undefined : message.minQuantityTickSize;
2292
+ obj.min_notional = message.minNotional === "" ? undefined : message.minNotional;
2293
+ obj.admin_permissions = message.adminPermissions === 0 ? undefined : message.adminPermissions;
2294
+ return obj;
2295
+ },
2296
+ fromAminoMsg(object: BinaryOptionsMarketLaunchProposalAminoMsg): BinaryOptionsMarketLaunchProposal {
2297
+ return BinaryOptionsMarketLaunchProposal.fromAmino(object.value);
2298
+ },
2299
+ toAminoMsg(message: BinaryOptionsMarketLaunchProposal): BinaryOptionsMarketLaunchProposalAminoMsg {
2300
+ return {
2301
+ type: "exchange/BinaryOptionsMarketLaunchProposal",
2302
+ value: BinaryOptionsMarketLaunchProposal.toAmino(message)
2303
+ };
2304
+ },
2305
+ fromProtoMsg(message: BinaryOptionsMarketLaunchProposalProtoMsg): BinaryOptionsMarketLaunchProposal {
2306
+ return BinaryOptionsMarketLaunchProposal.decode(message.value);
2307
+ },
2308
+ toProto(message: BinaryOptionsMarketLaunchProposal): Uint8Array {
2309
+ return BinaryOptionsMarketLaunchProposal.encode(message).finish();
2310
+ },
2311
+ toProtoMsg(message: BinaryOptionsMarketLaunchProposal): BinaryOptionsMarketLaunchProposalProtoMsg {
2312
+ return {
2313
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal",
2314
+ value: BinaryOptionsMarketLaunchProposal.encode(message).finish()
2315
+ };
2316
+ }
2317
+ };
2318
+ GlobalDecoderRegistry.register(BinaryOptionsMarketLaunchProposal.typeUrl, BinaryOptionsMarketLaunchProposal);
2319
+ GlobalDecoderRegistry.registerAminoProtoMapping(BinaryOptionsMarketLaunchProposal.aminoType, BinaryOptionsMarketLaunchProposal.typeUrl);
2320
+ function createBaseExpiryFuturesMarketLaunchProposal(): ExpiryFuturesMarketLaunchProposal {
2321
+ return {
2322
+ title: "",
2323
+ description: "",
2324
+ ticker: "",
2325
+ quoteDenom: "",
2326
+ oracleBase: "",
2327
+ oracleQuote: "",
2328
+ oracleScaleFactor: 0,
2329
+ oracleType: 0,
2330
+ expiry: BigInt(0),
2331
+ initialMarginRatio: "",
2332
+ maintenanceMarginRatio: "",
2333
+ makerFeeRate: "",
2334
+ takerFeeRate: "",
2335
+ minPriceTickSize: "",
2336
+ minQuantityTickSize: "",
2337
+ minNotional: "",
2338
+ adminInfo: undefined
2339
+ };
2340
+ }
2341
+ export const ExpiryFuturesMarketLaunchProposal = {
2342
+ typeUrl: "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal",
2343
+ aminoType: "exchange/ExpiryFuturesMarketLaunchProposal",
2344
+ is(o: any): o is ExpiryFuturesMarketLaunchProposal {
2345
+ return o && (o.$typeUrl === ExpiryFuturesMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.quoteDenom === "string" && typeof o.oracleBase === "string" && typeof o.oracleQuote === "string" && typeof o.oracleScaleFactor === "number" && isSet(o.oracleType) && typeof o.expiry === "bigint" && typeof o.initialMarginRatio === "string" && typeof o.maintenanceMarginRatio === "string" && typeof o.makerFeeRate === "string" && typeof o.takerFeeRate === "string" && typeof o.minPriceTickSize === "string" && typeof o.minQuantityTickSize === "string" && typeof o.minNotional === "string");
2346
+ },
2347
+ isAmino(o: any): o is ExpiryFuturesMarketLaunchProposalAmino {
2348
+ return o && (o.$typeUrl === ExpiryFuturesMarketLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.ticker === "string" && typeof o.quote_denom === "string" && typeof o.oracle_base === "string" && typeof o.oracle_quote === "string" && typeof o.oracle_scale_factor === "number" && isSet(o.oracle_type) && typeof o.expiry === "bigint" && typeof o.initial_margin_ratio === "string" && typeof o.maintenance_margin_ratio === "string" && typeof o.maker_fee_rate === "string" && typeof o.taker_fee_rate === "string" && typeof o.min_price_tick_size === "string" && typeof o.min_quantity_tick_size === "string" && typeof o.min_notional === "string");
2349
+ },
2350
+ encode(message: ExpiryFuturesMarketLaunchProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2351
+ if (message.title !== "") {
2352
+ writer.uint32(10).string(message.title);
2353
+ }
2354
+ if (message.description !== "") {
2355
+ writer.uint32(18).string(message.description);
2356
+ }
2357
+ if (message.ticker !== "") {
2358
+ writer.uint32(26).string(message.ticker);
2359
+ }
2360
+ if (message.quoteDenom !== "") {
2361
+ writer.uint32(34).string(message.quoteDenom);
2362
+ }
2363
+ if (message.oracleBase !== "") {
2364
+ writer.uint32(42).string(message.oracleBase);
2365
+ }
2366
+ if (message.oracleQuote !== "") {
2367
+ writer.uint32(50).string(message.oracleQuote);
2368
+ }
2369
+ if (message.oracleScaleFactor !== 0) {
2370
+ writer.uint32(56).uint32(message.oracleScaleFactor);
2371
+ }
2372
+ if (message.oracleType !== 0) {
2373
+ writer.uint32(64).int32(message.oracleType);
2374
+ }
2375
+ if (message.expiry !== BigInt(0)) {
2376
+ writer.uint32(72).int64(message.expiry);
2377
+ }
2378
+ if (message.initialMarginRatio !== "") {
2379
+ writer.uint32(82).string(message.initialMarginRatio);
2380
+ }
2381
+ if (message.maintenanceMarginRatio !== "") {
2382
+ writer.uint32(90).string(message.maintenanceMarginRatio);
2383
+ }
2384
+ if (message.makerFeeRate !== "") {
2385
+ writer.uint32(98).string(message.makerFeeRate);
2386
+ }
2387
+ if (message.takerFeeRate !== "") {
2388
+ writer.uint32(106).string(message.takerFeeRate);
2389
+ }
2390
+ if (message.minPriceTickSize !== "") {
2391
+ writer.uint32(114).string(message.minPriceTickSize);
2392
+ }
2393
+ if (message.minQuantityTickSize !== "") {
2394
+ writer.uint32(122).string(message.minQuantityTickSize);
2395
+ }
2396
+ if (message.minNotional !== "") {
2397
+ writer.uint32(130).string(message.minNotional);
2398
+ }
2399
+ if (message.adminInfo !== undefined) {
2400
+ AdminInfo.encode(message.adminInfo, writer.uint32(138).fork()).ldelim();
2401
+ }
2402
+ return writer;
2403
+ },
2404
+ decode(input: BinaryReader | Uint8Array, length?: number): ExpiryFuturesMarketLaunchProposal {
2405
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2406
+ let end = length === undefined ? reader.len : reader.pos + length;
2407
+ const message = createBaseExpiryFuturesMarketLaunchProposal();
2408
+ while (reader.pos < end) {
2409
+ const tag = reader.uint32();
2410
+ switch (tag >>> 3) {
2411
+ case 1:
2412
+ message.title = reader.string();
2413
+ break;
2414
+ case 2:
2415
+ message.description = reader.string();
2416
+ break;
2417
+ case 3:
2418
+ message.ticker = reader.string();
2419
+ break;
2420
+ case 4:
2421
+ message.quoteDenom = reader.string();
2422
+ break;
2423
+ case 5:
2424
+ message.oracleBase = reader.string();
2425
+ break;
2426
+ case 6:
2427
+ message.oracleQuote = reader.string();
2428
+ break;
2429
+ case 7:
2430
+ message.oracleScaleFactor = reader.uint32();
2431
+ break;
2432
+ case 8:
2433
+ message.oracleType = (reader.int32() as any);
2434
+ break;
2435
+ case 9:
2436
+ message.expiry = reader.int64();
2437
+ break;
2438
+ case 10:
2439
+ message.initialMarginRatio = reader.string();
2440
+ break;
2441
+ case 11:
2442
+ message.maintenanceMarginRatio = reader.string();
2443
+ break;
2444
+ case 12:
2445
+ message.makerFeeRate = reader.string();
2446
+ break;
2447
+ case 13:
2448
+ message.takerFeeRate = reader.string();
2449
+ break;
2450
+ case 14:
2451
+ message.minPriceTickSize = reader.string();
2452
+ break;
2453
+ case 15:
2454
+ message.minQuantityTickSize = reader.string();
2455
+ break;
2456
+ case 16:
2457
+ message.minNotional = reader.string();
2458
+ break;
2459
+ case 17:
2460
+ message.adminInfo = AdminInfo.decode(reader, reader.uint32());
2461
+ break;
2462
+ default:
2463
+ reader.skipType(tag & 7);
2464
+ break;
2465
+ }
2466
+ }
2467
+ return message;
2468
+ },
2469
+ fromPartial(object: DeepPartial<ExpiryFuturesMarketLaunchProposal>): ExpiryFuturesMarketLaunchProposal {
2470
+ const message = createBaseExpiryFuturesMarketLaunchProposal();
2471
+ message.title = object.title ?? "";
2472
+ message.description = object.description ?? "";
2473
+ message.ticker = object.ticker ?? "";
2474
+ message.quoteDenom = object.quoteDenom ?? "";
2475
+ message.oracleBase = object.oracleBase ?? "";
2476
+ message.oracleQuote = object.oracleQuote ?? "";
2477
+ message.oracleScaleFactor = object.oracleScaleFactor ?? 0;
2478
+ message.oracleType = object.oracleType ?? 0;
2479
+ message.expiry = object.expiry !== undefined && object.expiry !== null ? BigInt(object.expiry.toString()) : BigInt(0);
2480
+ message.initialMarginRatio = object.initialMarginRatio ?? "";
2481
+ message.maintenanceMarginRatio = object.maintenanceMarginRatio ?? "";
2482
+ message.makerFeeRate = object.makerFeeRate ?? "";
2483
+ message.takerFeeRate = object.takerFeeRate ?? "";
2484
+ message.minPriceTickSize = object.minPriceTickSize ?? "";
2485
+ message.minQuantityTickSize = object.minQuantityTickSize ?? "";
2486
+ message.minNotional = object.minNotional ?? "";
2487
+ message.adminInfo = object.adminInfo !== undefined && object.adminInfo !== null ? AdminInfo.fromPartial(object.adminInfo) : undefined;
2488
+ return message;
2489
+ },
2490
+ fromAmino(object: ExpiryFuturesMarketLaunchProposalAmino): ExpiryFuturesMarketLaunchProposal {
2491
+ const message = createBaseExpiryFuturesMarketLaunchProposal();
2492
+ if (object.title !== undefined && object.title !== null) {
2493
+ message.title = object.title;
2494
+ }
2495
+ if (object.description !== undefined && object.description !== null) {
2496
+ message.description = object.description;
2497
+ }
2498
+ if (object.ticker !== undefined && object.ticker !== null) {
2499
+ message.ticker = object.ticker;
2500
+ }
2501
+ if (object.quote_denom !== undefined && object.quote_denom !== null) {
2502
+ message.quoteDenom = object.quote_denom;
2503
+ }
2504
+ if (object.oracle_base !== undefined && object.oracle_base !== null) {
2505
+ message.oracleBase = object.oracle_base;
2506
+ }
2507
+ if (object.oracle_quote !== undefined && object.oracle_quote !== null) {
2508
+ message.oracleQuote = object.oracle_quote;
2509
+ }
2510
+ if (object.oracle_scale_factor !== undefined && object.oracle_scale_factor !== null) {
2511
+ message.oracleScaleFactor = object.oracle_scale_factor;
2512
+ }
2513
+ if (object.oracle_type !== undefined && object.oracle_type !== null) {
2514
+ message.oracleType = object.oracle_type;
2515
+ }
2516
+ if (object.expiry !== undefined && object.expiry !== null) {
2517
+ message.expiry = BigInt(object.expiry);
2518
+ }
2519
+ if (object.initial_margin_ratio !== undefined && object.initial_margin_ratio !== null) {
2520
+ message.initialMarginRatio = object.initial_margin_ratio;
2521
+ }
2522
+ if (object.maintenance_margin_ratio !== undefined && object.maintenance_margin_ratio !== null) {
2523
+ message.maintenanceMarginRatio = object.maintenance_margin_ratio;
2524
+ }
2525
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
2526
+ message.makerFeeRate = object.maker_fee_rate;
2527
+ }
2528
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
2529
+ message.takerFeeRate = object.taker_fee_rate;
2530
+ }
2531
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
2532
+ message.minPriceTickSize = object.min_price_tick_size;
2533
+ }
2534
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
2535
+ message.minQuantityTickSize = object.min_quantity_tick_size;
2536
+ }
2537
+ if (object.min_notional !== undefined && object.min_notional !== null) {
2538
+ message.minNotional = object.min_notional;
2539
+ }
2540
+ if (object.admin_info !== undefined && object.admin_info !== null) {
2541
+ message.adminInfo = AdminInfo.fromAmino(object.admin_info);
2542
+ }
2543
+ return message;
2544
+ },
2545
+ toAmino(message: ExpiryFuturesMarketLaunchProposal): ExpiryFuturesMarketLaunchProposalAmino {
2546
+ const obj: any = {};
2547
+ obj.title = message.title === "" ? undefined : message.title;
2548
+ obj.description = message.description === "" ? undefined : message.description;
2549
+ obj.ticker = message.ticker === "" ? undefined : message.ticker;
2550
+ obj.quote_denom = message.quoteDenom === "" ? undefined : message.quoteDenom;
2551
+ obj.oracle_base = message.oracleBase === "" ? undefined : message.oracleBase;
2552
+ obj.oracle_quote = message.oracleQuote === "" ? undefined : message.oracleQuote;
2553
+ obj.oracle_scale_factor = message.oracleScaleFactor === 0 ? undefined : message.oracleScaleFactor;
2554
+ obj.oracle_type = message.oracleType === 0 ? undefined : message.oracleType;
2555
+ obj.expiry = message.expiry !== BigInt(0) ? message.expiry?.toString() : undefined;
2556
+ obj.initial_margin_ratio = message.initialMarginRatio === "" ? undefined : message.initialMarginRatio;
2557
+ obj.maintenance_margin_ratio = message.maintenanceMarginRatio === "" ? undefined : message.maintenanceMarginRatio;
2558
+ obj.maker_fee_rate = message.makerFeeRate === "" ? undefined : message.makerFeeRate;
2559
+ obj.taker_fee_rate = message.takerFeeRate === "" ? undefined : message.takerFeeRate;
2560
+ obj.min_price_tick_size = message.minPriceTickSize === "" ? undefined : message.minPriceTickSize;
2561
+ obj.min_quantity_tick_size = message.minQuantityTickSize === "" ? undefined : message.minQuantityTickSize;
2562
+ obj.min_notional = message.minNotional === "" ? undefined : message.minNotional;
2563
+ obj.admin_info = message.adminInfo ? AdminInfo.toAmino(message.adminInfo) : undefined;
2564
+ return obj;
2565
+ },
2566
+ fromAminoMsg(object: ExpiryFuturesMarketLaunchProposalAminoMsg): ExpiryFuturesMarketLaunchProposal {
2567
+ return ExpiryFuturesMarketLaunchProposal.fromAmino(object.value);
2568
+ },
2569
+ toAminoMsg(message: ExpiryFuturesMarketLaunchProposal): ExpiryFuturesMarketLaunchProposalAminoMsg {
2570
+ return {
2571
+ type: "exchange/ExpiryFuturesMarketLaunchProposal",
2572
+ value: ExpiryFuturesMarketLaunchProposal.toAmino(message)
2573
+ };
2574
+ },
2575
+ fromProtoMsg(message: ExpiryFuturesMarketLaunchProposalProtoMsg): ExpiryFuturesMarketLaunchProposal {
2576
+ return ExpiryFuturesMarketLaunchProposal.decode(message.value);
2577
+ },
2578
+ toProto(message: ExpiryFuturesMarketLaunchProposal): Uint8Array {
2579
+ return ExpiryFuturesMarketLaunchProposal.encode(message).finish();
2580
+ },
2581
+ toProtoMsg(message: ExpiryFuturesMarketLaunchProposal): ExpiryFuturesMarketLaunchProposalProtoMsg {
2582
+ return {
2583
+ typeUrl: "/injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal",
2584
+ value: ExpiryFuturesMarketLaunchProposal.encode(message).finish()
2585
+ };
2586
+ }
2587
+ };
2588
+ GlobalDecoderRegistry.register(ExpiryFuturesMarketLaunchProposal.typeUrl, ExpiryFuturesMarketLaunchProposal);
2589
+ GlobalDecoderRegistry.registerAminoProtoMapping(ExpiryFuturesMarketLaunchProposal.aminoType, ExpiryFuturesMarketLaunchProposal.typeUrl);
2590
+ function createBaseDerivativeMarketParamUpdateProposal(): DerivativeMarketParamUpdateProposal {
2591
+ return {
2592
+ title: "",
2593
+ description: "",
2594
+ marketId: "",
2595
+ initialMarginRatio: undefined,
2596
+ maintenanceMarginRatio: undefined,
2597
+ makerFeeRate: undefined,
2598
+ takerFeeRate: undefined,
2599
+ relayerFeeShareRate: undefined,
2600
+ minPriceTickSize: undefined,
2601
+ minQuantityTickSize: undefined,
2602
+ hourlyInterestRate: undefined,
2603
+ hourlyFundingRateCap: undefined,
2604
+ status: 0,
2605
+ oracleParams: undefined,
2606
+ ticker: undefined,
2607
+ minNotional: undefined,
2608
+ adminInfo: undefined
2609
+ };
2610
+ }
2611
+ export const DerivativeMarketParamUpdateProposal = {
2612
+ typeUrl: "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal",
2613
+ aminoType: "exchange/DerivativeMarketParamUpdateProposal",
2614
+ is(o: any): o is DerivativeMarketParamUpdateProposal {
2615
+ return o && (o.$typeUrl === DerivativeMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.marketId === "string" && isSet(o.status));
2616
+ },
2617
+ isAmino(o: any): o is DerivativeMarketParamUpdateProposalAmino {
2618
+ return o && (o.$typeUrl === DerivativeMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.market_id === "string" && isSet(o.status));
2619
+ },
2620
+ encode(message: DerivativeMarketParamUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2621
+ if (message.title !== "") {
2622
+ writer.uint32(10).string(message.title);
2623
+ }
2624
+ if (message.description !== "") {
2625
+ writer.uint32(18).string(message.description);
2626
+ }
2627
+ if (message.marketId !== "") {
2628
+ writer.uint32(26).string(message.marketId);
2629
+ }
2630
+ if (message.initialMarginRatio !== undefined) {
2631
+ writer.uint32(34).string(message.initialMarginRatio);
2632
+ }
2633
+ if (message.maintenanceMarginRatio !== undefined) {
2634
+ writer.uint32(42).string(message.maintenanceMarginRatio);
2635
+ }
2636
+ if (message.makerFeeRate !== undefined) {
2637
+ writer.uint32(50).string(message.makerFeeRate);
2638
+ }
2639
+ if (message.takerFeeRate !== undefined) {
2640
+ writer.uint32(58).string(message.takerFeeRate);
2641
+ }
2642
+ if (message.relayerFeeShareRate !== undefined) {
2643
+ writer.uint32(66).string(message.relayerFeeShareRate);
2644
+ }
2645
+ if (message.minPriceTickSize !== undefined) {
2646
+ writer.uint32(74).string(message.minPriceTickSize);
2647
+ }
2648
+ if (message.minQuantityTickSize !== undefined) {
2649
+ writer.uint32(82).string(message.minQuantityTickSize);
2650
+ }
2651
+ if (message.hourlyInterestRate !== undefined) {
2652
+ writer.uint32(90).string(message.hourlyInterestRate);
2653
+ }
2654
+ if (message.hourlyFundingRateCap !== undefined) {
2655
+ writer.uint32(98).string(message.hourlyFundingRateCap);
2656
+ }
2657
+ if (message.status !== 0) {
2658
+ writer.uint32(104).int32(message.status);
2659
+ }
2660
+ if (message.oracleParams !== undefined) {
2661
+ OracleParams.encode(message.oracleParams, writer.uint32(114).fork()).ldelim();
2662
+ }
2663
+ if (message.ticker !== undefined) {
2664
+ writer.uint32(122).string(message.ticker);
2665
+ }
2666
+ if (message.minNotional !== undefined) {
2667
+ writer.uint32(130).string(message.minNotional);
2668
+ }
2669
+ if (message.adminInfo !== undefined) {
2670
+ AdminInfo.encode(message.adminInfo, writer.uint32(138).fork()).ldelim();
2671
+ }
2672
+ return writer;
2673
+ },
2674
+ decode(input: BinaryReader | Uint8Array, length?: number): DerivativeMarketParamUpdateProposal {
2675
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2676
+ let end = length === undefined ? reader.len : reader.pos + length;
2677
+ const message = createBaseDerivativeMarketParamUpdateProposal();
2678
+ while (reader.pos < end) {
2679
+ const tag = reader.uint32();
2680
+ switch (tag >>> 3) {
2681
+ case 1:
2682
+ message.title = reader.string();
2683
+ break;
2684
+ case 2:
2685
+ message.description = reader.string();
2686
+ break;
2687
+ case 3:
2688
+ message.marketId = reader.string();
2689
+ break;
2690
+ case 4:
2691
+ message.initialMarginRatio = reader.string();
2692
+ break;
2693
+ case 5:
2694
+ message.maintenanceMarginRatio = reader.string();
2695
+ break;
2696
+ case 6:
2697
+ message.makerFeeRate = reader.string();
2698
+ break;
2699
+ case 7:
2700
+ message.takerFeeRate = reader.string();
2701
+ break;
2702
+ case 8:
2703
+ message.relayerFeeShareRate = reader.string();
2704
+ break;
2705
+ case 9:
2706
+ message.minPriceTickSize = reader.string();
2707
+ break;
2708
+ case 10:
2709
+ message.minQuantityTickSize = reader.string();
2710
+ break;
2711
+ case 11:
2712
+ message.hourlyInterestRate = reader.string();
2713
+ break;
2714
+ case 12:
2715
+ message.hourlyFundingRateCap = reader.string();
2716
+ break;
2717
+ case 13:
2718
+ message.status = (reader.int32() as any);
2719
+ break;
2720
+ case 14:
2721
+ message.oracleParams = OracleParams.decode(reader, reader.uint32());
2722
+ break;
2723
+ case 15:
2724
+ message.ticker = reader.string();
2725
+ break;
2726
+ case 16:
2727
+ message.minNotional = reader.string();
2728
+ break;
2729
+ case 17:
2730
+ message.adminInfo = AdminInfo.decode(reader, reader.uint32());
2731
+ break;
2732
+ default:
2733
+ reader.skipType(tag & 7);
2734
+ break;
2735
+ }
2736
+ }
2737
+ return message;
2738
+ },
2739
+ fromPartial(object: DeepPartial<DerivativeMarketParamUpdateProposal>): DerivativeMarketParamUpdateProposal {
2740
+ const message = createBaseDerivativeMarketParamUpdateProposal();
2741
+ message.title = object.title ?? "";
2742
+ message.description = object.description ?? "";
2743
+ message.marketId = object.marketId ?? "";
2744
+ message.initialMarginRatio = object.initialMarginRatio ?? undefined;
2745
+ message.maintenanceMarginRatio = object.maintenanceMarginRatio ?? undefined;
2746
+ message.makerFeeRate = object.makerFeeRate ?? undefined;
2747
+ message.takerFeeRate = object.takerFeeRate ?? undefined;
2748
+ message.relayerFeeShareRate = object.relayerFeeShareRate ?? undefined;
2749
+ message.minPriceTickSize = object.minPriceTickSize ?? undefined;
2750
+ message.minQuantityTickSize = object.minQuantityTickSize ?? undefined;
2751
+ message.hourlyInterestRate = object.hourlyInterestRate ?? undefined;
2752
+ message.hourlyFundingRateCap = object.hourlyFundingRateCap ?? undefined;
2753
+ message.status = object.status ?? 0;
2754
+ message.oracleParams = object.oracleParams !== undefined && object.oracleParams !== null ? OracleParams.fromPartial(object.oracleParams) : undefined;
2755
+ message.ticker = object.ticker ?? undefined;
2756
+ message.minNotional = object.minNotional ?? undefined;
2757
+ message.adminInfo = object.adminInfo !== undefined && object.adminInfo !== null ? AdminInfo.fromPartial(object.adminInfo) : undefined;
2758
+ return message;
2759
+ },
2760
+ fromAmino(object: DerivativeMarketParamUpdateProposalAmino): DerivativeMarketParamUpdateProposal {
2761
+ const message = createBaseDerivativeMarketParamUpdateProposal();
2762
+ if (object.title !== undefined && object.title !== null) {
2763
+ message.title = object.title;
2764
+ }
2765
+ if (object.description !== undefined && object.description !== null) {
2766
+ message.description = object.description;
2767
+ }
2768
+ if (object.market_id !== undefined && object.market_id !== null) {
2769
+ message.marketId = object.market_id;
2770
+ }
2771
+ if (object.initial_margin_ratio !== undefined && object.initial_margin_ratio !== null) {
2772
+ message.initialMarginRatio = object.initial_margin_ratio;
2773
+ }
2774
+ if (object.maintenance_margin_ratio !== undefined && object.maintenance_margin_ratio !== null) {
2775
+ message.maintenanceMarginRatio = object.maintenance_margin_ratio;
2776
+ }
2777
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
2778
+ message.makerFeeRate = object.maker_fee_rate;
2779
+ }
2780
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
2781
+ message.takerFeeRate = object.taker_fee_rate;
2782
+ }
2783
+ if (object.relayer_fee_share_rate !== undefined && object.relayer_fee_share_rate !== null) {
2784
+ message.relayerFeeShareRate = object.relayer_fee_share_rate;
2785
+ }
2786
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
2787
+ message.minPriceTickSize = object.min_price_tick_size;
2788
+ }
2789
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
2790
+ message.minQuantityTickSize = object.min_quantity_tick_size;
2791
+ }
2792
+ if (object.HourlyInterestRate !== undefined && object.HourlyInterestRate !== null) {
2793
+ message.hourlyInterestRate = object.HourlyInterestRate;
2794
+ }
2795
+ if (object.HourlyFundingRateCap !== undefined && object.HourlyFundingRateCap !== null) {
2796
+ message.hourlyFundingRateCap = object.HourlyFundingRateCap;
2797
+ }
2798
+ if (object.status !== undefined && object.status !== null) {
2799
+ message.status = object.status;
2800
+ }
2801
+ if (object.oracle_params !== undefined && object.oracle_params !== null) {
2802
+ message.oracleParams = OracleParams.fromAmino(object.oracle_params);
2803
+ }
2804
+ if (object.ticker !== undefined && object.ticker !== null) {
2805
+ message.ticker = object.ticker;
2806
+ }
2807
+ if (object.min_notional !== undefined && object.min_notional !== null) {
2808
+ message.minNotional = object.min_notional;
2809
+ }
2810
+ if (object.admin_info !== undefined && object.admin_info !== null) {
2811
+ message.adminInfo = AdminInfo.fromAmino(object.admin_info);
2812
+ }
2813
+ return message;
2814
+ },
2815
+ toAmino(message: DerivativeMarketParamUpdateProposal): DerivativeMarketParamUpdateProposalAmino {
2816
+ const obj: any = {};
2817
+ obj.title = message.title === "" ? undefined : message.title;
2818
+ obj.description = message.description === "" ? undefined : message.description;
2819
+ obj.market_id = message.marketId === "" ? undefined : message.marketId;
2820
+ obj.initial_margin_ratio = message.initialMarginRatio === null ? undefined : message.initialMarginRatio;
2821
+ obj.maintenance_margin_ratio = message.maintenanceMarginRatio === null ? undefined : message.maintenanceMarginRatio;
2822
+ obj.maker_fee_rate = message.makerFeeRate === null ? undefined : message.makerFeeRate;
2823
+ obj.taker_fee_rate = message.takerFeeRate === null ? undefined : message.takerFeeRate;
2824
+ obj.relayer_fee_share_rate = message.relayerFeeShareRate === null ? undefined : message.relayerFeeShareRate;
2825
+ obj.min_price_tick_size = message.minPriceTickSize === null ? undefined : message.minPriceTickSize;
2826
+ obj.min_quantity_tick_size = message.minQuantityTickSize === null ? undefined : message.minQuantityTickSize;
2827
+ obj.HourlyInterestRate = message.hourlyInterestRate === null ? undefined : message.hourlyInterestRate;
2828
+ obj.HourlyFundingRateCap = message.hourlyFundingRateCap === null ? undefined : message.hourlyFundingRateCap;
2829
+ obj.status = message.status === 0 ? undefined : message.status;
2830
+ obj.oracle_params = message.oracleParams ? OracleParams.toAmino(message.oracleParams) : undefined;
2831
+ obj.ticker = message.ticker === null ? undefined : message.ticker;
2832
+ obj.min_notional = message.minNotional === null ? undefined : message.minNotional;
2833
+ obj.admin_info = message.adminInfo ? AdminInfo.toAmino(message.adminInfo) : undefined;
2834
+ return obj;
2835
+ },
2836
+ fromAminoMsg(object: DerivativeMarketParamUpdateProposalAminoMsg): DerivativeMarketParamUpdateProposal {
2837
+ return DerivativeMarketParamUpdateProposal.fromAmino(object.value);
2838
+ },
2839
+ toAminoMsg(message: DerivativeMarketParamUpdateProposal): DerivativeMarketParamUpdateProposalAminoMsg {
2840
+ return {
2841
+ type: "exchange/DerivativeMarketParamUpdateProposal",
2842
+ value: DerivativeMarketParamUpdateProposal.toAmino(message)
2843
+ };
2844
+ },
2845
+ fromProtoMsg(message: DerivativeMarketParamUpdateProposalProtoMsg): DerivativeMarketParamUpdateProposal {
2846
+ return DerivativeMarketParamUpdateProposal.decode(message.value);
2847
+ },
2848
+ toProto(message: DerivativeMarketParamUpdateProposal): Uint8Array {
2849
+ return DerivativeMarketParamUpdateProposal.encode(message).finish();
2850
+ },
2851
+ toProtoMsg(message: DerivativeMarketParamUpdateProposal): DerivativeMarketParamUpdateProposalProtoMsg {
2852
+ return {
2853
+ typeUrl: "/injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal",
2854
+ value: DerivativeMarketParamUpdateProposal.encode(message).finish()
2855
+ };
2856
+ }
2857
+ };
2858
+ GlobalDecoderRegistry.register(DerivativeMarketParamUpdateProposal.typeUrl, DerivativeMarketParamUpdateProposal);
2859
+ GlobalDecoderRegistry.registerAminoProtoMapping(DerivativeMarketParamUpdateProposal.aminoType, DerivativeMarketParamUpdateProposal.typeUrl);
2860
+ function createBaseAdminInfo(): AdminInfo {
2861
+ return {
2862
+ admin: "",
2863
+ adminPermissions: 0
2864
+ };
2865
+ }
2866
+ export const AdminInfo = {
2867
+ typeUrl: "/injective.exchange.v1beta1.AdminInfo",
2868
+ is(o: any): o is AdminInfo {
2869
+ return o && (o.$typeUrl === AdminInfo.typeUrl || typeof o.admin === "string" && typeof o.adminPermissions === "number");
2870
+ },
2871
+ isAmino(o: any): o is AdminInfoAmino {
2872
+ return o && (o.$typeUrl === AdminInfo.typeUrl || typeof o.admin === "string" && typeof o.admin_permissions === "number");
2873
+ },
2874
+ encode(message: AdminInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2875
+ if (message.admin !== "") {
2876
+ writer.uint32(10).string(message.admin);
2877
+ }
2878
+ if (message.adminPermissions !== 0) {
2879
+ writer.uint32(16).uint32(message.adminPermissions);
2880
+ }
2881
+ return writer;
2882
+ },
2883
+ decode(input: BinaryReader | Uint8Array, length?: number): AdminInfo {
2884
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2885
+ let end = length === undefined ? reader.len : reader.pos + length;
2886
+ const message = createBaseAdminInfo();
2887
+ while (reader.pos < end) {
2888
+ const tag = reader.uint32();
2889
+ switch (tag >>> 3) {
2890
+ case 1:
2891
+ message.admin = reader.string();
2892
+ break;
2893
+ case 2:
2894
+ message.adminPermissions = reader.uint32();
2895
+ break;
2896
+ default:
2897
+ reader.skipType(tag & 7);
2898
+ break;
2899
+ }
2900
+ }
2901
+ return message;
2902
+ },
2903
+ fromPartial(object: DeepPartial<AdminInfo>): AdminInfo {
2904
+ const message = createBaseAdminInfo();
2905
+ message.admin = object.admin ?? "";
2906
+ message.adminPermissions = object.adminPermissions ?? 0;
2907
+ return message;
2908
+ },
2909
+ fromAmino(object: AdminInfoAmino): AdminInfo {
2910
+ const message = createBaseAdminInfo();
2911
+ if (object.admin !== undefined && object.admin !== null) {
2912
+ message.admin = object.admin;
2913
+ }
2914
+ if (object.admin_permissions !== undefined && object.admin_permissions !== null) {
2915
+ message.adminPermissions = object.admin_permissions;
2916
+ }
2917
+ return message;
2918
+ },
2919
+ toAmino(message: AdminInfo): AdminInfoAmino {
2920
+ const obj: any = {};
2921
+ obj.admin = message.admin === "" ? undefined : message.admin;
2922
+ obj.admin_permissions = message.adminPermissions === 0 ? undefined : message.adminPermissions;
2923
+ return obj;
2924
+ },
2925
+ fromAminoMsg(object: AdminInfoAminoMsg): AdminInfo {
2926
+ return AdminInfo.fromAmino(object.value);
2927
+ },
2928
+ fromProtoMsg(message: AdminInfoProtoMsg): AdminInfo {
2929
+ return AdminInfo.decode(message.value);
2930
+ },
2931
+ toProto(message: AdminInfo): Uint8Array {
2932
+ return AdminInfo.encode(message).finish();
2933
+ },
2934
+ toProtoMsg(message: AdminInfo): AdminInfoProtoMsg {
2935
+ return {
2936
+ typeUrl: "/injective.exchange.v1beta1.AdminInfo",
2937
+ value: AdminInfo.encode(message).finish()
2938
+ };
2939
+ }
2940
+ };
2941
+ GlobalDecoderRegistry.register(AdminInfo.typeUrl, AdminInfo);
2942
+ function createBaseMarketForcedSettlementProposal(): MarketForcedSettlementProposal {
2943
+ return {
2944
+ title: "",
2945
+ description: "",
2946
+ marketId: "",
2947
+ settlementPrice: undefined
2948
+ };
2949
+ }
2950
+ export const MarketForcedSettlementProposal = {
2951
+ typeUrl: "/injective.exchange.v1beta1.MarketForcedSettlementProposal",
2952
+ aminoType: "exchange/MarketForcedSettlementProposal",
2953
+ is(o: any): o is MarketForcedSettlementProposal {
2954
+ return o && (o.$typeUrl === MarketForcedSettlementProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.marketId === "string");
2955
+ },
2956
+ isAmino(o: any): o is MarketForcedSettlementProposalAmino {
2957
+ return o && (o.$typeUrl === MarketForcedSettlementProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.market_id === "string");
2958
+ },
2959
+ encode(message: MarketForcedSettlementProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2960
+ if (message.title !== "") {
2961
+ writer.uint32(10).string(message.title);
2962
+ }
2963
+ if (message.description !== "") {
2964
+ writer.uint32(18).string(message.description);
2965
+ }
2966
+ if (message.marketId !== "") {
2967
+ writer.uint32(26).string(message.marketId);
2968
+ }
2969
+ if (message.settlementPrice !== undefined) {
2970
+ writer.uint32(34).string(message.settlementPrice);
2971
+ }
2972
+ return writer;
2973
+ },
2974
+ decode(input: BinaryReader | Uint8Array, length?: number): MarketForcedSettlementProposal {
2975
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2976
+ let end = length === undefined ? reader.len : reader.pos + length;
2977
+ const message = createBaseMarketForcedSettlementProposal();
2978
+ while (reader.pos < end) {
2979
+ const tag = reader.uint32();
2980
+ switch (tag >>> 3) {
2981
+ case 1:
2982
+ message.title = reader.string();
2983
+ break;
2984
+ case 2:
2985
+ message.description = reader.string();
2986
+ break;
2987
+ case 3:
2988
+ message.marketId = reader.string();
2989
+ break;
2990
+ case 4:
2991
+ message.settlementPrice = reader.string();
2992
+ break;
2993
+ default:
2994
+ reader.skipType(tag & 7);
2995
+ break;
2996
+ }
2997
+ }
2998
+ return message;
2999
+ },
3000
+ fromPartial(object: DeepPartial<MarketForcedSettlementProposal>): MarketForcedSettlementProposal {
3001
+ const message = createBaseMarketForcedSettlementProposal();
3002
+ message.title = object.title ?? "";
3003
+ message.description = object.description ?? "";
3004
+ message.marketId = object.marketId ?? "";
3005
+ message.settlementPrice = object.settlementPrice ?? undefined;
3006
+ return message;
3007
+ },
3008
+ fromAmino(object: MarketForcedSettlementProposalAmino): MarketForcedSettlementProposal {
3009
+ const message = createBaseMarketForcedSettlementProposal();
3010
+ if (object.title !== undefined && object.title !== null) {
3011
+ message.title = object.title;
3012
+ }
3013
+ if (object.description !== undefined && object.description !== null) {
3014
+ message.description = object.description;
3015
+ }
3016
+ if (object.market_id !== undefined && object.market_id !== null) {
3017
+ message.marketId = object.market_id;
3018
+ }
3019
+ if (object.settlement_price !== undefined && object.settlement_price !== null) {
3020
+ message.settlementPrice = object.settlement_price;
3021
+ }
3022
+ return message;
3023
+ },
3024
+ toAmino(message: MarketForcedSettlementProposal): MarketForcedSettlementProposalAmino {
3025
+ const obj: any = {};
3026
+ obj.title = message.title === "" ? undefined : message.title;
3027
+ obj.description = message.description === "" ? undefined : message.description;
3028
+ obj.market_id = message.marketId === "" ? undefined : message.marketId;
3029
+ obj.settlement_price = message.settlementPrice === null ? undefined : message.settlementPrice;
3030
+ return obj;
3031
+ },
3032
+ fromAminoMsg(object: MarketForcedSettlementProposalAminoMsg): MarketForcedSettlementProposal {
3033
+ return MarketForcedSettlementProposal.fromAmino(object.value);
3034
+ },
3035
+ toAminoMsg(message: MarketForcedSettlementProposal): MarketForcedSettlementProposalAminoMsg {
3036
+ return {
3037
+ type: "exchange/MarketForcedSettlementProposal",
3038
+ value: MarketForcedSettlementProposal.toAmino(message)
3039
+ };
3040
+ },
3041
+ fromProtoMsg(message: MarketForcedSettlementProposalProtoMsg): MarketForcedSettlementProposal {
3042
+ return MarketForcedSettlementProposal.decode(message.value);
3043
+ },
3044
+ toProto(message: MarketForcedSettlementProposal): Uint8Array {
3045
+ return MarketForcedSettlementProposal.encode(message).finish();
3046
+ },
3047
+ toProtoMsg(message: MarketForcedSettlementProposal): MarketForcedSettlementProposalProtoMsg {
3048
+ return {
3049
+ typeUrl: "/injective.exchange.v1beta1.MarketForcedSettlementProposal",
3050
+ value: MarketForcedSettlementProposal.encode(message).finish()
3051
+ };
3052
+ }
3053
+ };
3054
+ GlobalDecoderRegistry.register(MarketForcedSettlementProposal.typeUrl, MarketForcedSettlementProposal);
3055
+ GlobalDecoderRegistry.registerAminoProtoMapping(MarketForcedSettlementProposal.aminoType, MarketForcedSettlementProposal.typeUrl);
3056
+ function createBaseUpdateDenomDecimalsProposal(): UpdateDenomDecimalsProposal {
3057
+ return {
3058
+ title: "",
3059
+ description: "",
3060
+ denomDecimals: []
3061
+ };
3062
+ }
3063
+ export const UpdateDenomDecimalsProposal = {
3064
+ typeUrl: "/injective.exchange.v1beta1.UpdateDenomDecimalsProposal",
3065
+ aminoType: "exchange/UpdateDenomDecimalsProposal",
3066
+ is(o: any): o is UpdateDenomDecimalsProposal {
3067
+ return o && (o.$typeUrl === UpdateDenomDecimalsProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.denomDecimals) && (!o.denomDecimals.length || DenomDecimals.is(o.denomDecimals[0])));
3068
+ },
3069
+ isAmino(o: any): o is UpdateDenomDecimalsProposalAmino {
3070
+ return o && (o.$typeUrl === UpdateDenomDecimalsProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.denom_decimals) && (!o.denom_decimals.length || DenomDecimals.isAmino(o.denom_decimals[0])));
3071
+ },
3072
+ encode(message: UpdateDenomDecimalsProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3073
+ if (message.title !== "") {
3074
+ writer.uint32(10).string(message.title);
3075
+ }
3076
+ if (message.description !== "") {
3077
+ writer.uint32(18).string(message.description);
3078
+ }
3079
+ for (const v of message.denomDecimals) {
3080
+ DenomDecimals.encode(v!, writer.uint32(26).fork()).ldelim();
3081
+ }
3082
+ return writer;
3083
+ },
3084
+ decode(input: BinaryReader | Uint8Array, length?: number): UpdateDenomDecimalsProposal {
3085
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3086
+ let end = length === undefined ? reader.len : reader.pos + length;
3087
+ const message = createBaseUpdateDenomDecimalsProposal();
3088
+ while (reader.pos < end) {
3089
+ const tag = reader.uint32();
3090
+ switch (tag >>> 3) {
3091
+ case 1:
3092
+ message.title = reader.string();
3093
+ break;
3094
+ case 2:
3095
+ message.description = reader.string();
3096
+ break;
3097
+ case 3:
3098
+ message.denomDecimals.push(DenomDecimals.decode(reader, reader.uint32()));
3099
+ break;
3100
+ default:
3101
+ reader.skipType(tag & 7);
3102
+ break;
3103
+ }
3104
+ }
3105
+ return message;
3106
+ },
3107
+ fromPartial(object: DeepPartial<UpdateDenomDecimalsProposal>): UpdateDenomDecimalsProposal {
3108
+ const message = createBaseUpdateDenomDecimalsProposal();
3109
+ message.title = object.title ?? "";
3110
+ message.description = object.description ?? "";
3111
+ message.denomDecimals = object.denomDecimals?.map(e => DenomDecimals.fromPartial(e)) || [];
3112
+ return message;
3113
+ },
3114
+ fromAmino(object: UpdateDenomDecimalsProposalAmino): UpdateDenomDecimalsProposal {
3115
+ const message = createBaseUpdateDenomDecimalsProposal();
3116
+ if (object.title !== undefined && object.title !== null) {
3117
+ message.title = object.title;
3118
+ }
3119
+ if (object.description !== undefined && object.description !== null) {
3120
+ message.description = object.description;
3121
+ }
3122
+ message.denomDecimals = object.denom_decimals?.map(e => DenomDecimals.fromAmino(e)) || [];
3123
+ return message;
3124
+ },
3125
+ toAmino(message: UpdateDenomDecimalsProposal): UpdateDenomDecimalsProposalAmino {
3126
+ const obj: any = {};
3127
+ obj.title = message.title === "" ? undefined : message.title;
3128
+ obj.description = message.description === "" ? undefined : message.description;
3129
+ if (message.denomDecimals) {
3130
+ obj.denom_decimals = message.denomDecimals.map(e => e ? DenomDecimals.toAmino(e) : undefined);
3131
+ } else {
3132
+ obj.denom_decimals = message.denomDecimals;
3133
+ }
3134
+ return obj;
3135
+ },
3136
+ fromAminoMsg(object: UpdateDenomDecimalsProposalAminoMsg): UpdateDenomDecimalsProposal {
3137
+ return UpdateDenomDecimalsProposal.fromAmino(object.value);
3138
+ },
3139
+ toAminoMsg(message: UpdateDenomDecimalsProposal): UpdateDenomDecimalsProposalAminoMsg {
3140
+ return {
3141
+ type: "exchange/UpdateDenomDecimalsProposal",
3142
+ value: UpdateDenomDecimalsProposal.toAmino(message)
3143
+ };
3144
+ },
3145
+ fromProtoMsg(message: UpdateDenomDecimalsProposalProtoMsg): UpdateDenomDecimalsProposal {
3146
+ return UpdateDenomDecimalsProposal.decode(message.value);
3147
+ },
3148
+ toProto(message: UpdateDenomDecimalsProposal): Uint8Array {
3149
+ return UpdateDenomDecimalsProposal.encode(message).finish();
3150
+ },
3151
+ toProtoMsg(message: UpdateDenomDecimalsProposal): UpdateDenomDecimalsProposalProtoMsg {
3152
+ return {
3153
+ typeUrl: "/injective.exchange.v1beta1.UpdateDenomDecimalsProposal",
3154
+ value: UpdateDenomDecimalsProposal.encode(message).finish()
3155
+ };
3156
+ }
3157
+ };
3158
+ GlobalDecoderRegistry.register(UpdateDenomDecimalsProposal.typeUrl, UpdateDenomDecimalsProposal);
3159
+ GlobalDecoderRegistry.registerAminoProtoMapping(UpdateDenomDecimalsProposal.aminoType, UpdateDenomDecimalsProposal.typeUrl);
3160
+ function createBaseBinaryOptionsMarketParamUpdateProposal(): BinaryOptionsMarketParamUpdateProposal {
3161
+ return {
3162
+ title: "",
3163
+ description: "",
3164
+ marketId: "",
3165
+ makerFeeRate: undefined,
3166
+ takerFeeRate: undefined,
3167
+ relayerFeeShareRate: undefined,
3168
+ minPriceTickSize: undefined,
3169
+ minQuantityTickSize: undefined,
3170
+ expirationTimestamp: BigInt(0),
3171
+ settlementTimestamp: BigInt(0),
3172
+ settlementPrice: undefined,
3173
+ admin: "",
3174
+ status: 0,
3175
+ oracleParams: undefined,
3176
+ ticker: undefined,
3177
+ minNotional: undefined
3178
+ };
3179
+ }
3180
+ export const BinaryOptionsMarketParamUpdateProposal = {
3181
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal",
3182
+ aminoType: "exchange/BinaryOptionsMarketParamUpdateProposal",
3183
+ is(o: any): o is BinaryOptionsMarketParamUpdateProposal {
3184
+ return o && (o.$typeUrl === BinaryOptionsMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.marketId === "string" && typeof o.expirationTimestamp === "bigint" && typeof o.settlementTimestamp === "bigint" && typeof o.admin === "string" && isSet(o.status));
3185
+ },
3186
+ isAmino(o: any): o is BinaryOptionsMarketParamUpdateProposalAmino {
3187
+ return o && (o.$typeUrl === BinaryOptionsMarketParamUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.market_id === "string" && typeof o.expiration_timestamp === "bigint" && typeof o.settlement_timestamp === "bigint" && typeof o.admin === "string" && isSet(o.status));
3188
+ },
3189
+ encode(message: BinaryOptionsMarketParamUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3190
+ if (message.title !== "") {
3191
+ writer.uint32(10).string(message.title);
3192
+ }
3193
+ if (message.description !== "") {
3194
+ writer.uint32(18).string(message.description);
3195
+ }
3196
+ if (message.marketId !== "") {
3197
+ writer.uint32(26).string(message.marketId);
3198
+ }
3199
+ if (message.makerFeeRate !== undefined) {
3200
+ writer.uint32(34).string(message.makerFeeRate);
3201
+ }
3202
+ if (message.takerFeeRate !== undefined) {
3203
+ writer.uint32(42).string(message.takerFeeRate);
3204
+ }
3205
+ if (message.relayerFeeShareRate !== undefined) {
3206
+ writer.uint32(50).string(message.relayerFeeShareRate);
3207
+ }
3208
+ if (message.minPriceTickSize !== undefined) {
3209
+ writer.uint32(58).string(message.minPriceTickSize);
3210
+ }
3211
+ if (message.minQuantityTickSize !== undefined) {
3212
+ writer.uint32(66).string(message.minQuantityTickSize);
3213
+ }
3214
+ if (message.expirationTimestamp !== BigInt(0)) {
3215
+ writer.uint32(72).int64(message.expirationTimestamp);
3216
+ }
3217
+ if (message.settlementTimestamp !== BigInt(0)) {
3218
+ writer.uint32(80).int64(message.settlementTimestamp);
3219
+ }
3220
+ if (message.settlementPrice !== undefined) {
3221
+ writer.uint32(90).string(message.settlementPrice);
3222
+ }
3223
+ if (message.admin !== "") {
3224
+ writer.uint32(98).string(message.admin);
3225
+ }
3226
+ if (message.status !== 0) {
3227
+ writer.uint32(104).int32(message.status);
3228
+ }
3229
+ if (message.oracleParams !== undefined) {
3230
+ ProviderOracleParams.encode(message.oracleParams, writer.uint32(114).fork()).ldelim();
3231
+ }
3232
+ if (message.ticker !== undefined) {
3233
+ writer.uint32(122).string(message.ticker);
3234
+ }
3235
+ if (message.minNotional !== undefined) {
3236
+ writer.uint32(130).string(message.minNotional);
3237
+ }
3238
+ return writer;
3239
+ },
3240
+ decode(input: BinaryReader | Uint8Array, length?: number): BinaryOptionsMarketParamUpdateProposal {
3241
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3242
+ let end = length === undefined ? reader.len : reader.pos + length;
3243
+ const message = createBaseBinaryOptionsMarketParamUpdateProposal();
3244
+ while (reader.pos < end) {
3245
+ const tag = reader.uint32();
3246
+ switch (tag >>> 3) {
3247
+ case 1:
3248
+ message.title = reader.string();
3249
+ break;
3250
+ case 2:
3251
+ message.description = reader.string();
3252
+ break;
3253
+ case 3:
3254
+ message.marketId = reader.string();
3255
+ break;
3256
+ case 4:
3257
+ message.makerFeeRate = reader.string();
3258
+ break;
3259
+ case 5:
3260
+ message.takerFeeRate = reader.string();
3261
+ break;
3262
+ case 6:
3263
+ message.relayerFeeShareRate = reader.string();
3264
+ break;
3265
+ case 7:
3266
+ message.minPriceTickSize = reader.string();
3267
+ break;
3268
+ case 8:
3269
+ message.minQuantityTickSize = reader.string();
3270
+ break;
3271
+ case 9:
3272
+ message.expirationTimestamp = reader.int64();
3273
+ break;
3274
+ case 10:
3275
+ message.settlementTimestamp = reader.int64();
3276
+ break;
3277
+ case 11:
3278
+ message.settlementPrice = reader.string();
3279
+ break;
3280
+ case 12:
3281
+ message.admin = reader.string();
3282
+ break;
3283
+ case 13:
3284
+ message.status = (reader.int32() as any);
3285
+ break;
3286
+ case 14:
3287
+ message.oracleParams = ProviderOracleParams.decode(reader, reader.uint32());
3288
+ break;
3289
+ case 15:
3290
+ message.ticker = reader.string();
3291
+ break;
3292
+ case 16:
3293
+ message.minNotional = reader.string();
3294
+ break;
3295
+ default:
3296
+ reader.skipType(tag & 7);
3297
+ break;
3298
+ }
3299
+ }
3300
+ return message;
3301
+ },
3302
+ fromPartial(object: DeepPartial<BinaryOptionsMarketParamUpdateProposal>): BinaryOptionsMarketParamUpdateProposal {
3303
+ const message = createBaseBinaryOptionsMarketParamUpdateProposal();
3304
+ message.title = object.title ?? "";
3305
+ message.description = object.description ?? "";
3306
+ message.marketId = object.marketId ?? "";
3307
+ message.makerFeeRate = object.makerFeeRate ?? undefined;
3308
+ message.takerFeeRate = object.takerFeeRate ?? undefined;
3309
+ message.relayerFeeShareRate = object.relayerFeeShareRate ?? undefined;
3310
+ message.minPriceTickSize = object.minPriceTickSize ?? undefined;
3311
+ message.minQuantityTickSize = object.minQuantityTickSize ?? undefined;
3312
+ message.expirationTimestamp = object.expirationTimestamp !== undefined && object.expirationTimestamp !== null ? BigInt(object.expirationTimestamp.toString()) : BigInt(0);
3313
+ message.settlementTimestamp = object.settlementTimestamp !== undefined && object.settlementTimestamp !== null ? BigInt(object.settlementTimestamp.toString()) : BigInt(0);
3314
+ message.settlementPrice = object.settlementPrice ?? undefined;
3315
+ message.admin = object.admin ?? "";
3316
+ message.status = object.status ?? 0;
3317
+ message.oracleParams = object.oracleParams !== undefined && object.oracleParams !== null ? ProviderOracleParams.fromPartial(object.oracleParams) : undefined;
3318
+ message.ticker = object.ticker ?? undefined;
3319
+ message.minNotional = object.minNotional ?? undefined;
3320
+ return message;
3321
+ },
3322
+ fromAmino(object: BinaryOptionsMarketParamUpdateProposalAmino): BinaryOptionsMarketParamUpdateProposal {
3323
+ const message = createBaseBinaryOptionsMarketParamUpdateProposal();
3324
+ if (object.title !== undefined && object.title !== null) {
3325
+ message.title = object.title;
3326
+ }
3327
+ if (object.description !== undefined && object.description !== null) {
3328
+ message.description = object.description;
3329
+ }
3330
+ if (object.market_id !== undefined && object.market_id !== null) {
3331
+ message.marketId = object.market_id;
3332
+ }
3333
+ if (object.maker_fee_rate !== undefined && object.maker_fee_rate !== null) {
3334
+ message.makerFeeRate = object.maker_fee_rate;
3335
+ }
3336
+ if (object.taker_fee_rate !== undefined && object.taker_fee_rate !== null) {
3337
+ message.takerFeeRate = object.taker_fee_rate;
3338
+ }
3339
+ if (object.relayer_fee_share_rate !== undefined && object.relayer_fee_share_rate !== null) {
3340
+ message.relayerFeeShareRate = object.relayer_fee_share_rate;
3341
+ }
3342
+ if (object.min_price_tick_size !== undefined && object.min_price_tick_size !== null) {
3343
+ message.minPriceTickSize = object.min_price_tick_size;
3344
+ }
3345
+ if (object.min_quantity_tick_size !== undefined && object.min_quantity_tick_size !== null) {
3346
+ message.minQuantityTickSize = object.min_quantity_tick_size;
3347
+ }
3348
+ if (object.expiration_timestamp !== undefined && object.expiration_timestamp !== null) {
3349
+ message.expirationTimestamp = BigInt(object.expiration_timestamp);
3350
+ }
3351
+ if (object.settlement_timestamp !== undefined && object.settlement_timestamp !== null) {
3352
+ message.settlementTimestamp = BigInt(object.settlement_timestamp);
3353
+ }
3354
+ if (object.settlement_price !== undefined && object.settlement_price !== null) {
3355
+ message.settlementPrice = object.settlement_price;
3356
+ }
3357
+ if (object.admin !== undefined && object.admin !== null) {
3358
+ message.admin = object.admin;
3359
+ }
3360
+ if (object.status !== undefined && object.status !== null) {
3361
+ message.status = object.status;
3362
+ }
3363
+ if (object.oracle_params !== undefined && object.oracle_params !== null) {
3364
+ message.oracleParams = ProviderOracleParams.fromAmino(object.oracle_params);
3365
+ }
3366
+ if (object.ticker !== undefined && object.ticker !== null) {
3367
+ message.ticker = object.ticker;
3368
+ }
3369
+ if (object.min_notional !== undefined && object.min_notional !== null) {
3370
+ message.minNotional = object.min_notional;
3371
+ }
3372
+ return message;
3373
+ },
3374
+ toAmino(message: BinaryOptionsMarketParamUpdateProposal): BinaryOptionsMarketParamUpdateProposalAmino {
3375
+ const obj: any = {};
3376
+ obj.title = message.title === "" ? undefined : message.title;
3377
+ obj.description = message.description === "" ? undefined : message.description;
3378
+ obj.market_id = message.marketId === "" ? undefined : message.marketId;
3379
+ obj.maker_fee_rate = message.makerFeeRate === null ? undefined : message.makerFeeRate;
3380
+ obj.taker_fee_rate = message.takerFeeRate === null ? undefined : message.takerFeeRate;
3381
+ obj.relayer_fee_share_rate = message.relayerFeeShareRate === null ? undefined : message.relayerFeeShareRate;
3382
+ obj.min_price_tick_size = message.minPriceTickSize === null ? undefined : message.minPriceTickSize;
3383
+ obj.min_quantity_tick_size = message.minQuantityTickSize === null ? undefined : message.minQuantityTickSize;
3384
+ obj.expiration_timestamp = message.expirationTimestamp !== BigInt(0) ? message.expirationTimestamp?.toString() : undefined;
3385
+ obj.settlement_timestamp = message.settlementTimestamp !== BigInt(0) ? message.settlementTimestamp?.toString() : undefined;
3386
+ obj.settlement_price = message.settlementPrice === null ? undefined : message.settlementPrice;
3387
+ obj.admin = message.admin === "" ? undefined : message.admin;
3388
+ obj.status = message.status === 0 ? undefined : message.status;
3389
+ obj.oracle_params = message.oracleParams ? ProviderOracleParams.toAmino(message.oracleParams) : undefined;
3390
+ obj.ticker = message.ticker === null ? undefined : message.ticker;
3391
+ obj.min_notional = message.minNotional === null ? undefined : message.minNotional;
3392
+ return obj;
3393
+ },
3394
+ fromAminoMsg(object: BinaryOptionsMarketParamUpdateProposalAminoMsg): BinaryOptionsMarketParamUpdateProposal {
3395
+ return BinaryOptionsMarketParamUpdateProposal.fromAmino(object.value);
3396
+ },
3397
+ toAminoMsg(message: BinaryOptionsMarketParamUpdateProposal): BinaryOptionsMarketParamUpdateProposalAminoMsg {
3398
+ return {
3399
+ type: "exchange/BinaryOptionsMarketParamUpdateProposal",
3400
+ value: BinaryOptionsMarketParamUpdateProposal.toAmino(message)
3401
+ };
3402
+ },
3403
+ fromProtoMsg(message: BinaryOptionsMarketParamUpdateProposalProtoMsg): BinaryOptionsMarketParamUpdateProposal {
3404
+ return BinaryOptionsMarketParamUpdateProposal.decode(message.value);
3405
+ },
3406
+ toProto(message: BinaryOptionsMarketParamUpdateProposal): Uint8Array {
3407
+ return BinaryOptionsMarketParamUpdateProposal.encode(message).finish();
3408
+ },
3409
+ toProtoMsg(message: BinaryOptionsMarketParamUpdateProposal): BinaryOptionsMarketParamUpdateProposalProtoMsg {
3410
+ return {
3411
+ typeUrl: "/injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal",
3412
+ value: BinaryOptionsMarketParamUpdateProposal.encode(message).finish()
3413
+ };
3414
+ }
3415
+ };
3416
+ GlobalDecoderRegistry.register(BinaryOptionsMarketParamUpdateProposal.typeUrl, BinaryOptionsMarketParamUpdateProposal);
3417
+ GlobalDecoderRegistry.registerAminoProtoMapping(BinaryOptionsMarketParamUpdateProposal.aminoType, BinaryOptionsMarketParamUpdateProposal.typeUrl);
3418
+ function createBaseProviderOracleParams(): ProviderOracleParams {
3419
+ return {
3420
+ symbol: "",
3421
+ provider: "",
3422
+ oracleScaleFactor: 0,
3423
+ oracleType: 0
3424
+ };
3425
+ }
3426
+ export const ProviderOracleParams = {
3427
+ typeUrl: "/injective.exchange.v1beta1.ProviderOracleParams",
3428
+ is(o: any): o is ProviderOracleParams {
3429
+ return o && (o.$typeUrl === ProviderOracleParams.typeUrl || typeof o.symbol === "string" && typeof o.provider === "string" && typeof o.oracleScaleFactor === "number" && isSet(o.oracleType));
3430
+ },
3431
+ isAmino(o: any): o is ProviderOracleParamsAmino {
3432
+ return o && (o.$typeUrl === ProviderOracleParams.typeUrl || typeof o.symbol === "string" && typeof o.provider === "string" && typeof o.oracle_scale_factor === "number" && isSet(o.oracle_type));
3433
+ },
3434
+ encode(message: ProviderOracleParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3435
+ if (message.symbol !== "") {
3436
+ writer.uint32(10).string(message.symbol);
3437
+ }
3438
+ if (message.provider !== "") {
3439
+ writer.uint32(18).string(message.provider);
3440
+ }
3441
+ if (message.oracleScaleFactor !== 0) {
3442
+ writer.uint32(24).uint32(message.oracleScaleFactor);
3443
+ }
3444
+ if (message.oracleType !== 0) {
3445
+ writer.uint32(32).int32(message.oracleType);
3446
+ }
3447
+ return writer;
3448
+ },
3449
+ decode(input: BinaryReader | Uint8Array, length?: number): ProviderOracleParams {
3450
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3451
+ let end = length === undefined ? reader.len : reader.pos + length;
3452
+ const message = createBaseProviderOracleParams();
3453
+ while (reader.pos < end) {
3454
+ const tag = reader.uint32();
3455
+ switch (tag >>> 3) {
3456
+ case 1:
3457
+ message.symbol = reader.string();
3458
+ break;
3459
+ case 2:
3460
+ message.provider = reader.string();
3461
+ break;
3462
+ case 3:
3463
+ message.oracleScaleFactor = reader.uint32();
3464
+ break;
3465
+ case 4:
3466
+ message.oracleType = (reader.int32() as any);
3467
+ break;
3468
+ default:
3469
+ reader.skipType(tag & 7);
3470
+ break;
3471
+ }
3472
+ }
3473
+ return message;
3474
+ },
3475
+ fromPartial(object: DeepPartial<ProviderOracleParams>): ProviderOracleParams {
3476
+ const message = createBaseProviderOracleParams();
3477
+ message.symbol = object.symbol ?? "";
3478
+ message.provider = object.provider ?? "";
3479
+ message.oracleScaleFactor = object.oracleScaleFactor ?? 0;
3480
+ message.oracleType = object.oracleType ?? 0;
3481
+ return message;
3482
+ },
3483
+ fromAmino(object: ProviderOracleParamsAmino): ProviderOracleParams {
3484
+ const message = createBaseProviderOracleParams();
3485
+ if (object.symbol !== undefined && object.symbol !== null) {
3486
+ message.symbol = object.symbol;
3487
+ }
3488
+ if (object.provider !== undefined && object.provider !== null) {
3489
+ message.provider = object.provider;
3490
+ }
3491
+ if (object.oracle_scale_factor !== undefined && object.oracle_scale_factor !== null) {
3492
+ message.oracleScaleFactor = object.oracle_scale_factor;
3493
+ }
3494
+ if (object.oracle_type !== undefined && object.oracle_type !== null) {
3495
+ message.oracleType = object.oracle_type;
3496
+ }
3497
+ return message;
3498
+ },
3499
+ toAmino(message: ProviderOracleParams): ProviderOracleParamsAmino {
3500
+ const obj: any = {};
3501
+ obj.symbol = message.symbol === "" ? undefined : message.symbol;
3502
+ obj.provider = message.provider === "" ? undefined : message.provider;
3503
+ obj.oracle_scale_factor = message.oracleScaleFactor === 0 ? undefined : message.oracleScaleFactor;
3504
+ obj.oracle_type = message.oracleType === 0 ? undefined : message.oracleType;
3505
+ return obj;
3506
+ },
3507
+ fromAminoMsg(object: ProviderOracleParamsAminoMsg): ProviderOracleParams {
3508
+ return ProviderOracleParams.fromAmino(object.value);
3509
+ },
3510
+ fromProtoMsg(message: ProviderOracleParamsProtoMsg): ProviderOracleParams {
3511
+ return ProviderOracleParams.decode(message.value);
3512
+ },
3513
+ toProto(message: ProviderOracleParams): Uint8Array {
3514
+ return ProviderOracleParams.encode(message).finish();
3515
+ },
3516
+ toProtoMsg(message: ProviderOracleParams): ProviderOracleParamsProtoMsg {
3517
+ return {
3518
+ typeUrl: "/injective.exchange.v1beta1.ProviderOracleParams",
3519
+ value: ProviderOracleParams.encode(message).finish()
3520
+ };
3521
+ }
3522
+ };
3523
+ GlobalDecoderRegistry.register(ProviderOracleParams.typeUrl, ProviderOracleParams);
3524
+ function createBaseOracleParams(): OracleParams {
3525
+ return {
3526
+ oracleBase: "",
3527
+ oracleQuote: "",
3528
+ oracleScaleFactor: 0,
3529
+ oracleType: 0
3530
+ };
3531
+ }
3532
+ export const OracleParams = {
3533
+ typeUrl: "/injective.exchange.v1beta1.OracleParams",
3534
+ is(o: any): o is OracleParams {
3535
+ return o && (o.$typeUrl === OracleParams.typeUrl || typeof o.oracleBase === "string" && typeof o.oracleQuote === "string" && typeof o.oracleScaleFactor === "number" && isSet(o.oracleType));
3536
+ },
3537
+ isAmino(o: any): o is OracleParamsAmino {
3538
+ return o && (o.$typeUrl === OracleParams.typeUrl || typeof o.oracle_base === "string" && typeof o.oracle_quote === "string" && typeof o.oracle_scale_factor === "number" && isSet(o.oracle_type));
3539
+ },
3540
+ encode(message: OracleParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3541
+ if (message.oracleBase !== "") {
3542
+ writer.uint32(10).string(message.oracleBase);
3543
+ }
3544
+ if (message.oracleQuote !== "") {
3545
+ writer.uint32(18).string(message.oracleQuote);
3546
+ }
3547
+ if (message.oracleScaleFactor !== 0) {
3548
+ writer.uint32(24).uint32(message.oracleScaleFactor);
3549
+ }
3550
+ if (message.oracleType !== 0) {
3551
+ writer.uint32(32).int32(message.oracleType);
3552
+ }
3553
+ return writer;
3554
+ },
3555
+ decode(input: BinaryReader | Uint8Array, length?: number): OracleParams {
3556
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3557
+ let end = length === undefined ? reader.len : reader.pos + length;
3558
+ const message = createBaseOracleParams();
3559
+ while (reader.pos < end) {
3560
+ const tag = reader.uint32();
3561
+ switch (tag >>> 3) {
3562
+ case 1:
3563
+ message.oracleBase = reader.string();
3564
+ break;
3565
+ case 2:
3566
+ message.oracleQuote = reader.string();
3567
+ break;
3568
+ case 3:
3569
+ message.oracleScaleFactor = reader.uint32();
3570
+ break;
3571
+ case 4:
3572
+ message.oracleType = (reader.int32() as any);
3573
+ break;
3574
+ default:
3575
+ reader.skipType(tag & 7);
3576
+ break;
3577
+ }
3578
+ }
3579
+ return message;
3580
+ },
3581
+ fromPartial(object: DeepPartial<OracleParams>): OracleParams {
3582
+ const message = createBaseOracleParams();
3583
+ message.oracleBase = object.oracleBase ?? "";
3584
+ message.oracleQuote = object.oracleQuote ?? "";
3585
+ message.oracleScaleFactor = object.oracleScaleFactor ?? 0;
3586
+ message.oracleType = object.oracleType ?? 0;
3587
+ return message;
3588
+ },
3589
+ fromAmino(object: OracleParamsAmino): OracleParams {
3590
+ const message = createBaseOracleParams();
3591
+ if (object.oracle_base !== undefined && object.oracle_base !== null) {
3592
+ message.oracleBase = object.oracle_base;
3593
+ }
3594
+ if (object.oracle_quote !== undefined && object.oracle_quote !== null) {
3595
+ message.oracleQuote = object.oracle_quote;
3596
+ }
3597
+ if (object.oracle_scale_factor !== undefined && object.oracle_scale_factor !== null) {
3598
+ message.oracleScaleFactor = object.oracle_scale_factor;
3599
+ }
3600
+ if (object.oracle_type !== undefined && object.oracle_type !== null) {
3601
+ message.oracleType = object.oracle_type;
3602
+ }
3603
+ return message;
3604
+ },
3605
+ toAmino(message: OracleParams): OracleParamsAmino {
3606
+ const obj: any = {};
3607
+ obj.oracle_base = message.oracleBase === "" ? undefined : message.oracleBase;
3608
+ obj.oracle_quote = message.oracleQuote === "" ? undefined : message.oracleQuote;
3609
+ obj.oracle_scale_factor = message.oracleScaleFactor === 0 ? undefined : message.oracleScaleFactor;
3610
+ obj.oracle_type = message.oracleType === 0 ? undefined : message.oracleType;
3611
+ return obj;
3612
+ },
3613
+ fromAminoMsg(object: OracleParamsAminoMsg): OracleParams {
3614
+ return OracleParams.fromAmino(object.value);
3615
+ },
3616
+ fromProtoMsg(message: OracleParamsProtoMsg): OracleParams {
3617
+ return OracleParams.decode(message.value);
3618
+ },
3619
+ toProto(message: OracleParams): Uint8Array {
3620
+ return OracleParams.encode(message).finish();
3621
+ },
3622
+ toProtoMsg(message: OracleParams): OracleParamsProtoMsg {
3623
+ return {
3624
+ typeUrl: "/injective.exchange.v1beta1.OracleParams",
3625
+ value: OracleParams.encode(message).finish()
3626
+ };
3627
+ }
3628
+ };
3629
+ GlobalDecoderRegistry.register(OracleParams.typeUrl, OracleParams);
3630
+ function createBaseTradingRewardCampaignLaunchProposal(): TradingRewardCampaignLaunchProposal {
3631
+ return {
3632
+ title: "",
3633
+ description: "",
3634
+ campaignInfo: undefined,
3635
+ campaignRewardPools: []
3636
+ };
3637
+ }
3638
+ export const TradingRewardCampaignLaunchProposal = {
3639
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal",
3640
+ aminoType: "exchange/TradingRewardCampaignLaunchProposal",
3641
+ is(o: any): o is TradingRewardCampaignLaunchProposal {
3642
+ return o && (o.$typeUrl === TradingRewardCampaignLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.campaignRewardPools) && (!o.campaignRewardPools.length || CampaignRewardPool.is(o.campaignRewardPools[0])));
3643
+ },
3644
+ isAmino(o: any): o is TradingRewardCampaignLaunchProposalAmino {
3645
+ return o && (o.$typeUrl === TradingRewardCampaignLaunchProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.campaign_reward_pools) && (!o.campaign_reward_pools.length || CampaignRewardPool.isAmino(o.campaign_reward_pools[0])));
3646
+ },
3647
+ encode(message: TradingRewardCampaignLaunchProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3648
+ if (message.title !== "") {
3649
+ writer.uint32(10).string(message.title);
3650
+ }
3651
+ if (message.description !== "") {
3652
+ writer.uint32(18).string(message.description);
3653
+ }
3654
+ if (message.campaignInfo !== undefined) {
3655
+ TradingRewardCampaignInfo.encode(message.campaignInfo, writer.uint32(26).fork()).ldelim();
3656
+ }
3657
+ for (const v of message.campaignRewardPools) {
3658
+ CampaignRewardPool.encode(v!, writer.uint32(34).fork()).ldelim();
3659
+ }
3660
+ return writer;
3661
+ },
3662
+ decode(input: BinaryReader | Uint8Array, length?: number): TradingRewardCampaignLaunchProposal {
3663
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3664
+ let end = length === undefined ? reader.len : reader.pos + length;
3665
+ const message = createBaseTradingRewardCampaignLaunchProposal();
3666
+ while (reader.pos < end) {
3667
+ const tag = reader.uint32();
3668
+ switch (tag >>> 3) {
3669
+ case 1:
3670
+ message.title = reader.string();
3671
+ break;
3672
+ case 2:
3673
+ message.description = reader.string();
3674
+ break;
3675
+ case 3:
3676
+ message.campaignInfo = TradingRewardCampaignInfo.decode(reader, reader.uint32());
3677
+ break;
3678
+ case 4:
3679
+ message.campaignRewardPools.push(CampaignRewardPool.decode(reader, reader.uint32()));
3680
+ break;
3681
+ default:
3682
+ reader.skipType(tag & 7);
3683
+ break;
3684
+ }
3685
+ }
3686
+ return message;
3687
+ },
3688
+ fromPartial(object: DeepPartial<TradingRewardCampaignLaunchProposal>): TradingRewardCampaignLaunchProposal {
3689
+ const message = createBaseTradingRewardCampaignLaunchProposal();
3690
+ message.title = object.title ?? "";
3691
+ message.description = object.description ?? "";
3692
+ message.campaignInfo = object.campaignInfo !== undefined && object.campaignInfo !== null ? TradingRewardCampaignInfo.fromPartial(object.campaignInfo) : undefined;
3693
+ message.campaignRewardPools = object.campaignRewardPools?.map(e => CampaignRewardPool.fromPartial(e)) || [];
3694
+ return message;
3695
+ },
3696
+ fromAmino(object: TradingRewardCampaignLaunchProposalAmino): TradingRewardCampaignLaunchProposal {
3697
+ const message = createBaseTradingRewardCampaignLaunchProposal();
3698
+ if (object.title !== undefined && object.title !== null) {
3699
+ message.title = object.title;
3700
+ }
3701
+ if (object.description !== undefined && object.description !== null) {
3702
+ message.description = object.description;
3703
+ }
3704
+ if (object.campaign_info !== undefined && object.campaign_info !== null) {
3705
+ message.campaignInfo = TradingRewardCampaignInfo.fromAmino(object.campaign_info);
3706
+ }
3707
+ message.campaignRewardPools = object.campaign_reward_pools?.map(e => CampaignRewardPool.fromAmino(e)) || [];
3708
+ return message;
3709
+ },
3710
+ toAmino(message: TradingRewardCampaignLaunchProposal): TradingRewardCampaignLaunchProposalAmino {
3711
+ const obj: any = {};
3712
+ obj.title = message.title === "" ? undefined : message.title;
3713
+ obj.description = message.description === "" ? undefined : message.description;
3714
+ obj.campaign_info = message.campaignInfo ? TradingRewardCampaignInfo.toAmino(message.campaignInfo) : undefined;
3715
+ if (message.campaignRewardPools) {
3716
+ obj.campaign_reward_pools = message.campaignRewardPools.map(e => e ? CampaignRewardPool.toAmino(e) : undefined);
3717
+ } else {
3718
+ obj.campaign_reward_pools = message.campaignRewardPools;
3719
+ }
3720
+ return obj;
3721
+ },
3722
+ fromAminoMsg(object: TradingRewardCampaignLaunchProposalAminoMsg): TradingRewardCampaignLaunchProposal {
3723
+ return TradingRewardCampaignLaunchProposal.fromAmino(object.value);
3724
+ },
3725
+ toAminoMsg(message: TradingRewardCampaignLaunchProposal): TradingRewardCampaignLaunchProposalAminoMsg {
3726
+ return {
3727
+ type: "exchange/TradingRewardCampaignLaunchProposal",
3728
+ value: TradingRewardCampaignLaunchProposal.toAmino(message)
3729
+ };
3730
+ },
3731
+ fromProtoMsg(message: TradingRewardCampaignLaunchProposalProtoMsg): TradingRewardCampaignLaunchProposal {
3732
+ return TradingRewardCampaignLaunchProposal.decode(message.value);
3733
+ },
3734
+ toProto(message: TradingRewardCampaignLaunchProposal): Uint8Array {
3735
+ return TradingRewardCampaignLaunchProposal.encode(message).finish();
3736
+ },
3737
+ toProtoMsg(message: TradingRewardCampaignLaunchProposal): TradingRewardCampaignLaunchProposalProtoMsg {
3738
+ return {
3739
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal",
3740
+ value: TradingRewardCampaignLaunchProposal.encode(message).finish()
3741
+ };
3742
+ }
3743
+ };
3744
+ GlobalDecoderRegistry.register(TradingRewardCampaignLaunchProposal.typeUrl, TradingRewardCampaignLaunchProposal);
3745
+ GlobalDecoderRegistry.registerAminoProtoMapping(TradingRewardCampaignLaunchProposal.aminoType, TradingRewardCampaignLaunchProposal.typeUrl);
3746
+ function createBaseTradingRewardCampaignUpdateProposal(): TradingRewardCampaignUpdateProposal {
3747
+ return {
3748
+ title: "",
3749
+ description: "",
3750
+ campaignInfo: undefined,
3751
+ campaignRewardPoolsAdditions: [],
3752
+ campaignRewardPoolsUpdates: []
3753
+ };
3754
+ }
3755
+ export const TradingRewardCampaignUpdateProposal = {
3756
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal",
3757
+ aminoType: "exchange/TradingRewardCampaignUpdateProposal",
3758
+ is(o: any): o is TradingRewardCampaignUpdateProposal {
3759
+ return o && (o.$typeUrl === TradingRewardCampaignUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.campaignRewardPoolsAdditions) && (!o.campaignRewardPoolsAdditions.length || CampaignRewardPool.is(o.campaignRewardPoolsAdditions[0])) && Array.isArray(o.campaignRewardPoolsUpdates) && (!o.campaignRewardPoolsUpdates.length || CampaignRewardPool.is(o.campaignRewardPoolsUpdates[0])));
3760
+ },
3761
+ isAmino(o: any): o is TradingRewardCampaignUpdateProposalAmino {
3762
+ return o && (o.$typeUrl === TradingRewardCampaignUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.campaign_reward_pools_additions) && (!o.campaign_reward_pools_additions.length || CampaignRewardPool.isAmino(o.campaign_reward_pools_additions[0])) && Array.isArray(o.campaign_reward_pools_updates) && (!o.campaign_reward_pools_updates.length || CampaignRewardPool.isAmino(o.campaign_reward_pools_updates[0])));
3763
+ },
3764
+ encode(message: TradingRewardCampaignUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3765
+ if (message.title !== "") {
3766
+ writer.uint32(10).string(message.title);
3767
+ }
3768
+ if (message.description !== "") {
3769
+ writer.uint32(18).string(message.description);
3770
+ }
3771
+ if (message.campaignInfo !== undefined) {
3772
+ TradingRewardCampaignInfo.encode(message.campaignInfo, writer.uint32(26).fork()).ldelim();
3773
+ }
3774
+ for (const v of message.campaignRewardPoolsAdditions) {
3775
+ CampaignRewardPool.encode(v!, writer.uint32(34).fork()).ldelim();
3776
+ }
3777
+ for (const v of message.campaignRewardPoolsUpdates) {
3778
+ CampaignRewardPool.encode(v!, writer.uint32(42).fork()).ldelim();
3779
+ }
3780
+ return writer;
3781
+ },
3782
+ decode(input: BinaryReader | Uint8Array, length?: number): TradingRewardCampaignUpdateProposal {
3783
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3784
+ let end = length === undefined ? reader.len : reader.pos + length;
3785
+ const message = createBaseTradingRewardCampaignUpdateProposal();
3786
+ while (reader.pos < end) {
3787
+ const tag = reader.uint32();
3788
+ switch (tag >>> 3) {
3789
+ case 1:
3790
+ message.title = reader.string();
3791
+ break;
3792
+ case 2:
3793
+ message.description = reader.string();
3794
+ break;
3795
+ case 3:
3796
+ message.campaignInfo = TradingRewardCampaignInfo.decode(reader, reader.uint32());
3797
+ break;
3798
+ case 4:
3799
+ message.campaignRewardPoolsAdditions.push(CampaignRewardPool.decode(reader, reader.uint32()));
3800
+ break;
3801
+ case 5:
3802
+ message.campaignRewardPoolsUpdates.push(CampaignRewardPool.decode(reader, reader.uint32()));
3803
+ break;
3804
+ default:
3805
+ reader.skipType(tag & 7);
3806
+ break;
3807
+ }
3808
+ }
3809
+ return message;
3810
+ },
3811
+ fromPartial(object: DeepPartial<TradingRewardCampaignUpdateProposal>): TradingRewardCampaignUpdateProposal {
3812
+ const message = createBaseTradingRewardCampaignUpdateProposal();
3813
+ message.title = object.title ?? "";
3814
+ message.description = object.description ?? "";
3815
+ message.campaignInfo = object.campaignInfo !== undefined && object.campaignInfo !== null ? TradingRewardCampaignInfo.fromPartial(object.campaignInfo) : undefined;
3816
+ message.campaignRewardPoolsAdditions = object.campaignRewardPoolsAdditions?.map(e => CampaignRewardPool.fromPartial(e)) || [];
3817
+ message.campaignRewardPoolsUpdates = object.campaignRewardPoolsUpdates?.map(e => CampaignRewardPool.fromPartial(e)) || [];
3818
+ return message;
3819
+ },
3820
+ fromAmino(object: TradingRewardCampaignUpdateProposalAmino): TradingRewardCampaignUpdateProposal {
3821
+ const message = createBaseTradingRewardCampaignUpdateProposal();
3822
+ if (object.title !== undefined && object.title !== null) {
3823
+ message.title = object.title;
3824
+ }
3825
+ if (object.description !== undefined && object.description !== null) {
3826
+ message.description = object.description;
3827
+ }
3828
+ if (object.campaign_info !== undefined && object.campaign_info !== null) {
3829
+ message.campaignInfo = TradingRewardCampaignInfo.fromAmino(object.campaign_info);
3830
+ }
3831
+ message.campaignRewardPoolsAdditions = object.campaign_reward_pools_additions?.map(e => CampaignRewardPool.fromAmino(e)) || [];
3832
+ message.campaignRewardPoolsUpdates = object.campaign_reward_pools_updates?.map(e => CampaignRewardPool.fromAmino(e)) || [];
3833
+ return message;
3834
+ },
3835
+ toAmino(message: TradingRewardCampaignUpdateProposal): TradingRewardCampaignUpdateProposalAmino {
3836
+ const obj: any = {};
3837
+ obj.title = message.title === "" ? undefined : message.title;
3838
+ obj.description = message.description === "" ? undefined : message.description;
3839
+ obj.campaign_info = message.campaignInfo ? TradingRewardCampaignInfo.toAmino(message.campaignInfo) : undefined;
3840
+ if (message.campaignRewardPoolsAdditions) {
3841
+ obj.campaign_reward_pools_additions = message.campaignRewardPoolsAdditions.map(e => e ? CampaignRewardPool.toAmino(e) : undefined);
3842
+ } else {
3843
+ obj.campaign_reward_pools_additions = message.campaignRewardPoolsAdditions;
3844
+ }
3845
+ if (message.campaignRewardPoolsUpdates) {
3846
+ obj.campaign_reward_pools_updates = message.campaignRewardPoolsUpdates.map(e => e ? CampaignRewardPool.toAmino(e) : undefined);
3847
+ } else {
3848
+ obj.campaign_reward_pools_updates = message.campaignRewardPoolsUpdates;
3849
+ }
3850
+ return obj;
3851
+ },
3852
+ fromAminoMsg(object: TradingRewardCampaignUpdateProposalAminoMsg): TradingRewardCampaignUpdateProposal {
3853
+ return TradingRewardCampaignUpdateProposal.fromAmino(object.value);
3854
+ },
3855
+ toAminoMsg(message: TradingRewardCampaignUpdateProposal): TradingRewardCampaignUpdateProposalAminoMsg {
3856
+ return {
3857
+ type: "exchange/TradingRewardCampaignUpdateProposal",
3858
+ value: TradingRewardCampaignUpdateProposal.toAmino(message)
3859
+ };
3860
+ },
3861
+ fromProtoMsg(message: TradingRewardCampaignUpdateProposalProtoMsg): TradingRewardCampaignUpdateProposal {
3862
+ return TradingRewardCampaignUpdateProposal.decode(message.value);
3863
+ },
3864
+ toProto(message: TradingRewardCampaignUpdateProposal): Uint8Array {
3865
+ return TradingRewardCampaignUpdateProposal.encode(message).finish();
3866
+ },
3867
+ toProtoMsg(message: TradingRewardCampaignUpdateProposal): TradingRewardCampaignUpdateProposalProtoMsg {
3868
+ return {
3869
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal",
3870
+ value: TradingRewardCampaignUpdateProposal.encode(message).finish()
3871
+ };
3872
+ }
3873
+ };
3874
+ GlobalDecoderRegistry.register(TradingRewardCampaignUpdateProposal.typeUrl, TradingRewardCampaignUpdateProposal);
3875
+ GlobalDecoderRegistry.registerAminoProtoMapping(TradingRewardCampaignUpdateProposal.aminoType, TradingRewardCampaignUpdateProposal.typeUrl);
3876
+ function createBaseRewardPointUpdate(): RewardPointUpdate {
3877
+ return {
3878
+ accountAddress: "",
3879
+ newPoints: ""
3880
+ };
3881
+ }
3882
+ export const RewardPointUpdate = {
3883
+ typeUrl: "/injective.exchange.v1beta1.RewardPointUpdate",
3884
+ is(o: any): o is RewardPointUpdate {
3885
+ return o && (o.$typeUrl === RewardPointUpdate.typeUrl || typeof o.accountAddress === "string" && typeof o.newPoints === "string");
3886
+ },
3887
+ isAmino(o: any): o is RewardPointUpdateAmino {
3888
+ return o && (o.$typeUrl === RewardPointUpdate.typeUrl || typeof o.account_address === "string" && typeof o.new_points === "string");
3889
+ },
3890
+ encode(message: RewardPointUpdate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3891
+ if (message.accountAddress !== "") {
3892
+ writer.uint32(10).string(message.accountAddress);
3893
+ }
3894
+ if (message.newPoints !== "") {
3895
+ writer.uint32(98).string(message.newPoints);
3896
+ }
3897
+ return writer;
3898
+ },
3899
+ decode(input: BinaryReader | Uint8Array, length?: number): RewardPointUpdate {
3900
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3901
+ let end = length === undefined ? reader.len : reader.pos + length;
3902
+ const message = createBaseRewardPointUpdate();
3903
+ while (reader.pos < end) {
3904
+ const tag = reader.uint32();
3905
+ switch (tag >>> 3) {
3906
+ case 1:
3907
+ message.accountAddress = reader.string();
3908
+ break;
3909
+ case 12:
3910
+ message.newPoints = reader.string();
3911
+ break;
3912
+ default:
3913
+ reader.skipType(tag & 7);
3914
+ break;
3915
+ }
3916
+ }
3917
+ return message;
3918
+ },
3919
+ fromPartial(object: DeepPartial<RewardPointUpdate>): RewardPointUpdate {
3920
+ const message = createBaseRewardPointUpdate();
3921
+ message.accountAddress = object.accountAddress ?? "";
3922
+ message.newPoints = object.newPoints ?? "";
3923
+ return message;
3924
+ },
3925
+ fromAmino(object: RewardPointUpdateAmino): RewardPointUpdate {
3926
+ const message = createBaseRewardPointUpdate();
3927
+ if (object.account_address !== undefined && object.account_address !== null) {
3928
+ message.accountAddress = object.account_address;
3929
+ }
3930
+ if (object.new_points !== undefined && object.new_points !== null) {
3931
+ message.newPoints = object.new_points;
3932
+ }
3933
+ return message;
3934
+ },
3935
+ toAmino(message: RewardPointUpdate): RewardPointUpdateAmino {
3936
+ const obj: any = {};
3937
+ obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress;
3938
+ obj.new_points = message.newPoints === "" ? undefined : message.newPoints;
3939
+ return obj;
3940
+ },
3941
+ fromAminoMsg(object: RewardPointUpdateAminoMsg): RewardPointUpdate {
3942
+ return RewardPointUpdate.fromAmino(object.value);
3943
+ },
3944
+ fromProtoMsg(message: RewardPointUpdateProtoMsg): RewardPointUpdate {
3945
+ return RewardPointUpdate.decode(message.value);
3946
+ },
3947
+ toProto(message: RewardPointUpdate): Uint8Array {
3948
+ return RewardPointUpdate.encode(message).finish();
3949
+ },
3950
+ toProtoMsg(message: RewardPointUpdate): RewardPointUpdateProtoMsg {
3951
+ return {
3952
+ typeUrl: "/injective.exchange.v1beta1.RewardPointUpdate",
3953
+ value: RewardPointUpdate.encode(message).finish()
3954
+ };
3955
+ }
3956
+ };
3957
+ GlobalDecoderRegistry.register(RewardPointUpdate.typeUrl, RewardPointUpdate);
3958
+ function createBaseTradingRewardPendingPointsUpdateProposal(): TradingRewardPendingPointsUpdateProposal {
3959
+ return {
3960
+ title: "",
3961
+ description: "",
3962
+ pendingPoolTimestamp: BigInt(0),
3963
+ rewardPointUpdates: []
3964
+ };
3965
+ }
3966
+ export const TradingRewardPendingPointsUpdateProposal = {
3967
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal",
3968
+ aminoType: "exchange/TradingRewardPendingPointsUpdateProposal",
3969
+ is(o: any): o is TradingRewardPendingPointsUpdateProposal {
3970
+ return o && (o.$typeUrl === TradingRewardPendingPointsUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.pendingPoolTimestamp === "bigint" && Array.isArray(o.rewardPointUpdates) && (!o.rewardPointUpdates.length || RewardPointUpdate.is(o.rewardPointUpdates[0])));
3971
+ },
3972
+ isAmino(o: any): o is TradingRewardPendingPointsUpdateProposalAmino {
3973
+ return o && (o.$typeUrl === TradingRewardPendingPointsUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.pending_pool_timestamp === "bigint" && Array.isArray(o.reward_point_updates) && (!o.reward_point_updates.length || RewardPointUpdate.isAmino(o.reward_point_updates[0])));
3974
+ },
3975
+ encode(message: TradingRewardPendingPointsUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3976
+ if (message.title !== "") {
3977
+ writer.uint32(10).string(message.title);
3978
+ }
3979
+ if (message.description !== "") {
3980
+ writer.uint32(18).string(message.description);
3981
+ }
3982
+ if (message.pendingPoolTimestamp !== BigInt(0)) {
3983
+ writer.uint32(24).int64(message.pendingPoolTimestamp);
3984
+ }
3985
+ for (const v of message.rewardPointUpdates) {
3986
+ RewardPointUpdate.encode(v!, writer.uint32(34).fork()).ldelim();
3987
+ }
3988
+ return writer;
3989
+ },
3990
+ decode(input: BinaryReader | Uint8Array, length?: number): TradingRewardPendingPointsUpdateProposal {
3991
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3992
+ let end = length === undefined ? reader.len : reader.pos + length;
3993
+ const message = createBaseTradingRewardPendingPointsUpdateProposal();
3994
+ while (reader.pos < end) {
3995
+ const tag = reader.uint32();
3996
+ switch (tag >>> 3) {
3997
+ case 1:
3998
+ message.title = reader.string();
3999
+ break;
4000
+ case 2:
4001
+ message.description = reader.string();
4002
+ break;
4003
+ case 3:
4004
+ message.pendingPoolTimestamp = reader.int64();
4005
+ break;
4006
+ case 4:
4007
+ message.rewardPointUpdates.push(RewardPointUpdate.decode(reader, reader.uint32()));
4008
+ break;
4009
+ default:
4010
+ reader.skipType(tag & 7);
4011
+ break;
4012
+ }
4013
+ }
4014
+ return message;
4015
+ },
4016
+ fromPartial(object: DeepPartial<TradingRewardPendingPointsUpdateProposal>): TradingRewardPendingPointsUpdateProposal {
4017
+ const message = createBaseTradingRewardPendingPointsUpdateProposal();
4018
+ message.title = object.title ?? "";
4019
+ message.description = object.description ?? "";
4020
+ message.pendingPoolTimestamp = object.pendingPoolTimestamp !== undefined && object.pendingPoolTimestamp !== null ? BigInt(object.pendingPoolTimestamp.toString()) : BigInt(0);
4021
+ message.rewardPointUpdates = object.rewardPointUpdates?.map(e => RewardPointUpdate.fromPartial(e)) || [];
4022
+ return message;
4023
+ },
4024
+ fromAmino(object: TradingRewardPendingPointsUpdateProposalAmino): TradingRewardPendingPointsUpdateProposal {
4025
+ const message = createBaseTradingRewardPendingPointsUpdateProposal();
4026
+ if (object.title !== undefined && object.title !== null) {
4027
+ message.title = object.title;
4028
+ }
4029
+ if (object.description !== undefined && object.description !== null) {
4030
+ message.description = object.description;
4031
+ }
4032
+ if (object.pending_pool_timestamp !== undefined && object.pending_pool_timestamp !== null) {
4033
+ message.pendingPoolTimestamp = BigInt(object.pending_pool_timestamp);
4034
+ }
4035
+ message.rewardPointUpdates = object.reward_point_updates?.map(e => RewardPointUpdate.fromAmino(e)) || [];
4036
+ return message;
4037
+ },
4038
+ toAmino(message: TradingRewardPendingPointsUpdateProposal): TradingRewardPendingPointsUpdateProposalAmino {
4039
+ const obj: any = {};
4040
+ obj.title = message.title === "" ? undefined : message.title;
4041
+ obj.description = message.description === "" ? undefined : message.description;
4042
+ obj.pending_pool_timestamp = message.pendingPoolTimestamp !== BigInt(0) ? message.pendingPoolTimestamp?.toString() : undefined;
4043
+ if (message.rewardPointUpdates) {
4044
+ obj.reward_point_updates = message.rewardPointUpdates.map(e => e ? RewardPointUpdate.toAmino(e) : undefined);
4045
+ } else {
4046
+ obj.reward_point_updates = message.rewardPointUpdates;
4047
+ }
4048
+ return obj;
4049
+ },
4050
+ fromAminoMsg(object: TradingRewardPendingPointsUpdateProposalAminoMsg): TradingRewardPendingPointsUpdateProposal {
4051
+ return TradingRewardPendingPointsUpdateProposal.fromAmino(object.value);
4052
+ },
4053
+ toAminoMsg(message: TradingRewardPendingPointsUpdateProposal): TradingRewardPendingPointsUpdateProposalAminoMsg {
4054
+ return {
4055
+ type: "exchange/TradingRewardPendingPointsUpdateProposal",
4056
+ value: TradingRewardPendingPointsUpdateProposal.toAmino(message)
4057
+ };
4058
+ },
4059
+ fromProtoMsg(message: TradingRewardPendingPointsUpdateProposalProtoMsg): TradingRewardPendingPointsUpdateProposal {
4060
+ return TradingRewardPendingPointsUpdateProposal.decode(message.value);
4061
+ },
4062
+ toProto(message: TradingRewardPendingPointsUpdateProposal): Uint8Array {
4063
+ return TradingRewardPendingPointsUpdateProposal.encode(message).finish();
4064
+ },
4065
+ toProtoMsg(message: TradingRewardPendingPointsUpdateProposal): TradingRewardPendingPointsUpdateProposalProtoMsg {
4066
+ return {
4067
+ typeUrl: "/injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal",
4068
+ value: TradingRewardPendingPointsUpdateProposal.encode(message).finish()
4069
+ };
4070
+ }
4071
+ };
4072
+ GlobalDecoderRegistry.register(TradingRewardPendingPointsUpdateProposal.typeUrl, TradingRewardPendingPointsUpdateProposal);
4073
+ GlobalDecoderRegistry.registerAminoProtoMapping(TradingRewardPendingPointsUpdateProposal.aminoType, TradingRewardPendingPointsUpdateProposal.typeUrl);
4074
+ function createBaseFeeDiscountProposal(): FeeDiscountProposal {
4075
+ return {
4076
+ title: "",
4077
+ description: "",
4078
+ schedule: undefined
4079
+ };
4080
+ }
4081
+ export const FeeDiscountProposal = {
4082
+ typeUrl: "/injective.exchange.v1beta1.FeeDiscountProposal",
4083
+ aminoType: "exchange/FeeDiscountProposal",
4084
+ is(o: any): o is FeeDiscountProposal {
4085
+ return o && (o.$typeUrl === FeeDiscountProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string");
4086
+ },
4087
+ isAmino(o: any): o is FeeDiscountProposalAmino {
4088
+ return o && (o.$typeUrl === FeeDiscountProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string");
4089
+ },
4090
+ encode(message: FeeDiscountProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4091
+ if (message.title !== "") {
4092
+ writer.uint32(10).string(message.title);
4093
+ }
4094
+ if (message.description !== "") {
4095
+ writer.uint32(18).string(message.description);
4096
+ }
4097
+ if (message.schedule !== undefined) {
4098
+ FeeDiscountSchedule.encode(message.schedule, writer.uint32(26).fork()).ldelim();
4099
+ }
4100
+ return writer;
4101
+ },
4102
+ decode(input: BinaryReader | Uint8Array, length?: number): FeeDiscountProposal {
4103
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4104
+ let end = length === undefined ? reader.len : reader.pos + length;
4105
+ const message = createBaseFeeDiscountProposal();
4106
+ while (reader.pos < end) {
4107
+ const tag = reader.uint32();
4108
+ switch (tag >>> 3) {
4109
+ case 1:
4110
+ message.title = reader.string();
4111
+ break;
4112
+ case 2:
4113
+ message.description = reader.string();
4114
+ break;
4115
+ case 3:
4116
+ message.schedule = FeeDiscountSchedule.decode(reader, reader.uint32());
4117
+ break;
4118
+ default:
4119
+ reader.skipType(tag & 7);
4120
+ break;
4121
+ }
4122
+ }
4123
+ return message;
4124
+ },
4125
+ fromPartial(object: DeepPartial<FeeDiscountProposal>): FeeDiscountProposal {
4126
+ const message = createBaseFeeDiscountProposal();
4127
+ message.title = object.title ?? "";
4128
+ message.description = object.description ?? "";
4129
+ message.schedule = object.schedule !== undefined && object.schedule !== null ? FeeDiscountSchedule.fromPartial(object.schedule) : undefined;
4130
+ return message;
4131
+ },
4132
+ fromAmino(object: FeeDiscountProposalAmino): FeeDiscountProposal {
4133
+ const message = createBaseFeeDiscountProposal();
4134
+ if (object.title !== undefined && object.title !== null) {
4135
+ message.title = object.title;
4136
+ }
4137
+ if (object.description !== undefined && object.description !== null) {
4138
+ message.description = object.description;
4139
+ }
4140
+ if (object.schedule !== undefined && object.schedule !== null) {
4141
+ message.schedule = FeeDiscountSchedule.fromAmino(object.schedule);
4142
+ }
4143
+ return message;
4144
+ },
4145
+ toAmino(message: FeeDiscountProposal): FeeDiscountProposalAmino {
4146
+ const obj: any = {};
4147
+ obj.title = message.title === "" ? undefined : message.title;
4148
+ obj.description = message.description === "" ? undefined : message.description;
4149
+ obj.schedule = message.schedule ? FeeDiscountSchedule.toAmino(message.schedule) : undefined;
4150
+ return obj;
4151
+ },
4152
+ fromAminoMsg(object: FeeDiscountProposalAminoMsg): FeeDiscountProposal {
4153
+ return FeeDiscountProposal.fromAmino(object.value);
4154
+ },
4155
+ toAminoMsg(message: FeeDiscountProposal): FeeDiscountProposalAminoMsg {
4156
+ return {
4157
+ type: "exchange/FeeDiscountProposal",
4158
+ value: FeeDiscountProposal.toAmino(message)
4159
+ };
4160
+ },
4161
+ fromProtoMsg(message: FeeDiscountProposalProtoMsg): FeeDiscountProposal {
4162
+ return FeeDiscountProposal.decode(message.value);
4163
+ },
4164
+ toProto(message: FeeDiscountProposal): Uint8Array {
4165
+ return FeeDiscountProposal.encode(message).finish();
4166
+ },
4167
+ toProtoMsg(message: FeeDiscountProposal): FeeDiscountProposalProtoMsg {
4168
+ return {
4169
+ typeUrl: "/injective.exchange.v1beta1.FeeDiscountProposal",
4170
+ value: FeeDiscountProposal.encode(message).finish()
4171
+ };
4172
+ }
4173
+ };
4174
+ GlobalDecoderRegistry.register(FeeDiscountProposal.typeUrl, FeeDiscountProposal);
4175
+ GlobalDecoderRegistry.registerAminoProtoMapping(FeeDiscountProposal.aminoType, FeeDiscountProposal.typeUrl);
4176
+ function createBaseBatchCommunityPoolSpendProposal(): BatchCommunityPoolSpendProposal {
4177
+ return {
4178
+ title: "",
4179
+ description: "",
4180
+ proposals: []
4181
+ };
4182
+ }
4183
+ export const BatchCommunityPoolSpendProposal = {
4184
+ typeUrl: "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal",
4185
+ aminoType: "exchange/BatchCommunityPoolSpendProposal",
4186
+ is(o: any): o is BatchCommunityPoolSpendProposal {
4187
+ return o && (o.$typeUrl === BatchCommunityPoolSpendProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.proposals) && (!o.proposals.length || CommunityPoolSpendProposal.is(o.proposals[0])));
4188
+ },
4189
+ isAmino(o: any): o is BatchCommunityPoolSpendProposalAmino {
4190
+ return o && (o.$typeUrl === BatchCommunityPoolSpendProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.proposals) && (!o.proposals.length || CommunityPoolSpendProposal.isAmino(o.proposals[0])));
4191
+ },
4192
+ encode(message: BatchCommunityPoolSpendProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4193
+ if (message.title !== "") {
4194
+ writer.uint32(10).string(message.title);
4195
+ }
4196
+ if (message.description !== "") {
4197
+ writer.uint32(18).string(message.description);
4198
+ }
4199
+ for (const v of message.proposals) {
4200
+ CommunityPoolSpendProposal.encode(v!, writer.uint32(26).fork()).ldelim();
4201
+ }
4202
+ return writer;
4203
+ },
4204
+ decode(input: BinaryReader | Uint8Array, length?: number): BatchCommunityPoolSpendProposal {
4205
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4206
+ let end = length === undefined ? reader.len : reader.pos + length;
4207
+ const message = createBaseBatchCommunityPoolSpendProposal();
4208
+ while (reader.pos < end) {
4209
+ const tag = reader.uint32();
4210
+ switch (tag >>> 3) {
4211
+ case 1:
4212
+ message.title = reader.string();
4213
+ break;
4214
+ case 2:
4215
+ message.description = reader.string();
4216
+ break;
4217
+ case 3:
4218
+ message.proposals.push(CommunityPoolSpendProposal.decode(reader, reader.uint32()));
4219
+ break;
4220
+ default:
4221
+ reader.skipType(tag & 7);
4222
+ break;
4223
+ }
4224
+ }
4225
+ return message;
4226
+ },
4227
+ fromPartial(object: DeepPartial<BatchCommunityPoolSpendProposal>): BatchCommunityPoolSpendProposal {
4228
+ const message = createBaseBatchCommunityPoolSpendProposal();
4229
+ message.title = object.title ?? "";
4230
+ message.description = object.description ?? "";
4231
+ message.proposals = object.proposals?.map(e => CommunityPoolSpendProposal.fromPartial(e)) || [];
4232
+ return message;
4233
+ },
4234
+ fromAmino(object: BatchCommunityPoolSpendProposalAmino): BatchCommunityPoolSpendProposal {
4235
+ const message = createBaseBatchCommunityPoolSpendProposal();
4236
+ if (object.title !== undefined && object.title !== null) {
4237
+ message.title = object.title;
4238
+ }
4239
+ if (object.description !== undefined && object.description !== null) {
4240
+ message.description = object.description;
4241
+ }
4242
+ message.proposals = object.proposals?.map(e => CommunityPoolSpendProposal.fromAmino(e)) || [];
4243
+ return message;
4244
+ },
4245
+ toAmino(message: BatchCommunityPoolSpendProposal): BatchCommunityPoolSpendProposalAmino {
4246
+ const obj: any = {};
4247
+ obj.title = message.title === "" ? undefined : message.title;
4248
+ obj.description = message.description === "" ? undefined : message.description;
4249
+ if (message.proposals) {
4250
+ obj.proposals = message.proposals.map(e => e ? CommunityPoolSpendProposal.toAmino(e) : undefined);
4251
+ } else {
4252
+ obj.proposals = message.proposals;
4253
+ }
4254
+ return obj;
4255
+ },
4256
+ fromAminoMsg(object: BatchCommunityPoolSpendProposalAminoMsg): BatchCommunityPoolSpendProposal {
4257
+ return BatchCommunityPoolSpendProposal.fromAmino(object.value);
4258
+ },
4259
+ toAminoMsg(message: BatchCommunityPoolSpendProposal): BatchCommunityPoolSpendProposalAminoMsg {
4260
+ return {
4261
+ type: "exchange/BatchCommunityPoolSpendProposal",
4262
+ value: BatchCommunityPoolSpendProposal.toAmino(message)
4263
+ };
4264
+ },
4265
+ fromProtoMsg(message: BatchCommunityPoolSpendProposalProtoMsg): BatchCommunityPoolSpendProposal {
4266
+ return BatchCommunityPoolSpendProposal.decode(message.value);
4267
+ },
4268
+ toProto(message: BatchCommunityPoolSpendProposal): Uint8Array {
4269
+ return BatchCommunityPoolSpendProposal.encode(message).finish();
4270
+ },
4271
+ toProtoMsg(message: BatchCommunityPoolSpendProposal): BatchCommunityPoolSpendProposalProtoMsg {
4272
+ return {
4273
+ typeUrl: "/injective.exchange.v1beta1.BatchCommunityPoolSpendProposal",
4274
+ value: BatchCommunityPoolSpendProposal.encode(message).finish()
4275
+ };
4276
+ }
4277
+ };
4278
+ GlobalDecoderRegistry.register(BatchCommunityPoolSpendProposal.typeUrl, BatchCommunityPoolSpendProposal);
4279
+ GlobalDecoderRegistry.registerAminoProtoMapping(BatchCommunityPoolSpendProposal.aminoType, BatchCommunityPoolSpendProposal.typeUrl);
4280
+ function createBaseAtomicMarketOrderFeeMultiplierScheduleProposal(): AtomicMarketOrderFeeMultiplierScheduleProposal {
4281
+ return {
4282
+ title: "",
4283
+ description: "",
4284
+ marketFeeMultipliers: []
4285
+ };
4286
+ }
4287
+ export const AtomicMarketOrderFeeMultiplierScheduleProposal = {
4288
+ typeUrl: "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal",
4289
+ aminoType: "exchange/AtomicMarketOrderFeeMultiplierScheduleProposal",
4290
+ is(o: any): o is AtomicMarketOrderFeeMultiplierScheduleProposal {
4291
+ return o && (o.$typeUrl === AtomicMarketOrderFeeMultiplierScheduleProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.marketFeeMultipliers) && (!o.marketFeeMultipliers.length || MarketFeeMultiplier.is(o.marketFeeMultipliers[0])));
4292
+ },
4293
+ isAmino(o: any): o is AtomicMarketOrderFeeMultiplierScheduleProposalAmino {
4294
+ return o && (o.$typeUrl === AtomicMarketOrderFeeMultiplierScheduleProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Array.isArray(o.market_fee_multipliers) && (!o.market_fee_multipliers.length || MarketFeeMultiplier.isAmino(o.market_fee_multipliers[0])));
4295
+ },
4296
+ encode(message: AtomicMarketOrderFeeMultiplierScheduleProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4297
+ if (message.title !== "") {
4298
+ writer.uint32(10).string(message.title);
4299
+ }
4300
+ if (message.description !== "") {
4301
+ writer.uint32(18).string(message.description);
4302
+ }
4303
+ for (const v of message.marketFeeMultipliers) {
4304
+ MarketFeeMultiplier.encode(v!, writer.uint32(26).fork()).ldelim();
4305
+ }
4306
+ return writer;
4307
+ },
4308
+ decode(input: BinaryReader | Uint8Array, length?: number): AtomicMarketOrderFeeMultiplierScheduleProposal {
4309
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4310
+ let end = length === undefined ? reader.len : reader.pos + length;
4311
+ const message = createBaseAtomicMarketOrderFeeMultiplierScheduleProposal();
4312
+ while (reader.pos < end) {
4313
+ const tag = reader.uint32();
4314
+ switch (tag >>> 3) {
4315
+ case 1:
4316
+ message.title = reader.string();
4317
+ break;
4318
+ case 2:
4319
+ message.description = reader.string();
4320
+ break;
4321
+ case 3:
4322
+ message.marketFeeMultipliers.push(MarketFeeMultiplier.decode(reader, reader.uint32()));
4323
+ break;
4324
+ default:
4325
+ reader.skipType(tag & 7);
4326
+ break;
4327
+ }
4328
+ }
4329
+ return message;
4330
+ },
4331
+ fromPartial(object: DeepPartial<AtomicMarketOrderFeeMultiplierScheduleProposal>): AtomicMarketOrderFeeMultiplierScheduleProposal {
4332
+ const message = createBaseAtomicMarketOrderFeeMultiplierScheduleProposal();
4333
+ message.title = object.title ?? "";
4334
+ message.description = object.description ?? "";
4335
+ message.marketFeeMultipliers = object.marketFeeMultipliers?.map(e => MarketFeeMultiplier.fromPartial(e)) || [];
4336
+ return message;
4337
+ },
4338
+ fromAmino(object: AtomicMarketOrderFeeMultiplierScheduleProposalAmino): AtomicMarketOrderFeeMultiplierScheduleProposal {
4339
+ const message = createBaseAtomicMarketOrderFeeMultiplierScheduleProposal();
4340
+ if (object.title !== undefined && object.title !== null) {
4341
+ message.title = object.title;
4342
+ }
4343
+ if (object.description !== undefined && object.description !== null) {
4344
+ message.description = object.description;
4345
+ }
4346
+ message.marketFeeMultipliers = object.market_fee_multipliers?.map(e => MarketFeeMultiplier.fromAmino(e)) || [];
4347
+ return message;
4348
+ },
4349
+ toAmino(message: AtomicMarketOrderFeeMultiplierScheduleProposal): AtomicMarketOrderFeeMultiplierScheduleProposalAmino {
4350
+ const obj: any = {};
4351
+ obj.title = message.title === "" ? undefined : message.title;
4352
+ obj.description = message.description === "" ? undefined : message.description;
4353
+ if (message.marketFeeMultipliers) {
4354
+ obj.market_fee_multipliers = message.marketFeeMultipliers.map(e => e ? MarketFeeMultiplier.toAmino(e) : undefined);
4355
+ } else {
4356
+ obj.market_fee_multipliers = message.marketFeeMultipliers;
4357
+ }
4358
+ return obj;
4359
+ },
4360
+ fromAminoMsg(object: AtomicMarketOrderFeeMultiplierScheduleProposalAminoMsg): AtomicMarketOrderFeeMultiplierScheduleProposal {
4361
+ return AtomicMarketOrderFeeMultiplierScheduleProposal.fromAmino(object.value);
4362
+ },
4363
+ toAminoMsg(message: AtomicMarketOrderFeeMultiplierScheduleProposal): AtomicMarketOrderFeeMultiplierScheduleProposalAminoMsg {
4364
+ return {
4365
+ type: "exchange/AtomicMarketOrderFeeMultiplierScheduleProposal",
4366
+ value: AtomicMarketOrderFeeMultiplierScheduleProposal.toAmino(message)
4367
+ };
4368
+ },
4369
+ fromProtoMsg(message: AtomicMarketOrderFeeMultiplierScheduleProposalProtoMsg): AtomicMarketOrderFeeMultiplierScheduleProposal {
4370
+ return AtomicMarketOrderFeeMultiplierScheduleProposal.decode(message.value);
4371
+ },
4372
+ toProto(message: AtomicMarketOrderFeeMultiplierScheduleProposal): Uint8Array {
4373
+ return AtomicMarketOrderFeeMultiplierScheduleProposal.encode(message).finish();
4374
+ },
4375
+ toProtoMsg(message: AtomicMarketOrderFeeMultiplierScheduleProposal): AtomicMarketOrderFeeMultiplierScheduleProposalProtoMsg {
4376
+ return {
4377
+ typeUrl: "/injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal",
4378
+ value: AtomicMarketOrderFeeMultiplierScheduleProposal.encode(message).finish()
4379
+ };
4380
+ }
4381
+ };
4382
+ GlobalDecoderRegistry.register(AtomicMarketOrderFeeMultiplierScheduleProposal.typeUrl, AtomicMarketOrderFeeMultiplierScheduleProposal);
4383
+ GlobalDecoderRegistry.registerAminoProtoMapping(AtomicMarketOrderFeeMultiplierScheduleProposal.aminoType, AtomicMarketOrderFeeMultiplierScheduleProposal.typeUrl);