carbon-js-sdk 0.11.20 → 0.11.21
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.
- package/README.md +85 -85
- package/lib/CarbonSDK.d.ts +159 -159
- package/lib/CarbonSDK.js +466 -470
- package/lib/clients/AxelarBridgeClient.d.ts +28 -28
- package/lib/clients/AxelarBridgeClient.js +37 -37
- package/lib/clients/BatchQueryClient.d.ts +26 -26
- package/lib/clients/BatchQueryClient.js +100 -100
- package/lib/clients/BlockchainClient.d.ts +16 -16
- package/lib/clients/BlockchainClient.js +19 -19
- package/lib/clients/CarbonQueryClient.d.ts +118 -118
- package/lib/clients/CarbonQueryClient.js +120 -120
- package/lib/clients/ETHClient.d.ts +115 -115
- package/lib/clients/ETHClient.js +377 -377
- package/lib/clients/GasFee.d.ts +12 -12
- package/lib/clients/GasFee.js +31 -31
- package/lib/clients/GrpcQueryClient.d.ts +22 -22
- package/lib/clients/GrpcQueryClient.js +56 -56
- package/lib/clients/HydrogenClient.d.ts +31 -31
- package/lib/clients/HydrogenClient.js +184 -184
- package/lib/clients/InsightsQueryClient.d.ts +70 -70
- package/lib/clients/InsightsQueryClient.js +552 -552
- package/lib/clients/N3Client.d.ts +73 -73
- package/lib/clients/N3Client.js +287 -287
- package/lib/clients/NEOClient.d.ts +57 -57
- package/lib/clients/NEOClient.js +335 -339
- package/lib/clients/TokenClient.d.ts +90 -90
- package/lib/clients/TokenClient.js +757 -757
- package/lib/clients/ZILClient.d.ts +106 -106
- package/lib/clients/ZILClient.js +443 -443
- package/lib/clients/index.d.ts +10 -10
- package/lib/clients/index.js +26 -26
- package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/adl/genesis.js +46 -46
- package/lib/codec/Switcheo/carbon/adl/query.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/adl/query.js +20 -20
- package/lib/codec/Switcheo/carbon/adl/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/adl/tx.js +20 -20
- package/lib/codec/Switcheo/carbon/admin/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/admin/export.js +13 -13
- package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/admin/genesis.js +46 -46
- package/lib/codec/Switcheo/carbon/admin/query.d.ts +62 -62
- package/lib/codec/Switcheo/carbon/admin/query.js +186 -186
- package/lib/codec/Switcheo/carbon/admin/tx.d.ts +62 -62
- package/lib/codec/Switcheo/carbon/admin/tx.js +198 -198
- package/lib/codec/Switcheo/carbon/bank/event.d.ts +65 -65
- package/lib/codec/Switcheo/carbon/bank/event.js +332 -332
- package/lib/codec/Switcheo/carbon/bank/export.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/bank/export.js +23 -23
- package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/bank/genesis.js +63 -63
- package/lib/codec/Switcheo/carbon/bank/query.d.ts +122 -122
- package/lib/codec/Switcheo/carbon/bank/query.js +643 -643
- package/lib/codec/Switcheo/carbon/bank/tx.d.ts +63 -63
- package/lib/codec/Switcheo/carbon/bank/tx.js +210 -210
- package/lib/codec/Switcheo/carbon/book/book.d.ts +57 -57
- package/lib/codec/Switcheo/carbon/book/book.js +319 -319
- package/lib/codec/Switcheo/carbon/book/event.d.ts +41 -41
- package/lib/codec/Switcheo/carbon/book/event.js +195 -195
- package/lib/codec/Switcheo/carbon/book/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/book/export.js +25 -25
- package/lib/codec/Switcheo/carbon/book/genesis.d.ts +25 -25
- package/lib/codec/Switcheo/carbon/book/genesis.js +79 -79
- package/lib/codec/Switcheo/carbon/book/legacy.d.ts +22 -22
- package/lib/codec/Switcheo/carbon/book/legacy.js +120 -120
- package/lib/codec/Switcheo/carbon/book/query.d.ts +147 -147
- package/lib/codec/Switcheo/carbon/book/query.js +618 -618
- package/lib/codec/Switcheo/carbon/book/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/book/tx.js +20 -20
- package/lib/codec/Switcheo/carbon/bridge/bridge.d.ts +97 -97
- package/lib/codec/Switcheo/carbon/bridge/bridge.js +596 -596
- package/lib/codec/Switcheo/carbon/bridge/event.d.ts +293 -293
- package/lib/codec/Switcheo/carbon/bridge/event.js +1851 -1851
- package/lib/codec/Switcheo/carbon/bridge/export.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/bridge/export.js +131 -131
- package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/bridge/genesis.js +201 -201
- package/lib/codec/Switcheo/carbon/bridge/params.d.ts +47 -47
- package/lib/codec/Switcheo/carbon/bridge/params.js +136 -136
- package/lib/codec/Switcheo/carbon/bridge/pending_action.d.ts +94 -94
- package/lib/codec/Switcheo/carbon/bridge/pending_action.js +698 -698
- package/lib/codec/Switcheo/carbon/bridge/query.d.ts +291 -291
- package/lib/codec/Switcheo/carbon/bridge/query.js +1301 -1301
- package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +810 -810
- package/lib/codec/Switcheo/carbon/bridge/tx.js +3970 -3970
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +48 -48
- package/lib/codec/Switcheo/carbon/broker/amm.js +312 -312
- package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +27 -27
- package/lib/codec/Switcheo/carbon/broker/candlestick.js +211 -211
- package/lib/codec/Switcheo/carbon/broker/event.d.ts +53 -53
- package/lib/codec/Switcheo/carbon/broker/event.js +485 -485
- package/lib/codec/Switcheo/carbon/broker/export.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/broker/export.js +27 -27
- package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +25 -25
- package/lib/codec/Switcheo/carbon/broker/genesis.js +79 -79
- package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.js +93 -93
- package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/broker/pagination.js +78 -78
- package/lib/codec/Switcheo/carbon/broker/query.d.ts +107 -107
- package/lib/codec/Switcheo/carbon/broker/query.js +597 -597
- package/lib/codec/Switcheo/carbon/broker/tx.d.ts +53 -53
- package/lib/codec/Switcheo/carbon/broker/tx.js +176 -176
- package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +21 -21
- package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.js +98 -98
- package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/btcx/denom_info.js +140 -140
- package/lib/codec/Switcheo/carbon/btcx/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/btcx/export.js +19 -19
- package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/btcx/genesis.js +46 -46
- package/lib/codec/Switcheo/carbon/btcx/query.d.ts +68 -68
- package/lib/codec/Switcheo/carbon/btcx/query.js +275 -275
- package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +92 -92
- package/lib/codec/Switcheo/carbon/btcx/tx.js +436 -436
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/ccm/export.js +24 -24
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +119 -119
- package/lib/codec/Switcheo/carbon/ccm/genesis.js +604 -604
- package/lib/codec/Switcheo/carbon/ccm/params.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/ccm/params.js +78 -78
- package/lib/codec/Switcheo/carbon/ccm/query.d.ts +75 -75
- package/lib/codec/Switcheo/carbon/ccm/query.js +284 -284
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +101 -101
- package/lib/codec/Switcheo/carbon/ccm/tx.js +359 -359
- package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +55 -55
- package/lib/codec/Switcheo/carbon/cdp/asset_params.js +396 -396
- package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +32 -32
- package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.js +288 -288
- package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +23 -23
- package/lib/codec/Switcheo/carbon/cdp/debt_info.js +158 -158
- package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +23 -23
- package/lib/codec/Switcheo/carbon/cdp/e_mode_category.js +135 -135
- package/lib/codec/Switcheo/carbon/cdp/event.d.ts +424 -424
- package/lib/codec/Switcheo/carbon/cdp/event.js +2695 -2695
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +13 -13
- package/lib/codec/Switcheo/carbon/cdp/export.js +196 -196
- package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +134 -134
- package/lib/codec/Switcheo/carbon/cdp/genesis.js +823 -823
- package/lib/codec/Switcheo/carbon/cdp/params.d.ts +98 -98
- package/lib/codec/Switcheo/carbon/cdp/params.js +405 -405
- package/lib/codec/Switcheo/carbon/cdp/query.d.ts +669 -669
- package/lib/codec/Switcheo/carbon/cdp/query.js +3250 -3250
- package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +26 -26
- package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.js +180 -180
- package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +71 -71
- package/lib/codec/Switcheo/carbon/cdp/reward_scheme.js +550 -550
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +22 -22
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.js +144 -144
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.js +99 -99
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +831 -831
- package/lib/codec/Switcheo/carbon/cdp/tx.js +3889 -3889
- package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/coin/bridge.js +151 -151
- package/lib/codec/Switcheo/carbon/coin/event.d.ts +143 -143
- package/lib/codec/Switcheo/carbon/coin/event.js +775 -775
- package/lib/codec/Switcheo/carbon/coin/export.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/coin/export.js +111 -111
- package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +42 -42
- package/lib/codec/Switcheo/carbon/coin/genesis.js +207 -207
- package/lib/codec/Switcheo/carbon/coin/group.d.ts +53 -53
- package/lib/codec/Switcheo/carbon/coin/group.js +230 -230
- package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +21 -21
- package/lib/codec/Switcheo/carbon/coin/proposal.js +91 -91
- package/lib/codec/Switcheo/carbon/coin/query.d.ts +331 -331
- package/lib/codec/Switcheo/carbon/coin/query.js +1526 -1526
- package/lib/codec/Switcheo/carbon/coin/token.d.ts +104 -104
- package/lib/codec/Switcheo/carbon/coin/token.js +700 -700
- package/lib/codec/Switcheo/carbon/coin/tx.d.ts +611 -611
- package/lib/codec/Switcheo/carbon/coin/tx.js +3255 -3255
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +44 -44
- package/lib/codec/Switcheo/carbon/erc20/erc20.js +144 -144
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +82 -82
- package/lib/codec/Switcheo/carbon/erc20/events.js +330 -330
- package/lib/codec/Switcheo/carbon/erc20/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/erc20/export.js +38 -38
- package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/erc20/genesis.js +81 -81
- package/lib/codec/Switcheo/carbon/erc20/params.d.ts +41 -41
- package/lib/codec/Switcheo/carbon/erc20/params.js +133 -133
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +120 -120
- package/lib/codec/Switcheo/carbon/erc20/query.js +333 -333
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +251 -251
- package/lib/codec/Switcheo/carbon/erc20/tx.js +767 -767
- package/lib/codec/Switcheo/carbon/evmbank/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/evmbank/export.js +8 -8
- package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +32 -32
- package/lib/codec/Switcheo/carbon/evmbank/genesis.js +152 -152
- package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +40 -40
- package/lib/codec/Switcheo/carbon/evmbank/query.js +116 -116
- package/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.d.ts +67 -67
- package/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.js +407 -407
- package/lib/codec/Switcheo/carbon/evmcontract/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/evmcontract/export.js +30 -30
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +96 -96
- package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/evmcontract/params.js +111 -111
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +139 -139
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +581 -581
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +89 -89
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +346 -346
- package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/evmmerge/address.js +75 -75
- package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/evmmerge/event.js +90 -90
- package/lib/codec/Switcheo/carbon/evmmerge/export.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/evmmerge/export.js +20 -20
- package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +48 -48
- package/lib/codec/Switcheo/carbon/evmmerge/genesis.js +216 -216
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +25 -25
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.js +105 -105
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +87 -87
- package/lib/codec/Switcheo/carbon/evmmerge/query.js +254 -254
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +51 -51
- package/lib/codec/Switcheo/carbon/evmmerge/tx.js +128 -128
- package/lib/codec/Switcheo/carbon/fee/event.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/fee/event.js +83 -83
- package/lib/codec/Switcheo/carbon/fee/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/fee/export.js +27 -27
- package/lib/codec/Switcheo/carbon/fee/fee.d.ts +42 -42
- package/lib/codec/Switcheo/carbon/fee/fee.js +183 -183
- package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +23 -23
- package/lib/codec/Switcheo/carbon/fee/genesis.js +79 -79
- package/lib/codec/Switcheo/carbon/fee/query.d.ts +114 -114
- package/lib/codec/Switcheo/carbon/fee/query.js +470 -470
- package/lib/codec/Switcheo/carbon/fee/tx.d.ts +108 -108
- package/lib/codec/Switcheo/carbon/fee/tx.js +415 -415
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +71 -71
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.js +383 -383
- package/lib/codec/Switcheo/carbon/headersync/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/headersync/export.js +22 -22
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +82 -82
- package/lib/codec/Switcheo/carbon/headersync/genesis.js +419 -419
- package/lib/codec/Switcheo/carbon/headersync/query.d.ts +42 -42
- package/lib/codec/Switcheo/carbon/headersync/query.js +125 -125
- package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +64 -64
- package/lib/codec/Switcheo/carbon/headersync/tx.js +215 -215
- package/lib/codec/Switcheo/carbon/inflation/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/inflation/export.js +8 -8
- package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +25 -25
- package/lib/codec/Switcheo/carbon/inflation/genesis.js +79 -79
- package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +29 -29
- package/lib/codec/Switcheo/carbon/inflation/inflation.js +165 -165
- package/lib/codec/Switcheo/carbon/inflation/query.d.ts +41 -41
- package/lib/codec/Switcheo/carbon/inflation/query.js +109 -109
- package/lib/codec/Switcheo/carbon/inflation/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/inflation/tx.js +20 -20
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/insurance/event.js +46 -46
- package/lib/codec/Switcheo/carbon/insurance/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/insurance/export.js +21 -21
- package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +29 -29
- package/lib/codec/Switcheo/carbon/insurance/fund.js +148 -148
- package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/insurance/genesis.js +63 -63
- package/lib/codec/Switcheo/carbon/insurance/params.d.ts +29 -29
- package/lib/codec/Switcheo/carbon/insurance/params.js +113 -113
- package/lib/codec/Switcheo/carbon/insurance/query.d.ts +63 -63
- package/lib/codec/Switcheo/carbon/insurance/query.js +195 -195
- package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +69 -69
- package/lib/codec/Switcheo/carbon/insurance/tx.js +246 -246
- package/lib/codec/Switcheo/carbon/leverage/event.d.ts +21 -21
- package/lib/codec/Switcheo/carbon/leverage/event.js +100 -100
- package/lib/codec/Switcheo/carbon/leverage/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/leverage/export.js +16 -16
- package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/leverage/genesis.js +64 -64
- package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +30 -30
- package/lib/codec/Switcheo/carbon/leverage/leverage.js +134 -134
- package/lib/codec/Switcheo/carbon/leverage/query.d.ts +70 -70
- package/lib/codec/Switcheo/carbon/leverage/query.js +234 -234
- package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +43 -43
- package/lib/codec/Switcheo/carbon/leverage/tx.js +127 -127
- package/lib/codec/Switcheo/carbon/liquidation/event.d.ts +23 -23
- package/lib/codec/Switcheo/carbon/liquidation/event.js +154 -154
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/liquidation/export.js +15 -15
- package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +37 -37
- package/lib/codec/Switcheo/carbon/liquidation/genesis.js +136 -136
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +33 -33
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.js +203 -203
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +52 -52
- package/lib/codec/Switcheo/carbon/liquidation/query.js +254 -254
- package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +22 -22
- package/lib/codec/Switcheo/carbon/liquidation/quote_changes.js +95 -95
- package/lib/codec/Switcheo/carbon/liquidation/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/liquidation/tx.js +20 -20
- package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +182 -182
- package/lib/codec/Switcheo/carbon/liquiditypool/event.js +1268 -1268
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +132 -132
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +33 -33
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.js +229 -229
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +147 -147
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +1081 -1081
- package/lib/codec/Switcheo/carbon/liquiditypool/params.d.ts +30 -30
- package/lib/codec/Switcheo/carbon/liquiditypool/params.js +149 -149
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +117 -117
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.js +697 -697
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +393 -393
- package/lib/codec/Switcheo/carbon/liquiditypool/query.js +1826 -1826
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +196 -196
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.js +1204 -1204
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +495 -495
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +2522 -2522
- package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +46 -46
- package/lib/codec/Switcheo/carbon/lockproxy/event.js +348 -348
- package/lib/codec/Switcheo/carbon/lockproxy/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/lockproxy/export.js +28 -28
- package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +68 -68
- package/lib/codec/Switcheo/carbon/lockproxy/genesis.js +355 -355
- package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +22 -22
- package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.js +147 -147
- package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +67 -67
- package/lib/codec/Switcheo/carbon/lockproxy/query.js +274 -274
- package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +147 -147
- package/lib/codec/Switcheo/carbon/lockproxy/tx.js +808 -808
- package/lib/codec/Switcheo/carbon/market/event.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/market/event.js +76 -76
- package/lib/codec/Switcheo/carbon/market/export.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/market/export.js +71 -71
- package/lib/codec/Switcheo/carbon/market/fee.d.ts +129 -129
- package/lib/codec/Switcheo/carbon/market/fee.js +334 -334
- package/lib/codec/Switcheo/carbon/market/genesis.d.ts +32 -32
- package/lib/codec/Switcheo/carbon/market/genesis.js +146 -146
- package/lib/codec/Switcheo/carbon/market/market.d.ts +96 -96
- package/lib/codec/Switcheo/carbon/market/market.js +880 -880
- package/lib/codec/Switcheo/carbon/market/params.d.ts +85 -85
- package/lib/codec/Switcheo/carbon/market/params.js +821 -821
- package/lib/codec/Switcheo/carbon/market/proposal.d.ts +46 -46
- package/lib/codec/Switcheo/carbon/market/proposal.js +245 -245
- package/lib/codec/Switcheo/carbon/market/query.d.ts +276 -276
- package/lib/codec/Switcheo/carbon/market/query.js +1250 -1250
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +337 -337
- package/lib/codec/Switcheo/carbon/market/tx.js +1601 -1601
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/marketstats/export.js +8 -8
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +46 -46
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +31 -31
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.js +258 -258
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +40 -40
- package/lib/codec/Switcheo/carbon/marketstats/query.js +108 -108
- package/lib/codec/Switcheo/carbon/marketstats/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/marketstats/tx.js +20 -20
- package/lib/codec/Switcheo/carbon/misc/block.d.ts +21 -21
- package/lib/codec/Switcheo/carbon/misc/block.js +105 -105
- package/lib/codec/Switcheo/carbon/misc/export.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/misc/export.js +29 -29
- package/lib/codec/Switcheo/carbon/misc/message.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/misc/message.js +157 -157
- package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/misc/message_type.js +60 -60
- package/lib/codec/Switcheo/carbon/misc/query.d.ts +192 -192
- package/lib/codec/Switcheo/carbon/misc/query.js +884 -884
- package/lib/codec/Switcheo/carbon/misc/trade.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/misc/trade.js +224 -224
- package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +45 -45
- package/lib/codec/Switcheo/carbon/misc/transaction.js +369 -369
- package/lib/codec/Switcheo/carbon/oracle/event.d.ts +37 -37
- package/lib/codec/Switcheo/carbon/oracle/event.js +228 -228
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/oracle/export.js +67 -67
- package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/oracle/genesis.js +127 -127
- package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +50 -50
- package/lib/codec/Switcheo/carbon/oracle/oracle.js +324 -324
- package/lib/codec/Switcheo/carbon/oracle/params.d.ts +47 -47
- package/lib/codec/Switcheo/carbon/oracle/params.js +389 -389
- package/lib/codec/Switcheo/carbon/oracle/query.d.ts +331 -331
- package/lib/codec/Switcheo/carbon/oracle/query.js +1501 -1501
- package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +33 -33
- package/lib/codec/Switcheo/carbon/oracle/slashing.js +191 -191
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +306 -306
- package/lib/codec/Switcheo/carbon/oracle/tx.js +1496 -1496
- package/lib/codec/Switcheo/carbon/order/event.d.ts +23 -23
- package/lib/codec/Switcheo/carbon/order/event.js +146 -146
- package/lib/codec/Switcheo/carbon/order/evm_hooks.d.ts +57 -57
- package/lib/codec/Switcheo/carbon/order/evm_hooks.js +356 -356
- package/lib/codec/Switcheo/carbon/order/export.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/order/export.js +48 -48
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +63 -63
- package/lib/codec/Switcheo/carbon/order/genesis.js +323 -323
- package/lib/codec/Switcheo/carbon/order/order.d.ts +103 -103
- package/lib/codec/Switcheo/carbon/order/order.js +847 -847
- package/lib/codec/Switcheo/carbon/order/params.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/order/params.js +109 -109
- package/lib/codec/Switcheo/carbon/order/query.d.ts +144 -144
- package/lib/codec/Switcheo/carbon/order/query.js +597 -597
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +188 -188
- package/lib/codec/Switcheo/carbon/order/tx.js +817 -817
- package/lib/codec/Switcheo/carbon/otc/event.d.ts +34 -0
- package/lib/codec/Switcheo/carbon/otc/event.js +174 -0
- package/lib/codec/Switcheo/carbon/otc/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/otc/export.js +36 -0
- package/lib/codec/{marketstats → Switcheo/carbon/otc}/genesis.d.ts +25 -21
- package/lib/codec/{marketstats → Switcheo/carbon/otc}/genesis.js +97 -63
- package/lib/codec/Switcheo/carbon/otc/params.d.ts +45 -0
- package/lib/codec/Switcheo/carbon/otc/params.js +332 -0
- package/lib/codec/Switcheo/carbon/otc/query.d.ts +170 -0
- package/lib/codec/Switcheo/carbon/otc/query.js +675 -0
- package/lib/codec/Switcheo/carbon/otc/quote.d.ts +34 -0
- package/lib/codec/Switcheo/carbon/otc/quote.js +197 -0
- package/lib/codec/Switcheo/carbon/otc/rfq.d.ts +34 -0
- package/lib/codec/Switcheo/carbon/otc/rfq.js +197 -0
- package/lib/codec/Switcheo/carbon/otc/tx.d.ts +137 -0
- package/lib/codec/Switcheo/carbon/otc/tx.js +578 -0
- package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +95 -95
- package/lib/codec/Switcheo/carbon/perpspool/event.js +561 -561
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/perpspool/export.js +69 -69
- package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +61 -61
- package/lib/codec/Switcheo/carbon/perpspool/genesis.js +343 -343
- package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +109 -109
- package/lib/codec/Switcheo/carbon/perpspool/market.js +493 -493
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +49 -49
- package/lib/codec/Switcheo/carbon/perpspool/params.js +363 -363
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +109 -109
- package/lib/codec/Switcheo/carbon/perpspool/pool.js +638 -638
- package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +247 -247
- package/lib/codec/Switcheo/carbon/perpspool/query.js +1141 -1141
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +242 -242
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +1065 -1065
- package/lib/codec/Switcheo/carbon/position/event.d.ts +36 -36
- package/lib/codec/Switcheo/carbon/position/event.js +230 -230
- package/lib/codec/Switcheo/carbon/position/evm_hooks.d.ts +32 -32
- package/lib/codec/Switcheo/carbon/position/evm_hooks.js +195 -195
- package/lib/codec/Switcheo/carbon/position/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/position/export.js +29 -29
- package/lib/codec/Switcheo/carbon/position/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/position/genesis.js +64 -64
- package/lib/codec/Switcheo/carbon/position/position.d.ts +85 -85
- package/lib/codec/Switcheo/carbon/position/position.js +659 -659
- package/lib/codec/Switcheo/carbon/position/query.d.ts +135 -135
- package/lib/codec/Switcheo/carbon/position/query.js +588 -588
- package/lib/codec/Switcheo/carbon/position/tx.d.ts +42 -42
- package/lib/codec/Switcheo/carbon/position/tx.js +127 -127
- package/lib/codec/Switcheo/carbon/pricing/event.d.ts +84 -84
- package/lib/codec/Switcheo/carbon/pricing/event.js +411 -411
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/pricing/export.js +51 -51
- package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +27 -27
- package/lib/codec/Switcheo/carbon/pricing/genesis.js +96 -96
- package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +22 -22
- package/lib/codec/Switcheo/carbon/pricing/legacy.js +93 -93
- package/lib/codec/Switcheo/carbon/pricing/params.d.ts +37 -37
- package/lib/codec/Switcheo/carbon/pricing/params.js +252 -252
- package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +45 -45
- package/lib/codec/Switcheo/carbon/pricing/pricing.js +357 -357
- package/lib/codec/Switcheo/carbon/pricing/query.d.ts +184 -184
- package/lib/codec/Switcheo/carbon/pricing/query.js +760 -760
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +220 -220
- package/lib/codec/Switcheo/carbon/pricing/tx.js +851 -851
- package/lib/codec/Switcheo/carbon/profile/event.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/profile/event.js +78 -78
- package/lib/codec/Switcheo/carbon/profile/export.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/profile/export.js +17 -17
- package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +24 -24
- package/lib/codec/Switcheo/carbon/profile/genesis.js +64 -64
- package/lib/codec/Switcheo/carbon/profile/profile.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/profile/profile.js +83 -83
- package/lib/codec/Switcheo/carbon/profile/query.d.ts +91 -91
- package/lib/codec/Switcheo/carbon/profile/query.js +347 -347
- package/lib/codec/Switcheo/carbon/profile/tx.d.ts +43 -43
- package/lib/codec/Switcheo/carbon/profile/tx.js +127 -127
- package/lib/codec/Switcheo/carbon/sequence/export.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/sequence/export.js +13 -13
- package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +30 -30
- package/lib/codec/Switcheo/carbon/sequence/genesis.js +122 -122
- package/lib/codec/Switcheo/carbon/sequence/query.d.ts +66 -66
- package/lib/codec/Switcheo/carbon/sequence/query.js +245 -245
- package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +41 -41
- package/lib/codec/Switcheo/carbon/sequence/tx.js +148 -148
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/subaccount/export.js +39 -39
- package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +29 -29
- package/lib/codec/Switcheo/carbon/subaccount/genesis.js +111 -111
- package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/subaccount/legacy.js +72 -72
- package/lib/codec/Switcheo/carbon/subaccount/params.d.ts +29 -29
- package/lib/codec/Switcheo/carbon/subaccount/params.js +119 -119
- package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +230 -230
- package/lib/codec/Switcheo/carbon/subaccount/query.js +1027 -1027
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +46 -46
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.js +296 -296
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +134 -134
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +497 -497
- package/lib/codec/alliance/alliance/alliance.d.ts +65 -65
- package/lib/codec/alliance/alliance/alliance.js +354 -354
- package/lib/codec/alliance/alliance/delegations.d.ts +63 -63
- package/lib/codec/alliance/alliance/delegations.js +344 -344
- package/lib/codec/alliance/alliance/events.d.ts +71 -71
- package/lib/codec/alliance/alliance/events.js +452 -452
- package/lib/codec/alliance/alliance/export.d.ts +10 -10
- package/lib/codec/alliance/alliance/export.js +84 -84
- package/lib/codec/alliance/alliance/genesis.d.ts +75 -75
- package/lib/codec/alliance/alliance/genesis.js +470 -470
- package/lib/codec/alliance/alliance/gov.d.ts +80 -80
- package/lib/codec/alliance/alliance/gov.js +400 -400
- package/lib/codec/alliance/alliance/params.d.ts +35 -35
- package/lib/codec/alliance/alliance/params.js +194 -194
- package/lib/codec/alliance/alliance/query.d.ts +404 -404
- package/lib/codec/alliance/alliance/query.js +1982 -1982
- package/lib/codec/alliance/alliance/redelegations.d.ts +57 -57
- package/lib/codec/alliance/alliance/redelegations.js +294 -294
- package/lib/codec/alliance/alliance/tx.d.ts +230 -230
- package/lib/codec/alliance/alliance/tx.js +1050 -1050
- package/lib/codec/alliance/alliance/unbonding.d.ts +26 -26
- package/lib/codec/alliance/alliance/unbonding.js +126 -126
- package/lib/codec/amino/amino.d.ts +1 -1
- package/lib/codec/amino/amino.js +14 -14
- package/lib/codec/carbon-models.d.ts +29 -29
- package/lib/codec/carbon-models.js +51 -55
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +84 -84
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +246 -246
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +83 -83
- package/lib/codec/cosmos/app/v1alpha1/config.js +215 -215
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +109 -109
- package/lib/codec/cosmos/app/v1alpha1/module.js +192 -192
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +44 -44
- package/lib/codec/cosmos/app/v1alpha1/query.js +107 -107
- package/lib/codec/cosmos/auth/module/v1/module.d.ts +41 -41
- package/lib/codec/cosmos/auth/module/v1/module.js +149 -149
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +76 -76
- package/lib/codec/cosmos/auth/v1beta1/auth.js +408 -408
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -3
- package/lib/codec/cosmos/auth/v1beta1/export.js +32 -32
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +24 -24
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +81 -81
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +379 -379
- package/lib/codec/cosmos/auth/v1beta1/query.js +1050 -1050
- package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +64 -64
- package/lib/codec/cosmos/auth/v1beta1/tx.js +120 -120
- package/lib/codec/cosmos/authz/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/authz/module/v1/module.js +46 -46
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +74 -74
- package/lib/codec/cosmos/authz/v1beta1/authz.js +284 -284
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +41 -41
- package/lib/codec/cosmos/authz/v1beta1/event.js +152 -152
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +21 -21
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +64 -64
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +122 -122
- package/lib/codec/cosmos/authz/v1beta1/query.js +458 -458
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +126 -126
- package/lib/codec/cosmos/authz/v1beta1/tx.js +386 -386
- package/lib/codec/cosmos/autocli/v1/options.d.ts +184 -184
- package/lib/codec/cosmos/autocli/v1/options.js +686 -686
- package/lib/codec/cosmos/autocli/v1/query.d.ts +60 -60
- package/lib/codec/cosmos/autocli/v1/query.js +180 -180
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +26 -26
- package/lib/codec/cosmos/bank/module/v1/module.js +76 -76
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +32 -32
- package/lib/codec/cosmos/bank/v1beta1/authz.js +79 -79
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +160 -160
- package/lib/codec/cosmos/bank/v1beta1/bank.js +519 -519
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +5 -5
- package/lib/codec/cosmos/bank/v1beta1/export.js +52 -52
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +54 -54
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +187 -187
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +557 -557
- package/lib/codec/cosmos/bank/v1beta1/query.js +1649 -1649
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +173 -173
- package/lib/codec/cosmos/bank/v1beta1/tx.js +449 -449
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +258 -258
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +1068 -1068
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +78 -78
- package/lib/codec/cosmos/base/node/v1beta1/query.js +358 -358
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +85 -85
- package/lib/codec/cosmos/base/query/v1beta1/pagination.js +215 -215
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +81 -81
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +210 -210
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +414 -414
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +1438 -1438
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +321 -321
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1490 -1490
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +67 -67
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +423 -423
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +70 -70
- package/lib/codec/cosmos/base/v1beta1/coin.js +214 -214
- package/lib/codec/cosmos/circuit/module/v1/module.d.ts +20 -20
- package/lib/codec/cosmos/circuit/module/v1/module.js +59 -59
- package/lib/codec/cosmos/circuit/v1/query.d.ts +97 -97
- package/lib/codec/cosmos/circuit/v1/query.js +333 -333
- package/lib/codec/cosmos/circuit/v1/tx.d.ts +128 -128
- package/lib/codec/cosmos/circuit/v1/tx.js +371 -371
- package/lib/codec/cosmos/circuit/v1/types.d.ts +81 -81
- package/lib/codec/cosmos/circuit/v1/types.js +266 -266
- package/lib/codec/cosmos/consensus/module/v1/module.d.ts +20 -20
- package/lib/codec/cosmos/consensus/module/v1/module.js +59 -59
- package/lib/codec/cosmos/consensus/v1/query.d.ts +49 -49
- package/lib/codec/cosmos/consensus/v1/query.js +109 -109
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +65 -65
- package/lib/codec/cosmos/consensus/v1/tx.js +174 -174
- package/lib/codec/cosmos/crisis/module/v1/module.d.ts +22 -22
- package/lib/codec/cosmos/crisis/module/v1/module.js +72 -72
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +24 -24
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +65 -65
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +89 -89
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +236 -236
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +39 -39
- package/lib/codec/cosmos/crypto/ed25519/keys.js +138 -138
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +32 -32
- package/lib/codec/cosmos/crypto/hd/v1/hd.js +114 -114
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +78 -78
- package/lib/codec/cosmos/crypto/keyring/v1/record.js +309 -309
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +25 -25
- package/lib/codec/cosmos/crypto/multisig/keys.js +76 -76
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +40 -40
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +153 -153
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +36 -36
- package/lib/codec/cosmos/crypto/secp256k1/keys.js +138 -138
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +36 -36
- package/lib/codec/cosmos/crypto/secp256r1/keys.js +138 -138
- package/lib/codec/cosmos/distribution/module/v1/module.d.ts +21 -21
- package/lib/codec/cosmos/distribution/module/v1/module.js +72 -72
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +225 -225
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +858 -858
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/export.js +63 -63
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +156 -156
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +722 -722
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +384 -384
- package/lib/codec/cosmos/distribution/v1beta1/query.js +1232 -1232
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +287 -287
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +766 -766
- package/lib/codec/cosmos/evidence/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/evidence/module/v1/module.js +46 -46
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +29 -29
- package/lib/codec/cosmos/evidence/v1beta1/evidence.js +133 -133
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +21 -21
- package/lib/codec/cosmos/evidence/v1beta1/genesis.js +64 -64
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +93 -93
- package/lib/codec/cosmos/evidence/v1beta1/query.js +292 -292
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +54 -54
- package/lib/codec/cosmos/evidence/v1beta1/tx.js +167 -167
- package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/feegrant/module/v1/module.js +46 -46
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +96 -96
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +359 -359
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +21 -21
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +64 -64
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +122 -122
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +407 -407
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +122 -122
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +312 -312
- package/lib/codec/cosmos/genutil/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/genutil/module/v1/module.js +46 -46
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +20 -20
- package/lib/codec/cosmos/genutil/v1beta1/genesis.js +93 -93
- package/lib/codec/cosmos/gov/module/v1/module.d.ts +25 -25
- package/lib/codec/cosmos/gov/module/v1/module.js +75 -75
- package/lib/codec/cosmos/gov/v1/export.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/export.js +53 -53
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +64 -64
- package/lib/codec/cosmos/gov/v1/genesis.js +198 -198
- package/lib/codec/cosmos/gov/v1/gov.d.ts +345 -345
- package/lib/codec/cosmos/gov/v1/gov.js +1204 -1204
- package/lib/codec/cosmos/gov/v1/query.d.ts +312 -312
- package/lib/codec/cosmos/gov/v1/query.js +1145 -1145
- package/lib/codec/cosmos/gov/v1/tx.d.ts +291 -291
- package/lib/codec/cosmos/gov/v1/tx.js +953 -953
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +33 -33
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +166 -166
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +246 -246
- package/lib/codec/cosmos/gov/v1beta1/gov.js +929 -929
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +265 -265
- package/lib/codec/cosmos/gov/v1beta1/query.js +1045 -1045
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +154 -154
- package/lib/codec/cosmos/gov/v1beta1/tx.js +496 -496
- package/lib/codec/cosmos/group/module/v1/module.d.ts +29 -29
- package/lib/codec/cosmos/group/module/v1/module.js +83 -83
- package/lib/codec/cosmos/group/v1/events.d.ts +140 -140
- package/lib/codec/cosmos/group/v1/events.js +560 -560
- package/lib/codec/cosmos/group/v1/genesis.d.ts +45 -45
- package/lib/codec/cosmos/group/v1/genesis.js +176 -176
- package/lib/codec/cosmos/group/v1/query.d.ts +453 -453
- package/lib/codec/cosmos/group/v1/query.js +1771 -1771
- package/lib/codec/cosmos/group/v1/tx.d.ts +495 -495
- package/lib/codec/cosmos/group/v1/tx.js +1866 -1866
- package/lib/codec/cosmos/group/v1/types.d.ts +382 -382
- package/lib/codec/cosmos/group/v1/types.js +1332 -1332
- package/lib/codec/cosmos/ics23/v1/proofs.d.ts +328 -328
- package/lib/codec/cosmos/ics23/v1/proofs.js +1347 -1347
- package/lib/codec/cosmos/mint/module/v1/module.d.ts +21 -21
- package/lib/codec/cosmos/mint/module/v1/module.js +72 -72
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +3 -3
- package/lib/codec/cosmos/mint/v1beta1/export.js +16 -16
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +23 -23
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +79 -79
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +44 -44
- package/lib/codec/cosmos/mint/v1beta1/mint.js +192 -192
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +103 -103
- package/lib/codec/cosmos/mint/v1beta1/query.js +309 -309
- package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +64 -64
- package/lib/codec/cosmos/mint/v1beta1/tx.js +120 -120
- package/lib/codec/cosmos/msg/textual/v1/textual.d.ts +1 -1
- package/lib/codec/cosmos/msg/textual/v1/textual.js +14 -14
- package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -1
- package/lib/codec/cosmos/msg/v1/msg.js +14 -14
- package/lib/codec/cosmos/nft/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/nft/module/v1/module.js +46 -46
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +58 -58
- package/lib/codec/cosmos/nft/v1beta1/event.js +227 -227
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +37 -37
- package/lib/codec/cosmos/nft/v1beta1/genesis.js +140 -140
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +53 -53
- package/lib/codec/cosmos/nft/v1beta1/nft.js +233 -233
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +226 -226
- package/lib/codec/cosmos/nft/v1beta1/query.js +817 -817
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +49 -49
- package/lib/codec/cosmos/nft/v1beta1/tx.js +137 -137
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +22 -22
- package/lib/codec/cosmos/orm/module/v1alpha1/module.js +46 -46
- package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +173 -173
- package/lib/codec/cosmos/orm/query/v1alpha1/query.js +652 -652
- package/lib/codec/cosmos/orm/v1/orm.d.ts +126 -126
- package/lib/codec/cosmos/orm/v1/orm.js +263 -263
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +76 -76
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +235 -235
- package/lib/codec/cosmos/params/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/params/module/v1/module.js +46 -46
- package/lib/codec/cosmos/params/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/params/v1beta1/export.js +12 -12
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +37 -37
- package/lib/codec/cosmos/params/v1beta1/params.js +155 -155
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +106 -106
- package/lib/codec/cosmos/params/v1beta1/query.js +280 -280
- package/lib/codec/cosmos/query/v1/query.d.ts +1 -1
- package/lib/codec/cosmos/query/v1/query.js +14 -14
- package/lib/codec/cosmos/reflection/v1/reflection.d.ts +50 -50
- package/lib/codec/cosmos/reflection/v1/reflection.js +108 -108
- package/lib/codec/cosmos/slashing/module/v1/module.d.ts +20 -20
- package/lib/codec/cosmos/slashing/module/v1/module.js +59 -59
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +4 -4
- package/lib/codec/cosmos/slashing/v1beta1/export.js +22 -22
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +76 -76
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +282 -282
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +110 -110
- package/lib/codec/cosmos/slashing/v1beta1/query.js +333 -333
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +59 -59
- package/lib/codec/cosmos/slashing/v1beta1/slashing.js +320 -320
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +92 -92
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +204 -204
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +30 -30
- package/lib/codec/cosmos/staking/module/v1/module.js +108 -108
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +68 -68
- package/lib/codec/cosmos/staking/v1beta1/authz.js +225 -225
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +5 -5
- package/lib/codec/cosmos/staking/v1beta1/export.js +84 -84
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +55 -55
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +259 -259
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +525 -525
- package/lib/codec/cosmos/staking/v1beta1/query.js +1750 -1750
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +427 -427
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1900 -1900
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +282 -282
- package/lib/codec/cosmos/staking/v1beta1/tx.js +1001 -1001
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +31 -31
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.js +154 -154
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +119 -119
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.js +540 -540
- package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +72 -72
- package/lib/codec/cosmos/store/streaming/abci/grpc.js +247 -247
- package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +54 -54
- package/lib/codec/cosmos/store/v1beta1/commit_info.js +273 -273
- package/lib/codec/cosmos/store/v1beta1/listening.d.ts +48 -48
- package/lib/codec/cosmos/store/v1beta1/listening.js +220 -220
- package/lib/codec/cosmos/tx/config/v1/config.d.ts +28 -28
- package/lib/codec/cosmos/tx/config/v1/config.js +73 -73
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +147 -147
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +477 -477
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/tx/v1beta1/export.js +43 -43
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +460 -460
- package/lib/codec/cosmos/tx/v1beta1/service.js +1340 -1340
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +377 -377
- package/lib/codec/cosmos/tx/v1beta1/tx.js +1121 -1121
- package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +20 -20
- package/lib/codec/cosmos/upgrade/module/v1/module.js +59 -59
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +213 -213
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +526 -526
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +97 -97
- package/lib/codec/cosmos/upgrade/v1beta1/tx.js +203 -203
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +114 -114
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +341 -341
- package/lib/codec/cosmos/vesting/module/v1/module.d.ts +18 -18
- package/lib/codec/cosmos/vesting/module/v1/module.js +46 -46
- package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/vesting/v1beta1/export.js +17 -17
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +138 -138
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +416 -416
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +106 -106
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +451 -451
- package/lib/codec/cosmos-models.d.ts +10 -10
- package/lib/codec/cosmos-models.js +32 -36
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.d.ts +1 -1
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.js +6 -6
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +39 -39
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +138 -138
- package/lib/codec/ethermint/evm/v1/events.d.ts +72 -72
- package/lib/codec/ethermint/evm/v1/events.js +303 -303
- package/lib/codec/ethermint/evm/v1/evm.d.ts +239 -239
- package/lib/codec/ethermint/evm/v1/evm.js +1140 -1140
- package/lib/codec/ethermint/evm/v1/export.d.ts +5 -5
- package/lib/codec/ethermint/evm/v1/export.js +53 -53
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +43 -43
- package/lib/codec/ethermint/evm/v1/genesis.js +153 -153
- package/lib/codec/ethermint/evm/v1/query.d.ts +424 -424
- package/lib/codec/ethermint/evm/v1/query.js +1637 -1637
- package/lib/codec/ethermint/evm/v1/tx.d.ts +219 -219
- package/lib/codec/ethermint/evm/v1/tx.js +935 -935
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +34 -34
- package/lib/codec/ethermint/feemarket/v1/events.js +116 -116
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +4 -4
- package/lib/codec/ethermint/feemarket/v1/export.js +18 -18
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +51 -51
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -176
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +26 -26
- package/lib/codec/ethermint/feemarket/v1/genesis.js +79 -79
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +100 -100
- package/lib/codec/ethermint/feemarket/v1/query.js +276 -276
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +55 -55
- package/lib/codec/ethermint/feemarket/v1/tx.js +120 -120
- package/lib/codec/ethermint/types/v1/account.d.ts +26 -26
- package/lib/codec/ethermint/types/v1/account.js +78 -78
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +20 -20
- package/lib/codec/ethermint/types/v1/dynamic_fee.js +60 -60
- package/lib/codec/ethermint/types/v1/export.d.ts +4 -4
- package/lib/codec/ethermint/types/v1/export.js +11 -11
- package/lib/codec/ethermint/types/v1/indexer.d.ts +41 -41
- package/lib/codec/ethermint/types/v1/indexer.js +153 -153
- package/lib/codec/ethermint/types/v1/web3.d.ts +36 -36
- package/lib/codec/ethermint/types/v1/web3.js +124 -124
- package/lib/codec/ethermint-models.d.ts +4 -4
- package/lib/codec/ethermint-models.js +26 -30
- package/lib/codec/google/protobuf/any.d.ts +137 -137
- package/lib/codec/google/protobuf/any.js +103 -103
- package/lib/codec/google/protobuf/descriptor.d.ts +1372 -1372
- package/lib/codec/google/protobuf/descriptor.js +4471 -4471
- package/lib/codec/google/protobuf/duration.d.ts +92 -92
- package/lib/codec/google/protobuf/duration.js +75 -75
- package/lib/codec/google/protobuf/empty.d.ts +26 -26
- package/lib/codec/google/protobuf/empty.js +46 -46
- package/lib/codec/google/protobuf/timestamp.d.ts +121 -121
- package/lib/codec/google/protobuf/timestamp.js +75 -75
- package/lib/codec/google/protobuf/wrappers.d.ts +152 -152
- package/lib/codec/google/protobuf/wrappers.js +457 -457
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -24
- package/lib/codec/ibc/applications/fee/v1/ack.js +125 -125
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -68
- package/lib/codec/ibc/applications/fee/v1/fee.js +289 -289
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -93
- package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -390
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -25
- package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -71
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +318 -318
- package/lib/codec/ibc/applications/fee/v1/query.js +1241 -1241
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -171
- package/lib/codec/ibc/applications/fee/v1/tx.js +524 -524
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +17 -17
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +23 -23
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.js +61 -61
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +70 -70
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +219 -219
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +113 -113
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +426 -426
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -80
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -439
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +11 -11
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +25 -25
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.js +76 -76
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +44 -44
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.js +107 -107
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +50 -50
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.js +120 -120
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +21 -21
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.js +79 -79
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +13 -13
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +36 -36
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.js +129 -129
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +46 -46
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.js +203 -203
- package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +47 -47
- package/lib/codec/ibc/applications/transfer/v1/authz.js +173 -173
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/export.js +27 -27
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +28 -28
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +108 -108
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +201 -201
- package/lib/codec/ibc/applications/transfer/v1/query.js +637 -637
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +53 -53
- package/lib/codec/ibc/applications/transfer/v1/transfer.js +130 -130
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +106 -106
- package/lib/codec/ibc/applications/transfer/v1/tx.js +327 -327
- package/lib/codec/ibc/applications/transfer/v2/export.d.ts +1 -1
- package/lib/codec/ibc/applications/transfer/v2/export.js +5 -5
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +32 -32
- package/lib/codec/ibc/applications/transfer/v2/packet.js +113 -113
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +257 -257
- package/lib/codec/ibc/core/channel/v1/channel.js +1003 -1003
- package/lib/codec/ibc/core/channel/v1/export.d.ts +5 -5
- package/lib/codec/ibc/core/channel/v1/export.js +103 -103
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +45 -45
- package/lib/codec/ibc/core/channel/v1/genesis.js +265 -265
- package/lib/codec/ibc/core/channel/v1/query.d.ts +687 -687
- package/lib/codec/ibc/core/channel/v1/query.js +2693 -2693
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +643 -643
- package/lib/codec/ibc/core/channel/v1/tx.js +3315 -3315
- package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +62 -62
- package/lib/codec/ibc/core/channel/v1/upgrade.js +238 -238
- package/lib/codec/ibc/core/client/v1/client.d.ts +161 -161
- package/lib/codec/ibc/core/client/v1/client.js +506 -506
- package/lib/codec/ibc/core/client/v1/export.d.ts +4 -4
- package/lib/codec/ibc/core/client/v1/export.js +48 -48
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +67 -67
- package/lib/codec/ibc/core/client/v1/genesis.js +296 -296
- package/lib/codec/ibc/core/client/v1/query.d.ts +346 -346
- package/lib/codec/ibc/core/client/v1/query.js +1128 -1128
- package/lib/codec/ibc/core/client/v1/tx.d.ts +264 -264
- package/lib/codec/ibc/core/client/v1/tx.js +896 -896
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +70 -70
- package/lib/codec/ibc/core/commitment/v1/commitment.js +237 -237
- package/lib/codec/ibc/core/commitment/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/export.js +8 -8
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +170 -170
- package/lib/codec/ibc/core/connection/v1/connection.js +600 -600
- package/lib/codec/ibc/core/connection/v1/export.d.ts +3 -3
- package/lib/codec/ibc/core/connection/v1/export.js +38 -38
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +24 -24
- package/lib/codec/ibc/core/connection/v1/genesis.js +113 -113
- package/lib/codec/ibc/core/connection/v1/query.d.ts +245 -245
- package/lib/codec/ibc/core/connection/v1/query.js +866 -866
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +221 -221
- package/lib/codec/ibc/core/connection/v1/tx.js +963 -963
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +27 -27
- package/lib/codec/ibc/core/types/v1/genesis.js +105 -105
- package/lib/codec/ibc/lightclients/localhost/v2/export.d.ts +1 -1
- package/lib/codec/ibc/lightclients/localhost/v2/export.js +5 -5
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +21 -21
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.js +65 -65
- package/lib/codec/ibc/lightclients/solomachine/v2/export.d.ts +1 -1
- package/lib/codec/ibc/lightclients/solomachine/v2/export.js +23 -23
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +298 -298
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.js +1352 -1352
- package/lib/codec/ibc/lightclients/solomachine/v3/export.d.ts +1 -1
- package/lib/codec/ibc/lightclients/solomachine/v3/export.js +12 -12
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +146 -146
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.js +712 -712
- package/lib/codec/ibc/lightclients/tendermint/v1/export.d.ts +1 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/export.js +9 -9
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +147 -147
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +623 -623
- package/lib/codec/ibc/lightclients/wasm/v1/genesis.d.ts +32 -32
- package/lib/codec/ibc/lightclients/wasm/v1/genesis.js +140 -140
- package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +74 -74
- package/lib/codec/ibc/lightclients/wasm/v1/query.js +272 -272
- package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +105 -105
- package/lib/codec/ibc/lightclients/wasm/v1/tx.js +384 -384
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +70 -70
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.js +267 -267
- package/lib/codec/ibc-models.d.ts +13 -13
- package/lib/codec/ibc-models.js +35 -39
- package/lib/codec/index.d.ts +662 -662
- package/lib/codec/index.js +30969 -30973
- package/lib/codec/oraclesvc/query.d.ts +20 -20
- package/lib/codec/oraclesvc/query.js +29 -29
- package/lib/codec/polynetwork-models.d.ts +4 -4
- package/lib/codec/polynetwork-models.js +26 -30
- package/lib/codec/tendermint/abci/types.d.ts +817 -817
- package/lib/codec/tendermint/abci/types.js +4769 -4769
- package/lib/codec/tendermint/crypto/keys.d.ts +20 -20
- package/lib/codec/tendermint/crypto/keys.js +109 -109
- package/lib/codec/tendermint/crypto/proof.d.ts +74 -74
- package/lib/codec/tendermint/crypto/proof.js +391 -391
- package/lib/codec/tendermint/libs/bits/types.d.ts +19 -19
- package/lib/codec/tendermint/libs/bits/types.js +89 -89
- package/lib/codec/tendermint/oracle/types.d.ts +90 -90
- package/lib/codec/tendermint/oracle/types.js +629 -629
- package/lib/codec/tendermint/p2p/types.d.ts +60 -60
- package/lib/codec/tendermint/p2p/types.js +400 -400
- package/lib/codec/tendermint/types/block.d.ts +23 -23
- package/lib/codec/tendermint/types/block.js +116 -116
- package/lib/codec/tendermint/types/evidence.d.ts +61 -61
- package/lib/codec/tendermint/types/evidence.js +390 -390
- package/lib/codec/tendermint/types/params.d.ts +141 -141
- package/lib/codec/tendermint/types/params.js +498 -498
- package/lib/codec/tendermint/types/types.d.ts +274 -274
- package/lib/codec/tendermint/types/types.js +1643 -1643
- package/lib/codec/tendermint/types/validator.d.ts +59 -59
- package/lib/codec/tendermint/types/validator.js +343 -343
- package/lib/codec/tendermint/version/types.d.ts +40 -40
- package/lib/codec/tendermint/version/types.js +139 -139
- package/lib/constant/address.d.ts +3 -3
- package/lib/constant/address.js +5 -5
- package/lib/constant/eip6963Provider.d.ts +66 -66
- package/lib/constant/eip6963Provider.js +31 -31
- package/lib/constant/eip712.d.ts +46 -46
- package/lib/constant/eip712.js +106 -106
- package/lib/constant/generic.d.ts +24 -24
- package/lib/constant/generic.js +24 -24
- package/lib/constant/grant.d.ts +1 -1
- package/lib/constant/grant.js +4 -4
- package/lib/constant/ibc.d.ts +190 -190
- package/lib/constant/ibc.js +2131 -2135
- package/lib/constant/index.d.ts +9 -9
- package/lib/constant/index.js +21 -25
- package/lib/constant/network.d.ts +76 -76
- package/lib/constant/network.js +349 -349
- package/lib/constant/node.d.ts +5 -5
- package/lib/constant/node.js +80 -80
- package/lib/constant/token.d.ts +11 -11
- package/lib/constant/token.js +373 -373
- package/lib/constant/walletProvider.d.ts +10 -10
- package/lib/constant/walletProvider.js +15 -15
- package/lib/constant/web3Config.d.ts +33 -33
- package/lib/constant/web3Config.js +175 -175
- package/lib/eth/abis/axelarBridge.json +1150 -1150
- package/lib/eth/abis/balanceReader.json +26 -26
- package/lib/eth/abis/bridgeEntrance.json +105 -105
- package/lib/eth/abis/erc20.json +222 -222
- package/lib/eth/abis/index.d.ts +8 -8
- package/lib/eth/abis/index.js +20 -20
- package/lib/eth/abis/keyStorage.json +44 -44
- package/lib/eth/abis/lockProxy.json +574 -574
- package/lib/eth/abis/vault.json +119 -119
- package/lib/eth/index.d.ts +1 -1
- package/lib/eth/index.js +23 -27
- package/lib/hydrogen/feeQuote.d.ts +23 -23
- package/lib/hydrogen/feeQuote.js +2 -2
- package/lib/hydrogen/index.d.ts +3 -3
- package/lib/hydrogen/index.js +15 -19
- package/lib/hydrogen/relays.d.ts +34 -34
- package/lib/hydrogen/relays.js +2 -2
- package/lib/hydrogen/stats.d.ts +26 -26
- package/lib/hydrogen/stats.js +2 -2
- package/lib/hydrogen/transfer.d.ts +159 -159
- package/lib/hydrogen/transfer.js +10 -10
- package/lib/index.d.ts +12 -12
- package/lib/index.js +59 -63
- package/lib/insights/alliances.d.ts +39 -39
- package/lib/insights/alliances.js +2 -2
- package/lib/insights/balance.d.ts +74 -74
- package/lib/insights/balance.js +2 -2
- package/lib/insights/block.d.ts +25 -25
- package/lib/insights/block.js +2 -2
- package/lib/insights/chain.d.ts +40 -40
- package/lib/insights/chain.js +2 -2
- package/lib/insights/common.d.ts +93 -93
- package/lib/insights/common.js +73 -73
- package/lib/insights/competition.d.ts +196 -196
- package/lib/insights/competition.js +2 -2
- package/lib/insights/delegation.d.ts +26 -26
- package/lib/insights/delegation.js +2 -2
- package/lib/insights/funding.d.ts +41 -41
- package/lib/insights/funding.js +2 -2
- package/lib/insights/index.d.ts +15 -15
- package/lib/insights/index.js +27 -31
- package/lib/insights/inflation.d.ts +6 -6
- package/lib/insights/inflation.js +2 -2
- package/lib/insights/market.d.ts +20 -20
- package/lib/insights/market.js +2 -2
- package/lib/insights/node.d.ts +32 -32
- package/lib/insights/node.js +2 -2
- package/lib/insights/oracles.d.ts +17 -17
- package/lib/insights/oracles.js +2 -2
- package/lib/insights/pool.d.ts +143 -143
- package/lib/insights/pool.js +2 -2
- package/lib/insights/position.d.ts +104 -104
- package/lib/insights/position.js +10 -10
- package/lib/insights/proposal.d.ts +21 -21
- package/lib/insights/proposal.js +2 -2
- package/lib/insights/transaction.d.ts +30 -30
- package/lib/insights/transaction.js +2 -2
- package/lib/insights/user.d.ts +148 -148
- package/lib/insights/user.js +2 -2
- package/lib/modules/admin.d.ts +377 -377
- package/lib/modules/admin.js +715 -715
- package/lib/modules/alliance.d.ts +43 -43
- package/lib/modules/alliance.js +102 -102
- package/lib/modules/bank.d.ts +14 -14
- package/lib/modules/bank.js +35 -35
- package/lib/modules/base.d.ts +12 -12
- package/lib/modules/base.js +29 -29
- package/lib/modules/bridge.d.ts +27 -27
- package/lib/modules/bridge.js +68 -68
- package/lib/modules/broker.d.ts +16 -16
- package/lib/modules/broker.js +50 -50
- package/lib/modules/cdp.d.ts +189 -189
- package/lib/modules/cdp.js +973 -973
- package/lib/modules/coin.d.ts +54 -54
- package/lib/modules/coin.js +138 -138
- package/lib/modules/cosmwasm.d.ts +20 -20
- package/lib/modules/cosmwasm.js +88 -88
- package/lib/modules/erc20.d.ts +30 -30
- package/lib/modules/erc20.js +81 -81
- package/lib/modules/evm.d.ts +45 -45
- package/lib/modules/evm.js +85 -85
- package/lib/modules/evmmerge.d.ts +12 -12
- package/lib/modules/evmmerge.js +35 -35
- package/lib/modules/fee.d.ts +5 -5
- package/lib/modules/fee.js +27 -27
- package/lib/modules/gov.d.ts +21 -21
- package/lib/modules/gov.js +70 -70
- package/lib/modules/grant.d.ts +33 -33
- package/lib/modules/grant.js +196 -196
- package/lib/modules/ibc.d.ts +46 -46
- package/lib/modules/ibc.js +236 -236
- package/lib/modules/index.d.ts +24 -24
- package/lib/modules/index.js +36 -40
- package/lib/modules/leverage.d.ts +13 -13
- package/lib/modules/leverage.js +52 -52
- package/lib/modules/liquiditypool.d.ts +84 -84
- package/lib/modules/liquiditypool.js +198 -198
- package/lib/modules/market.d.ts +104 -104
- package/lib/modules/market.js +183 -183
- package/lib/modules/oracle.d.ts +5 -5
- package/lib/modules/oracle.js +10 -10
- package/lib/modules/order.d.ts +70 -70
- package/lib/modules/order.js +194 -194
- package/lib/modules/perpspool.d.ts +49 -49
- package/lib/modules/perpspool.js +117 -117
- package/lib/modules/position.d.ts +13 -13
- package/lib/modules/position.js +52 -52
- package/lib/modules/profile.d.ts +11 -11
- package/lib/modules/profile.js +35 -35
- package/lib/modules/staking.d.ts +36 -36
- package/lib/modules/staking.js +107 -107
- package/lib/modules/subaccount.d.ts +24 -24
- package/lib/modules/subaccount.js +66 -66
- package/lib/modules/xchain.d.ts +22 -22
- package/lib/modules/xchain.js +53 -53
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.d.ts +5 -5
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.js +26 -26
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.d.ts +40 -40
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +62 -62
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.d.ts +3 -3
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +17 -21
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.d.ts +42 -42
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +181 -181
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +24 -24
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +146 -150
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.d.ts +59 -59
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +180 -180
- package/lib/provider/account/NeoLedgerAccount/index.d.ts +1 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +13 -17
- package/lib/provider/account/index.d.ts +1 -1
- package/lib/provider/account/index.js +13 -17
- package/lib/provider/amino/AminoTypesMap.d.ts +3 -3
- package/lib/provider/amino/AminoTypesMap.js +6 -6
- package/lib/provider/amino/index.d.ts +1 -1
- package/lib/provider/amino/index.js +8 -8
- package/lib/provider/amino/types/admin.d.ts +4 -4
- package/lib/provider/amino/types/admin.js +242 -246
- package/lib/provider/amino/types/bank.d.ts +4 -4
- package/lib/provider/amino/types/bank.js +34 -38
- package/lib/provider/amino/types/bridge.d.ts +4 -4
- package/lib/provider/amino/types/bridge.js +36 -40
- package/lib/provider/amino/types/broker.d.ts +4 -4
- package/lib/provider/amino/types/broker.js +34 -38
- package/lib/provider/amino/types/cdp.d.ts +4 -4
- package/lib/provider/amino/types/cdp.js +173 -177
- package/lib/provider/amino/types/coin.d.ts +4 -4
- package/lib/provider/amino/types/coin.js +52 -56
- package/lib/provider/amino/types/erc20.d.ts +4 -4
- package/lib/provider/amino/types/erc20.js +40 -44
- package/lib/provider/amino/types/evm.d.ts +4 -4
- package/lib/provider/amino/types/evm.js +34 -38
- package/lib/provider/amino/types/evmmerge.d.ts +4 -4
- package/lib/provider/amino/types/evmmerge.js +34 -38
- package/lib/provider/amino/types/feemarket.d.ts +4 -4
- package/lib/provider/amino/types/feemarket.js +34 -38
- package/lib/provider/amino/types/gov.d.ts +4 -4
- package/lib/provider/amino/types/gov.js +413 -417
- package/lib/provider/amino/types/grant.d.ts +13 -13
- package/lib/provider/amino/types/grant.js +198 -202
- package/lib/provider/amino/types/ibc.d.ts +4 -4
- package/lib/provider/amino/types/ibc.js +57 -61
- package/lib/provider/amino/types/index.d.ts +23 -23
- package/lib/provider/amino/types/index.js +52 -52
- package/lib/provider/amino/types/leverage.d.ts +4 -4
- package/lib/provider/amino/types/leverage.js +36 -40
- package/lib/provider/amino/types/liquidityPool.d.ts +4 -4
- package/lib/provider/amino/types/liquidityPool.js +97 -101
- package/lib/provider/amino/types/market.d.ts +4 -4
- package/lib/provider/amino/types/market.js +90 -94
- package/lib/provider/amino/types/oracle.d.ts +4 -4
- package/lib/provider/amino/types/oracle.js +4 -4
- package/lib/provider/amino/types/order.d.ts +4 -4
- package/lib/provider/amino/types/order.js +84 -88
- package/lib/provider/amino/types/perpspool.d.ts +4 -4
- package/lib/provider/amino/types/perpspool.js +73 -77
- package/lib/provider/amino/types/position.d.ts +4 -4
- package/lib/provider/amino/types/position.js +34 -38
- package/lib/provider/amino/types/profile.d.ts +4 -4
- package/lib/provider/amino/types/profile.js +50 -54
- package/lib/provider/amino/types/staking.d.ts +4 -4
- package/lib/provider/amino/types/staking.js +52 -56
- package/lib/provider/amino/types/subaccount.d.ts +4 -4
- package/lib/provider/amino/types/subaccount.js +46 -50
- package/lib/provider/amino/utils.d.ts +44 -44
- package/lib/provider/amino/utils.js +247 -246
- package/lib/provider/chainProvider/GetSigningCosmosClientOptions.d.ts +2 -2
- package/lib/provider/chainProvider/GetSigningCosmosClientOptions.js +18 -18
- package/lib/provider/chainProvider/index.d.ts +2 -2
- package/lib/provider/chainProvider/index.js +5 -5
- package/lib/provider/eip6963Provider/Eip6963Provider.d.ts +8 -8
- package/lib/provider/eip6963Provider/Eip6963Provider.js +24 -24
- package/lib/provider/eip6963Provider/index.d.ts +1 -1
- package/lib/provider/eip6963Provider/index.js +8 -8
- package/lib/provider/index.d.ts +13 -13
- package/lib/provider/index.js +29 -29
- package/lib/provider/keplr/KeplrAccount.d.ts +27 -27
- package/lib/provider/keplr/KeplrAccount.js +230 -230
- package/lib/provider/keplr/KeplrStore.js +1 -1
- package/lib/provider/keplr/index.d.ts +3 -3
- package/lib/provider/keplr/index.js +8 -8
- package/lib/provider/leap/LeapAccount.d.ts +28 -28
- package/lib/provider/leap/LeapAccount.js +208 -208
- package/lib/provider/leap/index.d.ts +3 -3
- package/lib/provider/leap/index.js +8 -8
- package/lib/provider/ledger/index.d.ts +1 -1
- package/lib/provider/ledger/index.js +8 -8
- package/lib/provider/ledger/ledger.d.ts +28 -28
- package/lib/provider/ledger/ledger.js +336 -339
- package/lib/provider/metamask/MetaMask.d.ts +76 -76
- package/lib/provider/metamask/MetaMask.js +730 -734
- package/lib/provider/metamask/error.d.ts +2 -2
- package/lib/provider/metamask/error.js +18 -18
- package/lib/provider/metamask/index.d.ts +1 -1
- package/lib/provider/metamask/index.js +5 -5
- package/lib/provider/metamask/legacy-accounts.d.ts +11 -11
- package/lib/provider/metamask/legacy-accounts.js +2254 -2254
- package/lib/provider/o3/O3Types.d.ts +84 -84
- package/lib/provider/o3/O3Types.js +41 -41
- package/lib/provider/o3/O3Wallet.d.ts +29 -29
- package/lib/provider/o3/O3Wallet.js +238 -242
- package/lib/provider/o3/index.d.ts +2 -2
- package/lib/provider/o3/index.js +28 -32
- package/lib/provider/rainbowKit/RainbowKitAccount.d.ts +37 -37
- package/lib/provider/rainbowKit/RainbowKitAccount.js +341 -341
- package/lib/provider/rainbowKit/index.d.ts +1 -1
- package/lib/provider/rainbowKit/index.js +8 -8
- package/lib/provider/sdk/SDKProvider.d.ts +13 -13
- package/lib/provider/sdk/SDKProvider.js +2 -2
- package/lib/provider/sdk/index.d.ts +1 -1
- package/lib/provider/sdk/index.js +2 -2
- package/lib/provider/zilpay/Zilpay.d.ts +33 -33
- package/lib/provider/zilpay/Zilpay.js +82 -82
- package/lib/provider/zilpay/index.d.ts +1 -1
- package/lib/provider/zilpay/index.js +13 -17
- package/lib/util/address.d.ts +80 -80
- package/lib/util/address.js +324 -328
- package/lib/util/alliance.d.ts +2 -2
- package/lib/util/alliance.js +27 -27
- package/lib/util/api.d.ts +117 -117
- package/lib/util/api.js +177 -177
- package/lib/util/blockchain.d.ts +107 -107
- package/lib/util/blockchain.js +479 -479
- package/lib/util/eip712.d.ts +10 -10
- package/lib/util/eip712.js +198 -198
- package/lib/util/ethermint.d.ts +9 -9
- package/lib/util/ethermint.js +118 -118
- package/lib/util/external.d.ts +11 -11
- package/lib/util/external.js +8 -8
- package/lib/util/fetch.d.ts +1 -1
- package/lib/util/fetch.js +16 -16
- package/lib/util/generic.d.ts +41 -42
- package/lib/util/generic.js +171 -171
- package/lib/util/gov.d.ts +55 -55
- package/lib/util/gov.js +301 -301
- package/lib/util/grant.d.ts +10 -10
- package/lib/util/grant.js +30 -30
- package/lib/util/ibc.d.ts +19 -19
- package/lib/util/ibc.js +150 -150
- package/lib/util/index.d.ts +17 -17
- package/lib/util/index.js +39 -43
- package/lib/util/ledger.d.ts +3 -3
- package/lib/util/ledger.js +59 -59
- package/lib/util/legacyEIP712.d.ts +20 -20
- package/lib/util/legacyEIP712.js +98 -98
- package/lib/util/message.d.ts +2 -2
- package/lib/util/message.js +24 -24
- package/lib/util/network.d.ts +9 -9
- package/lib/util/network.js +40 -40
- package/lib/util/number.d.ts +9 -9
- package/lib/util/number.js +47 -47
- package/lib/util/order.d.ts +3 -3
- package/lib/util/order.js +13 -13
- package/lib/util/provider.d.ts +1 -1
- package/lib/util/provider.js +24 -24
- package/lib/util/token.d.ts +16 -16
- package/lib/util/token.js +23 -23
- package/lib/util/transferfees.d.ts +18 -18
- package/lib/util/transferfees.js +9 -9
- package/lib/util/tx.d.ts +709 -709
- package/lib/util/tx.js +156 -160
- package/lib/util/type.d.ts +22 -22
- package/lib/util/type.js +45 -45
- package/lib/wallet/CarbonSigner.d.ts +68 -68
- package/lib/wallet/CarbonSigner.js +170 -170
- package/lib/wallet/CarbonSigningClient.d.ts +41 -41
- package/lib/wallet/CarbonSigningClient.js +210 -210
- package/lib/wallet/CarbonWallet.d.ts +220 -220
- package/lib/wallet/CarbonWallet.js +756 -756
- package/lib/wallet/index.d.ts +2 -2
- package/lib/wallet/index.js +14 -18
- package/lib/websocket/channel.d.ts +3 -3
- package/lib/websocket/channel.js +286 -286
- package/lib/websocket/connector.d.ts +234 -234
- package/lib/websocket/connector.js +514 -518
- package/lib/websocket/index.d.ts +1 -1
- package/lib/websocket/index.js +13 -17
- package/lib/websocket/models.d.ts +331 -331
- package/lib/websocket/models.js +2 -2
- package/lib/websocket/types.d.ts +233 -233
- package/lib/websocket/types.js +73 -73
- package/package.json +92 -92
- package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +0 -19
- package/lib/codec/Switcheo/carbon/ccm/ccm.js +0 -60
- package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +0 -57
- package/lib/codec/Switcheo/carbon/fee/proposal.js +0 -311
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +0 -17
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +0 -46
- package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +0 -18
- package/lib/codec/Switcheo/carbon/marketstats/params.js +0 -46
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +0 -21
- package/lib/codec/Switcheo/carbon/oracle/proposal.js +0 -91
- package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +0 -31
- package/lib/codec/Switcheo/carbon/pricing/proposal.js +0 -148
- package/lib/codec/adl/genesis.d.ts +0 -18
- package/lib/codec/adl/genesis.js +0 -46
- package/lib/codec/adl/query.d.ts +0 -12
- package/lib/codec/adl/query.js +0 -20
- package/lib/codec/adl/tx.d.ts +0 -12
- package/lib/codec/adl/tx.js +0 -20
- package/lib/codec/admin/export.d.ts +0 -2
- package/lib/codec/admin/export.js +0 -13
- package/lib/codec/admin/genesis.d.ts +0 -18
- package/lib/codec/admin/genesis.js +0 -46
- package/lib/codec/admin/query.d.ts +0 -62
- package/lib/codec/admin/query.js +0 -186
- package/lib/codec/admin/tx.d.ts +0 -62
- package/lib/codec/admin/tx.js +0 -198
- package/lib/codec/alliance/alliance.d.ts +0 -65
- package/lib/codec/alliance/alliance.js +0 -354
- package/lib/codec/alliance/delegations.d.ts +0 -86
- package/lib/codec/alliance/delegations.js +0 -489
- package/lib/codec/alliance/events.d.ts +0 -61
- package/lib/codec/alliance/events.js +0 -403
- package/lib/codec/alliance/export.d.ts +0 -8
- package/lib/codec/alliance/export.js +0 -64
- package/lib/codec/alliance/genesis.d.ts +0 -74
- package/lib/codec/alliance/genesis.js +0 -469
- package/lib/codec/alliance/gov.d.ts +0 -78
- package/lib/codec/alliance/gov.js +0 -380
- package/lib/codec/alliance/params.d.ts +0 -34
- package/lib/codec/alliance/params.js +0 -182
- package/lib/codec/alliance/query.d.ts +0 -333
- package/lib/codec/alliance/query.js +0 -1497
- package/lib/codec/alliance/tx.d.ts +0 -111
- package/lib/codec/alliance/tx.js +0 -495
- package/lib/codec/bank/event.d.ts +0 -65
- package/lib/codec/bank/event.js +0 -332
- package/lib/codec/bank/export.d.ts +0 -2
- package/lib/codec/bank/export.js +0 -14
- package/lib/codec/bank/genesis.d.ts +0 -18
- package/lib/codec/bank/genesis.js +0 -46
- package/lib/codec/bank/query.d.ts +0 -77
- package/lib/codec/bank/query.js +0 -459
- package/lib/codec/book/book.d.ts +0 -57
- package/lib/codec/book/book.js +0 -319
- package/lib/codec/book/event.d.ts +0 -22
- package/lib/codec/book/event.js +0 -113
- package/lib/codec/book/export.d.ts +0 -4
- package/lib/codec/book/export.js +0 -23
- package/lib/codec/book/genesis.d.ts +0 -25
- package/lib/codec/book/genesis.js +0 -79
- package/lib/codec/book/legacy.d.ts +0 -22
- package/lib/codec/book/legacy.js +0 -120
- package/lib/codec/book/query.d.ts +0 -141
- package/lib/codec/book/query.js +0 -606
- package/lib/codec/book/tx.d.ts +0 -12
- package/lib/codec/book/tx.js +0 -20
- package/lib/codec/broker/amm.d.ts +0 -50
- package/lib/codec/broker/amm.js +0 -326
- package/lib/codec/broker/candlestick.d.ts +0 -27
- package/lib/codec/broker/candlestick.js +0 -211
- package/lib/codec/broker/event.d.ts +0 -53
- package/lib/codec/broker/event.js +0 -485
- package/lib/codec/broker/export.d.ts +0 -7
- package/lib/codec/broker/export.js +0 -27
- package/lib/codec/broker/genesis.d.ts +0 -25
- package/lib/codec/broker/genesis.js +0 -79
- package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
- package/lib/codec/broker/incoming_liquidations.js +0 -93
- package/lib/codec/broker/incoming_pool_swap.d.ts +0 -23
- package/lib/codec/broker/incoming_pool_swap.js +0 -136
- package/lib/codec/broker/pagination.d.ts +0 -19
- package/lib/codec/broker/pagination.js +0 -78
- package/lib/codec/broker/query.d.ts +0 -107
- package/lib/codec/broker/query.js +0 -597
- package/lib/codec/broker/tx.d.ts +0 -53
- package/lib/codec/broker/tx.js +0 -176
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -21
- package/lib/codec/btcx/denom_cross_chain_info.js +0 -98
- package/lib/codec/btcx/denom_info.d.ts +0 -24
- package/lib/codec/btcx/denom_info.js +0 -140
- package/lib/codec/btcx/export.d.ts +0 -4
- package/lib/codec/btcx/export.js +0 -19
- package/lib/codec/btcx/genesis.d.ts +0 -18
- package/lib/codec/btcx/genesis.js +0 -46
- package/lib/codec/btcx/query.d.ts +0 -68
- package/lib/codec/btcx/query.js +0 -275
- package/lib/codec/btcx/tx.d.ts +0 -92
- package/lib/codec/btcx/tx.js +0 -436
- package/lib/codec/ccm/ccm.d.ts +0 -19
- package/lib/codec/ccm/ccm.js +0 -60
- package/lib/codec/ccm/export.d.ts +0 -4
- package/lib/codec/ccm/export.js +0 -20
- package/lib/codec/ccm/genesis.d.ts +0 -83
- package/lib/codec/ccm/genesis.js +0 -438
- package/lib/codec/ccm/query.d.ts +0 -45
- package/lib/codec/ccm/query.js +0 -197
- package/lib/codec/ccm/tx.d.ts +0 -97
- package/lib/codec/ccm/tx.js +0 -462
- package/lib/codec/cdp/asset_params.d.ts +0 -57
- package/lib/codec/cdp/asset_params.js +0 -411
- package/lib/codec/cdp/cdp_liquidations.d.ts +0 -32
- package/lib/codec/cdp/cdp_liquidations.js +0 -288
- package/lib/codec/cdp/debt_info.d.ts +0 -23
- package/lib/codec/cdp/debt_info.js +0 -158
- package/lib/codec/cdp/e_mode_category.d.ts +0 -23
- package/lib/codec/cdp/e_mode_category.js +0 -135
- package/lib/codec/cdp/event.d.ts +0 -446
- package/lib/codec/cdp/event.js +0 -2913
- package/lib/codec/cdp/export.d.ts +0 -13
- package/lib/codec/cdp/export.js +0 -210
- package/lib/codec/cdp/genesis.d.ts +0 -134
- package/lib/codec/cdp/genesis.js +0 -825
- package/lib/codec/cdp/params.d.ts +0 -68
- package/lib/codec/cdp/params.js +0 -210
- package/lib/codec/cdp/query.d.ts +0 -644
- package/lib/codec/cdp/query.js +0 -3099
- package/lib/codec/cdp/rate_strategy_params.d.ts +0 -26
- package/lib/codec/cdp/rate_strategy_params.js +0 -180
- package/lib/codec/cdp/reward_scheme.d.ts +0 -71
- package/lib/codec/cdp/reward_scheme.js +0 -550
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +0 -22
- package/lib/codec/cdp/stablecoin_debt_info.js +0 -144
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +0 -19
- package/lib/codec/cdp/stablecoin_interest_info.js +0 -99
- package/lib/codec/cdp/tx.d.ts +0 -1026
- package/lib/codec/cdp/tx.js +0 -5191
- package/lib/codec/coin/bridge.d.ts +0 -24
- package/lib/codec/coin/bridge.js +0 -151
- package/lib/codec/coin/event.d.ts +0 -143
- package/lib/codec/coin/event.js +0 -775
- package/lib/codec/coin/export.d.ts +0 -8
- package/lib/codec/coin/export.js +0 -107
- package/lib/codec/coin/genesis.d.ts +0 -42
- package/lib/codec/coin/genesis.js +0 -207
- package/lib/codec/coin/group.d.ts +0 -50
- package/lib/codec/coin/group.js +0 -230
- package/lib/codec/coin/proposal.d.ts +0 -21
- package/lib/codec/coin/proposal.js +0 -91
- package/lib/codec/coin/query.d.ts +0 -310
- package/lib/codec/coin/query.js +0 -1439
- package/lib/codec/coin/token.d.ts +0 -104
- package/lib/codec/coin/token.js +0 -700
- package/lib/codec/coin/tx.d.ts +0 -586
- package/lib/codec/coin/tx.js +0 -3131
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +0 -18
- package/lib/codec/cosmos/app/module/v1alpha1/module.js +0 -46
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +0 -31
- package/lib/codec/cosmos/base/kv/v1beta1/kv.js +0 -154
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +0 -160
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +0 -684
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +0 -54
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +0 -273
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +0 -62
- package/lib/codec/cosmos/base/store/v1beta1/listening.js +0 -341
- package/lib/codec/cosmos/capability/module/v1/module.d.ts +0 -23
- package/lib/codec/cosmos/capability/module/v1/module.js +0 -59
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +0 -51
- package/lib/codec/cosmos/capability/v1beta1/capability.js +0 -168
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +0 -40
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +0 -146
- package/lib/codec/cosmos/gov/v1beta1/export.d.ts +0 -3
- package/lib/codec/cosmos/gov/v1beta1/export.js +0 -45
- package/lib/codec/crisis/genesis.d.ts +0 -18
- package/lib/codec/crisis/genesis.js +0 -46
- package/lib/codec/crisis/query.d.ts +0 -43
- package/lib/codec/crisis/query.js +0 -103
- package/lib/codec/crisis/tx.d.ts +0 -12
- package/lib/codec/crisis/tx.js +0 -20
- package/lib/codec/erc20/erc20.d.ts +0 -41
- package/lib/codec/erc20/erc20.js +0 -144
- package/lib/codec/erc20/events.d.ts +0 -76
- package/lib/codec/erc20/events.js +0 -330
- package/lib/codec/erc20/export.d.ts +0 -5
- package/lib/codec/erc20/export.js +0 -37
- package/lib/codec/erc20/genesis.d.ts +0 -40
- package/lib/codec/erc20/genesis.js +0 -139
- package/lib/codec/erc20/query.d.ts +0 -117
- package/lib/codec/erc20/query.js +0 -333
- package/lib/codec/erc20/tx.d.ts +0 -232
- package/lib/codec/erc20/tx.js +0 -765
- package/lib/codec/evmbank/export.d.ts +0 -2
- package/lib/codec/evmbank/export.js +0 -8
- package/lib/codec/evmbank/genesis.d.ts +0 -32
- package/lib/codec/evmbank/genesis.js +0 -152
- package/lib/codec/evmbank/query.d.ts +0 -40
- package/lib/codec/evmbank/query.js +0 -116
- package/lib/codec/evmcontract/genesis.d.ts +0 -18
- package/lib/codec/evmcontract/genesis.js +0 -46
- package/lib/codec/evmcontract/query.d.ts +0 -12
- package/lib/codec/evmcontract/query.js +0 -20
- package/lib/codec/evmcontract/tx.d.ts +0 -12
- package/lib/codec/evmcontract/tx.js +0 -20
- package/lib/codec/evmmerge/address.d.ts +0 -19
- package/lib/codec/evmmerge/address.js +0 -75
- package/lib/codec/evmmerge/event.d.ts +0 -20
- package/lib/codec/evmmerge/event.js +0 -90
- package/lib/codec/evmmerge/export.d.ts +0 -6
- package/lib/codec/evmmerge/export.js +0 -20
- package/lib/codec/evmmerge/genesis.d.ts +0 -48
- package/lib/codec/evmmerge/genesis.js +0 -216
- package/lib/codec/evmmerge/offchain.d.ts +0 -22
- package/lib/codec/evmmerge/offchain.js +0 -105
- package/lib/codec/evmmerge/query.d.ts +0 -75
- package/lib/codec/evmmerge/query.js +0 -254
- package/lib/codec/evmmerge/tx.d.ts +0 -45
- package/lib/codec/evmmerge/tx.js +0 -128
- package/lib/codec/fee/event.d.ts +0 -20
- package/lib/codec/fee/event.js +0 -83
- package/lib/codec/fee/export.d.ts +0 -5
- package/lib/codec/fee/export.js +0 -32
- package/lib/codec/fee/fee.d.ts +0 -42
- package/lib/codec/fee/fee.js +0 -183
- package/lib/codec/fee/genesis.d.ts +0 -23
- package/lib/codec/fee/genesis.js +0 -79
- package/lib/codec/fee/proposal.d.ts +0 -57
- package/lib/codec/fee/proposal.js +0 -311
- package/lib/codec/fee/query.d.ts +0 -114
- package/lib/codec/fee/query.js +0 -470
- package/lib/codec/fee/tx.d.ts +0 -108
- package/lib/codec/fee/tx.js +0 -415
- package/lib/codec/headersync/consensus_peers.d.ts +0 -70
- package/lib/codec/headersync/consensus_peers.js +0 -383
- package/lib/codec/headersync/export.d.ts +0 -4
- package/lib/codec/headersync/export.js +0 -24
- package/lib/codec/headersync/genesis.d.ts +0 -79
- package/lib/codec/headersync/genesis.js +0 -419
- package/lib/codec/headersync/query.d.ts +0 -64
- package/lib/codec/headersync/query.js +0 -231
- package/lib/codec/headersync/tx.d.ts +0 -64
- package/lib/codec/headersync/tx.js +0 -215
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -76
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -424
- package/lib/codec/ibc/lightclients/localhost/v1/export.d.ts +0 -1
- package/lib/codec/ibc/lightclients/localhost/v1/export.js +0 -5
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +0 -26
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +0 -76
- package/lib/codec/ibc/lightclients/solomachine/v1/export.d.ts +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/export.js +0 -23
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +0 -298
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +0 -1356
- package/lib/codec/inflation/export.d.ts +0 -2
- package/lib/codec/inflation/export.js +0 -8
- package/lib/codec/inflation/genesis.d.ts +0 -25
- package/lib/codec/inflation/genesis.js +0 -79
- package/lib/codec/inflation/inflation.d.ts +0 -26
- package/lib/codec/inflation/inflation.js +0 -165
- package/lib/codec/inflation/query.d.ts +0 -41
- package/lib/codec/inflation/query.js +0 -109
- package/lib/codec/inflation/tx.d.ts +0 -12
- package/lib/codec/inflation/tx.js +0 -20
- package/lib/codec/insurance/event.d.ts +0 -24
- package/lib/codec/insurance/event.js +0 -46
- package/lib/codec/insurance/export.d.ts +0 -4
- package/lib/codec/insurance/export.js +0 -14
- package/lib/codec/insurance/fund.d.ts +0 -29
- package/lib/codec/insurance/fund.js +0 -148
- package/lib/codec/insurance/genesis.d.ts +0 -18
- package/lib/codec/insurance/genesis.js +0 -46
- package/lib/codec/insurance/query.d.ts +0 -41
- package/lib/codec/insurance/query.js +0 -108
- package/lib/codec/insurance/tx.d.ts +0 -44
- package/lib/codec/insurance/tx.js +0 -144
- package/lib/codec/leverage/event.d.ts +0 -21
- package/lib/codec/leverage/event.js +0 -100
- package/lib/codec/leverage/export.d.ts +0 -4
- package/lib/codec/leverage/export.js +0 -16
- package/lib/codec/leverage/genesis.d.ts +0 -24
- package/lib/codec/leverage/genesis.js +0 -64
- package/lib/codec/leverage/leverage.d.ts +0 -30
- package/lib/codec/leverage/leverage.js +0 -134
- package/lib/codec/leverage/query.d.ts +0 -70
- package/lib/codec/leverage/query.js +0 -234
- package/lib/codec/leverage/tx.d.ts +0 -43
- package/lib/codec/leverage/tx.js +0 -127
- package/lib/codec/liquidation/export.d.ts +0 -5
- package/lib/codec/liquidation/export.js +0 -17
- package/lib/codec/liquidation/genesis.d.ts +0 -37
- package/lib/codec/liquidation/genesis.js +0 -136
- package/lib/codec/liquidation/liquidation.d.ts +0 -17
- package/lib/codec/liquidation/liquidation.js +0 -46
- package/lib/codec/liquidation/outstanding_position.d.ts +0 -33
- package/lib/codec/liquidation/outstanding_position.js +0 -203
- package/lib/codec/liquidation/query.d.ts +0 -77
- package/lib/codec/liquidation/query.js +0 -341
- package/lib/codec/liquidation/quote_changes.d.ts +0 -22
- package/lib/codec/liquidation/quote_changes.js +0 -95
- package/lib/codec/liquidation/tx.d.ts +0 -12
- package/lib/codec/liquidation/tx.js +0 -20
- package/lib/codec/liquiditypool/event.d.ts +0 -182
- package/lib/codec/liquiditypool/event.js +0 -1268
- package/lib/codec/liquiditypool/export.d.ts +0 -6
- package/lib/codec/liquiditypool/export.js +0 -125
- package/lib/codec/liquiditypool/genesis.d.ts +0 -32
- package/lib/codec/liquiditypool/genesis.js +0 -228
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -138
- package/lib/codec/liquiditypool/liquiditypool.js +0 -943
- package/lib/codec/liquiditypool/proposal.d.ts +0 -117
- package/lib/codec/liquiditypool/proposal.js +0 -697
- package/lib/codec/liquiditypool/query.d.ts +0 -370
- package/lib/codec/liquiditypool/query.js +0 -1738
- package/lib/codec/liquiditypool/reward.d.ts +0 -196
- package/lib/codec/liquiditypool/reward.js +0 -1204
- package/lib/codec/liquiditypool/tx.d.ts +0 -453
- package/lib/codec/liquiditypool/tx.js +0 -2423
- package/lib/codec/lockproxy/event.d.ts +0 -46
- package/lib/codec/lockproxy/event.js +0 -348
- package/lib/codec/lockproxy/export.d.ts +0 -5
- package/lib/codec/lockproxy/export.js +0 -28
- package/lib/codec/lockproxy/genesis.d.ts +0 -68
- package/lib/codec/lockproxy/genesis.js +0 -355
- package/lib/codec/lockproxy/lockproxy.d.ts +0 -22
- package/lib/codec/lockproxy/lockproxy.js +0 -147
- package/lib/codec/lockproxy/query.d.ts +0 -67
- package/lib/codec/lockproxy/query.js +0 -274
- package/lib/codec/lockproxy/tx.d.ts +0 -147
- package/lib/codec/lockproxy/tx.js +0 -808
- package/lib/codec/market/event.d.ts +0 -20
- package/lib/codec/market/event.js +0 -76
- package/lib/codec/market/export.d.ts +0 -6
- package/lib/codec/market/export.js +0 -61
- package/lib/codec/market/fee.d.ts +0 -123
- package/lib/codec/market/fee.js +0 -334
- package/lib/codec/market/genesis.d.ts +0 -31
- package/lib/codec/market/genesis.js +0 -147
- package/lib/codec/market/legacy.d.ts +0 -62
- package/lib/codec/market/legacy.js +0 -630
- package/lib/codec/market/market.d.ts +0 -131
- package/lib/codec/market/market.js +0 -1245
- package/lib/codec/market/proposal.d.ts +0 -46
- package/lib/codec/market/proposal.js +0 -245
- package/lib/codec/market/query.d.ts +0 -233
- package/lib/codec/market/query.js +0 -938
- package/lib/codec/market/tx.d.ts +0 -250
- package/lib/codec/market/tx.js +0 -1265
- package/lib/codec/marketstats/export.d.ts +0 -3
- package/lib/codec/marketstats/export.js +0 -12
- package/lib/codec/marketstats/marketstats.d.ts +0 -31
- package/lib/codec/marketstats/marketstats.js +0 -258
- package/lib/codec/marketstats/params.d.ts +0 -18
- package/lib/codec/marketstats/params.js +0 -46
- package/lib/codec/marketstats/query.d.ts +0 -66
- package/lib/codec/marketstats/query.js +0 -195
- package/lib/codec/marketstats/tx.d.ts +0 -12
- package/lib/codec/marketstats/tx.js +0 -20
- package/lib/codec/misc/block.d.ts +0 -21
- package/lib/codec/misc/block.js +0 -105
- package/lib/codec/misc/export.d.ts +0 -6
- package/lib/codec/misc/export.js +0 -29
- package/lib/codec/misc/message.d.ts +0 -22
- package/lib/codec/misc/message.js +0 -128
- package/lib/codec/misc/message_type.d.ts +0 -18
- package/lib/codec/misc/message_type.js +0 -60
- package/lib/codec/misc/query.d.ts +0 -192
- package/lib/codec/misc/query.js +0 -884
- package/lib/codec/misc/trade.d.ts +0 -28
- package/lib/codec/misc/trade.js +0 -224
- package/lib/codec/misc/transaction.d.ts +0 -45
- package/lib/codec/misc/transaction.js +0 -369
- package/lib/codec/oracle/event.d.ts +0 -37
- package/lib/codec/oracle/event.js +0 -228
- package/lib/codec/oracle/export.d.ts +0 -6
- package/lib/codec/oracle/export.js +0 -58
- package/lib/codec/oracle/genesis.d.ts +0 -28
- package/lib/codec/oracle/genesis.js +0 -141
- package/lib/codec/oracle/oracle.d.ts +0 -94
- package/lib/codec/oracle/oracle.js +0 -650
- package/lib/codec/oracle/proposal.d.ts +0 -21
- package/lib/codec/oracle/proposal.js +0 -91
- package/lib/codec/oracle/query.d.ts +0 -336
- package/lib/codec/oracle/query.js +0 -1551
- package/lib/codec/oracle/slashing.d.ts +0 -33
- package/lib/codec/oracle/slashing.js +0 -191
- package/lib/codec/oracle/tx.d.ts +0 -169
- package/lib/codec/oracle/tx.js +0 -877
- package/lib/codec/order/event.d.ts +0 -23
- package/lib/codec/order/event.js +0 -146
- package/lib/codec/order/export.d.ts +0 -5
- package/lib/codec/order/export.js +0 -39
- package/lib/codec/order/genesis.d.ts +0 -62
- package/lib/codec/order/genesis.js +0 -322
- package/lib/codec/order/order.d.ts +0 -113
- package/lib/codec/order/order.js +0 -875
- package/lib/codec/order/query.d.ts +0 -143
- package/lib/codec/order/query.js +0 -596
- package/lib/codec/order/tx.d.ts +0 -146
- package/lib/codec/order/tx.js +0 -715
- package/lib/codec/perpsliquidity/event.d.ts +0 -115
- package/lib/codec/perpsliquidity/event.js +0 -657
- package/lib/codec/perpsliquidity/genesis.d.ts +0 -36
- package/lib/codec/perpsliquidity/genesis.js +0 -163
- package/lib/codec/perpsliquidity/market.d.ts +0 -84
- package/lib/codec/perpsliquidity/market.js +0 -431
- package/lib/codec/perpsliquidity/params.d.ts +0 -27
- package/lib/codec/perpsliquidity/params.js +0 -129
- package/lib/codec/perpsliquidity/pool.d.ts +0 -119
- package/lib/codec/perpsliquidity/pool.js +0 -774
- package/lib/codec/perpsliquidity/query.d.ts +0 -246
- package/lib/codec/perpsliquidity/query.js +0 -1125
- package/lib/codec/perpsliquidity/tx.d.ts +0 -203
- package/lib/codec/perpsliquidity/tx.js +0 -973
- package/lib/codec/perpspool/event.d.ts +0 -95
- package/lib/codec/perpspool/event.js +0 -561
- package/lib/codec/perpspool/export.d.ts +0 -7
- package/lib/codec/perpspool/export.js +0 -68
- package/lib/codec/perpspool/genesis.d.ts +0 -61
- package/lib/codec/perpspool/genesis.js +0 -343
- package/lib/codec/perpspool/market.d.ts +0 -96
- package/lib/codec/perpspool/market.js +0 -493
- package/lib/codec/perpspool/params.d.ts +0 -30
- package/lib/codec/perpspool/params.js +0 -189
- package/lib/codec/perpspool/pool.d.ts +0 -103
- package/lib/codec/perpspool/pool.js +0 -638
- package/lib/codec/perpspool/query.d.ts +0 -247
- package/lib/codec/perpspool/query.js +0 -1141
- package/lib/codec/perpspool/tx.d.ts +0 -229
- package/lib/codec/perpspool/tx.js +0 -1144
- package/lib/codec/position/event.d.ts +0 -26
- package/lib/codec/position/event.js +0 -180
- package/lib/codec/position/export.d.ts +0 -4
- package/lib/codec/position/export.js +0 -20
- package/lib/codec/position/genesis.d.ts +0 -24
- package/lib/codec/position/genesis.js +0 -64
- package/lib/codec/position/position.d.ts +0 -74
- package/lib/codec/position/position.js +0 -601
- package/lib/codec/position/query.d.ts +0 -92
- package/lib/codec/position/query.js +0 -400
- package/lib/codec/position/tx.d.ts +0 -42
- package/lib/codec/position/tx.js +0 -127
- package/lib/codec/pricing/event.d.ts +0 -74
- package/lib/codec/pricing/event.js +0 -361
- package/lib/codec/pricing/export.d.ts +0 -6
- package/lib/codec/pricing/export.js +0 -45
- package/lib/codec/pricing/genesis.d.ts +0 -26
- package/lib/codec/pricing/genesis.js +0 -95
- package/lib/codec/pricing/legacy.d.ts +0 -22
- package/lib/codec/pricing/legacy.js +0 -93
- package/lib/codec/pricing/pricing.d.ts +0 -60
- package/lib/codec/pricing/pricing.js +0 -456
- package/lib/codec/pricing/proposal.d.ts +0 -31
- package/lib/codec/pricing/proposal.js +0 -148
- package/lib/codec/pricing/query.d.ts +0 -183
- package/lib/codec/pricing/query.js +0 -759
- package/lib/codec/pricing/tx.d.ts +0 -131
- package/lib/codec/pricing/tx.js +0 -529
- package/lib/codec/profile/event.d.ts +0 -20
- package/lib/codec/profile/event.js +0 -78
- package/lib/codec/profile/export.d.ts +0 -4
- package/lib/codec/profile/export.js +0 -17
- package/lib/codec/profile/genesis.d.ts +0 -24
- package/lib/codec/profile/genesis.js +0 -64
- package/lib/codec/profile/profile.d.ts +0 -20
- package/lib/codec/profile/profile.js +0 -83
- package/lib/codec/profile/query.d.ts +0 -92
- package/lib/codec/profile/query.js +0 -360
- package/lib/codec/profile/tx.d.ts +0 -43
- package/lib/codec/profile/tx.js +0 -127
- package/lib/codec/proofs.d.ts +0 -315
- package/lib/codec/proofs.js +0 -1304
- package/lib/codec/query/pagination.d.ts +0 -29
- package/lib/codec/query/pagination.js +0 -126
- package/lib/codec/sequence/export.d.ts +0 -3
- package/lib/codec/sequence/export.js +0 -13
- package/lib/codec/sequence/genesis.d.ts +0 -30
- package/lib/codec/sequence/genesis.js +0 -122
- package/lib/codec/sequence/query.d.ts +0 -63
- package/lib/codec/sequence/query.js +0 -208
- package/lib/codec/sequence/tx.d.ts +0 -41
- package/lib/codec/sequence/tx.js +0 -148
- package/lib/codec/subaccount/export.d.ts +0 -4
- package/lib/codec/subaccount/export.js +0 -35
- package/lib/codec/subaccount/genesis.d.ts +0 -28
- package/lib/codec/subaccount/genesis.js +0 -110
- package/lib/codec/subaccount/legacy.d.ts +0 -19
- package/lib/codec/subaccount/legacy.js +0 -72
- package/lib/codec/subaccount/query.d.ts +0 -229
- package/lib/codec/subaccount/query.js +0 -1026
- package/lib/codec/subaccount/subaccount.d.ts +0 -57
- package/lib/codec/subaccount/subaccount.js +0 -349
- package/lib/codec/subaccount/tx.d.ts +0 -92
- package/lib/codec/subaccount/tx.js +0 -395
- package/lib/constant/amino.d.ts +0 -0
- package/lib/constant/amino.js +0 -1
- package/lib/constant/chainConfig.d.ts +0 -26
- package/lib/constant/chainConfig.js +0 -154
- package/lib/constant/signless.d.ts +0 -2
- package/lib/constant/signless.js +0 -5
- package/lib/modules/feemarket.d.ts +0 -20
- package/lib/modules/feemarket.js +0 -45
- package/lib/modules/perpsliquidity.d.ts +0 -49
- package/lib/modules/perpsliquidity.js +0 -118
- package/lib/modules/signless.d.ts +0 -24
- package/lib/modules/signless.js +0 -108
- package/lib/modules/vault.d.ts +0 -56
- package/lib/modules/vault.js +0 -128
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +0 -29
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +0 -178
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.d.ts +0 -13
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.js +0 -81
- package/lib/provider/account/EthLedgerAccount/index.d.ts +0 -2
- package/lib/provider/account/EthLedgerAccount/index.js +0 -14
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
- package/lib/provider/amino/types/signless.d.ts +0 -12
- package/lib/provider/amino/types/signless.js +0 -193
- package/lib/provider/station/StationAccount.d.ts +0 -28
- package/lib/provider/station/StationAccount.js +0 -168
- package/lib/provider/station/index.d.ts +0 -2
- package/lib/provider/station/index.js +0 -10
- package/lib/util/signless.d.ts +0 -11
- package/lib/util/signless.js +0 -92
package/lib/codec/cdp/query.js
DELETED
|
@@ -1,3099 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryAccountEModeResponse = exports.QueryAccountEModeRequest = exports.QueryEModeResponse = exports.QueryEModeRequest = exports.QueryStablecoinInterestResponse = exports.QueryStablecoinInterestRequest = exports.QueryEModeAllResponse = exports.QueryEModeAllRequest = exports.QueryRewardDebtsAllRequest = exports.QueryRewardDebtsResponse = exports.QueryRewardDebtsRequest = exports.QueryRewardSchemesAllResponse = exports.QueryRewardSchemesAllRequest = exports.QueryCdpPositionsResponse = exports.QueryCdpPositionsRequest = exports.QueryCdpPositionResponse = exports.QueryCdpPositionRequest = exports.CdpPosition = exports.CdpPositionItem = exports.QueryStablecoinDebtResponse = exports.QueryStablecoinDebtRequest = exports.QueryTokenDebtAllResponse = exports.QueryTokenDebtAllRequest = exports.QueryTokenDebtResponse = exports.QueryTokenDebtRequest = exports.QueryAssetAllResponse = exports.QueryAssetAllRequest = exports.QueryAssetResponse = exports.QueryAssetRequest = exports.QueryAccountStablecoinResponse = exports.QueryAccountStablecoinRequest = exports.Debt = exports.QueryAccountDebtAllResponse = exports.QueryAccountDebtAllRequest = exports.QueryAccountDebtResponse = exports.QueryAccountDebtRequest = exports.Collateral = exports.QueryAccountCollateralAllResponse = exports.QueryAccountCollateralAllRequest = exports.QueryAccountCollateralResponse = exports.QueryAccountCollateralRequest = exports.QueryAccountDataResponse = exports.QueryAccountDataRequest = exports.QueryRateStrategyAllResponse = exports.QueryRateStrategyAllRequest = exports.QueryRateStrategyResponse = exports.QueryRateStrategyRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
7
|
-
exports.QueryClientImpl = exports.QueryCDPLiquidationsAllResponse = exports.QueryCDPLiquidationsAllRequest = void 0;
|
|
8
|
-
/* eslint-disable */
|
|
9
|
-
const long_1 = __importDefault(require("long"));
|
|
10
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
|
-
const params_1 = require("./params");
|
|
12
|
-
const rate_strategy_params_1 = require("./rate_strategy_params");
|
|
13
|
-
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
14
|
-
const asset_params_1 = require("./asset_params");
|
|
15
|
-
const debt_info_1 = require("./debt_info");
|
|
16
|
-
const stablecoin_debt_info_1 = require("./stablecoin_debt_info");
|
|
17
|
-
const stablecoin_interest_info_1 = require("./stablecoin_interest_info");
|
|
18
|
-
const e_mode_category_1 = require("./e_mode_category");
|
|
19
|
-
const coin_1 = require("../cosmos/base/v1beta1/coin");
|
|
20
|
-
const reward_scheme_1 = require("./reward_scheme");
|
|
21
|
-
const cdp_liquidations_1 = require("./cdp_liquidations");
|
|
22
|
-
exports.protobufPackage = "Switcheo.carbon.cdp";
|
|
23
|
-
const baseQueryParamsRequest = {};
|
|
24
|
-
exports.QueryParamsRequest = {
|
|
25
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
26
|
-
return writer;
|
|
27
|
-
},
|
|
28
|
-
decode(input, length) {
|
|
29
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
30
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
-
const message = Object.assign({}, baseQueryParamsRequest);
|
|
32
|
-
while (reader.pos < end) {
|
|
33
|
-
const tag = reader.uint32();
|
|
34
|
-
switch (tag >>> 3) {
|
|
35
|
-
default:
|
|
36
|
-
reader.skipType(tag & 7);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return message;
|
|
41
|
-
},
|
|
42
|
-
fromJSON(_) {
|
|
43
|
-
const message = Object.assign({}, baseQueryParamsRequest);
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
toJSON(_) {
|
|
47
|
-
const obj = {};
|
|
48
|
-
return obj;
|
|
49
|
-
},
|
|
50
|
-
fromPartial(_) {
|
|
51
|
-
const message = Object.assign({}, baseQueryParamsRequest);
|
|
52
|
-
return message;
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
const baseQueryParamsResponse = {};
|
|
56
|
-
exports.QueryParamsResponse = {
|
|
57
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
58
|
-
if (message.params !== undefined) {
|
|
59
|
-
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
60
|
-
}
|
|
61
|
-
return writer;
|
|
62
|
-
},
|
|
63
|
-
decode(input, length) {
|
|
64
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
65
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
66
|
-
const message = Object.assign({}, baseQueryParamsResponse);
|
|
67
|
-
while (reader.pos < end) {
|
|
68
|
-
const tag = reader.uint32();
|
|
69
|
-
switch (tag >>> 3) {
|
|
70
|
-
case 1:
|
|
71
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
72
|
-
break;
|
|
73
|
-
default:
|
|
74
|
-
reader.skipType(tag & 7);
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
fromJSON(object) {
|
|
81
|
-
const message = Object.assign({}, baseQueryParamsResponse);
|
|
82
|
-
message.params =
|
|
83
|
-
object.params !== undefined && object.params !== null
|
|
84
|
-
? params_1.Params.fromJSON(object.params)
|
|
85
|
-
: undefined;
|
|
86
|
-
return message;
|
|
87
|
-
},
|
|
88
|
-
toJSON(message) {
|
|
89
|
-
const obj = {};
|
|
90
|
-
message.params !== undefined &&
|
|
91
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
92
|
-
return obj;
|
|
93
|
-
},
|
|
94
|
-
fromPartial(object) {
|
|
95
|
-
const message = Object.assign({}, baseQueryParamsResponse);
|
|
96
|
-
message.params =
|
|
97
|
-
object.params !== undefined && object.params !== null
|
|
98
|
-
? params_1.Params.fromPartial(object.params)
|
|
99
|
-
: undefined;
|
|
100
|
-
return message;
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
const baseQueryRateStrategyRequest = { name: "" };
|
|
104
|
-
exports.QueryRateStrategyRequest = {
|
|
105
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
106
|
-
if (message.name !== "") {
|
|
107
|
-
writer.uint32(10).string(message.name);
|
|
108
|
-
}
|
|
109
|
-
return writer;
|
|
110
|
-
},
|
|
111
|
-
decode(input, length) {
|
|
112
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
113
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
114
|
-
const message = Object.assign({}, baseQueryRateStrategyRequest);
|
|
115
|
-
while (reader.pos < end) {
|
|
116
|
-
const tag = reader.uint32();
|
|
117
|
-
switch (tag >>> 3) {
|
|
118
|
-
case 1:
|
|
119
|
-
message.name = reader.string();
|
|
120
|
-
break;
|
|
121
|
-
default:
|
|
122
|
-
reader.skipType(tag & 7);
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return message;
|
|
127
|
-
},
|
|
128
|
-
fromJSON(object) {
|
|
129
|
-
const message = Object.assign({}, baseQueryRateStrategyRequest);
|
|
130
|
-
message.name =
|
|
131
|
-
object.name !== undefined && object.name !== null
|
|
132
|
-
? String(object.name)
|
|
133
|
-
: "";
|
|
134
|
-
return message;
|
|
135
|
-
},
|
|
136
|
-
toJSON(message) {
|
|
137
|
-
const obj = {};
|
|
138
|
-
message.name !== undefined && (obj.name = message.name);
|
|
139
|
-
return obj;
|
|
140
|
-
},
|
|
141
|
-
fromPartial(object) {
|
|
142
|
-
var _a;
|
|
143
|
-
const message = Object.assign({}, baseQueryRateStrategyRequest);
|
|
144
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
145
|
-
return message;
|
|
146
|
-
},
|
|
147
|
-
};
|
|
148
|
-
const baseQueryRateStrategyResponse = {};
|
|
149
|
-
exports.QueryRateStrategyResponse = {
|
|
150
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
|
-
if (message.rateStrategyParams !== undefined) {
|
|
152
|
-
rate_strategy_params_1.RateStrategyParams.encode(message.rateStrategyParams, writer.uint32(10).fork()).ldelim();
|
|
153
|
-
}
|
|
154
|
-
return writer;
|
|
155
|
-
},
|
|
156
|
-
decode(input, length) {
|
|
157
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
158
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
-
const message = Object.assign({}, baseQueryRateStrategyResponse);
|
|
160
|
-
while (reader.pos < end) {
|
|
161
|
-
const tag = reader.uint32();
|
|
162
|
-
switch (tag >>> 3) {
|
|
163
|
-
case 1:
|
|
164
|
-
message.rateStrategyParams = rate_strategy_params_1.RateStrategyParams.decode(reader, reader.uint32());
|
|
165
|
-
break;
|
|
166
|
-
default:
|
|
167
|
-
reader.skipType(tag & 7);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
fromJSON(object) {
|
|
174
|
-
const message = Object.assign({}, baseQueryRateStrategyResponse);
|
|
175
|
-
message.rateStrategyParams =
|
|
176
|
-
object.rateStrategyParams !== undefined &&
|
|
177
|
-
object.rateStrategyParams !== null
|
|
178
|
-
? rate_strategy_params_1.RateStrategyParams.fromJSON(object.rateStrategyParams)
|
|
179
|
-
: undefined;
|
|
180
|
-
return message;
|
|
181
|
-
},
|
|
182
|
-
toJSON(message) {
|
|
183
|
-
const obj = {};
|
|
184
|
-
message.rateStrategyParams !== undefined &&
|
|
185
|
-
(obj.rateStrategyParams = message.rateStrategyParams
|
|
186
|
-
? rate_strategy_params_1.RateStrategyParams.toJSON(message.rateStrategyParams)
|
|
187
|
-
: undefined);
|
|
188
|
-
return obj;
|
|
189
|
-
},
|
|
190
|
-
fromPartial(object) {
|
|
191
|
-
const message = Object.assign({}, baseQueryRateStrategyResponse);
|
|
192
|
-
message.rateStrategyParams =
|
|
193
|
-
object.rateStrategyParams !== undefined &&
|
|
194
|
-
object.rateStrategyParams !== null
|
|
195
|
-
? rate_strategy_params_1.RateStrategyParams.fromPartial(object.rateStrategyParams)
|
|
196
|
-
: undefined;
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
const baseQueryRateStrategyAllRequest = {};
|
|
201
|
-
exports.QueryRateStrategyAllRequest = {
|
|
202
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
203
|
-
if (message.pagination !== undefined) {
|
|
204
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
205
|
-
}
|
|
206
|
-
return writer;
|
|
207
|
-
},
|
|
208
|
-
decode(input, length) {
|
|
209
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
210
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
211
|
-
const message = Object.assign({}, baseQueryRateStrategyAllRequest);
|
|
212
|
-
while (reader.pos < end) {
|
|
213
|
-
const tag = reader.uint32();
|
|
214
|
-
switch (tag >>> 3) {
|
|
215
|
-
case 1:
|
|
216
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
217
|
-
break;
|
|
218
|
-
default:
|
|
219
|
-
reader.skipType(tag & 7);
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return message;
|
|
224
|
-
},
|
|
225
|
-
fromJSON(object) {
|
|
226
|
-
const message = Object.assign({}, baseQueryRateStrategyAllRequest);
|
|
227
|
-
message.pagination =
|
|
228
|
-
object.pagination !== undefined && object.pagination !== null
|
|
229
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
230
|
-
: undefined;
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
toJSON(message) {
|
|
234
|
-
const obj = {};
|
|
235
|
-
message.pagination !== undefined &&
|
|
236
|
-
(obj.pagination = message.pagination
|
|
237
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
238
|
-
: undefined);
|
|
239
|
-
return obj;
|
|
240
|
-
},
|
|
241
|
-
fromPartial(object) {
|
|
242
|
-
const message = Object.assign({}, baseQueryRateStrategyAllRequest);
|
|
243
|
-
message.pagination =
|
|
244
|
-
object.pagination !== undefined && object.pagination !== null
|
|
245
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
246
|
-
: undefined;
|
|
247
|
-
return message;
|
|
248
|
-
},
|
|
249
|
-
};
|
|
250
|
-
const baseQueryRateStrategyAllResponse = {};
|
|
251
|
-
exports.QueryRateStrategyAllResponse = {
|
|
252
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
253
|
-
for (const v of message.rateStrategyParamsAll) {
|
|
254
|
-
rate_strategy_params_1.RateStrategyParams.encode(v, writer.uint32(10).fork()).ldelim();
|
|
255
|
-
}
|
|
256
|
-
if (message.pagination !== undefined) {
|
|
257
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
258
|
-
}
|
|
259
|
-
return writer;
|
|
260
|
-
},
|
|
261
|
-
decode(input, length) {
|
|
262
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
263
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
264
|
-
const message = Object.assign({}, baseQueryRateStrategyAllResponse);
|
|
265
|
-
message.rateStrategyParamsAll = [];
|
|
266
|
-
while (reader.pos < end) {
|
|
267
|
-
const tag = reader.uint32();
|
|
268
|
-
switch (tag >>> 3) {
|
|
269
|
-
case 1:
|
|
270
|
-
message.rateStrategyParamsAll.push(rate_strategy_params_1.RateStrategyParams.decode(reader, reader.uint32()));
|
|
271
|
-
break;
|
|
272
|
-
case 2:
|
|
273
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
274
|
-
break;
|
|
275
|
-
default:
|
|
276
|
-
reader.skipType(tag & 7);
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return message;
|
|
281
|
-
},
|
|
282
|
-
fromJSON(object) {
|
|
283
|
-
var _a;
|
|
284
|
-
const message = Object.assign({}, baseQueryRateStrategyAllResponse);
|
|
285
|
-
message.rateStrategyParamsAll = ((_a = object.rateStrategyParamsAll) !== null && _a !== void 0 ? _a : []).map((e) => rate_strategy_params_1.RateStrategyParams.fromJSON(e));
|
|
286
|
-
message.pagination =
|
|
287
|
-
object.pagination !== undefined && object.pagination !== null
|
|
288
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
289
|
-
: undefined;
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
toJSON(message) {
|
|
293
|
-
const obj = {};
|
|
294
|
-
if (message.rateStrategyParamsAll) {
|
|
295
|
-
obj.rateStrategyParamsAll = message.rateStrategyParamsAll.map((e) => e ? rate_strategy_params_1.RateStrategyParams.toJSON(e) : undefined);
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
obj.rateStrategyParamsAll = [];
|
|
299
|
-
}
|
|
300
|
-
message.pagination !== undefined &&
|
|
301
|
-
(obj.pagination = message.pagination
|
|
302
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
303
|
-
: undefined);
|
|
304
|
-
return obj;
|
|
305
|
-
},
|
|
306
|
-
fromPartial(object) {
|
|
307
|
-
var _a;
|
|
308
|
-
const message = Object.assign({}, baseQueryRateStrategyAllResponse);
|
|
309
|
-
message.rateStrategyParamsAll = ((_a = object.rateStrategyParamsAll) !== null && _a !== void 0 ? _a : []).map((e) => rate_strategy_params_1.RateStrategyParams.fromPartial(e));
|
|
310
|
-
message.pagination =
|
|
311
|
-
object.pagination !== undefined && object.pagination !== null
|
|
312
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
313
|
-
: undefined;
|
|
314
|
-
return message;
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
const baseQueryAccountDataRequest = { address: "" };
|
|
318
|
-
exports.QueryAccountDataRequest = {
|
|
319
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
320
|
-
if (message.address !== "") {
|
|
321
|
-
writer.uint32(10).string(message.address);
|
|
322
|
-
}
|
|
323
|
-
return writer;
|
|
324
|
-
},
|
|
325
|
-
decode(input, length) {
|
|
326
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
327
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
-
const message = Object.assign({}, baseQueryAccountDataRequest);
|
|
329
|
-
while (reader.pos < end) {
|
|
330
|
-
const tag = reader.uint32();
|
|
331
|
-
switch (tag >>> 3) {
|
|
332
|
-
case 1:
|
|
333
|
-
message.address = reader.string();
|
|
334
|
-
break;
|
|
335
|
-
default:
|
|
336
|
-
reader.skipType(tag & 7);
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
return message;
|
|
341
|
-
},
|
|
342
|
-
fromJSON(object) {
|
|
343
|
-
const message = Object.assign({}, baseQueryAccountDataRequest);
|
|
344
|
-
message.address =
|
|
345
|
-
object.address !== undefined && object.address !== null
|
|
346
|
-
? String(object.address)
|
|
347
|
-
: "";
|
|
348
|
-
return message;
|
|
349
|
-
},
|
|
350
|
-
toJSON(message) {
|
|
351
|
-
const obj = {};
|
|
352
|
-
message.address !== undefined && (obj.address = message.address);
|
|
353
|
-
return obj;
|
|
354
|
-
},
|
|
355
|
-
fromPartial(object) {
|
|
356
|
-
var _a;
|
|
357
|
-
const message = Object.assign({}, baseQueryAccountDataRequest);
|
|
358
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
const baseQueryAccountDataResponse = {
|
|
363
|
-
totalCollateralsUsd: "",
|
|
364
|
-
totalDebtsUsd: "",
|
|
365
|
-
availableBorrowsUsd: "",
|
|
366
|
-
currLiquidationThreshold: "",
|
|
367
|
-
};
|
|
368
|
-
exports.QueryAccountDataResponse = {
|
|
369
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
370
|
-
if (message.totalCollateralsUsd !== "") {
|
|
371
|
-
writer.uint32(10).string(message.totalCollateralsUsd);
|
|
372
|
-
}
|
|
373
|
-
if (message.totalDebtsUsd !== "") {
|
|
374
|
-
writer.uint32(18).string(message.totalDebtsUsd);
|
|
375
|
-
}
|
|
376
|
-
if (message.availableBorrowsUsd !== "") {
|
|
377
|
-
writer.uint32(26).string(message.availableBorrowsUsd);
|
|
378
|
-
}
|
|
379
|
-
if (message.currLiquidationThreshold !== "") {
|
|
380
|
-
writer.uint32(34).string(message.currLiquidationThreshold);
|
|
381
|
-
}
|
|
382
|
-
return writer;
|
|
383
|
-
},
|
|
384
|
-
decode(input, length) {
|
|
385
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
386
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
-
const message = Object.assign({}, baseQueryAccountDataResponse);
|
|
388
|
-
while (reader.pos < end) {
|
|
389
|
-
const tag = reader.uint32();
|
|
390
|
-
switch (tag >>> 3) {
|
|
391
|
-
case 1:
|
|
392
|
-
message.totalCollateralsUsd = reader.string();
|
|
393
|
-
break;
|
|
394
|
-
case 2:
|
|
395
|
-
message.totalDebtsUsd = reader.string();
|
|
396
|
-
break;
|
|
397
|
-
case 3:
|
|
398
|
-
message.availableBorrowsUsd = reader.string();
|
|
399
|
-
break;
|
|
400
|
-
case 4:
|
|
401
|
-
message.currLiquidationThreshold = reader.string();
|
|
402
|
-
break;
|
|
403
|
-
default:
|
|
404
|
-
reader.skipType(tag & 7);
|
|
405
|
-
break;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
return message;
|
|
409
|
-
},
|
|
410
|
-
fromJSON(object) {
|
|
411
|
-
const message = Object.assign({}, baseQueryAccountDataResponse);
|
|
412
|
-
message.totalCollateralsUsd =
|
|
413
|
-
object.totalCollateralsUsd !== undefined &&
|
|
414
|
-
object.totalCollateralsUsd !== null
|
|
415
|
-
? String(object.totalCollateralsUsd)
|
|
416
|
-
: "";
|
|
417
|
-
message.totalDebtsUsd =
|
|
418
|
-
object.totalDebtsUsd !== undefined && object.totalDebtsUsd !== null
|
|
419
|
-
? String(object.totalDebtsUsd)
|
|
420
|
-
: "";
|
|
421
|
-
message.availableBorrowsUsd =
|
|
422
|
-
object.availableBorrowsUsd !== undefined &&
|
|
423
|
-
object.availableBorrowsUsd !== null
|
|
424
|
-
? String(object.availableBorrowsUsd)
|
|
425
|
-
: "";
|
|
426
|
-
message.currLiquidationThreshold =
|
|
427
|
-
object.currLiquidationThreshold !== undefined &&
|
|
428
|
-
object.currLiquidationThreshold !== null
|
|
429
|
-
? String(object.currLiquidationThreshold)
|
|
430
|
-
: "";
|
|
431
|
-
return message;
|
|
432
|
-
},
|
|
433
|
-
toJSON(message) {
|
|
434
|
-
const obj = {};
|
|
435
|
-
message.totalCollateralsUsd !== undefined &&
|
|
436
|
-
(obj.totalCollateralsUsd = message.totalCollateralsUsd);
|
|
437
|
-
message.totalDebtsUsd !== undefined &&
|
|
438
|
-
(obj.totalDebtsUsd = message.totalDebtsUsd);
|
|
439
|
-
message.availableBorrowsUsd !== undefined &&
|
|
440
|
-
(obj.availableBorrowsUsd = message.availableBorrowsUsd);
|
|
441
|
-
message.currLiquidationThreshold !== undefined &&
|
|
442
|
-
(obj.currLiquidationThreshold = message.currLiquidationThreshold);
|
|
443
|
-
return obj;
|
|
444
|
-
},
|
|
445
|
-
fromPartial(object) {
|
|
446
|
-
var _a, _b, _c, _d;
|
|
447
|
-
const message = Object.assign({}, baseQueryAccountDataResponse);
|
|
448
|
-
message.totalCollateralsUsd = (_a = object.totalCollateralsUsd) !== null && _a !== void 0 ? _a : "";
|
|
449
|
-
message.totalDebtsUsd = (_b = object.totalDebtsUsd) !== null && _b !== void 0 ? _b : "";
|
|
450
|
-
message.availableBorrowsUsd = (_c = object.availableBorrowsUsd) !== null && _c !== void 0 ? _c : "";
|
|
451
|
-
message.currLiquidationThreshold = (_d = object.currLiquidationThreshold) !== null && _d !== void 0 ? _d : "";
|
|
452
|
-
return message;
|
|
453
|
-
},
|
|
454
|
-
};
|
|
455
|
-
const baseQueryAccountCollateralRequest = { address: "", cdpDenom: "" };
|
|
456
|
-
exports.QueryAccountCollateralRequest = {
|
|
457
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
458
|
-
if (message.address !== "") {
|
|
459
|
-
writer.uint32(10).string(message.address);
|
|
460
|
-
}
|
|
461
|
-
if (message.cdpDenom !== "") {
|
|
462
|
-
writer.uint32(18).string(message.cdpDenom);
|
|
463
|
-
}
|
|
464
|
-
return writer;
|
|
465
|
-
},
|
|
466
|
-
decode(input, length) {
|
|
467
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
468
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
469
|
-
const message = Object.assign({}, baseQueryAccountCollateralRequest);
|
|
470
|
-
while (reader.pos < end) {
|
|
471
|
-
const tag = reader.uint32();
|
|
472
|
-
switch (tag >>> 3) {
|
|
473
|
-
case 1:
|
|
474
|
-
message.address = reader.string();
|
|
475
|
-
break;
|
|
476
|
-
case 2:
|
|
477
|
-
message.cdpDenom = reader.string();
|
|
478
|
-
break;
|
|
479
|
-
default:
|
|
480
|
-
reader.skipType(tag & 7);
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
return message;
|
|
485
|
-
},
|
|
486
|
-
fromJSON(object) {
|
|
487
|
-
const message = Object.assign({}, baseQueryAccountCollateralRequest);
|
|
488
|
-
message.address =
|
|
489
|
-
object.address !== undefined && object.address !== null
|
|
490
|
-
? String(object.address)
|
|
491
|
-
: "";
|
|
492
|
-
message.cdpDenom =
|
|
493
|
-
object.cdpDenom !== undefined && object.cdpDenom !== null
|
|
494
|
-
? String(object.cdpDenom)
|
|
495
|
-
: "";
|
|
496
|
-
return message;
|
|
497
|
-
},
|
|
498
|
-
toJSON(message) {
|
|
499
|
-
const obj = {};
|
|
500
|
-
message.address !== undefined && (obj.address = message.address);
|
|
501
|
-
message.cdpDenom !== undefined && (obj.cdpDenom = message.cdpDenom);
|
|
502
|
-
return obj;
|
|
503
|
-
},
|
|
504
|
-
fromPartial(object) {
|
|
505
|
-
var _a, _b;
|
|
506
|
-
const message = Object.assign({}, baseQueryAccountCollateralRequest);
|
|
507
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
508
|
-
message.cdpDenom = (_b = object.cdpDenom) !== null && _b !== void 0 ? _b : "";
|
|
509
|
-
return message;
|
|
510
|
-
},
|
|
511
|
-
};
|
|
512
|
-
const baseQueryAccountCollateralResponse = {};
|
|
513
|
-
exports.QueryAccountCollateralResponse = {
|
|
514
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
515
|
-
if (message.collateral !== undefined) {
|
|
516
|
-
exports.Collateral.encode(message.collateral, writer.uint32(10).fork()).ldelim();
|
|
517
|
-
}
|
|
518
|
-
return writer;
|
|
519
|
-
},
|
|
520
|
-
decode(input, length) {
|
|
521
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
522
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
523
|
-
const message = Object.assign({}, baseQueryAccountCollateralResponse);
|
|
524
|
-
while (reader.pos < end) {
|
|
525
|
-
const tag = reader.uint32();
|
|
526
|
-
switch (tag >>> 3) {
|
|
527
|
-
case 1:
|
|
528
|
-
message.collateral = exports.Collateral.decode(reader, reader.uint32());
|
|
529
|
-
break;
|
|
530
|
-
default:
|
|
531
|
-
reader.skipType(tag & 7);
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
return message;
|
|
536
|
-
},
|
|
537
|
-
fromJSON(object) {
|
|
538
|
-
const message = Object.assign({}, baseQueryAccountCollateralResponse);
|
|
539
|
-
message.collateral =
|
|
540
|
-
object.collateral !== undefined && object.collateral !== null
|
|
541
|
-
? exports.Collateral.fromJSON(object.collateral)
|
|
542
|
-
: undefined;
|
|
543
|
-
return message;
|
|
544
|
-
},
|
|
545
|
-
toJSON(message) {
|
|
546
|
-
const obj = {};
|
|
547
|
-
message.collateral !== undefined &&
|
|
548
|
-
(obj.collateral = message.collateral
|
|
549
|
-
? exports.Collateral.toJSON(message.collateral)
|
|
550
|
-
: undefined);
|
|
551
|
-
return obj;
|
|
552
|
-
},
|
|
553
|
-
fromPartial(object) {
|
|
554
|
-
const message = Object.assign({}, baseQueryAccountCollateralResponse);
|
|
555
|
-
message.collateral =
|
|
556
|
-
object.collateral !== undefined && object.collateral !== null
|
|
557
|
-
? exports.Collateral.fromPartial(object.collateral)
|
|
558
|
-
: undefined;
|
|
559
|
-
return message;
|
|
560
|
-
},
|
|
561
|
-
};
|
|
562
|
-
const baseQueryAccountCollateralAllRequest = { address: "" };
|
|
563
|
-
exports.QueryAccountCollateralAllRequest = {
|
|
564
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
565
|
-
if (message.address !== "") {
|
|
566
|
-
writer.uint32(10).string(message.address);
|
|
567
|
-
}
|
|
568
|
-
if (message.pagination !== undefined) {
|
|
569
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
570
|
-
}
|
|
571
|
-
return writer;
|
|
572
|
-
},
|
|
573
|
-
decode(input, length) {
|
|
574
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
575
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
576
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllRequest);
|
|
577
|
-
while (reader.pos < end) {
|
|
578
|
-
const tag = reader.uint32();
|
|
579
|
-
switch (tag >>> 3) {
|
|
580
|
-
case 1:
|
|
581
|
-
message.address = reader.string();
|
|
582
|
-
break;
|
|
583
|
-
case 2:
|
|
584
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
585
|
-
break;
|
|
586
|
-
default:
|
|
587
|
-
reader.skipType(tag & 7);
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
return message;
|
|
592
|
-
},
|
|
593
|
-
fromJSON(object) {
|
|
594
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllRequest);
|
|
595
|
-
message.address =
|
|
596
|
-
object.address !== undefined && object.address !== null
|
|
597
|
-
? String(object.address)
|
|
598
|
-
: "";
|
|
599
|
-
message.pagination =
|
|
600
|
-
object.pagination !== undefined && object.pagination !== null
|
|
601
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
602
|
-
: undefined;
|
|
603
|
-
return message;
|
|
604
|
-
},
|
|
605
|
-
toJSON(message) {
|
|
606
|
-
const obj = {};
|
|
607
|
-
message.address !== undefined && (obj.address = message.address);
|
|
608
|
-
message.pagination !== undefined &&
|
|
609
|
-
(obj.pagination = message.pagination
|
|
610
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
611
|
-
: undefined);
|
|
612
|
-
return obj;
|
|
613
|
-
},
|
|
614
|
-
fromPartial(object) {
|
|
615
|
-
var _a;
|
|
616
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllRequest);
|
|
617
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
618
|
-
message.pagination =
|
|
619
|
-
object.pagination !== undefined && object.pagination !== null
|
|
620
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
621
|
-
: undefined;
|
|
622
|
-
return message;
|
|
623
|
-
},
|
|
624
|
-
};
|
|
625
|
-
const baseQueryAccountCollateralAllResponse = {};
|
|
626
|
-
exports.QueryAccountCollateralAllResponse = {
|
|
627
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
628
|
-
for (const v of message.collaterals) {
|
|
629
|
-
exports.Collateral.encode(v, writer.uint32(10).fork()).ldelim();
|
|
630
|
-
}
|
|
631
|
-
if (message.pagination !== undefined) {
|
|
632
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
633
|
-
}
|
|
634
|
-
return writer;
|
|
635
|
-
},
|
|
636
|
-
decode(input, length) {
|
|
637
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
638
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
639
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllResponse);
|
|
640
|
-
message.collaterals = [];
|
|
641
|
-
while (reader.pos < end) {
|
|
642
|
-
const tag = reader.uint32();
|
|
643
|
-
switch (tag >>> 3) {
|
|
644
|
-
case 1:
|
|
645
|
-
message.collaterals.push(exports.Collateral.decode(reader, reader.uint32()));
|
|
646
|
-
break;
|
|
647
|
-
case 2:
|
|
648
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
649
|
-
break;
|
|
650
|
-
default:
|
|
651
|
-
reader.skipType(tag & 7);
|
|
652
|
-
break;
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
return message;
|
|
656
|
-
},
|
|
657
|
-
fromJSON(object) {
|
|
658
|
-
var _a;
|
|
659
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllResponse);
|
|
660
|
-
message.collaterals = ((_a = object.collaterals) !== null && _a !== void 0 ? _a : []).map((e) => exports.Collateral.fromJSON(e));
|
|
661
|
-
message.pagination =
|
|
662
|
-
object.pagination !== undefined && object.pagination !== null
|
|
663
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
664
|
-
: undefined;
|
|
665
|
-
return message;
|
|
666
|
-
},
|
|
667
|
-
toJSON(message) {
|
|
668
|
-
const obj = {};
|
|
669
|
-
if (message.collaterals) {
|
|
670
|
-
obj.collaterals = message.collaterals.map((e) => e ? exports.Collateral.toJSON(e) : undefined);
|
|
671
|
-
}
|
|
672
|
-
else {
|
|
673
|
-
obj.collaterals = [];
|
|
674
|
-
}
|
|
675
|
-
message.pagination !== undefined &&
|
|
676
|
-
(obj.pagination = message.pagination
|
|
677
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
678
|
-
: undefined);
|
|
679
|
-
return obj;
|
|
680
|
-
},
|
|
681
|
-
fromPartial(object) {
|
|
682
|
-
var _a;
|
|
683
|
-
const message = Object.assign({}, baseQueryAccountCollateralAllResponse);
|
|
684
|
-
message.collaterals = ((_a = object.collaterals) !== null && _a !== void 0 ? _a : []).map((e) => exports.Collateral.fromPartial(e));
|
|
685
|
-
message.pagination =
|
|
686
|
-
object.pagination !== undefined && object.pagination !== null
|
|
687
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
688
|
-
: undefined;
|
|
689
|
-
return message;
|
|
690
|
-
},
|
|
691
|
-
};
|
|
692
|
-
const baseCollateral = {
|
|
693
|
-
denom: "",
|
|
694
|
-
cdpDenom: "",
|
|
695
|
-
collateralAmount: "",
|
|
696
|
-
};
|
|
697
|
-
exports.Collateral = {
|
|
698
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
699
|
-
if (message.denom !== "") {
|
|
700
|
-
writer.uint32(10).string(message.denom);
|
|
701
|
-
}
|
|
702
|
-
if (message.cdpDenom !== "") {
|
|
703
|
-
writer.uint32(18).string(message.cdpDenom);
|
|
704
|
-
}
|
|
705
|
-
if (message.collateralAmount !== "") {
|
|
706
|
-
writer.uint32(26).string(message.collateralAmount);
|
|
707
|
-
}
|
|
708
|
-
return writer;
|
|
709
|
-
},
|
|
710
|
-
decode(input, length) {
|
|
711
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
712
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
713
|
-
const message = Object.assign({}, baseCollateral);
|
|
714
|
-
while (reader.pos < end) {
|
|
715
|
-
const tag = reader.uint32();
|
|
716
|
-
switch (tag >>> 3) {
|
|
717
|
-
case 1:
|
|
718
|
-
message.denom = reader.string();
|
|
719
|
-
break;
|
|
720
|
-
case 2:
|
|
721
|
-
message.cdpDenom = reader.string();
|
|
722
|
-
break;
|
|
723
|
-
case 3:
|
|
724
|
-
message.collateralAmount = reader.string();
|
|
725
|
-
break;
|
|
726
|
-
default:
|
|
727
|
-
reader.skipType(tag & 7);
|
|
728
|
-
break;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
return message;
|
|
732
|
-
},
|
|
733
|
-
fromJSON(object) {
|
|
734
|
-
const message = Object.assign({}, baseCollateral);
|
|
735
|
-
message.denom =
|
|
736
|
-
object.denom !== undefined && object.denom !== null
|
|
737
|
-
? String(object.denom)
|
|
738
|
-
: "";
|
|
739
|
-
message.cdpDenom =
|
|
740
|
-
object.cdpDenom !== undefined && object.cdpDenom !== null
|
|
741
|
-
? String(object.cdpDenom)
|
|
742
|
-
: "";
|
|
743
|
-
message.collateralAmount =
|
|
744
|
-
object.collateralAmount !== undefined && object.collateralAmount !== null
|
|
745
|
-
? String(object.collateralAmount)
|
|
746
|
-
: "";
|
|
747
|
-
return message;
|
|
748
|
-
},
|
|
749
|
-
toJSON(message) {
|
|
750
|
-
const obj = {};
|
|
751
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
752
|
-
message.cdpDenom !== undefined && (obj.cdpDenom = message.cdpDenom);
|
|
753
|
-
message.collateralAmount !== undefined &&
|
|
754
|
-
(obj.collateralAmount = message.collateralAmount);
|
|
755
|
-
return obj;
|
|
756
|
-
},
|
|
757
|
-
fromPartial(object) {
|
|
758
|
-
var _a, _b, _c;
|
|
759
|
-
const message = Object.assign({}, baseCollateral);
|
|
760
|
-
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
761
|
-
message.cdpDenom = (_b = object.cdpDenom) !== null && _b !== void 0 ? _b : "";
|
|
762
|
-
message.collateralAmount = (_c = object.collateralAmount) !== null && _c !== void 0 ? _c : "";
|
|
763
|
-
return message;
|
|
764
|
-
},
|
|
765
|
-
};
|
|
766
|
-
const baseQueryAccountDebtRequest = { address: "", denom: "" };
|
|
767
|
-
exports.QueryAccountDebtRequest = {
|
|
768
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
769
|
-
if (message.address !== "") {
|
|
770
|
-
writer.uint32(10).string(message.address);
|
|
771
|
-
}
|
|
772
|
-
if (message.denom !== "") {
|
|
773
|
-
writer.uint32(18).string(message.denom);
|
|
774
|
-
}
|
|
775
|
-
return writer;
|
|
776
|
-
},
|
|
777
|
-
decode(input, length) {
|
|
778
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
779
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
780
|
-
const message = Object.assign({}, baseQueryAccountDebtRequest);
|
|
781
|
-
while (reader.pos < end) {
|
|
782
|
-
const tag = reader.uint32();
|
|
783
|
-
switch (tag >>> 3) {
|
|
784
|
-
case 1:
|
|
785
|
-
message.address = reader.string();
|
|
786
|
-
break;
|
|
787
|
-
case 2:
|
|
788
|
-
message.denom = reader.string();
|
|
789
|
-
break;
|
|
790
|
-
default:
|
|
791
|
-
reader.skipType(tag & 7);
|
|
792
|
-
break;
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
return message;
|
|
796
|
-
},
|
|
797
|
-
fromJSON(object) {
|
|
798
|
-
const message = Object.assign({}, baseQueryAccountDebtRequest);
|
|
799
|
-
message.address =
|
|
800
|
-
object.address !== undefined && object.address !== null
|
|
801
|
-
? String(object.address)
|
|
802
|
-
: "";
|
|
803
|
-
message.denom =
|
|
804
|
-
object.denom !== undefined && object.denom !== null
|
|
805
|
-
? String(object.denom)
|
|
806
|
-
: "";
|
|
807
|
-
return message;
|
|
808
|
-
},
|
|
809
|
-
toJSON(message) {
|
|
810
|
-
const obj = {};
|
|
811
|
-
message.address !== undefined && (obj.address = message.address);
|
|
812
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
813
|
-
return obj;
|
|
814
|
-
},
|
|
815
|
-
fromPartial(object) {
|
|
816
|
-
var _a, _b;
|
|
817
|
-
const message = Object.assign({}, baseQueryAccountDebtRequest);
|
|
818
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
819
|
-
message.denom = (_b = object.denom) !== null && _b !== void 0 ? _b : "";
|
|
820
|
-
return message;
|
|
821
|
-
},
|
|
822
|
-
};
|
|
823
|
-
const baseQueryAccountDebtResponse = {};
|
|
824
|
-
exports.QueryAccountDebtResponse = {
|
|
825
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
826
|
-
if (message.debt !== undefined) {
|
|
827
|
-
exports.Debt.encode(message.debt, writer.uint32(10).fork()).ldelim();
|
|
828
|
-
}
|
|
829
|
-
return writer;
|
|
830
|
-
},
|
|
831
|
-
decode(input, length) {
|
|
832
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
833
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
834
|
-
const message = Object.assign({}, baseQueryAccountDebtResponse);
|
|
835
|
-
while (reader.pos < end) {
|
|
836
|
-
const tag = reader.uint32();
|
|
837
|
-
switch (tag >>> 3) {
|
|
838
|
-
case 1:
|
|
839
|
-
message.debt = exports.Debt.decode(reader, reader.uint32());
|
|
840
|
-
break;
|
|
841
|
-
default:
|
|
842
|
-
reader.skipType(tag & 7);
|
|
843
|
-
break;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
return message;
|
|
847
|
-
},
|
|
848
|
-
fromJSON(object) {
|
|
849
|
-
const message = Object.assign({}, baseQueryAccountDebtResponse);
|
|
850
|
-
message.debt =
|
|
851
|
-
object.debt !== undefined && object.debt !== null
|
|
852
|
-
? exports.Debt.fromJSON(object.debt)
|
|
853
|
-
: undefined;
|
|
854
|
-
return message;
|
|
855
|
-
},
|
|
856
|
-
toJSON(message) {
|
|
857
|
-
const obj = {};
|
|
858
|
-
message.debt !== undefined &&
|
|
859
|
-
(obj.debt = message.debt ? exports.Debt.toJSON(message.debt) : undefined);
|
|
860
|
-
return obj;
|
|
861
|
-
},
|
|
862
|
-
fromPartial(object) {
|
|
863
|
-
const message = Object.assign({}, baseQueryAccountDebtResponse);
|
|
864
|
-
message.debt =
|
|
865
|
-
object.debt !== undefined && object.debt !== null
|
|
866
|
-
? exports.Debt.fromPartial(object.debt)
|
|
867
|
-
: undefined;
|
|
868
|
-
return message;
|
|
869
|
-
},
|
|
870
|
-
};
|
|
871
|
-
const baseQueryAccountDebtAllRequest = { address: "" };
|
|
872
|
-
exports.QueryAccountDebtAllRequest = {
|
|
873
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
874
|
-
if (message.address !== "") {
|
|
875
|
-
writer.uint32(10).string(message.address);
|
|
876
|
-
}
|
|
877
|
-
if (message.pagination !== undefined) {
|
|
878
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
879
|
-
}
|
|
880
|
-
return writer;
|
|
881
|
-
},
|
|
882
|
-
decode(input, length) {
|
|
883
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
884
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
885
|
-
const message = Object.assign({}, baseQueryAccountDebtAllRequest);
|
|
886
|
-
while (reader.pos < end) {
|
|
887
|
-
const tag = reader.uint32();
|
|
888
|
-
switch (tag >>> 3) {
|
|
889
|
-
case 1:
|
|
890
|
-
message.address = reader.string();
|
|
891
|
-
break;
|
|
892
|
-
case 2:
|
|
893
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
894
|
-
break;
|
|
895
|
-
default:
|
|
896
|
-
reader.skipType(tag & 7);
|
|
897
|
-
break;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
return message;
|
|
901
|
-
},
|
|
902
|
-
fromJSON(object) {
|
|
903
|
-
const message = Object.assign({}, baseQueryAccountDebtAllRequest);
|
|
904
|
-
message.address =
|
|
905
|
-
object.address !== undefined && object.address !== null
|
|
906
|
-
? String(object.address)
|
|
907
|
-
: "";
|
|
908
|
-
message.pagination =
|
|
909
|
-
object.pagination !== undefined && object.pagination !== null
|
|
910
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
911
|
-
: undefined;
|
|
912
|
-
return message;
|
|
913
|
-
},
|
|
914
|
-
toJSON(message) {
|
|
915
|
-
const obj = {};
|
|
916
|
-
message.address !== undefined && (obj.address = message.address);
|
|
917
|
-
message.pagination !== undefined &&
|
|
918
|
-
(obj.pagination = message.pagination
|
|
919
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
920
|
-
: undefined);
|
|
921
|
-
return obj;
|
|
922
|
-
},
|
|
923
|
-
fromPartial(object) {
|
|
924
|
-
var _a;
|
|
925
|
-
const message = Object.assign({}, baseQueryAccountDebtAllRequest);
|
|
926
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
927
|
-
message.pagination =
|
|
928
|
-
object.pagination !== undefined && object.pagination !== null
|
|
929
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
930
|
-
: undefined;
|
|
931
|
-
return message;
|
|
932
|
-
},
|
|
933
|
-
};
|
|
934
|
-
const baseQueryAccountDebtAllResponse = {};
|
|
935
|
-
exports.QueryAccountDebtAllResponse = {
|
|
936
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
937
|
-
for (const v of message.debts) {
|
|
938
|
-
exports.Debt.encode(v, writer.uint32(10).fork()).ldelim();
|
|
939
|
-
}
|
|
940
|
-
if (message.pagination !== undefined) {
|
|
941
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
942
|
-
}
|
|
943
|
-
return writer;
|
|
944
|
-
},
|
|
945
|
-
decode(input, length) {
|
|
946
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
947
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
948
|
-
const message = Object.assign({}, baseQueryAccountDebtAllResponse);
|
|
949
|
-
message.debts = [];
|
|
950
|
-
while (reader.pos < end) {
|
|
951
|
-
const tag = reader.uint32();
|
|
952
|
-
switch (tag >>> 3) {
|
|
953
|
-
case 1:
|
|
954
|
-
message.debts.push(exports.Debt.decode(reader, reader.uint32()));
|
|
955
|
-
break;
|
|
956
|
-
case 2:
|
|
957
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
958
|
-
break;
|
|
959
|
-
default:
|
|
960
|
-
reader.skipType(tag & 7);
|
|
961
|
-
break;
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
return message;
|
|
965
|
-
},
|
|
966
|
-
fromJSON(object) {
|
|
967
|
-
var _a;
|
|
968
|
-
const message = Object.assign({}, baseQueryAccountDebtAllResponse);
|
|
969
|
-
message.debts = ((_a = object.debts) !== null && _a !== void 0 ? _a : []).map((e) => exports.Debt.fromJSON(e));
|
|
970
|
-
message.pagination =
|
|
971
|
-
object.pagination !== undefined && object.pagination !== null
|
|
972
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
973
|
-
: undefined;
|
|
974
|
-
return message;
|
|
975
|
-
},
|
|
976
|
-
toJSON(message) {
|
|
977
|
-
const obj = {};
|
|
978
|
-
if (message.debts) {
|
|
979
|
-
obj.debts = message.debts.map((e) => (e ? exports.Debt.toJSON(e) : undefined));
|
|
980
|
-
}
|
|
981
|
-
else {
|
|
982
|
-
obj.debts = [];
|
|
983
|
-
}
|
|
984
|
-
message.pagination !== undefined &&
|
|
985
|
-
(obj.pagination = message.pagination
|
|
986
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
987
|
-
: undefined);
|
|
988
|
-
return obj;
|
|
989
|
-
},
|
|
990
|
-
fromPartial(object) {
|
|
991
|
-
var _a;
|
|
992
|
-
const message = Object.assign({}, baseQueryAccountDebtAllResponse);
|
|
993
|
-
message.debts = ((_a = object.debts) !== null && _a !== void 0 ? _a : []).map((e) => exports.Debt.fromPartial(e));
|
|
994
|
-
message.pagination =
|
|
995
|
-
object.pagination !== undefined && object.pagination !== null
|
|
996
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
997
|
-
: undefined;
|
|
998
|
-
return message;
|
|
999
|
-
},
|
|
1000
|
-
};
|
|
1001
|
-
const baseDebt = {
|
|
1002
|
-
denom: "",
|
|
1003
|
-
principalDebt: "",
|
|
1004
|
-
initialCumulativeInterestMultiplier: "",
|
|
1005
|
-
};
|
|
1006
|
-
exports.Debt = {
|
|
1007
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1008
|
-
if (message.denom !== "") {
|
|
1009
|
-
writer.uint32(10).string(message.denom);
|
|
1010
|
-
}
|
|
1011
|
-
if (message.principalDebt !== "") {
|
|
1012
|
-
writer.uint32(18).string(message.principalDebt);
|
|
1013
|
-
}
|
|
1014
|
-
if (message.initialCumulativeInterestMultiplier !== "") {
|
|
1015
|
-
writer.uint32(26).string(message.initialCumulativeInterestMultiplier);
|
|
1016
|
-
}
|
|
1017
|
-
return writer;
|
|
1018
|
-
},
|
|
1019
|
-
decode(input, length) {
|
|
1020
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1021
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1022
|
-
const message = Object.assign({}, baseDebt);
|
|
1023
|
-
while (reader.pos < end) {
|
|
1024
|
-
const tag = reader.uint32();
|
|
1025
|
-
switch (tag >>> 3) {
|
|
1026
|
-
case 1:
|
|
1027
|
-
message.denom = reader.string();
|
|
1028
|
-
break;
|
|
1029
|
-
case 2:
|
|
1030
|
-
message.principalDebt = reader.string();
|
|
1031
|
-
break;
|
|
1032
|
-
case 3:
|
|
1033
|
-
message.initialCumulativeInterestMultiplier = reader.string();
|
|
1034
|
-
break;
|
|
1035
|
-
default:
|
|
1036
|
-
reader.skipType(tag & 7);
|
|
1037
|
-
break;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
return message;
|
|
1041
|
-
},
|
|
1042
|
-
fromJSON(object) {
|
|
1043
|
-
const message = Object.assign({}, baseDebt);
|
|
1044
|
-
message.denom =
|
|
1045
|
-
object.denom !== undefined && object.denom !== null
|
|
1046
|
-
? String(object.denom)
|
|
1047
|
-
: "";
|
|
1048
|
-
message.principalDebt =
|
|
1049
|
-
object.principalDebt !== undefined && object.principalDebt !== null
|
|
1050
|
-
? String(object.principalDebt)
|
|
1051
|
-
: "";
|
|
1052
|
-
message.initialCumulativeInterestMultiplier =
|
|
1053
|
-
object.initialCumulativeInterestMultiplier !== undefined &&
|
|
1054
|
-
object.initialCumulativeInterestMultiplier !== null
|
|
1055
|
-
? String(object.initialCumulativeInterestMultiplier)
|
|
1056
|
-
: "";
|
|
1057
|
-
return message;
|
|
1058
|
-
},
|
|
1059
|
-
toJSON(message) {
|
|
1060
|
-
const obj = {};
|
|
1061
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
1062
|
-
message.principalDebt !== undefined &&
|
|
1063
|
-
(obj.principalDebt = message.principalDebt);
|
|
1064
|
-
message.initialCumulativeInterestMultiplier !== undefined &&
|
|
1065
|
-
(obj.initialCumulativeInterestMultiplier =
|
|
1066
|
-
message.initialCumulativeInterestMultiplier);
|
|
1067
|
-
return obj;
|
|
1068
|
-
},
|
|
1069
|
-
fromPartial(object) {
|
|
1070
|
-
var _a, _b, _c;
|
|
1071
|
-
const message = Object.assign({}, baseDebt);
|
|
1072
|
-
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
1073
|
-
message.principalDebt = (_b = object.principalDebt) !== null && _b !== void 0 ? _b : "";
|
|
1074
|
-
message.initialCumulativeInterestMultiplier =
|
|
1075
|
-
(_c = object.initialCumulativeInterestMultiplier) !== null && _c !== void 0 ? _c : "";
|
|
1076
|
-
return message;
|
|
1077
|
-
},
|
|
1078
|
-
};
|
|
1079
|
-
const baseQueryAccountStablecoinRequest = { address: "" };
|
|
1080
|
-
exports.QueryAccountStablecoinRequest = {
|
|
1081
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1082
|
-
if (message.address !== "") {
|
|
1083
|
-
writer.uint32(10).string(message.address);
|
|
1084
|
-
}
|
|
1085
|
-
return writer;
|
|
1086
|
-
},
|
|
1087
|
-
decode(input, length) {
|
|
1088
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1089
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1090
|
-
const message = Object.assign({}, baseQueryAccountStablecoinRequest);
|
|
1091
|
-
while (reader.pos < end) {
|
|
1092
|
-
const tag = reader.uint32();
|
|
1093
|
-
switch (tag >>> 3) {
|
|
1094
|
-
case 1:
|
|
1095
|
-
message.address = reader.string();
|
|
1096
|
-
break;
|
|
1097
|
-
default:
|
|
1098
|
-
reader.skipType(tag & 7);
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
return message;
|
|
1103
|
-
},
|
|
1104
|
-
fromJSON(object) {
|
|
1105
|
-
const message = Object.assign({}, baseQueryAccountStablecoinRequest);
|
|
1106
|
-
message.address =
|
|
1107
|
-
object.address !== undefined && object.address !== null
|
|
1108
|
-
? String(object.address)
|
|
1109
|
-
: "";
|
|
1110
|
-
return message;
|
|
1111
|
-
},
|
|
1112
|
-
toJSON(message) {
|
|
1113
|
-
const obj = {};
|
|
1114
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1115
|
-
return obj;
|
|
1116
|
-
},
|
|
1117
|
-
fromPartial(object) {
|
|
1118
|
-
var _a;
|
|
1119
|
-
const message = Object.assign({}, baseQueryAccountStablecoinRequest);
|
|
1120
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
1121
|
-
return message;
|
|
1122
|
-
},
|
|
1123
|
-
};
|
|
1124
|
-
const baseQueryAccountStablecoinResponse = {
|
|
1125
|
-
principalDebt: "",
|
|
1126
|
-
interestDebt: "",
|
|
1127
|
-
initialCumulativeInterestMultiplier: "",
|
|
1128
|
-
};
|
|
1129
|
-
exports.QueryAccountStablecoinResponse = {
|
|
1130
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1131
|
-
if (message.principalDebt !== "") {
|
|
1132
|
-
writer.uint32(10).string(message.principalDebt);
|
|
1133
|
-
}
|
|
1134
|
-
if (message.interestDebt !== "") {
|
|
1135
|
-
writer.uint32(18).string(message.interestDebt);
|
|
1136
|
-
}
|
|
1137
|
-
if (message.initialCumulativeInterestMultiplier !== "") {
|
|
1138
|
-
writer.uint32(26).string(message.initialCumulativeInterestMultiplier);
|
|
1139
|
-
}
|
|
1140
|
-
return writer;
|
|
1141
|
-
},
|
|
1142
|
-
decode(input, length) {
|
|
1143
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1144
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1145
|
-
const message = Object.assign({}, baseQueryAccountStablecoinResponse);
|
|
1146
|
-
while (reader.pos < end) {
|
|
1147
|
-
const tag = reader.uint32();
|
|
1148
|
-
switch (tag >>> 3) {
|
|
1149
|
-
case 1:
|
|
1150
|
-
message.principalDebt = reader.string();
|
|
1151
|
-
break;
|
|
1152
|
-
case 2:
|
|
1153
|
-
message.interestDebt = reader.string();
|
|
1154
|
-
break;
|
|
1155
|
-
case 3:
|
|
1156
|
-
message.initialCumulativeInterestMultiplier = reader.string();
|
|
1157
|
-
break;
|
|
1158
|
-
default:
|
|
1159
|
-
reader.skipType(tag & 7);
|
|
1160
|
-
break;
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
return message;
|
|
1164
|
-
},
|
|
1165
|
-
fromJSON(object) {
|
|
1166
|
-
const message = Object.assign({}, baseQueryAccountStablecoinResponse);
|
|
1167
|
-
message.principalDebt =
|
|
1168
|
-
object.principalDebt !== undefined && object.principalDebt !== null
|
|
1169
|
-
? String(object.principalDebt)
|
|
1170
|
-
: "";
|
|
1171
|
-
message.interestDebt =
|
|
1172
|
-
object.interestDebt !== undefined && object.interestDebt !== null
|
|
1173
|
-
? String(object.interestDebt)
|
|
1174
|
-
: "";
|
|
1175
|
-
message.initialCumulativeInterestMultiplier =
|
|
1176
|
-
object.initialCumulativeInterestMultiplier !== undefined &&
|
|
1177
|
-
object.initialCumulativeInterestMultiplier !== null
|
|
1178
|
-
? String(object.initialCumulativeInterestMultiplier)
|
|
1179
|
-
: "";
|
|
1180
|
-
return message;
|
|
1181
|
-
},
|
|
1182
|
-
toJSON(message) {
|
|
1183
|
-
const obj = {};
|
|
1184
|
-
message.principalDebt !== undefined &&
|
|
1185
|
-
(obj.principalDebt = message.principalDebt);
|
|
1186
|
-
message.interestDebt !== undefined &&
|
|
1187
|
-
(obj.interestDebt = message.interestDebt);
|
|
1188
|
-
message.initialCumulativeInterestMultiplier !== undefined &&
|
|
1189
|
-
(obj.initialCumulativeInterestMultiplier =
|
|
1190
|
-
message.initialCumulativeInterestMultiplier);
|
|
1191
|
-
return obj;
|
|
1192
|
-
},
|
|
1193
|
-
fromPartial(object) {
|
|
1194
|
-
var _a, _b, _c;
|
|
1195
|
-
const message = Object.assign({}, baseQueryAccountStablecoinResponse);
|
|
1196
|
-
message.principalDebt = (_a = object.principalDebt) !== null && _a !== void 0 ? _a : "";
|
|
1197
|
-
message.interestDebt = (_b = object.interestDebt) !== null && _b !== void 0 ? _b : "";
|
|
1198
|
-
message.initialCumulativeInterestMultiplier =
|
|
1199
|
-
(_c = object.initialCumulativeInterestMultiplier) !== null && _c !== void 0 ? _c : "";
|
|
1200
|
-
return message;
|
|
1201
|
-
},
|
|
1202
|
-
};
|
|
1203
|
-
const baseQueryAssetRequest = { denom: "" };
|
|
1204
|
-
exports.QueryAssetRequest = {
|
|
1205
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1206
|
-
if (message.denom !== "") {
|
|
1207
|
-
writer.uint32(10).string(message.denom);
|
|
1208
|
-
}
|
|
1209
|
-
return writer;
|
|
1210
|
-
},
|
|
1211
|
-
decode(input, length) {
|
|
1212
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1213
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1214
|
-
const message = Object.assign({}, baseQueryAssetRequest);
|
|
1215
|
-
while (reader.pos < end) {
|
|
1216
|
-
const tag = reader.uint32();
|
|
1217
|
-
switch (tag >>> 3) {
|
|
1218
|
-
case 1:
|
|
1219
|
-
message.denom = reader.string();
|
|
1220
|
-
break;
|
|
1221
|
-
default:
|
|
1222
|
-
reader.skipType(tag & 7);
|
|
1223
|
-
break;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
return message;
|
|
1227
|
-
},
|
|
1228
|
-
fromJSON(object) {
|
|
1229
|
-
const message = Object.assign({}, baseQueryAssetRequest);
|
|
1230
|
-
message.denom =
|
|
1231
|
-
object.denom !== undefined && object.denom !== null
|
|
1232
|
-
? String(object.denom)
|
|
1233
|
-
: "";
|
|
1234
|
-
return message;
|
|
1235
|
-
},
|
|
1236
|
-
toJSON(message) {
|
|
1237
|
-
const obj = {};
|
|
1238
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
1239
|
-
return obj;
|
|
1240
|
-
},
|
|
1241
|
-
fromPartial(object) {
|
|
1242
|
-
var _a;
|
|
1243
|
-
const message = Object.assign({}, baseQueryAssetRequest);
|
|
1244
|
-
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
1245
|
-
return message;
|
|
1246
|
-
},
|
|
1247
|
-
};
|
|
1248
|
-
const baseQueryAssetResponse = {};
|
|
1249
|
-
exports.QueryAssetResponse = {
|
|
1250
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1251
|
-
if (message.assetParams !== undefined) {
|
|
1252
|
-
asset_params_1.AssetParams.encode(message.assetParams, writer.uint32(10).fork()).ldelim();
|
|
1253
|
-
}
|
|
1254
|
-
return writer;
|
|
1255
|
-
},
|
|
1256
|
-
decode(input, length) {
|
|
1257
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1258
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1259
|
-
const message = Object.assign({}, baseQueryAssetResponse);
|
|
1260
|
-
while (reader.pos < end) {
|
|
1261
|
-
const tag = reader.uint32();
|
|
1262
|
-
switch (tag >>> 3) {
|
|
1263
|
-
case 1:
|
|
1264
|
-
message.assetParams = asset_params_1.AssetParams.decode(reader, reader.uint32());
|
|
1265
|
-
break;
|
|
1266
|
-
default:
|
|
1267
|
-
reader.skipType(tag & 7);
|
|
1268
|
-
break;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
return message;
|
|
1272
|
-
},
|
|
1273
|
-
fromJSON(object) {
|
|
1274
|
-
const message = Object.assign({}, baseQueryAssetResponse);
|
|
1275
|
-
message.assetParams =
|
|
1276
|
-
object.assetParams !== undefined && object.assetParams !== null
|
|
1277
|
-
? asset_params_1.AssetParams.fromJSON(object.assetParams)
|
|
1278
|
-
: undefined;
|
|
1279
|
-
return message;
|
|
1280
|
-
},
|
|
1281
|
-
toJSON(message) {
|
|
1282
|
-
const obj = {};
|
|
1283
|
-
message.assetParams !== undefined &&
|
|
1284
|
-
(obj.assetParams = message.assetParams
|
|
1285
|
-
? asset_params_1.AssetParams.toJSON(message.assetParams)
|
|
1286
|
-
: undefined);
|
|
1287
|
-
return obj;
|
|
1288
|
-
},
|
|
1289
|
-
fromPartial(object) {
|
|
1290
|
-
const message = Object.assign({}, baseQueryAssetResponse);
|
|
1291
|
-
message.assetParams =
|
|
1292
|
-
object.assetParams !== undefined && object.assetParams !== null
|
|
1293
|
-
? asset_params_1.AssetParams.fromPartial(object.assetParams)
|
|
1294
|
-
: undefined;
|
|
1295
|
-
return message;
|
|
1296
|
-
},
|
|
1297
|
-
};
|
|
1298
|
-
const baseQueryAssetAllRequest = {};
|
|
1299
|
-
exports.QueryAssetAllRequest = {
|
|
1300
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1301
|
-
if (message.pagination !== undefined) {
|
|
1302
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1303
|
-
}
|
|
1304
|
-
return writer;
|
|
1305
|
-
},
|
|
1306
|
-
decode(input, length) {
|
|
1307
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1308
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1309
|
-
const message = Object.assign({}, baseQueryAssetAllRequest);
|
|
1310
|
-
while (reader.pos < end) {
|
|
1311
|
-
const tag = reader.uint32();
|
|
1312
|
-
switch (tag >>> 3) {
|
|
1313
|
-
case 1:
|
|
1314
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1315
|
-
break;
|
|
1316
|
-
default:
|
|
1317
|
-
reader.skipType(tag & 7);
|
|
1318
|
-
break;
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
return message;
|
|
1322
|
-
},
|
|
1323
|
-
fromJSON(object) {
|
|
1324
|
-
const message = Object.assign({}, baseQueryAssetAllRequest);
|
|
1325
|
-
message.pagination =
|
|
1326
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1327
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1328
|
-
: undefined;
|
|
1329
|
-
return message;
|
|
1330
|
-
},
|
|
1331
|
-
toJSON(message) {
|
|
1332
|
-
const obj = {};
|
|
1333
|
-
message.pagination !== undefined &&
|
|
1334
|
-
(obj.pagination = message.pagination
|
|
1335
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
1336
|
-
: undefined);
|
|
1337
|
-
return obj;
|
|
1338
|
-
},
|
|
1339
|
-
fromPartial(object) {
|
|
1340
|
-
const message = Object.assign({}, baseQueryAssetAllRequest);
|
|
1341
|
-
message.pagination =
|
|
1342
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1343
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1344
|
-
: undefined;
|
|
1345
|
-
return message;
|
|
1346
|
-
},
|
|
1347
|
-
};
|
|
1348
|
-
const baseQueryAssetAllResponse = {};
|
|
1349
|
-
exports.QueryAssetAllResponse = {
|
|
1350
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1351
|
-
for (const v of message.assetParamsAll) {
|
|
1352
|
-
asset_params_1.AssetParams.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1353
|
-
}
|
|
1354
|
-
if (message.pagination !== undefined) {
|
|
1355
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1356
|
-
}
|
|
1357
|
-
return writer;
|
|
1358
|
-
},
|
|
1359
|
-
decode(input, length) {
|
|
1360
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1361
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1362
|
-
const message = Object.assign({}, baseQueryAssetAllResponse);
|
|
1363
|
-
message.assetParamsAll = [];
|
|
1364
|
-
while (reader.pos < end) {
|
|
1365
|
-
const tag = reader.uint32();
|
|
1366
|
-
switch (tag >>> 3) {
|
|
1367
|
-
case 1:
|
|
1368
|
-
message.assetParamsAll.push(asset_params_1.AssetParams.decode(reader, reader.uint32()));
|
|
1369
|
-
break;
|
|
1370
|
-
case 2:
|
|
1371
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1372
|
-
break;
|
|
1373
|
-
default:
|
|
1374
|
-
reader.skipType(tag & 7);
|
|
1375
|
-
break;
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
return message;
|
|
1379
|
-
},
|
|
1380
|
-
fromJSON(object) {
|
|
1381
|
-
var _a;
|
|
1382
|
-
const message = Object.assign({}, baseQueryAssetAllResponse);
|
|
1383
|
-
message.assetParamsAll = ((_a = object.assetParamsAll) !== null && _a !== void 0 ? _a : []).map((e) => asset_params_1.AssetParams.fromJSON(e));
|
|
1384
|
-
message.pagination =
|
|
1385
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1386
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1387
|
-
: undefined;
|
|
1388
|
-
return message;
|
|
1389
|
-
},
|
|
1390
|
-
toJSON(message) {
|
|
1391
|
-
const obj = {};
|
|
1392
|
-
if (message.assetParamsAll) {
|
|
1393
|
-
obj.assetParamsAll = message.assetParamsAll.map((e) => e ? asset_params_1.AssetParams.toJSON(e) : undefined);
|
|
1394
|
-
}
|
|
1395
|
-
else {
|
|
1396
|
-
obj.assetParamsAll = [];
|
|
1397
|
-
}
|
|
1398
|
-
message.pagination !== undefined &&
|
|
1399
|
-
(obj.pagination = message.pagination
|
|
1400
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
1401
|
-
: undefined);
|
|
1402
|
-
return obj;
|
|
1403
|
-
},
|
|
1404
|
-
fromPartial(object) {
|
|
1405
|
-
var _a;
|
|
1406
|
-
const message = Object.assign({}, baseQueryAssetAllResponse);
|
|
1407
|
-
message.assetParamsAll = ((_a = object.assetParamsAll) !== null && _a !== void 0 ? _a : []).map((e) => asset_params_1.AssetParams.fromPartial(e));
|
|
1408
|
-
message.pagination =
|
|
1409
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1410
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1411
|
-
: undefined;
|
|
1412
|
-
return message;
|
|
1413
|
-
},
|
|
1414
|
-
};
|
|
1415
|
-
const baseQueryTokenDebtRequest = { denom: "" };
|
|
1416
|
-
exports.QueryTokenDebtRequest = {
|
|
1417
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1418
|
-
if (message.denom !== "") {
|
|
1419
|
-
writer.uint32(10).string(message.denom);
|
|
1420
|
-
}
|
|
1421
|
-
return writer;
|
|
1422
|
-
},
|
|
1423
|
-
decode(input, length) {
|
|
1424
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1425
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1426
|
-
const message = Object.assign({}, baseQueryTokenDebtRequest);
|
|
1427
|
-
while (reader.pos < end) {
|
|
1428
|
-
const tag = reader.uint32();
|
|
1429
|
-
switch (tag >>> 3) {
|
|
1430
|
-
case 1:
|
|
1431
|
-
message.denom = reader.string();
|
|
1432
|
-
break;
|
|
1433
|
-
default:
|
|
1434
|
-
reader.skipType(tag & 7);
|
|
1435
|
-
break;
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
return message;
|
|
1439
|
-
},
|
|
1440
|
-
fromJSON(object) {
|
|
1441
|
-
const message = Object.assign({}, baseQueryTokenDebtRequest);
|
|
1442
|
-
message.denom =
|
|
1443
|
-
object.denom !== undefined && object.denom !== null
|
|
1444
|
-
? String(object.denom)
|
|
1445
|
-
: "";
|
|
1446
|
-
return message;
|
|
1447
|
-
},
|
|
1448
|
-
toJSON(message) {
|
|
1449
|
-
const obj = {};
|
|
1450
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
1451
|
-
return obj;
|
|
1452
|
-
},
|
|
1453
|
-
fromPartial(object) {
|
|
1454
|
-
var _a;
|
|
1455
|
-
const message = Object.assign({}, baseQueryTokenDebtRequest);
|
|
1456
|
-
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
1457
|
-
return message;
|
|
1458
|
-
},
|
|
1459
|
-
};
|
|
1460
|
-
const baseQueryTokenDebtResponse = {};
|
|
1461
|
-
exports.QueryTokenDebtResponse = {
|
|
1462
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1463
|
-
if (message.debtInfo !== undefined) {
|
|
1464
|
-
debt_info_1.DebtInfo.encode(message.debtInfo, writer.uint32(10).fork()).ldelim();
|
|
1465
|
-
}
|
|
1466
|
-
return writer;
|
|
1467
|
-
},
|
|
1468
|
-
decode(input, length) {
|
|
1469
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1470
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1471
|
-
const message = Object.assign({}, baseQueryTokenDebtResponse);
|
|
1472
|
-
while (reader.pos < end) {
|
|
1473
|
-
const tag = reader.uint32();
|
|
1474
|
-
switch (tag >>> 3) {
|
|
1475
|
-
case 1:
|
|
1476
|
-
message.debtInfo = debt_info_1.DebtInfo.decode(reader, reader.uint32());
|
|
1477
|
-
break;
|
|
1478
|
-
default:
|
|
1479
|
-
reader.skipType(tag & 7);
|
|
1480
|
-
break;
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
return message;
|
|
1484
|
-
},
|
|
1485
|
-
fromJSON(object) {
|
|
1486
|
-
const message = Object.assign({}, baseQueryTokenDebtResponse);
|
|
1487
|
-
message.debtInfo =
|
|
1488
|
-
object.debtInfo !== undefined && object.debtInfo !== null
|
|
1489
|
-
? debt_info_1.DebtInfo.fromJSON(object.debtInfo)
|
|
1490
|
-
: undefined;
|
|
1491
|
-
return message;
|
|
1492
|
-
},
|
|
1493
|
-
toJSON(message) {
|
|
1494
|
-
const obj = {};
|
|
1495
|
-
message.debtInfo !== undefined &&
|
|
1496
|
-
(obj.debtInfo = message.debtInfo
|
|
1497
|
-
? debt_info_1.DebtInfo.toJSON(message.debtInfo)
|
|
1498
|
-
: undefined);
|
|
1499
|
-
return obj;
|
|
1500
|
-
},
|
|
1501
|
-
fromPartial(object) {
|
|
1502
|
-
const message = Object.assign({}, baseQueryTokenDebtResponse);
|
|
1503
|
-
message.debtInfo =
|
|
1504
|
-
object.debtInfo !== undefined && object.debtInfo !== null
|
|
1505
|
-
? debt_info_1.DebtInfo.fromPartial(object.debtInfo)
|
|
1506
|
-
: undefined;
|
|
1507
|
-
return message;
|
|
1508
|
-
},
|
|
1509
|
-
};
|
|
1510
|
-
const baseQueryTokenDebtAllRequest = {};
|
|
1511
|
-
exports.QueryTokenDebtAllRequest = {
|
|
1512
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1513
|
-
if (message.pagination !== undefined) {
|
|
1514
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1515
|
-
}
|
|
1516
|
-
return writer;
|
|
1517
|
-
},
|
|
1518
|
-
decode(input, length) {
|
|
1519
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1520
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1521
|
-
const message = Object.assign({}, baseQueryTokenDebtAllRequest);
|
|
1522
|
-
while (reader.pos < end) {
|
|
1523
|
-
const tag = reader.uint32();
|
|
1524
|
-
switch (tag >>> 3) {
|
|
1525
|
-
case 1:
|
|
1526
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1527
|
-
break;
|
|
1528
|
-
default:
|
|
1529
|
-
reader.skipType(tag & 7);
|
|
1530
|
-
break;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
return message;
|
|
1534
|
-
},
|
|
1535
|
-
fromJSON(object) {
|
|
1536
|
-
const message = Object.assign({}, baseQueryTokenDebtAllRequest);
|
|
1537
|
-
message.pagination =
|
|
1538
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1539
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1540
|
-
: undefined;
|
|
1541
|
-
return message;
|
|
1542
|
-
},
|
|
1543
|
-
toJSON(message) {
|
|
1544
|
-
const obj = {};
|
|
1545
|
-
message.pagination !== undefined &&
|
|
1546
|
-
(obj.pagination = message.pagination
|
|
1547
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
1548
|
-
: undefined);
|
|
1549
|
-
return obj;
|
|
1550
|
-
},
|
|
1551
|
-
fromPartial(object) {
|
|
1552
|
-
const message = Object.assign({}, baseQueryTokenDebtAllRequest);
|
|
1553
|
-
message.pagination =
|
|
1554
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1555
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1556
|
-
: undefined;
|
|
1557
|
-
return message;
|
|
1558
|
-
},
|
|
1559
|
-
};
|
|
1560
|
-
const baseQueryTokenDebtAllResponse = {};
|
|
1561
|
-
exports.QueryTokenDebtAllResponse = {
|
|
1562
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1563
|
-
for (const v of message.debtInfosAll) {
|
|
1564
|
-
debt_info_1.DebtInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1565
|
-
}
|
|
1566
|
-
if (message.pagination !== undefined) {
|
|
1567
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1568
|
-
}
|
|
1569
|
-
return writer;
|
|
1570
|
-
},
|
|
1571
|
-
decode(input, length) {
|
|
1572
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1573
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1574
|
-
const message = Object.assign({}, baseQueryTokenDebtAllResponse);
|
|
1575
|
-
message.debtInfosAll = [];
|
|
1576
|
-
while (reader.pos < end) {
|
|
1577
|
-
const tag = reader.uint32();
|
|
1578
|
-
switch (tag >>> 3) {
|
|
1579
|
-
case 1:
|
|
1580
|
-
message.debtInfosAll.push(debt_info_1.DebtInfo.decode(reader, reader.uint32()));
|
|
1581
|
-
break;
|
|
1582
|
-
case 2:
|
|
1583
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1584
|
-
break;
|
|
1585
|
-
default:
|
|
1586
|
-
reader.skipType(tag & 7);
|
|
1587
|
-
break;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
return message;
|
|
1591
|
-
},
|
|
1592
|
-
fromJSON(object) {
|
|
1593
|
-
var _a;
|
|
1594
|
-
const message = Object.assign({}, baseQueryTokenDebtAllResponse);
|
|
1595
|
-
message.debtInfosAll = ((_a = object.debtInfosAll) !== null && _a !== void 0 ? _a : []).map((e) => debt_info_1.DebtInfo.fromJSON(e));
|
|
1596
|
-
message.pagination =
|
|
1597
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1598
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1599
|
-
: undefined;
|
|
1600
|
-
return message;
|
|
1601
|
-
},
|
|
1602
|
-
toJSON(message) {
|
|
1603
|
-
const obj = {};
|
|
1604
|
-
if (message.debtInfosAll) {
|
|
1605
|
-
obj.debtInfosAll = message.debtInfosAll.map((e) => e ? debt_info_1.DebtInfo.toJSON(e) : undefined);
|
|
1606
|
-
}
|
|
1607
|
-
else {
|
|
1608
|
-
obj.debtInfosAll = [];
|
|
1609
|
-
}
|
|
1610
|
-
message.pagination !== undefined &&
|
|
1611
|
-
(obj.pagination = message.pagination
|
|
1612
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
1613
|
-
: undefined);
|
|
1614
|
-
return obj;
|
|
1615
|
-
},
|
|
1616
|
-
fromPartial(object) {
|
|
1617
|
-
var _a;
|
|
1618
|
-
const message = Object.assign({}, baseQueryTokenDebtAllResponse);
|
|
1619
|
-
message.debtInfosAll = ((_a = object.debtInfosAll) !== null && _a !== void 0 ? _a : []).map((e) => debt_info_1.DebtInfo.fromPartial(e));
|
|
1620
|
-
message.pagination =
|
|
1621
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1622
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1623
|
-
: undefined;
|
|
1624
|
-
return message;
|
|
1625
|
-
},
|
|
1626
|
-
};
|
|
1627
|
-
const baseQueryStablecoinDebtRequest = {};
|
|
1628
|
-
exports.QueryStablecoinDebtRequest = {
|
|
1629
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1630
|
-
return writer;
|
|
1631
|
-
},
|
|
1632
|
-
decode(input, length) {
|
|
1633
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1634
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1635
|
-
const message = Object.assign({}, baseQueryStablecoinDebtRequest);
|
|
1636
|
-
while (reader.pos < end) {
|
|
1637
|
-
const tag = reader.uint32();
|
|
1638
|
-
switch (tag >>> 3) {
|
|
1639
|
-
default:
|
|
1640
|
-
reader.skipType(tag & 7);
|
|
1641
|
-
break;
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
return message;
|
|
1645
|
-
},
|
|
1646
|
-
fromJSON(_) {
|
|
1647
|
-
const message = Object.assign({}, baseQueryStablecoinDebtRequest);
|
|
1648
|
-
return message;
|
|
1649
|
-
},
|
|
1650
|
-
toJSON(_) {
|
|
1651
|
-
const obj = {};
|
|
1652
|
-
return obj;
|
|
1653
|
-
},
|
|
1654
|
-
fromPartial(_) {
|
|
1655
|
-
const message = Object.assign({}, baseQueryStablecoinDebtRequest);
|
|
1656
|
-
return message;
|
|
1657
|
-
},
|
|
1658
|
-
};
|
|
1659
|
-
const baseQueryStablecoinDebtResponse = {};
|
|
1660
|
-
exports.QueryStablecoinDebtResponse = {
|
|
1661
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1662
|
-
if (message.stablecoinDebtInfo !== undefined) {
|
|
1663
|
-
stablecoin_debt_info_1.StablecoinDebtInfo.encode(message.stablecoinDebtInfo, writer.uint32(10).fork()).ldelim();
|
|
1664
|
-
}
|
|
1665
|
-
return writer;
|
|
1666
|
-
},
|
|
1667
|
-
decode(input, length) {
|
|
1668
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1669
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1670
|
-
const message = Object.assign({}, baseQueryStablecoinDebtResponse);
|
|
1671
|
-
while (reader.pos < end) {
|
|
1672
|
-
const tag = reader.uint32();
|
|
1673
|
-
switch (tag >>> 3) {
|
|
1674
|
-
case 1:
|
|
1675
|
-
message.stablecoinDebtInfo = stablecoin_debt_info_1.StablecoinDebtInfo.decode(reader, reader.uint32());
|
|
1676
|
-
break;
|
|
1677
|
-
default:
|
|
1678
|
-
reader.skipType(tag & 7);
|
|
1679
|
-
break;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
return message;
|
|
1683
|
-
},
|
|
1684
|
-
fromJSON(object) {
|
|
1685
|
-
const message = Object.assign({}, baseQueryStablecoinDebtResponse);
|
|
1686
|
-
message.stablecoinDebtInfo =
|
|
1687
|
-
object.stablecoinDebtInfo !== undefined &&
|
|
1688
|
-
object.stablecoinDebtInfo !== null
|
|
1689
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.fromJSON(object.stablecoinDebtInfo)
|
|
1690
|
-
: undefined;
|
|
1691
|
-
return message;
|
|
1692
|
-
},
|
|
1693
|
-
toJSON(message) {
|
|
1694
|
-
const obj = {};
|
|
1695
|
-
message.stablecoinDebtInfo !== undefined &&
|
|
1696
|
-
(obj.stablecoinDebtInfo = message.stablecoinDebtInfo
|
|
1697
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.toJSON(message.stablecoinDebtInfo)
|
|
1698
|
-
: undefined);
|
|
1699
|
-
return obj;
|
|
1700
|
-
},
|
|
1701
|
-
fromPartial(object) {
|
|
1702
|
-
const message = Object.assign({}, baseQueryStablecoinDebtResponse);
|
|
1703
|
-
message.stablecoinDebtInfo =
|
|
1704
|
-
object.stablecoinDebtInfo !== undefined &&
|
|
1705
|
-
object.stablecoinDebtInfo !== null
|
|
1706
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.fromPartial(object.stablecoinDebtInfo)
|
|
1707
|
-
: undefined;
|
|
1708
|
-
return message;
|
|
1709
|
-
},
|
|
1710
|
-
};
|
|
1711
|
-
const baseCdpPositionItem = {
|
|
1712
|
-
address: "",
|
|
1713
|
-
denom: "",
|
|
1714
|
-
cdpDenom: "",
|
|
1715
|
-
healthFactor: "",
|
|
1716
|
-
collateralAmount: "",
|
|
1717
|
-
borrowAmount: "",
|
|
1718
|
-
mintDenom: "",
|
|
1719
|
-
mintAmount: "",
|
|
1720
|
-
};
|
|
1721
|
-
exports.CdpPositionItem = {
|
|
1722
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1723
|
-
if (message.address !== "") {
|
|
1724
|
-
writer.uint32(10).string(message.address);
|
|
1725
|
-
}
|
|
1726
|
-
if (message.denom !== "") {
|
|
1727
|
-
writer.uint32(18).string(message.denom);
|
|
1728
|
-
}
|
|
1729
|
-
if (message.cdpDenom !== "") {
|
|
1730
|
-
writer.uint32(26).string(message.cdpDenom);
|
|
1731
|
-
}
|
|
1732
|
-
if (message.healthFactor !== "") {
|
|
1733
|
-
writer.uint32(34).string(message.healthFactor);
|
|
1734
|
-
}
|
|
1735
|
-
if (message.collateralAmount !== "") {
|
|
1736
|
-
writer.uint32(42).string(message.collateralAmount);
|
|
1737
|
-
}
|
|
1738
|
-
if (message.borrowAmount !== "") {
|
|
1739
|
-
writer.uint32(50).string(message.borrowAmount);
|
|
1740
|
-
}
|
|
1741
|
-
if (message.mintDenom !== "") {
|
|
1742
|
-
writer.uint32(58).string(message.mintDenom);
|
|
1743
|
-
}
|
|
1744
|
-
if (message.mintAmount !== "") {
|
|
1745
|
-
writer.uint32(66).string(message.mintAmount);
|
|
1746
|
-
}
|
|
1747
|
-
return writer;
|
|
1748
|
-
},
|
|
1749
|
-
decode(input, length) {
|
|
1750
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1751
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1752
|
-
const message = Object.assign({}, baseCdpPositionItem);
|
|
1753
|
-
while (reader.pos < end) {
|
|
1754
|
-
const tag = reader.uint32();
|
|
1755
|
-
switch (tag >>> 3) {
|
|
1756
|
-
case 1:
|
|
1757
|
-
message.address = reader.string();
|
|
1758
|
-
break;
|
|
1759
|
-
case 2:
|
|
1760
|
-
message.denom = reader.string();
|
|
1761
|
-
break;
|
|
1762
|
-
case 3:
|
|
1763
|
-
message.cdpDenom = reader.string();
|
|
1764
|
-
break;
|
|
1765
|
-
case 4:
|
|
1766
|
-
message.healthFactor = reader.string();
|
|
1767
|
-
break;
|
|
1768
|
-
case 5:
|
|
1769
|
-
message.collateralAmount = reader.string();
|
|
1770
|
-
break;
|
|
1771
|
-
case 6:
|
|
1772
|
-
message.borrowAmount = reader.string();
|
|
1773
|
-
break;
|
|
1774
|
-
case 7:
|
|
1775
|
-
message.mintDenom = reader.string();
|
|
1776
|
-
break;
|
|
1777
|
-
case 8:
|
|
1778
|
-
message.mintAmount = reader.string();
|
|
1779
|
-
break;
|
|
1780
|
-
default:
|
|
1781
|
-
reader.skipType(tag & 7);
|
|
1782
|
-
break;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
return message;
|
|
1786
|
-
},
|
|
1787
|
-
fromJSON(object) {
|
|
1788
|
-
const message = Object.assign({}, baseCdpPositionItem);
|
|
1789
|
-
message.address =
|
|
1790
|
-
object.address !== undefined && object.address !== null
|
|
1791
|
-
? String(object.address)
|
|
1792
|
-
: "";
|
|
1793
|
-
message.denom =
|
|
1794
|
-
object.denom !== undefined && object.denom !== null
|
|
1795
|
-
? String(object.denom)
|
|
1796
|
-
: "";
|
|
1797
|
-
message.cdpDenom =
|
|
1798
|
-
object.cdpDenom !== undefined && object.cdpDenom !== null
|
|
1799
|
-
? String(object.cdpDenom)
|
|
1800
|
-
: "";
|
|
1801
|
-
message.healthFactor =
|
|
1802
|
-
object.healthFactor !== undefined && object.healthFactor !== null
|
|
1803
|
-
? String(object.healthFactor)
|
|
1804
|
-
: "";
|
|
1805
|
-
message.collateralAmount =
|
|
1806
|
-
object.collateralAmount !== undefined && object.collateralAmount !== null
|
|
1807
|
-
? String(object.collateralAmount)
|
|
1808
|
-
: "";
|
|
1809
|
-
message.borrowAmount =
|
|
1810
|
-
object.borrowAmount !== undefined && object.borrowAmount !== null
|
|
1811
|
-
? String(object.borrowAmount)
|
|
1812
|
-
: "";
|
|
1813
|
-
message.mintDenom =
|
|
1814
|
-
object.mintDenom !== undefined && object.mintDenom !== null
|
|
1815
|
-
? String(object.mintDenom)
|
|
1816
|
-
: "";
|
|
1817
|
-
message.mintAmount =
|
|
1818
|
-
object.mintAmount !== undefined && object.mintAmount !== null
|
|
1819
|
-
? String(object.mintAmount)
|
|
1820
|
-
: "";
|
|
1821
|
-
return message;
|
|
1822
|
-
},
|
|
1823
|
-
toJSON(message) {
|
|
1824
|
-
const obj = {};
|
|
1825
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1826
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
1827
|
-
message.cdpDenom !== undefined && (obj.cdpDenom = message.cdpDenom);
|
|
1828
|
-
message.healthFactor !== undefined &&
|
|
1829
|
-
(obj.healthFactor = message.healthFactor);
|
|
1830
|
-
message.collateralAmount !== undefined &&
|
|
1831
|
-
(obj.collateralAmount = message.collateralAmount);
|
|
1832
|
-
message.borrowAmount !== undefined &&
|
|
1833
|
-
(obj.borrowAmount = message.borrowAmount);
|
|
1834
|
-
message.mintDenom !== undefined && (obj.mintDenom = message.mintDenom);
|
|
1835
|
-
message.mintAmount !== undefined && (obj.mintAmount = message.mintAmount);
|
|
1836
|
-
return obj;
|
|
1837
|
-
},
|
|
1838
|
-
fromPartial(object) {
|
|
1839
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1840
|
-
const message = Object.assign({}, baseCdpPositionItem);
|
|
1841
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
1842
|
-
message.denom = (_b = object.denom) !== null && _b !== void 0 ? _b : "";
|
|
1843
|
-
message.cdpDenom = (_c = object.cdpDenom) !== null && _c !== void 0 ? _c : "";
|
|
1844
|
-
message.healthFactor = (_d = object.healthFactor) !== null && _d !== void 0 ? _d : "";
|
|
1845
|
-
message.collateralAmount = (_e = object.collateralAmount) !== null && _e !== void 0 ? _e : "";
|
|
1846
|
-
message.borrowAmount = (_f = object.borrowAmount) !== null && _f !== void 0 ? _f : "";
|
|
1847
|
-
message.mintDenom = (_g = object.mintDenom) !== null && _g !== void 0 ? _g : "";
|
|
1848
|
-
message.mintAmount = (_h = object.mintAmount) !== null && _h !== void 0 ? _h : "";
|
|
1849
|
-
return message;
|
|
1850
|
-
},
|
|
1851
|
-
};
|
|
1852
|
-
const baseCdpPosition = { address: "", healthFactor: "" };
|
|
1853
|
-
exports.CdpPosition = {
|
|
1854
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1855
|
-
if (message.address !== "") {
|
|
1856
|
-
writer.uint32(10).string(message.address);
|
|
1857
|
-
}
|
|
1858
|
-
if (message.healthFactor !== "") {
|
|
1859
|
-
writer.uint32(18).string(message.healthFactor);
|
|
1860
|
-
}
|
|
1861
|
-
for (const v of message.collateral) {
|
|
1862
|
-
coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
1863
|
-
}
|
|
1864
|
-
for (const v of message.borrow) {
|
|
1865
|
-
coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1866
|
-
}
|
|
1867
|
-
for (const v of message.mint) {
|
|
1868
|
-
coin_1.Coin.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1869
|
-
}
|
|
1870
|
-
return writer;
|
|
1871
|
-
},
|
|
1872
|
-
decode(input, length) {
|
|
1873
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1874
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1875
|
-
const message = Object.assign({}, baseCdpPosition);
|
|
1876
|
-
message.collateral = [];
|
|
1877
|
-
message.borrow = [];
|
|
1878
|
-
message.mint = [];
|
|
1879
|
-
while (reader.pos < end) {
|
|
1880
|
-
const tag = reader.uint32();
|
|
1881
|
-
switch (tag >>> 3) {
|
|
1882
|
-
case 1:
|
|
1883
|
-
message.address = reader.string();
|
|
1884
|
-
break;
|
|
1885
|
-
case 2:
|
|
1886
|
-
message.healthFactor = reader.string();
|
|
1887
|
-
break;
|
|
1888
|
-
case 3:
|
|
1889
|
-
message.collateral.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
1890
|
-
break;
|
|
1891
|
-
case 4:
|
|
1892
|
-
message.borrow.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
1893
|
-
break;
|
|
1894
|
-
case 5:
|
|
1895
|
-
message.mint.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
1896
|
-
break;
|
|
1897
|
-
default:
|
|
1898
|
-
reader.skipType(tag & 7);
|
|
1899
|
-
break;
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
return message;
|
|
1903
|
-
},
|
|
1904
|
-
fromJSON(object) {
|
|
1905
|
-
var _a, _b, _c;
|
|
1906
|
-
const message = Object.assign({}, baseCdpPosition);
|
|
1907
|
-
message.address =
|
|
1908
|
-
object.address !== undefined && object.address !== null
|
|
1909
|
-
? String(object.address)
|
|
1910
|
-
: "";
|
|
1911
|
-
message.healthFactor =
|
|
1912
|
-
object.healthFactor !== undefined && object.healthFactor !== null
|
|
1913
|
-
? String(object.healthFactor)
|
|
1914
|
-
: "";
|
|
1915
|
-
message.collateral = ((_a = object.collateral) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
1916
|
-
message.borrow = ((_b = object.borrow) !== null && _b !== void 0 ? _b : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
1917
|
-
message.mint = ((_c = object.mint) !== null && _c !== void 0 ? _c : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
1918
|
-
return message;
|
|
1919
|
-
},
|
|
1920
|
-
toJSON(message) {
|
|
1921
|
-
const obj = {};
|
|
1922
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1923
|
-
message.healthFactor !== undefined &&
|
|
1924
|
-
(obj.healthFactor = message.healthFactor);
|
|
1925
|
-
if (message.collateral) {
|
|
1926
|
-
obj.collateral = message.collateral.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
1927
|
-
}
|
|
1928
|
-
else {
|
|
1929
|
-
obj.collateral = [];
|
|
1930
|
-
}
|
|
1931
|
-
if (message.borrow) {
|
|
1932
|
-
obj.borrow = message.borrow.map((e) => (e ? coin_1.Coin.toJSON(e) : undefined));
|
|
1933
|
-
}
|
|
1934
|
-
else {
|
|
1935
|
-
obj.borrow = [];
|
|
1936
|
-
}
|
|
1937
|
-
if (message.mint) {
|
|
1938
|
-
obj.mint = message.mint.map((e) => (e ? coin_1.Coin.toJSON(e) : undefined));
|
|
1939
|
-
}
|
|
1940
|
-
else {
|
|
1941
|
-
obj.mint = [];
|
|
1942
|
-
}
|
|
1943
|
-
return obj;
|
|
1944
|
-
},
|
|
1945
|
-
fromPartial(object) {
|
|
1946
|
-
var _a, _b, _c, _d, _e;
|
|
1947
|
-
const message = Object.assign({}, baseCdpPosition);
|
|
1948
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
1949
|
-
message.healthFactor = (_b = object.healthFactor) !== null && _b !== void 0 ? _b : "";
|
|
1950
|
-
message.collateral = ((_c = object.collateral) !== null && _c !== void 0 ? _c : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
1951
|
-
message.borrow = ((_d = object.borrow) !== null && _d !== void 0 ? _d : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
1952
|
-
message.mint = ((_e = object.mint) !== null && _e !== void 0 ? _e : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
1953
|
-
return message;
|
|
1954
|
-
},
|
|
1955
|
-
};
|
|
1956
|
-
const baseQueryCdpPositionRequest = { address: "" };
|
|
1957
|
-
exports.QueryCdpPositionRequest = {
|
|
1958
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1959
|
-
if (message.address !== "") {
|
|
1960
|
-
writer.uint32(10).string(message.address);
|
|
1961
|
-
}
|
|
1962
|
-
return writer;
|
|
1963
|
-
},
|
|
1964
|
-
decode(input, length) {
|
|
1965
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1966
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1967
|
-
const message = Object.assign({}, baseQueryCdpPositionRequest);
|
|
1968
|
-
while (reader.pos < end) {
|
|
1969
|
-
const tag = reader.uint32();
|
|
1970
|
-
switch (tag >>> 3) {
|
|
1971
|
-
case 1:
|
|
1972
|
-
message.address = reader.string();
|
|
1973
|
-
break;
|
|
1974
|
-
default:
|
|
1975
|
-
reader.skipType(tag & 7);
|
|
1976
|
-
break;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
return message;
|
|
1980
|
-
},
|
|
1981
|
-
fromJSON(object) {
|
|
1982
|
-
const message = Object.assign({}, baseQueryCdpPositionRequest);
|
|
1983
|
-
message.address =
|
|
1984
|
-
object.address !== undefined && object.address !== null
|
|
1985
|
-
? String(object.address)
|
|
1986
|
-
: "";
|
|
1987
|
-
return message;
|
|
1988
|
-
},
|
|
1989
|
-
toJSON(message) {
|
|
1990
|
-
const obj = {};
|
|
1991
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1992
|
-
return obj;
|
|
1993
|
-
},
|
|
1994
|
-
fromPartial(object) {
|
|
1995
|
-
var _a;
|
|
1996
|
-
const message = Object.assign({}, baseQueryCdpPositionRequest);
|
|
1997
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
1998
|
-
return message;
|
|
1999
|
-
},
|
|
2000
|
-
};
|
|
2001
|
-
const baseQueryCdpPositionResponse = {};
|
|
2002
|
-
exports.QueryCdpPositionResponse = {
|
|
2003
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2004
|
-
if (message.position !== undefined) {
|
|
2005
|
-
exports.CdpPosition.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
2006
|
-
}
|
|
2007
|
-
return writer;
|
|
2008
|
-
},
|
|
2009
|
-
decode(input, length) {
|
|
2010
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2011
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2012
|
-
const message = Object.assign({}, baseQueryCdpPositionResponse);
|
|
2013
|
-
while (reader.pos < end) {
|
|
2014
|
-
const tag = reader.uint32();
|
|
2015
|
-
switch (tag >>> 3) {
|
|
2016
|
-
case 1:
|
|
2017
|
-
message.position = exports.CdpPosition.decode(reader, reader.uint32());
|
|
2018
|
-
break;
|
|
2019
|
-
default:
|
|
2020
|
-
reader.skipType(tag & 7);
|
|
2021
|
-
break;
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
return message;
|
|
2025
|
-
},
|
|
2026
|
-
fromJSON(object) {
|
|
2027
|
-
const message = Object.assign({}, baseQueryCdpPositionResponse);
|
|
2028
|
-
message.position =
|
|
2029
|
-
object.position !== undefined && object.position !== null
|
|
2030
|
-
? exports.CdpPosition.fromJSON(object.position)
|
|
2031
|
-
: undefined;
|
|
2032
|
-
return message;
|
|
2033
|
-
},
|
|
2034
|
-
toJSON(message) {
|
|
2035
|
-
const obj = {};
|
|
2036
|
-
message.position !== undefined &&
|
|
2037
|
-
(obj.position = message.position
|
|
2038
|
-
? exports.CdpPosition.toJSON(message.position)
|
|
2039
|
-
: undefined);
|
|
2040
|
-
return obj;
|
|
2041
|
-
},
|
|
2042
|
-
fromPartial(object) {
|
|
2043
|
-
const message = Object.assign({}, baseQueryCdpPositionResponse);
|
|
2044
|
-
message.position =
|
|
2045
|
-
object.position !== undefined && object.position !== null
|
|
2046
|
-
? exports.CdpPosition.fromPartial(object.position)
|
|
2047
|
-
: undefined;
|
|
2048
|
-
return message;
|
|
2049
|
-
},
|
|
2050
|
-
};
|
|
2051
|
-
const baseQueryCdpPositionsRequest = {
|
|
2052
|
-
maxHealthFactor: "",
|
|
2053
|
-
minHealthFactor: "",
|
|
2054
|
-
};
|
|
2055
|
-
exports.QueryCdpPositionsRequest = {
|
|
2056
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2057
|
-
if (message.pagination !== undefined) {
|
|
2058
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
2059
|
-
}
|
|
2060
|
-
if (message.maxHealthFactor !== "") {
|
|
2061
|
-
writer.uint32(18).string(message.maxHealthFactor);
|
|
2062
|
-
}
|
|
2063
|
-
if (message.minHealthFactor !== "") {
|
|
2064
|
-
writer.uint32(26).string(message.minHealthFactor);
|
|
2065
|
-
}
|
|
2066
|
-
return writer;
|
|
2067
|
-
},
|
|
2068
|
-
decode(input, length) {
|
|
2069
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2070
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2071
|
-
const message = Object.assign({}, baseQueryCdpPositionsRequest);
|
|
2072
|
-
while (reader.pos < end) {
|
|
2073
|
-
const tag = reader.uint32();
|
|
2074
|
-
switch (tag >>> 3) {
|
|
2075
|
-
case 1:
|
|
2076
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
2077
|
-
break;
|
|
2078
|
-
case 2:
|
|
2079
|
-
message.maxHealthFactor = reader.string();
|
|
2080
|
-
break;
|
|
2081
|
-
case 3:
|
|
2082
|
-
message.minHealthFactor = reader.string();
|
|
2083
|
-
break;
|
|
2084
|
-
default:
|
|
2085
|
-
reader.skipType(tag & 7);
|
|
2086
|
-
break;
|
|
2087
|
-
}
|
|
2088
|
-
}
|
|
2089
|
-
return message;
|
|
2090
|
-
},
|
|
2091
|
-
fromJSON(object) {
|
|
2092
|
-
const message = Object.assign({}, baseQueryCdpPositionsRequest);
|
|
2093
|
-
message.pagination =
|
|
2094
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2095
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
2096
|
-
: undefined;
|
|
2097
|
-
message.maxHealthFactor =
|
|
2098
|
-
object.maxHealthFactor !== undefined && object.maxHealthFactor !== null
|
|
2099
|
-
? String(object.maxHealthFactor)
|
|
2100
|
-
: "";
|
|
2101
|
-
message.minHealthFactor =
|
|
2102
|
-
object.minHealthFactor !== undefined && object.minHealthFactor !== null
|
|
2103
|
-
? String(object.minHealthFactor)
|
|
2104
|
-
: "";
|
|
2105
|
-
return message;
|
|
2106
|
-
},
|
|
2107
|
-
toJSON(message) {
|
|
2108
|
-
const obj = {};
|
|
2109
|
-
message.pagination !== undefined &&
|
|
2110
|
-
(obj.pagination = message.pagination
|
|
2111
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
2112
|
-
: undefined);
|
|
2113
|
-
message.maxHealthFactor !== undefined &&
|
|
2114
|
-
(obj.maxHealthFactor = message.maxHealthFactor);
|
|
2115
|
-
message.minHealthFactor !== undefined &&
|
|
2116
|
-
(obj.minHealthFactor = message.minHealthFactor);
|
|
2117
|
-
return obj;
|
|
2118
|
-
},
|
|
2119
|
-
fromPartial(object) {
|
|
2120
|
-
var _a, _b;
|
|
2121
|
-
const message = Object.assign({}, baseQueryCdpPositionsRequest);
|
|
2122
|
-
message.pagination =
|
|
2123
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2124
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
2125
|
-
: undefined;
|
|
2126
|
-
message.maxHealthFactor = (_a = object.maxHealthFactor) !== null && _a !== void 0 ? _a : "";
|
|
2127
|
-
message.minHealthFactor = (_b = object.minHealthFactor) !== null && _b !== void 0 ? _b : "";
|
|
2128
|
-
return message;
|
|
2129
|
-
},
|
|
2130
|
-
};
|
|
2131
|
-
const baseQueryCdpPositionsResponse = {};
|
|
2132
|
-
exports.QueryCdpPositionsResponse = {
|
|
2133
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2134
|
-
for (const v of message.positions) {
|
|
2135
|
-
exports.CdpPosition.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2136
|
-
}
|
|
2137
|
-
if (message.pagination !== undefined) {
|
|
2138
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2139
|
-
}
|
|
2140
|
-
return writer;
|
|
2141
|
-
},
|
|
2142
|
-
decode(input, length) {
|
|
2143
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2144
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2145
|
-
const message = Object.assign({}, baseQueryCdpPositionsResponse);
|
|
2146
|
-
message.positions = [];
|
|
2147
|
-
while (reader.pos < end) {
|
|
2148
|
-
const tag = reader.uint32();
|
|
2149
|
-
switch (tag >>> 3) {
|
|
2150
|
-
case 1:
|
|
2151
|
-
message.positions.push(exports.CdpPosition.decode(reader, reader.uint32()));
|
|
2152
|
-
break;
|
|
2153
|
-
case 2:
|
|
2154
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
2155
|
-
break;
|
|
2156
|
-
default:
|
|
2157
|
-
reader.skipType(tag & 7);
|
|
2158
|
-
break;
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
return message;
|
|
2162
|
-
},
|
|
2163
|
-
fromJSON(object) {
|
|
2164
|
-
var _a;
|
|
2165
|
-
const message = Object.assign({}, baseQueryCdpPositionsResponse);
|
|
2166
|
-
message.positions = ((_a = object.positions) !== null && _a !== void 0 ? _a : []).map((e) => exports.CdpPosition.fromJSON(e));
|
|
2167
|
-
message.pagination =
|
|
2168
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2169
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
2170
|
-
: undefined;
|
|
2171
|
-
return message;
|
|
2172
|
-
},
|
|
2173
|
-
toJSON(message) {
|
|
2174
|
-
const obj = {};
|
|
2175
|
-
if (message.positions) {
|
|
2176
|
-
obj.positions = message.positions.map((e) => e ? exports.CdpPosition.toJSON(e) : undefined);
|
|
2177
|
-
}
|
|
2178
|
-
else {
|
|
2179
|
-
obj.positions = [];
|
|
2180
|
-
}
|
|
2181
|
-
message.pagination !== undefined &&
|
|
2182
|
-
(obj.pagination = message.pagination
|
|
2183
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
2184
|
-
: undefined);
|
|
2185
|
-
return obj;
|
|
2186
|
-
},
|
|
2187
|
-
fromPartial(object) {
|
|
2188
|
-
var _a;
|
|
2189
|
-
const message = Object.assign({}, baseQueryCdpPositionsResponse);
|
|
2190
|
-
message.positions = ((_a = object.positions) !== null && _a !== void 0 ? _a : []).map((e) => exports.CdpPosition.fromPartial(e));
|
|
2191
|
-
message.pagination =
|
|
2192
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2193
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
2194
|
-
: undefined;
|
|
2195
|
-
return message;
|
|
2196
|
-
},
|
|
2197
|
-
};
|
|
2198
|
-
const baseQueryRewardSchemesAllRequest = {};
|
|
2199
|
-
exports.QueryRewardSchemesAllRequest = {
|
|
2200
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2201
|
-
if (message.pagination !== undefined) {
|
|
2202
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
2203
|
-
}
|
|
2204
|
-
return writer;
|
|
2205
|
-
},
|
|
2206
|
-
decode(input, length) {
|
|
2207
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2208
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2209
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllRequest);
|
|
2210
|
-
while (reader.pos < end) {
|
|
2211
|
-
const tag = reader.uint32();
|
|
2212
|
-
switch (tag >>> 3) {
|
|
2213
|
-
case 1:
|
|
2214
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
2215
|
-
break;
|
|
2216
|
-
default:
|
|
2217
|
-
reader.skipType(tag & 7);
|
|
2218
|
-
break;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
return message;
|
|
2222
|
-
},
|
|
2223
|
-
fromJSON(object) {
|
|
2224
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllRequest);
|
|
2225
|
-
message.pagination =
|
|
2226
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2227
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
2228
|
-
: undefined;
|
|
2229
|
-
return message;
|
|
2230
|
-
},
|
|
2231
|
-
toJSON(message) {
|
|
2232
|
-
const obj = {};
|
|
2233
|
-
message.pagination !== undefined &&
|
|
2234
|
-
(obj.pagination = message.pagination
|
|
2235
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
2236
|
-
: undefined);
|
|
2237
|
-
return obj;
|
|
2238
|
-
},
|
|
2239
|
-
fromPartial(object) {
|
|
2240
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllRequest);
|
|
2241
|
-
message.pagination =
|
|
2242
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2243
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
2244
|
-
: undefined;
|
|
2245
|
-
return message;
|
|
2246
|
-
},
|
|
2247
|
-
};
|
|
2248
|
-
const baseQueryRewardSchemesAllResponse = {};
|
|
2249
|
-
exports.QueryRewardSchemesAllResponse = {
|
|
2250
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2251
|
-
for (const v of message.rewardSchemes) {
|
|
2252
|
-
reward_scheme_1.RewardScheme.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2253
|
-
}
|
|
2254
|
-
if (message.pagination !== undefined) {
|
|
2255
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2256
|
-
}
|
|
2257
|
-
return writer;
|
|
2258
|
-
},
|
|
2259
|
-
decode(input, length) {
|
|
2260
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2261
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2262
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllResponse);
|
|
2263
|
-
message.rewardSchemes = [];
|
|
2264
|
-
while (reader.pos < end) {
|
|
2265
|
-
const tag = reader.uint32();
|
|
2266
|
-
switch (tag >>> 3) {
|
|
2267
|
-
case 1:
|
|
2268
|
-
message.rewardSchemes.push(reward_scheme_1.RewardScheme.decode(reader, reader.uint32()));
|
|
2269
|
-
break;
|
|
2270
|
-
case 2:
|
|
2271
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
2272
|
-
break;
|
|
2273
|
-
default:
|
|
2274
|
-
reader.skipType(tag & 7);
|
|
2275
|
-
break;
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
return message;
|
|
2279
|
-
},
|
|
2280
|
-
fromJSON(object) {
|
|
2281
|
-
var _a;
|
|
2282
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllResponse);
|
|
2283
|
-
message.rewardSchemes = ((_a = object.rewardSchemes) !== null && _a !== void 0 ? _a : []).map((e) => reward_scheme_1.RewardScheme.fromJSON(e));
|
|
2284
|
-
message.pagination =
|
|
2285
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2286
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
2287
|
-
: undefined;
|
|
2288
|
-
return message;
|
|
2289
|
-
},
|
|
2290
|
-
toJSON(message) {
|
|
2291
|
-
const obj = {};
|
|
2292
|
-
if (message.rewardSchemes) {
|
|
2293
|
-
obj.rewardSchemes = message.rewardSchemes.map((e) => e ? reward_scheme_1.RewardScheme.toJSON(e) : undefined);
|
|
2294
|
-
}
|
|
2295
|
-
else {
|
|
2296
|
-
obj.rewardSchemes = [];
|
|
2297
|
-
}
|
|
2298
|
-
message.pagination !== undefined &&
|
|
2299
|
-
(obj.pagination = message.pagination
|
|
2300
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
2301
|
-
: undefined);
|
|
2302
|
-
return obj;
|
|
2303
|
-
},
|
|
2304
|
-
fromPartial(object) {
|
|
2305
|
-
var _a;
|
|
2306
|
-
const message = Object.assign({}, baseQueryRewardSchemesAllResponse);
|
|
2307
|
-
message.rewardSchemes = ((_a = object.rewardSchemes) !== null && _a !== void 0 ? _a : []).map((e) => reward_scheme_1.RewardScheme.fromPartial(e));
|
|
2308
|
-
message.pagination =
|
|
2309
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2310
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
2311
|
-
: undefined;
|
|
2312
|
-
return message;
|
|
2313
|
-
},
|
|
2314
|
-
};
|
|
2315
|
-
const baseQueryRewardDebtsRequest = { address: "" };
|
|
2316
|
-
exports.QueryRewardDebtsRequest = {
|
|
2317
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2318
|
-
if (message.address !== "") {
|
|
2319
|
-
writer.uint32(10).string(message.address);
|
|
2320
|
-
}
|
|
2321
|
-
return writer;
|
|
2322
|
-
},
|
|
2323
|
-
decode(input, length) {
|
|
2324
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2325
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2326
|
-
const message = Object.assign({}, baseQueryRewardDebtsRequest);
|
|
2327
|
-
while (reader.pos < end) {
|
|
2328
|
-
const tag = reader.uint32();
|
|
2329
|
-
switch (tag >>> 3) {
|
|
2330
|
-
case 1:
|
|
2331
|
-
message.address = reader.string();
|
|
2332
|
-
break;
|
|
2333
|
-
default:
|
|
2334
|
-
reader.skipType(tag & 7);
|
|
2335
|
-
break;
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
return message;
|
|
2339
|
-
},
|
|
2340
|
-
fromJSON(object) {
|
|
2341
|
-
const message = Object.assign({}, baseQueryRewardDebtsRequest);
|
|
2342
|
-
message.address =
|
|
2343
|
-
object.address !== undefined && object.address !== null
|
|
2344
|
-
? String(object.address)
|
|
2345
|
-
: "";
|
|
2346
|
-
return message;
|
|
2347
|
-
},
|
|
2348
|
-
toJSON(message) {
|
|
2349
|
-
const obj = {};
|
|
2350
|
-
message.address !== undefined && (obj.address = message.address);
|
|
2351
|
-
return obj;
|
|
2352
|
-
},
|
|
2353
|
-
fromPartial(object) {
|
|
2354
|
-
var _a;
|
|
2355
|
-
const message = Object.assign({}, baseQueryRewardDebtsRequest);
|
|
2356
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
2357
|
-
return message;
|
|
2358
|
-
},
|
|
2359
|
-
};
|
|
2360
|
-
const baseQueryRewardDebtsResponse = {};
|
|
2361
|
-
exports.QueryRewardDebtsResponse = {
|
|
2362
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2363
|
-
for (const v of message.rewardDebts) {
|
|
2364
|
-
reward_scheme_1.RewardDebt.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2365
|
-
}
|
|
2366
|
-
return writer;
|
|
2367
|
-
},
|
|
2368
|
-
decode(input, length) {
|
|
2369
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2370
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2371
|
-
const message = Object.assign({}, baseQueryRewardDebtsResponse);
|
|
2372
|
-
message.rewardDebts = [];
|
|
2373
|
-
while (reader.pos < end) {
|
|
2374
|
-
const tag = reader.uint32();
|
|
2375
|
-
switch (tag >>> 3) {
|
|
2376
|
-
case 1:
|
|
2377
|
-
message.rewardDebts.push(reward_scheme_1.RewardDebt.decode(reader, reader.uint32()));
|
|
2378
|
-
break;
|
|
2379
|
-
default:
|
|
2380
|
-
reader.skipType(tag & 7);
|
|
2381
|
-
break;
|
|
2382
|
-
}
|
|
2383
|
-
}
|
|
2384
|
-
return message;
|
|
2385
|
-
},
|
|
2386
|
-
fromJSON(object) {
|
|
2387
|
-
var _a;
|
|
2388
|
-
const message = Object.assign({}, baseQueryRewardDebtsResponse);
|
|
2389
|
-
message.rewardDebts = ((_a = object.rewardDebts) !== null && _a !== void 0 ? _a : []).map((e) => reward_scheme_1.RewardDebt.fromJSON(e));
|
|
2390
|
-
return message;
|
|
2391
|
-
},
|
|
2392
|
-
toJSON(message) {
|
|
2393
|
-
const obj = {};
|
|
2394
|
-
if (message.rewardDebts) {
|
|
2395
|
-
obj.rewardDebts = message.rewardDebts.map((e) => e ? reward_scheme_1.RewardDebt.toJSON(e) : undefined);
|
|
2396
|
-
}
|
|
2397
|
-
else {
|
|
2398
|
-
obj.rewardDebts = [];
|
|
2399
|
-
}
|
|
2400
|
-
return obj;
|
|
2401
|
-
},
|
|
2402
|
-
fromPartial(object) {
|
|
2403
|
-
var _a;
|
|
2404
|
-
const message = Object.assign({}, baseQueryRewardDebtsResponse);
|
|
2405
|
-
message.rewardDebts = ((_a = object.rewardDebts) !== null && _a !== void 0 ? _a : []).map((e) => reward_scheme_1.RewardDebt.fromPartial(e));
|
|
2406
|
-
return message;
|
|
2407
|
-
},
|
|
2408
|
-
};
|
|
2409
|
-
const baseQueryRewardDebtsAllRequest = {};
|
|
2410
|
-
exports.QueryRewardDebtsAllRequest = {
|
|
2411
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
2412
|
-
return writer;
|
|
2413
|
-
},
|
|
2414
|
-
decode(input, length) {
|
|
2415
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2416
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2417
|
-
const message = Object.assign({}, baseQueryRewardDebtsAllRequest);
|
|
2418
|
-
while (reader.pos < end) {
|
|
2419
|
-
const tag = reader.uint32();
|
|
2420
|
-
switch (tag >>> 3) {
|
|
2421
|
-
default:
|
|
2422
|
-
reader.skipType(tag & 7);
|
|
2423
|
-
break;
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
return message;
|
|
2427
|
-
},
|
|
2428
|
-
fromJSON(_) {
|
|
2429
|
-
const message = Object.assign({}, baseQueryRewardDebtsAllRequest);
|
|
2430
|
-
return message;
|
|
2431
|
-
},
|
|
2432
|
-
toJSON(_) {
|
|
2433
|
-
const obj = {};
|
|
2434
|
-
return obj;
|
|
2435
|
-
},
|
|
2436
|
-
fromPartial(_) {
|
|
2437
|
-
const message = Object.assign({}, baseQueryRewardDebtsAllRequest);
|
|
2438
|
-
return message;
|
|
2439
|
-
},
|
|
2440
|
-
};
|
|
2441
|
-
const baseQueryEModeAllRequest = {};
|
|
2442
|
-
exports.QueryEModeAllRequest = {
|
|
2443
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2444
|
-
if (message.pagination !== undefined) {
|
|
2445
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
2446
|
-
}
|
|
2447
|
-
return writer;
|
|
2448
|
-
},
|
|
2449
|
-
decode(input, length) {
|
|
2450
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2451
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2452
|
-
const message = Object.assign({}, baseQueryEModeAllRequest);
|
|
2453
|
-
while (reader.pos < end) {
|
|
2454
|
-
const tag = reader.uint32();
|
|
2455
|
-
switch (tag >>> 3) {
|
|
2456
|
-
case 1:
|
|
2457
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
2458
|
-
break;
|
|
2459
|
-
default:
|
|
2460
|
-
reader.skipType(tag & 7);
|
|
2461
|
-
break;
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
return message;
|
|
2465
|
-
},
|
|
2466
|
-
fromJSON(object) {
|
|
2467
|
-
const message = Object.assign({}, baseQueryEModeAllRequest);
|
|
2468
|
-
message.pagination =
|
|
2469
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2470
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
2471
|
-
: undefined;
|
|
2472
|
-
return message;
|
|
2473
|
-
},
|
|
2474
|
-
toJSON(message) {
|
|
2475
|
-
const obj = {};
|
|
2476
|
-
message.pagination !== undefined &&
|
|
2477
|
-
(obj.pagination = message.pagination
|
|
2478
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
2479
|
-
: undefined);
|
|
2480
|
-
return obj;
|
|
2481
|
-
},
|
|
2482
|
-
fromPartial(object) {
|
|
2483
|
-
const message = Object.assign({}, baseQueryEModeAllRequest);
|
|
2484
|
-
message.pagination =
|
|
2485
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2486
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
2487
|
-
: undefined;
|
|
2488
|
-
return message;
|
|
2489
|
-
},
|
|
2490
|
-
};
|
|
2491
|
-
const baseQueryEModeAllResponse = {};
|
|
2492
|
-
exports.QueryEModeAllResponse = {
|
|
2493
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2494
|
-
for (const v of message.eModeCategories) {
|
|
2495
|
-
e_mode_category_1.EModeCategory.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2496
|
-
}
|
|
2497
|
-
if (message.pagination !== undefined) {
|
|
2498
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2499
|
-
}
|
|
2500
|
-
return writer;
|
|
2501
|
-
},
|
|
2502
|
-
decode(input, length) {
|
|
2503
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2504
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2505
|
-
const message = Object.assign({}, baseQueryEModeAllResponse);
|
|
2506
|
-
message.eModeCategories = [];
|
|
2507
|
-
while (reader.pos < end) {
|
|
2508
|
-
const tag = reader.uint32();
|
|
2509
|
-
switch (tag >>> 3) {
|
|
2510
|
-
case 1:
|
|
2511
|
-
message.eModeCategories.push(e_mode_category_1.EModeCategory.decode(reader, reader.uint32()));
|
|
2512
|
-
break;
|
|
2513
|
-
case 2:
|
|
2514
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
2515
|
-
break;
|
|
2516
|
-
default:
|
|
2517
|
-
reader.skipType(tag & 7);
|
|
2518
|
-
break;
|
|
2519
|
-
}
|
|
2520
|
-
}
|
|
2521
|
-
return message;
|
|
2522
|
-
},
|
|
2523
|
-
fromJSON(object) {
|
|
2524
|
-
var _a;
|
|
2525
|
-
const message = Object.assign({}, baseQueryEModeAllResponse);
|
|
2526
|
-
message.eModeCategories = ((_a = object.eModeCategories) !== null && _a !== void 0 ? _a : []).map((e) => e_mode_category_1.EModeCategory.fromJSON(e));
|
|
2527
|
-
message.pagination =
|
|
2528
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2529
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
2530
|
-
: undefined;
|
|
2531
|
-
return message;
|
|
2532
|
-
},
|
|
2533
|
-
toJSON(message) {
|
|
2534
|
-
const obj = {};
|
|
2535
|
-
if (message.eModeCategories) {
|
|
2536
|
-
obj.eModeCategories = message.eModeCategories.map((e) => e ? e_mode_category_1.EModeCategory.toJSON(e) : undefined);
|
|
2537
|
-
}
|
|
2538
|
-
else {
|
|
2539
|
-
obj.eModeCategories = [];
|
|
2540
|
-
}
|
|
2541
|
-
message.pagination !== undefined &&
|
|
2542
|
-
(obj.pagination = message.pagination
|
|
2543
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
2544
|
-
: undefined);
|
|
2545
|
-
return obj;
|
|
2546
|
-
},
|
|
2547
|
-
fromPartial(object) {
|
|
2548
|
-
var _a;
|
|
2549
|
-
const message = Object.assign({}, baseQueryEModeAllResponse);
|
|
2550
|
-
message.eModeCategories = ((_a = object.eModeCategories) !== null && _a !== void 0 ? _a : []).map((e) => e_mode_category_1.EModeCategory.fromPartial(e));
|
|
2551
|
-
message.pagination =
|
|
2552
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2553
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
2554
|
-
: undefined;
|
|
2555
|
-
return message;
|
|
2556
|
-
},
|
|
2557
|
-
};
|
|
2558
|
-
const baseQueryStablecoinInterestRequest = {};
|
|
2559
|
-
exports.QueryStablecoinInterestRequest = {
|
|
2560
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
2561
|
-
return writer;
|
|
2562
|
-
},
|
|
2563
|
-
decode(input, length) {
|
|
2564
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2565
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2566
|
-
const message = Object.assign({}, baseQueryStablecoinInterestRequest);
|
|
2567
|
-
while (reader.pos < end) {
|
|
2568
|
-
const tag = reader.uint32();
|
|
2569
|
-
switch (tag >>> 3) {
|
|
2570
|
-
default:
|
|
2571
|
-
reader.skipType(tag & 7);
|
|
2572
|
-
break;
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
return message;
|
|
2576
|
-
},
|
|
2577
|
-
fromJSON(_) {
|
|
2578
|
-
const message = Object.assign({}, baseQueryStablecoinInterestRequest);
|
|
2579
|
-
return message;
|
|
2580
|
-
},
|
|
2581
|
-
toJSON(_) {
|
|
2582
|
-
const obj = {};
|
|
2583
|
-
return obj;
|
|
2584
|
-
},
|
|
2585
|
-
fromPartial(_) {
|
|
2586
|
-
const message = Object.assign({}, baseQueryStablecoinInterestRequest);
|
|
2587
|
-
return message;
|
|
2588
|
-
},
|
|
2589
|
-
};
|
|
2590
|
-
const baseQueryStablecoinInterestResponse = {};
|
|
2591
|
-
exports.QueryStablecoinInterestResponse = {
|
|
2592
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2593
|
-
if (message.stablecoinInterestInfo !== undefined) {
|
|
2594
|
-
stablecoin_interest_info_1.StablecoinInterestInfo.encode(message.stablecoinInterestInfo, writer.uint32(10).fork()).ldelim();
|
|
2595
|
-
}
|
|
2596
|
-
return writer;
|
|
2597
|
-
},
|
|
2598
|
-
decode(input, length) {
|
|
2599
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2600
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2601
|
-
const message = Object.assign({}, baseQueryStablecoinInterestResponse);
|
|
2602
|
-
while (reader.pos < end) {
|
|
2603
|
-
const tag = reader.uint32();
|
|
2604
|
-
switch (tag >>> 3) {
|
|
2605
|
-
case 1:
|
|
2606
|
-
message.stablecoinInterestInfo = stablecoin_interest_info_1.StablecoinInterestInfo.decode(reader, reader.uint32());
|
|
2607
|
-
break;
|
|
2608
|
-
default:
|
|
2609
|
-
reader.skipType(tag & 7);
|
|
2610
|
-
break;
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
return message;
|
|
2614
|
-
},
|
|
2615
|
-
fromJSON(object) {
|
|
2616
|
-
const message = Object.assign({}, baseQueryStablecoinInterestResponse);
|
|
2617
|
-
message.stablecoinInterestInfo =
|
|
2618
|
-
object.stablecoinInterestInfo !== undefined &&
|
|
2619
|
-
object.stablecoinInterestInfo !== null
|
|
2620
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.fromJSON(object.stablecoinInterestInfo)
|
|
2621
|
-
: undefined;
|
|
2622
|
-
return message;
|
|
2623
|
-
},
|
|
2624
|
-
toJSON(message) {
|
|
2625
|
-
const obj = {};
|
|
2626
|
-
message.stablecoinInterestInfo !== undefined &&
|
|
2627
|
-
(obj.stablecoinInterestInfo = message.stablecoinInterestInfo
|
|
2628
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.toJSON(message.stablecoinInterestInfo)
|
|
2629
|
-
: undefined);
|
|
2630
|
-
return obj;
|
|
2631
|
-
},
|
|
2632
|
-
fromPartial(object) {
|
|
2633
|
-
const message = Object.assign({}, baseQueryStablecoinInterestResponse);
|
|
2634
|
-
message.stablecoinInterestInfo =
|
|
2635
|
-
object.stablecoinInterestInfo !== undefined &&
|
|
2636
|
-
object.stablecoinInterestInfo !== null
|
|
2637
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.fromPartial(object.stablecoinInterestInfo)
|
|
2638
|
-
: undefined;
|
|
2639
|
-
return message;
|
|
2640
|
-
},
|
|
2641
|
-
};
|
|
2642
|
-
const baseQueryEModeRequest = { name: "" };
|
|
2643
|
-
exports.QueryEModeRequest = {
|
|
2644
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2645
|
-
if (message.name !== "") {
|
|
2646
|
-
writer.uint32(10).string(message.name);
|
|
2647
|
-
}
|
|
2648
|
-
return writer;
|
|
2649
|
-
},
|
|
2650
|
-
decode(input, length) {
|
|
2651
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2652
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2653
|
-
const message = Object.assign({}, baseQueryEModeRequest);
|
|
2654
|
-
while (reader.pos < end) {
|
|
2655
|
-
const tag = reader.uint32();
|
|
2656
|
-
switch (tag >>> 3) {
|
|
2657
|
-
case 1:
|
|
2658
|
-
message.name = reader.string();
|
|
2659
|
-
break;
|
|
2660
|
-
default:
|
|
2661
|
-
reader.skipType(tag & 7);
|
|
2662
|
-
break;
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
return message;
|
|
2666
|
-
},
|
|
2667
|
-
fromJSON(object) {
|
|
2668
|
-
const message = Object.assign({}, baseQueryEModeRequest);
|
|
2669
|
-
message.name =
|
|
2670
|
-
object.name !== undefined && object.name !== null
|
|
2671
|
-
? String(object.name)
|
|
2672
|
-
: "";
|
|
2673
|
-
return message;
|
|
2674
|
-
},
|
|
2675
|
-
toJSON(message) {
|
|
2676
|
-
const obj = {};
|
|
2677
|
-
message.name !== undefined && (obj.name = message.name);
|
|
2678
|
-
return obj;
|
|
2679
|
-
},
|
|
2680
|
-
fromPartial(object) {
|
|
2681
|
-
var _a;
|
|
2682
|
-
const message = Object.assign({}, baseQueryEModeRequest);
|
|
2683
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
2684
|
-
return message;
|
|
2685
|
-
},
|
|
2686
|
-
};
|
|
2687
|
-
const baseQueryEModeResponse = {};
|
|
2688
|
-
exports.QueryEModeResponse = {
|
|
2689
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2690
|
-
if (message.eModeCategory !== undefined) {
|
|
2691
|
-
e_mode_category_1.EModeCategory.encode(message.eModeCategory, writer.uint32(10).fork()).ldelim();
|
|
2692
|
-
}
|
|
2693
|
-
return writer;
|
|
2694
|
-
},
|
|
2695
|
-
decode(input, length) {
|
|
2696
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2697
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2698
|
-
const message = Object.assign({}, baseQueryEModeResponse);
|
|
2699
|
-
while (reader.pos < end) {
|
|
2700
|
-
const tag = reader.uint32();
|
|
2701
|
-
switch (tag >>> 3) {
|
|
2702
|
-
case 1:
|
|
2703
|
-
message.eModeCategory = e_mode_category_1.EModeCategory.decode(reader, reader.uint32());
|
|
2704
|
-
break;
|
|
2705
|
-
default:
|
|
2706
|
-
reader.skipType(tag & 7);
|
|
2707
|
-
break;
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
return message;
|
|
2711
|
-
},
|
|
2712
|
-
fromJSON(object) {
|
|
2713
|
-
const message = Object.assign({}, baseQueryEModeResponse);
|
|
2714
|
-
message.eModeCategory =
|
|
2715
|
-
object.eModeCategory !== undefined && object.eModeCategory !== null
|
|
2716
|
-
? e_mode_category_1.EModeCategory.fromJSON(object.eModeCategory)
|
|
2717
|
-
: undefined;
|
|
2718
|
-
return message;
|
|
2719
|
-
},
|
|
2720
|
-
toJSON(message) {
|
|
2721
|
-
const obj = {};
|
|
2722
|
-
message.eModeCategory !== undefined &&
|
|
2723
|
-
(obj.eModeCategory = message.eModeCategory
|
|
2724
|
-
? e_mode_category_1.EModeCategory.toJSON(message.eModeCategory)
|
|
2725
|
-
: undefined);
|
|
2726
|
-
return obj;
|
|
2727
|
-
},
|
|
2728
|
-
fromPartial(object) {
|
|
2729
|
-
const message = Object.assign({}, baseQueryEModeResponse);
|
|
2730
|
-
message.eModeCategory =
|
|
2731
|
-
object.eModeCategory !== undefined && object.eModeCategory !== null
|
|
2732
|
-
? e_mode_category_1.EModeCategory.fromPartial(object.eModeCategory)
|
|
2733
|
-
: undefined;
|
|
2734
|
-
return message;
|
|
2735
|
-
},
|
|
2736
|
-
};
|
|
2737
|
-
const baseQueryAccountEModeRequest = { address: "" };
|
|
2738
|
-
exports.QueryAccountEModeRequest = {
|
|
2739
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2740
|
-
if (message.address !== "") {
|
|
2741
|
-
writer.uint32(10).string(message.address);
|
|
2742
|
-
}
|
|
2743
|
-
return writer;
|
|
2744
|
-
},
|
|
2745
|
-
decode(input, length) {
|
|
2746
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2747
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2748
|
-
const message = Object.assign({}, baseQueryAccountEModeRequest);
|
|
2749
|
-
while (reader.pos < end) {
|
|
2750
|
-
const tag = reader.uint32();
|
|
2751
|
-
switch (tag >>> 3) {
|
|
2752
|
-
case 1:
|
|
2753
|
-
message.address = reader.string();
|
|
2754
|
-
break;
|
|
2755
|
-
default:
|
|
2756
|
-
reader.skipType(tag & 7);
|
|
2757
|
-
break;
|
|
2758
|
-
}
|
|
2759
|
-
}
|
|
2760
|
-
return message;
|
|
2761
|
-
},
|
|
2762
|
-
fromJSON(object) {
|
|
2763
|
-
const message = Object.assign({}, baseQueryAccountEModeRequest);
|
|
2764
|
-
message.address =
|
|
2765
|
-
object.address !== undefined && object.address !== null
|
|
2766
|
-
? String(object.address)
|
|
2767
|
-
: "";
|
|
2768
|
-
return message;
|
|
2769
|
-
},
|
|
2770
|
-
toJSON(message) {
|
|
2771
|
-
const obj = {};
|
|
2772
|
-
message.address !== undefined && (obj.address = message.address);
|
|
2773
|
-
return obj;
|
|
2774
|
-
},
|
|
2775
|
-
fromPartial(object) {
|
|
2776
|
-
var _a;
|
|
2777
|
-
const message = Object.assign({}, baseQueryAccountEModeRequest);
|
|
2778
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
2779
|
-
return message;
|
|
2780
|
-
},
|
|
2781
|
-
};
|
|
2782
|
-
const baseQueryAccountEModeResponse = { eModeCategoryName: "" };
|
|
2783
|
-
exports.QueryAccountEModeResponse = {
|
|
2784
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2785
|
-
if (message.eModeCategoryName !== "") {
|
|
2786
|
-
writer.uint32(10).string(message.eModeCategoryName);
|
|
2787
|
-
}
|
|
2788
|
-
return writer;
|
|
2789
|
-
},
|
|
2790
|
-
decode(input, length) {
|
|
2791
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2792
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2793
|
-
const message = Object.assign({}, baseQueryAccountEModeResponse);
|
|
2794
|
-
while (reader.pos < end) {
|
|
2795
|
-
const tag = reader.uint32();
|
|
2796
|
-
switch (tag >>> 3) {
|
|
2797
|
-
case 1:
|
|
2798
|
-
message.eModeCategoryName = reader.string();
|
|
2799
|
-
break;
|
|
2800
|
-
default:
|
|
2801
|
-
reader.skipType(tag & 7);
|
|
2802
|
-
break;
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
return message;
|
|
2806
|
-
},
|
|
2807
|
-
fromJSON(object) {
|
|
2808
|
-
const message = Object.assign({}, baseQueryAccountEModeResponse);
|
|
2809
|
-
message.eModeCategoryName =
|
|
2810
|
-
object.eModeCategoryName !== undefined &&
|
|
2811
|
-
object.eModeCategoryName !== null
|
|
2812
|
-
? String(object.eModeCategoryName)
|
|
2813
|
-
: "";
|
|
2814
|
-
return message;
|
|
2815
|
-
},
|
|
2816
|
-
toJSON(message) {
|
|
2817
|
-
const obj = {};
|
|
2818
|
-
message.eModeCategoryName !== undefined &&
|
|
2819
|
-
(obj.eModeCategoryName = message.eModeCategoryName);
|
|
2820
|
-
return obj;
|
|
2821
|
-
},
|
|
2822
|
-
fromPartial(object) {
|
|
2823
|
-
var _a;
|
|
2824
|
-
const message = Object.assign({}, baseQueryAccountEModeResponse);
|
|
2825
|
-
message.eModeCategoryName = (_a = object.eModeCategoryName) !== null && _a !== void 0 ? _a : "";
|
|
2826
|
-
return message;
|
|
2827
|
-
},
|
|
2828
|
-
};
|
|
2829
|
-
const baseQueryCDPLiquidationsAllRequest = {};
|
|
2830
|
-
exports.QueryCDPLiquidationsAllRequest = {
|
|
2831
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2832
|
-
if (message.pagination !== undefined) {
|
|
2833
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
2834
|
-
}
|
|
2835
|
-
return writer;
|
|
2836
|
-
},
|
|
2837
|
-
decode(input, length) {
|
|
2838
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2839
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2840
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllRequest);
|
|
2841
|
-
while (reader.pos < end) {
|
|
2842
|
-
const tag = reader.uint32();
|
|
2843
|
-
switch (tag >>> 3) {
|
|
2844
|
-
case 1:
|
|
2845
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
2846
|
-
break;
|
|
2847
|
-
default:
|
|
2848
|
-
reader.skipType(tag & 7);
|
|
2849
|
-
break;
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
return message;
|
|
2853
|
-
},
|
|
2854
|
-
fromJSON(object) {
|
|
2855
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllRequest);
|
|
2856
|
-
message.pagination =
|
|
2857
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2858
|
-
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
2859
|
-
: undefined;
|
|
2860
|
-
return message;
|
|
2861
|
-
},
|
|
2862
|
-
toJSON(message) {
|
|
2863
|
-
const obj = {};
|
|
2864
|
-
message.pagination !== undefined &&
|
|
2865
|
-
(obj.pagination = message.pagination
|
|
2866
|
-
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
2867
|
-
: undefined);
|
|
2868
|
-
return obj;
|
|
2869
|
-
},
|
|
2870
|
-
fromPartial(object) {
|
|
2871
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllRequest);
|
|
2872
|
-
message.pagination =
|
|
2873
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2874
|
-
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
2875
|
-
: undefined;
|
|
2876
|
-
return message;
|
|
2877
|
-
},
|
|
2878
|
-
};
|
|
2879
|
-
const baseQueryCDPLiquidationsAllResponse = {};
|
|
2880
|
-
exports.QueryCDPLiquidationsAllResponse = {
|
|
2881
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2882
|
-
for (const v of message.cdpLiquidationsAll) {
|
|
2883
|
-
cdp_liquidations_1.CDPLiquidations.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2884
|
-
}
|
|
2885
|
-
if (message.pagination !== undefined) {
|
|
2886
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2887
|
-
}
|
|
2888
|
-
return writer;
|
|
2889
|
-
},
|
|
2890
|
-
decode(input, length) {
|
|
2891
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2892
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2893
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllResponse);
|
|
2894
|
-
message.cdpLiquidationsAll = [];
|
|
2895
|
-
while (reader.pos < end) {
|
|
2896
|
-
const tag = reader.uint32();
|
|
2897
|
-
switch (tag >>> 3) {
|
|
2898
|
-
case 1:
|
|
2899
|
-
message.cdpLiquidationsAll.push(cdp_liquidations_1.CDPLiquidations.decode(reader, reader.uint32()));
|
|
2900
|
-
break;
|
|
2901
|
-
case 2:
|
|
2902
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
2903
|
-
break;
|
|
2904
|
-
default:
|
|
2905
|
-
reader.skipType(tag & 7);
|
|
2906
|
-
break;
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
return message;
|
|
2910
|
-
},
|
|
2911
|
-
fromJSON(object) {
|
|
2912
|
-
var _a;
|
|
2913
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllResponse);
|
|
2914
|
-
message.cdpLiquidationsAll = ((_a = object.cdpLiquidationsAll) !== null && _a !== void 0 ? _a : []).map((e) => cdp_liquidations_1.CDPLiquidations.fromJSON(e));
|
|
2915
|
-
message.pagination =
|
|
2916
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2917
|
-
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
2918
|
-
: undefined;
|
|
2919
|
-
return message;
|
|
2920
|
-
},
|
|
2921
|
-
toJSON(message) {
|
|
2922
|
-
const obj = {};
|
|
2923
|
-
if (message.cdpLiquidationsAll) {
|
|
2924
|
-
obj.cdpLiquidationsAll = message.cdpLiquidationsAll.map((e) => e ? cdp_liquidations_1.CDPLiquidations.toJSON(e) : undefined);
|
|
2925
|
-
}
|
|
2926
|
-
else {
|
|
2927
|
-
obj.cdpLiquidationsAll = [];
|
|
2928
|
-
}
|
|
2929
|
-
message.pagination !== undefined &&
|
|
2930
|
-
(obj.pagination = message.pagination
|
|
2931
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
2932
|
-
: undefined);
|
|
2933
|
-
return obj;
|
|
2934
|
-
},
|
|
2935
|
-
fromPartial(object) {
|
|
2936
|
-
var _a;
|
|
2937
|
-
const message = Object.assign({}, baseQueryCDPLiquidationsAllResponse);
|
|
2938
|
-
message.cdpLiquidationsAll = ((_a = object.cdpLiquidationsAll) !== null && _a !== void 0 ? _a : []).map((e) => cdp_liquidations_1.CDPLiquidations.fromPartial(e));
|
|
2939
|
-
message.pagination =
|
|
2940
|
-
object.pagination !== undefined && object.pagination !== null
|
|
2941
|
-
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
2942
|
-
: undefined;
|
|
2943
|
-
return message;
|
|
2944
|
-
},
|
|
2945
|
-
};
|
|
2946
|
-
class QueryClientImpl {
|
|
2947
|
-
constructor(rpc) {
|
|
2948
|
-
this.rpc = rpc;
|
|
2949
|
-
this.Params = this.Params.bind(this);
|
|
2950
|
-
this.RateStrategy = this.RateStrategy.bind(this);
|
|
2951
|
-
this.RateStrategyAll = this.RateStrategyAll.bind(this);
|
|
2952
|
-
this.AccountData = this.AccountData.bind(this);
|
|
2953
|
-
this.AccountCollateral = this.AccountCollateral.bind(this);
|
|
2954
|
-
this.AccountCollateralAll = this.AccountCollateralAll.bind(this);
|
|
2955
|
-
this.AccountDebt = this.AccountDebt.bind(this);
|
|
2956
|
-
this.AccountDebtAll = this.AccountDebtAll.bind(this);
|
|
2957
|
-
this.AccountStablecoin = this.AccountStablecoin.bind(this);
|
|
2958
|
-
this.Asset = this.Asset.bind(this);
|
|
2959
|
-
this.AssetAll = this.AssetAll.bind(this);
|
|
2960
|
-
this.TokenDebt = this.TokenDebt.bind(this);
|
|
2961
|
-
this.TokenDebtAll = this.TokenDebtAll.bind(this);
|
|
2962
|
-
this.StablecoinDebt = this.StablecoinDebt.bind(this);
|
|
2963
|
-
this.RewardSchemesAll = this.RewardSchemesAll.bind(this);
|
|
2964
|
-
this.RewardDebts = this.RewardDebts.bind(this);
|
|
2965
|
-
this.RewardDebtsAll = this.RewardDebtsAll.bind(this);
|
|
2966
|
-
this.PositionsAll = this.PositionsAll.bind(this);
|
|
2967
|
-
this.Position = this.Position.bind(this);
|
|
2968
|
-
this.EMode = this.EMode.bind(this);
|
|
2969
|
-
this.EModeAll = this.EModeAll.bind(this);
|
|
2970
|
-
this.AccountEMode = this.AccountEMode.bind(this);
|
|
2971
|
-
this.StablecoinInterest = this.StablecoinInterest.bind(this);
|
|
2972
|
-
this.CDPLiquidationsAll = this.CDPLiquidationsAll.bind(this);
|
|
2973
|
-
}
|
|
2974
|
-
Params(request) {
|
|
2975
|
-
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
2976
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "Params", data);
|
|
2977
|
-
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
2978
|
-
}
|
|
2979
|
-
RateStrategy(request) {
|
|
2980
|
-
const data = exports.QueryRateStrategyRequest.encode(request).finish();
|
|
2981
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "RateStrategy", data);
|
|
2982
|
-
return promise.then((data) => exports.QueryRateStrategyResponse.decode(new minimal_1.default.Reader(data)));
|
|
2983
|
-
}
|
|
2984
|
-
RateStrategyAll(request) {
|
|
2985
|
-
const data = exports.QueryRateStrategyAllRequest.encode(request).finish();
|
|
2986
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "RateStrategyAll", data);
|
|
2987
|
-
return promise.then((data) => exports.QueryRateStrategyAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
2988
|
-
}
|
|
2989
|
-
AccountData(request) {
|
|
2990
|
-
const data = exports.QueryAccountDataRequest.encode(request).finish();
|
|
2991
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountData", data);
|
|
2992
|
-
return promise.then((data) => exports.QueryAccountDataResponse.decode(new minimal_1.default.Reader(data)));
|
|
2993
|
-
}
|
|
2994
|
-
AccountCollateral(request) {
|
|
2995
|
-
const data = exports.QueryAccountCollateralRequest.encode(request).finish();
|
|
2996
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountCollateral", data);
|
|
2997
|
-
return promise.then((data) => exports.QueryAccountCollateralResponse.decode(new minimal_1.default.Reader(data)));
|
|
2998
|
-
}
|
|
2999
|
-
AccountCollateralAll(request) {
|
|
3000
|
-
const data = exports.QueryAccountCollateralAllRequest.encode(request).finish();
|
|
3001
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountCollateralAll", data);
|
|
3002
|
-
return promise.then((data) => exports.QueryAccountCollateralAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3003
|
-
}
|
|
3004
|
-
AccountDebt(request) {
|
|
3005
|
-
const data = exports.QueryAccountDebtRequest.encode(request).finish();
|
|
3006
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountDebt", data);
|
|
3007
|
-
return promise.then((data) => exports.QueryAccountDebtResponse.decode(new minimal_1.default.Reader(data)));
|
|
3008
|
-
}
|
|
3009
|
-
AccountDebtAll(request) {
|
|
3010
|
-
const data = exports.QueryAccountDebtAllRequest.encode(request).finish();
|
|
3011
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountDebtAll", data);
|
|
3012
|
-
return promise.then((data) => exports.QueryAccountDebtAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3013
|
-
}
|
|
3014
|
-
AccountStablecoin(request) {
|
|
3015
|
-
const data = exports.QueryAccountStablecoinRequest.encode(request).finish();
|
|
3016
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountStablecoin", data);
|
|
3017
|
-
return promise.then((data) => exports.QueryAccountStablecoinResponse.decode(new minimal_1.default.Reader(data)));
|
|
3018
|
-
}
|
|
3019
|
-
Asset(request) {
|
|
3020
|
-
const data = exports.QueryAssetRequest.encode(request).finish();
|
|
3021
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "Asset", data);
|
|
3022
|
-
return promise.then((data) => exports.QueryAssetResponse.decode(new minimal_1.default.Reader(data)));
|
|
3023
|
-
}
|
|
3024
|
-
AssetAll(request) {
|
|
3025
|
-
const data = exports.QueryAssetAllRequest.encode(request).finish();
|
|
3026
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AssetAll", data);
|
|
3027
|
-
return promise.then((data) => exports.QueryAssetAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3028
|
-
}
|
|
3029
|
-
TokenDebt(request) {
|
|
3030
|
-
const data = exports.QueryTokenDebtRequest.encode(request).finish();
|
|
3031
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "TokenDebt", data);
|
|
3032
|
-
return promise.then((data) => exports.QueryTokenDebtResponse.decode(new minimal_1.default.Reader(data)));
|
|
3033
|
-
}
|
|
3034
|
-
TokenDebtAll(request) {
|
|
3035
|
-
const data = exports.QueryTokenDebtAllRequest.encode(request).finish();
|
|
3036
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "TokenDebtAll", data);
|
|
3037
|
-
return promise.then((data) => exports.QueryTokenDebtAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3038
|
-
}
|
|
3039
|
-
StablecoinDebt(request) {
|
|
3040
|
-
const data = exports.QueryStablecoinDebtRequest.encode(request).finish();
|
|
3041
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "StablecoinDebt", data);
|
|
3042
|
-
return promise.then((data) => exports.QueryStablecoinDebtResponse.decode(new minimal_1.default.Reader(data)));
|
|
3043
|
-
}
|
|
3044
|
-
RewardSchemesAll(request) {
|
|
3045
|
-
const data = exports.QueryRewardSchemesAllRequest.encode(request).finish();
|
|
3046
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "RewardSchemesAll", data);
|
|
3047
|
-
return promise.then((data) => exports.QueryRewardSchemesAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3048
|
-
}
|
|
3049
|
-
RewardDebts(request) {
|
|
3050
|
-
const data = exports.QueryRewardDebtsRequest.encode(request).finish();
|
|
3051
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "RewardDebts", data);
|
|
3052
|
-
return promise.then((data) => exports.QueryRewardDebtsResponse.decode(new minimal_1.default.Reader(data)));
|
|
3053
|
-
}
|
|
3054
|
-
RewardDebtsAll(request) {
|
|
3055
|
-
const data = exports.QueryRewardDebtsAllRequest.encode(request).finish();
|
|
3056
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "RewardDebtsAll", data);
|
|
3057
|
-
return promise.then((data) => exports.QueryRewardDebtsResponse.decode(new minimal_1.default.Reader(data)));
|
|
3058
|
-
}
|
|
3059
|
-
PositionsAll(request) {
|
|
3060
|
-
const data = exports.QueryCdpPositionsRequest.encode(request).finish();
|
|
3061
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "PositionsAll", data);
|
|
3062
|
-
return promise.then((data) => exports.QueryCdpPositionsResponse.decode(new minimal_1.default.Reader(data)));
|
|
3063
|
-
}
|
|
3064
|
-
Position(request) {
|
|
3065
|
-
const data = exports.QueryCdpPositionRequest.encode(request).finish();
|
|
3066
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "Position", data);
|
|
3067
|
-
return promise.then((data) => exports.QueryCdpPositionResponse.decode(new minimal_1.default.Reader(data)));
|
|
3068
|
-
}
|
|
3069
|
-
EMode(request) {
|
|
3070
|
-
const data = exports.QueryEModeRequest.encode(request).finish();
|
|
3071
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "EMode", data);
|
|
3072
|
-
return promise.then((data) => exports.QueryEModeResponse.decode(new minimal_1.default.Reader(data)));
|
|
3073
|
-
}
|
|
3074
|
-
EModeAll(request) {
|
|
3075
|
-
const data = exports.QueryEModeAllRequest.encode(request).finish();
|
|
3076
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "EModeAll", data);
|
|
3077
|
-
return promise.then((data) => exports.QueryEModeAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3078
|
-
}
|
|
3079
|
-
AccountEMode(request) {
|
|
3080
|
-
const data = exports.QueryAccountEModeRequest.encode(request).finish();
|
|
3081
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "AccountEMode", data);
|
|
3082
|
-
return promise.then((data) => exports.QueryAccountEModeResponse.decode(new minimal_1.default.Reader(data)));
|
|
3083
|
-
}
|
|
3084
|
-
StablecoinInterest(request) {
|
|
3085
|
-
const data = exports.QueryStablecoinInterestRequest.encode(request).finish();
|
|
3086
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "StablecoinInterest", data);
|
|
3087
|
-
return promise.then((data) => exports.QueryStablecoinInterestResponse.decode(new minimal_1.default.Reader(data)));
|
|
3088
|
-
}
|
|
3089
|
-
CDPLiquidationsAll(request) {
|
|
3090
|
-
const data = exports.QueryCDPLiquidationsAllRequest.encode(request).finish();
|
|
3091
|
-
const promise = this.rpc.request("Switcheo.carbon.cdp.Query", "CDPLiquidationsAll", data);
|
|
3092
|
-
return promise.then((data) => exports.QueryCDPLiquidationsAllResponse.decode(new minimal_1.default.Reader(data)));
|
|
3093
|
-
}
|
|
3094
|
-
}
|
|
3095
|
-
exports.QueryClientImpl = QueryClientImpl;
|
|
3096
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
3097
|
-
minimal_1.default.util.Long = long_1.default;
|
|
3098
|
-
minimal_1.default.configure();
|
|
3099
|
-
}
|