carbon-js-sdk 0.11.8-beta.2 → 0.11.9
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/lib/codec/Switcheo/carbon/ccm/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/ccm/export.js +4 -3
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +1 -31
- package/lib/codec/Switcheo/carbon/ccm/genesis.js +3 -169
- package/lib/codec/Switcheo/carbon/ccm/params.d.ts +10 -8
- package/lib/codec/Switcheo/carbon/ccm/params.js +38 -9
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +38 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.js +206 -1
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/export.js +3 -5
- package/lib/codec/Switcheo/carbon/cdp/query.d.ts +0 -22
- package/lib/codec/Switcheo/carbon/cdp/query.js +2 -99
- package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +0 -1
- package/lib/codec/Switcheo/carbon/headersync/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/headersync/export.js +3 -1
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +5 -2
- package/lib/codec/Switcheo/carbon/headersync/query.d.ts +23 -1
- package/lib/codec/Switcheo/carbon/headersync/query.js +107 -1
- package/lib/codec/Switcheo/carbon/insurance/export.d.ts +2 -3
- package/lib/codec/Switcheo/carbon/insurance/export.js +1 -8
- package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +4 -10
- package/lib/codec/Switcheo/carbon/insurance/genesis.js +4 -21
- package/lib/codec/Switcheo/carbon/insurance/query.d.ts +0 -22
- package/lib/codec/Switcheo/carbon/insurance/query.js +1 -88
- package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +0 -25
- package/lib/codec/Switcheo/carbon/insurance/tx.js +1 -103
- package/lib/codec/Switcheo/carbon/market/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/market/event.js +13 -11
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +1 -3
- package/lib/codec/Switcheo/carbon/oracle/tx.js +10 -10
- package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +4 -4
- package/lib/codec/cosmos/consensus/v1/export.d.ts +2 -0
- package/lib/codec/cosmos/consensus/v1/export.js +9 -0
- package/lib/codec/index.d.ts +3 -2
- package/lib/codec/index.js +68 -72
- package/lib/constant/ibc.js +0 -6
- package/lib/constant/network.d.ts +1 -1
- package/lib/constant/network.js +2 -2
- package/lib/modules/xchain.d.ts +1 -0
- package/lib/modules/xchain.js +16 -0
- package/lib/provider/amino/types/order.js +2 -2
- package/lib/provider/amino/types/signless.js +9 -13
- package/lib/provider/keplr/KeplrAccount.js +11 -10
- package/lib/provider/leap/LeapAccount.js +50 -2
- package/lib/provider/leap/types.d.ts +59 -0
- package/lib/provider/leap/types.js +11 -0
- package/lib/provider/rainbowKit/RainbowKitAccount.d.ts +8 -3
- package/lib/util/ethermint.d.ts +1 -0
- package/lib/util/ethermint.js +45 -1
- package/lib/util/signless.d.ts +1 -1
- package/lib/util/signless.js +1 -1
- package/lib/util/tx.d.ts +3 -2
- package/package.json +2 -2
- package/lib/codec/Switcheo/carbon/bridge/bridge.d.ts +0 -108
- package/lib/codec/Switcheo/carbon/bridge/bridge.js +0 -632
- package/lib/codec/Switcheo/carbon/bridge/event.d.ts +0 -187
- package/lib/codec/Switcheo/carbon/bridge/event.js +0 -1172
- package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +0 -20
- package/lib/codec/Switcheo/carbon/bridge/genesis.js +0 -63
- package/lib/codec/Switcheo/carbon/bridge/params.d.ts +0 -28
- package/lib/codec/Switcheo/carbon/bridge/params.js +0 -81
- package/lib/codec/Switcheo/carbon/bridge/query.d.ts +0 -177
- package/lib/codec/Switcheo/carbon/bridge/query.js +0 -639
- package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +0 -528
- package/lib/codec/Switcheo/carbon/bridge/tx.js +0 -2558
- package/lib/codec/Switcheo/carbon/insurance/params.d.ts +0 -29
- package/lib/codec/Switcheo/carbon/insurance/params.js +0 -113
- 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/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/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/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/genesis.d.ts +0 -21
- package/lib/codec/marketstats/genesis.js +0 -63
- 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/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/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/vault.d.ts +0 -56
- package/lib/modules/vault.js +0 -128
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GenesisState_CreatedTxDetailsEntry, GenesisState_ReceivedTxIdsEntry, GenesisState_DenomCreatorsEntry, GenesisState_ZionCreatedTxDetailsEntry
|
|
1
|
+
export { GenesisState_CreatedTxDetailsEntry, GenesisState_ReceivedTxIdsEntry, GenesisState_DenomCreatorsEntry, GenesisState_ZionCreatedTxDetailsEntry } from "./genesis";
|
|
2
2
|
export { Params, ParamsToUpdate } from "./params";
|
|
3
3
|
export { QueryParamsRequest, QueryParamsResponse, QueryCheckModuleContractRequest, QueryCheckModuleContractResponse } from "./query";
|
|
4
|
-
export { MsgProcessCrossChainTx, MsgProcessCrossChainTxResponse, MsgCreateEmitEvent, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
4
|
+
export { MsgProcessCrossChainTx, MsgProcessZionCrossChainTx, MsgProcessCrossChainTxResponse, MsgProcessZionCrossChainTxResponse, MsgCreateEmitEvent, MsgToggleEmitZionEvents, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgCreateEmitEvent = exports.
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgToggleEmitZionEvents = exports.MsgCreateEmitEvent = exports.MsgProcessZionCrossChainTxResponse = exports.MsgProcessCrossChainTxResponse = exports.MsgProcessZionCrossChainTx = exports.MsgProcessCrossChainTx = exports.QueryCheckModuleContractResponse = exports.QueryCheckModuleContractRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.ParamsToUpdate = exports.Params = exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreatorsEntry = exports.GenesisState_ReceivedTxIdsEntry = exports.GenesisState_CreatedTxDetailsEntry = void 0;
|
|
4
4
|
var genesis_1 = require("./genesis");
|
|
5
5
|
Object.defineProperty(exports, "GenesisState_CreatedTxDetailsEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_CreatedTxDetailsEntry; } });
|
|
6
6
|
Object.defineProperty(exports, "GenesisState_ReceivedTxIdsEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_ReceivedTxIdsEntry; } });
|
|
7
7
|
Object.defineProperty(exports, "GenesisState_DenomCreatorsEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_DenomCreatorsEntry; } });
|
|
8
8
|
Object.defineProperty(exports, "GenesisState_ZionCreatedTxDetailsEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_ZionCreatedTxDetailsEntry; } });
|
|
9
|
-
Object.defineProperty(exports, "GenesisState_ZionDoneTxEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_ZionDoneTxEntry; } });
|
|
10
|
-
Object.defineProperty(exports, "GenesisState_ZionDenomToCreatorEntry", { enumerable: true, get: function () { return genesis_1.GenesisState_ZionDenomToCreatorEntry; } });
|
|
11
9
|
var params_1 = require("./params");
|
|
12
10
|
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return params_1.Params; } });
|
|
13
11
|
Object.defineProperty(exports, "ParamsToUpdate", { enumerable: true, get: function () { return params_1.ParamsToUpdate; } });
|
|
@@ -18,7 +16,10 @@ Object.defineProperty(exports, "QueryCheckModuleContractRequest", { enumerable:
|
|
|
18
16
|
Object.defineProperty(exports, "QueryCheckModuleContractResponse", { enumerable: true, get: function () { return query_1.QueryCheckModuleContractResponse; } });
|
|
19
17
|
var tx_1 = require("./tx");
|
|
20
18
|
Object.defineProperty(exports, "MsgProcessCrossChainTx", { enumerable: true, get: function () { return tx_1.MsgProcessCrossChainTx; } });
|
|
19
|
+
Object.defineProperty(exports, "MsgProcessZionCrossChainTx", { enumerable: true, get: function () { return tx_1.MsgProcessZionCrossChainTx; } });
|
|
21
20
|
Object.defineProperty(exports, "MsgProcessCrossChainTxResponse", { enumerable: true, get: function () { return tx_1.MsgProcessCrossChainTxResponse; } });
|
|
21
|
+
Object.defineProperty(exports, "MsgProcessZionCrossChainTxResponse", { enumerable: true, get: function () { return tx_1.MsgProcessZionCrossChainTxResponse; } });
|
|
22
22
|
Object.defineProperty(exports, "MsgCreateEmitEvent", { enumerable: true, get: function () { return tx_1.MsgCreateEmitEvent; } });
|
|
23
|
+
Object.defineProperty(exports, "MsgToggleEmitZionEvents", { enumerable: true, get: function () { return tx_1.MsgToggleEmitZionEvents; } });
|
|
23
24
|
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
24
25
|
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -26,18 +26,10 @@ export interface GenesisState {
|
|
|
26
26
|
};
|
|
27
27
|
/** params defines all the paramaters of the module. */
|
|
28
28
|
params?: Params;
|
|
29
|
-
/**
|
|
29
|
+
/** Details of cross chain tx generated by this chain. */
|
|
30
30
|
zionCreatedTxDetails: {
|
|
31
31
|
[key: string]: Uint8Array;
|
|
32
32
|
};
|
|
33
|
-
/** Deprecated: Used for Geneis import and export */
|
|
34
|
-
zionDoneTx: {
|
|
35
|
-
[key: string]: Uint8Array;
|
|
36
|
-
};
|
|
37
|
-
/** Deprecated: Used for Geneis import and export */
|
|
38
|
-
zionDenomToCreator: {
|
|
39
|
-
[key: string]: Uint8Array;
|
|
40
|
-
};
|
|
41
33
|
}
|
|
42
34
|
export interface GenesisState_CreatedTxDetailsEntry {
|
|
43
35
|
key: string;
|
|
@@ -55,14 +47,6 @@ export interface GenesisState_ZionCreatedTxDetailsEntry {
|
|
|
55
47
|
key: string;
|
|
56
48
|
value: Uint8Array;
|
|
57
49
|
}
|
|
58
|
-
export interface GenesisState_ZionDoneTxEntry {
|
|
59
|
-
key: string;
|
|
60
|
-
value: Uint8Array;
|
|
61
|
-
}
|
|
62
|
-
export interface GenesisState_ZionDenomToCreatorEntry {
|
|
63
|
-
key: string;
|
|
64
|
-
value: Uint8Array;
|
|
65
|
-
}
|
|
66
50
|
export declare const GenesisState: {
|
|
67
51
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
68
52
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
@@ -98,20 +82,6 @@ export declare const GenesisState_ZionCreatedTxDetailsEntry: {
|
|
|
98
82
|
toJSON(message: GenesisState_ZionCreatedTxDetailsEntry): unknown;
|
|
99
83
|
fromPartial(object: DeepPartial<GenesisState_ZionCreatedTxDetailsEntry>): GenesisState_ZionCreatedTxDetailsEntry;
|
|
100
84
|
};
|
|
101
|
-
export declare const GenesisState_ZionDoneTxEntry: {
|
|
102
|
-
encode(message: GenesisState_ZionDoneTxEntry, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState_ZionDoneTxEntry;
|
|
104
|
-
fromJSON(object: any): GenesisState_ZionDoneTxEntry;
|
|
105
|
-
toJSON(message: GenesisState_ZionDoneTxEntry): unknown;
|
|
106
|
-
fromPartial(object: DeepPartial<GenesisState_ZionDoneTxEntry>): GenesisState_ZionDoneTxEntry;
|
|
107
|
-
};
|
|
108
|
-
export declare const GenesisState_ZionDenomToCreatorEntry: {
|
|
109
|
-
encode(message: GenesisState_ZionDenomToCreatorEntry, writer?: _m0.Writer): _m0.Writer;
|
|
110
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState_ZionDenomToCreatorEntry;
|
|
111
|
-
fromJSON(object: any): GenesisState_ZionDenomToCreatorEntry;
|
|
112
|
-
toJSON(message: GenesisState_ZionDenomToCreatorEntry): unknown;
|
|
113
|
-
fromPartial(object: DeepPartial<GenesisState_ZionDenomToCreatorEntry>): GenesisState_ZionDenomToCreatorEntry;
|
|
114
|
-
};
|
|
115
85
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
116
86
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
117
87
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreatorsEntry = exports.GenesisState_ReceivedTxIdsEntry = exports.GenesisState_CreatedTxDetailsEntry = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -30,12 +30,6 @@ exports.GenesisState = {
|
|
|
30
30
|
Object.entries(message.zionCreatedTxDetails).forEach(([key, value]) => {
|
|
31
31
|
exports.GenesisState_ZionCreatedTxDetailsEntry.encode({ key: key, value }, writer.uint32(50).fork()).ldelim();
|
|
32
32
|
});
|
|
33
|
-
Object.entries(message.zionDoneTx).forEach(([key, value]) => {
|
|
34
|
-
exports.GenesisState_ZionDoneTxEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
|
|
35
|
-
});
|
|
36
|
-
Object.entries(message.zionDenomToCreator).forEach(([key, value]) => {
|
|
37
|
-
exports.GenesisState_ZionDenomToCreatorEntry.encode({ key: key, value }, writer.uint32(66).fork()).ldelim();
|
|
38
|
-
});
|
|
39
33
|
return writer;
|
|
40
34
|
},
|
|
41
35
|
decode(input, length) {
|
|
@@ -46,8 +40,6 @@ exports.GenesisState = {
|
|
|
46
40
|
message.receivedTxIds = {};
|
|
47
41
|
message.denomCreators = {};
|
|
48
42
|
message.zionCreatedTxDetails = {};
|
|
49
|
-
message.zionDoneTx = {};
|
|
50
|
-
message.zionDenomToCreator = {};
|
|
51
43
|
while (reader.pos < end) {
|
|
52
44
|
const tag = reader.uint32();
|
|
53
45
|
switch (tag >>> 3) {
|
|
@@ -81,18 +73,6 @@ exports.GenesisState = {
|
|
|
81
73
|
message.zionCreatedTxDetails[entry6.key] = entry6.value;
|
|
82
74
|
}
|
|
83
75
|
break;
|
|
84
|
-
case 7:
|
|
85
|
-
const entry7 = exports.GenesisState_ZionDoneTxEntry.decode(reader, reader.uint32());
|
|
86
|
-
if (entry7.value !== undefined) {
|
|
87
|
-
message.zionDoneTx[entry7.key] = entry7.value;
|
|
88
|
-
}
|
|
89
|
-
break;
|
|
90
|
-
case 8:
|
|
91
|
-
const entry8 = exports.GenesisState_ZionDenomToCreatorEntry.decode(reader, reader.uint32());
|
|
92
|
-
if (entry8.value !== undefined) {
|
|
93
|
-
message.zionDenomToCreator[entry8.key] = entry8.value;
|
|
94
|
-
}
|
|
95
|
-
break;
|
|
96
76
|
default:
|
|
97
77
|
reader.skipType(tag & 7);
|
|
98
78
|
break;
|
|
@@ -101,7 +81,7 @@ exports.GenesisState = {
|
|
|
101
81
|
return message;
|
|
102
82
|
},
|
|
103
83
|
fromJSON(object) {
|
|
104
|
-
var _a, _b, _c, _d
|
|
84
|
+
var _a, _b, _c, _d;
|
|
105
85
|
const message = Object.assign({}, baseGenesisState);
|
|
106
86
|
message.createdTxCount =
|
|
107
87
|
object.createdTxCount !== undefined && object.createdTxCount !== null
|
|
@@ -127,14 +107,6 @@ exports.GenesisState = {
|
|
|
127
107
|
acc[key] = bytesFromBase64(value);
|
|
128
108
|
return acc;
|
|
129
109
|
}, {});
|
|
130
|
-
message.zionDoneTx = Object.entries((_e = object.zionDoneTx) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
131
|
-
acc[key] = bytesFromBase64(value);
|
|
132
|
-
return acc;
|
|
133
|
-
}, {});
|
|
134
|
-
message.zionDenomToCreator = Object.entries((_f = object.zionDenomToCreator) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
135
|
-
acc[key] = bytesFromBase64(value);
|
|
136
|
-
return acc;
|
|
137
|
-
}, {});
|
|
138
110
|
return message;
|
|
139
111
|
},
|
|
140
112
|
toJSON(message) {
|
|
@@ -167,22 +139,10 @@ exports.GenesisState = {
|
|
|
167
139
|
obj.zionCreatedTxDetails[k] = base64FromBytes(v);
|
|
168
140
|
});
|
|
169
141
|
}
|
|
170
|
-
obj.zionDoneTx = {};
|
|
171
|
-
if (message.zionDoneTx) {
|
|
172
|
-
Object.entries(message.zionDoneTx).forEach(([k, v]) => {
|
|
173
|
-
obj.zionDoneTx[k] = base64FromBytes(v);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
obj.zionDenomToCreator = {};
|
|
177
|
-
if (message.zionDenomToCreator) {
|
|
178
|
-
Object.entries(message.zionDenomToCreator).forEach(([k, v]) => {
|
|
179
|
-
obj.zionDenomToCreator[k] = base64FromBytes(v);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
142
|
return obj;
|
|
183
143
|
},
|
|
184
144
|
fromPartial(object) {
|
|
185
|
-
var _a, _b, _c, _d, _e
|
|
145
|
+
var _a, _b, _c, _d, _e;
|
|
186
146
|
const message = Object.assign({}, baseGenesisState);
|
|
187
147
|
message.createdTxCount = (_a = object.createdTxCount) !== null && _a !== void 0 ? _a : "";
|
|
188
148
|
message.createdTxDetails = Object.entries((_b = object.createdTxDetails) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
|
|
@@ -213,18 +173,6 @@ exports.GenesisState = {
|
|
|
213
173
|
}
|
|
214
174
|
return acc;
|
|
215
175
|
}, {});
|
|
216
|
-
message.zionDoneTx = Object.entries((_f = object.zionDoneTx) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
217
|
-
if (value !== undefined) {
|
|
218
|
-
acc[key] = value;
|
|
219
|
-
}
|
|
220
|
-
return acc;
|
|
221
|
-
}, {});
|
|
222
|
-
message.zionDenomToCreator = Object.entries((_g = object.zionDenomToCreator) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
223
|
-
if (value !== undefined) {
|
|
224
|
-
acc[key] = value;
|
|
225
|
-
}
|
|
226
|
-
return acc;
|
|
227
|
-
}, {});
|
|
228
176
|
return message;
|
|
229
177
|
},
|
|
230
178
|
};
|
|
@@ -454,120 +402,6 @@ exports.GenesisState_ZionCreatedTxDetailsEntry = {
|
|
|
454
402
|
return message;
|
|
455
403
|
},
|
|
456
404
|
};
|
|
457
|
-
const baseGenesisState_ZionDoneTxEntry = { key: "" };
|
|
458
|
-
exports.GenesisState_ZionDoneTxEntry = {
|
|
459
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
460
|
-
if (message.key !== "") {
|
|
461
|
-
writer.uint32(10).string(message.key);
|
|
462
|
-
}
|
|
463
|
-
if (message.value.length !== 0) {
|
|
464
|
-
writer.uint32(18).bytes(message.value);
|
|
465
|
-
}
|
|
466
|
-
return writer;
|
|
467
|
-
},
|
|
468
|
-
decode(input, length) {
|
|
469
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
470
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
471
|
-
const message = Object.assign({}, baseGenesisState_ZionDoneTxEntry);
|
|
472
|
-
message.value = new Uint8Array();
|
|
473
|
-
while (reader.pos < end) {
|
|
474
|
-
const tag = reader.uint32();
|
|
475
|
-
switch (tag >>> 3) {
|
|
476
|
-
case 1:
|
|
477
|
-
message.key = reader.string();
|
|
478
|
-
break;
|
|
479
|
-
case 2:
|
|
480
|
-
message.value = reader.bytes();
|
|
481
|
-
break;
|
|
482
|
-
default:
|
|
483
|
-
reader.skipType(tag & 7);
|
|
484
|
-
break;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
return message;
|
|
488
|
-
},
|
|
489
|
-
fromJSON(object) {
|
|
490
|
-
const message = Object.assign({}, baseGenesisState_ZionDoneTxEntry);
|
|
491
|
-
message.key =
|
|
492
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
493
|
-
message.value =
|
|
494
|
-
object.value !== undefined && object.value !== null
|
|
495
|
-
? bytesFromBase64(object.value)
|
|
496
|
-
: new Uint8Array();
|
|
497
|
-
return message;
|
|
498
|
-
},
|
|
499
|
-
toJSON(message) {
|
|
500
|
-
const obj = {};
|
|
501
|
-
message.key !== undefined && (obj.key = message.key);
|
|
502
|
-
message.value !== undefined &&
|
|
503
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
504
|
-
return obj;
|
|
505
|
-
},
|
|
506
|
-
fromPartial(object) {
|
|
507
|
-
var _a, _b;
|
|
508
|
-
const message = Object.assign({}, baseGenesisState_ZionDoneTxEntry);
|
|
509
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
510
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
511
|
-
return message;
|
|
512
|
-
},
|
|
513
|
-
};
|
|
514
|
-
const baseGenesisState_ZionDenomToCreatorEntry = { key: "" };
|
|
515
|
-
exports.GenesisState_ZionDenomToCreatorEntry = {
|
|
516
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
517
|
-
if (message.key !== "") {
|
|
518
|
-
writer.uint32(10).string(message.key);
|
|
519
|
-
}
|
|
520
|
-
if (message.value.length !== 0) {
|
|
521
|
-
writer.uint32(18).bytes(message.value);
|
|
522
|
-
}
|
|
523
|
-
return writer;
|
|
524
|
-
},
|
|
525
|
-
decode(input, length) {
|
|
526
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
527
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
|
-
const message = Object.assign({}, baseGenesisState_ZionDenomToCreatorEntry);
|
|
529
|
-
message.value = new Uint8Array();
|
|
530
|
-
while (reader.pos < end) {
|
|
531
|
-
const tag = reader.uint32();
|
|
532
|
-
switch (tag >>> 3) {
|
|
533
|
-
case 1:
|
|
534
|
-
message.key = reader.string();
|
|
535
|
-
break;
|
|
536
|
-
case 2:
|
|
537
|
-
message.value = reader.bytes();
|
|
538
|
-
break;
|
|
539
|
-
default:
|
|
540
|
-
reader.skipType(tag & 7);
|
|
541
|
-
break;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
return message;
|
|
545
|
-
},
|
|
546
|
-
fromJSON(object) {
|
|
547
|
-
const message = Object.assign({}, baseGenesisState_ZionDenomToCreatorEntry);
|
|
548
|
-
message.key =
|
|
549
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
550
|
-
message.value =
|
|
551
|
-
object.value !== undefined && object.value !== null
|
|
552
|
-
? bytesFromBase64(object.value)
|
|
553
|
-
: new Uint8Array();
|
|
554
|
-
return message;
|
|
555
|
-
},
|
|
556
|
-
toJSON(message) {
|
|
557
|
-
const obj = {};
|
|
558
|
-
message.key !== undefined && (obj.key = message.key);
|
|
559
|
-
message.value !== undefined &&
|
|
560
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
561
|
-
return obj;
|
|
562
|
-
},
|
|
563
|
-
fromPartial(object) {
|
|
564
|
-
var _a, _b;
|
|
565
|
-
const message = Object.assign({}, baseGenesisState_ZionDenomToCreatorEntry);
|
|
566
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
567
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
568
|
-
return message;
|
|
569
|
-
},
|
|
570
|
-
};
|
|
571
405
|
var globalThis = (() => {
|
|
572
406
|
if (typeof globalThis !== "undefined")
|
|
573
407
|
return globalThis;
|
|
@@ -3,23 +3,25 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.ccm";
|
|
4
4
|
/** Params defines the parameters for the ccm module. */
|
|
5
5
|
export interface Params {
|
|
6
|
+
emitZionEvents: boolean;
|
|
6
7
|
}
|
|
7
8
|
/** ParamsToUpdate allows optional fields for Params. */
|
|
8
9
|
export interface ParamsToUpdate {
|
|
10
|
+
emitZionEvents?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const Params: {
|
|
11
|
-
encode(
|
|
13
|
+
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
12
14
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
|
|
13
|
-
fromJSON(
|
|
14
|
-
toJSON(
|
|
15
|
-
fromPartial(
|
|
15
|
+
fromJSON(object: any): Params;
|
|
16
|
+
toJSON(message: Params): unknown;
|
|
17
|
+
fromPartial(object: DeepPartial<Params>): Params;
|
|
16
18
|
};
|
|
17
19
|
export declare const ParamsToUpdate: {
|
|
18
|
-
encode(
|
|
20
|
+
encode(message: ParamsToUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
19
21
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ParamsToUpdate;
|
|
20
|
-
fromJSON(
|
|
21
|
-
toJSON(
|
|
22
|
-
fromPartial(
|
|
22
|
+
fromJSON(object: any): ParamsToUpdate;
|
|
23
|
+
toJSON(message: ParamsToUpdate): unknown;
|
|
24
|
+
fromPartial(object: DeepPartial<ParamsToUpdate>): ParamsToUpdate;
|
|
23
25
|
};
|
|
24
26
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
27
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -7,10 +7,14 @@ exports.ParamsToUpdate = exports.Params = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const wrappers_1 = require("../../../google/protobuf/wrappers");
|
|
10
11
|
exports.protobufPackage = "Switcheo.carbon.ccm";
|
|
11
|
-
const baseParams = {};
|
|
12
|
+
const baseParams = { emitZionEvents: false };
|
|
12
13
|
exports.Params = {
|
|
13
|
-
encode(
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (message.emitZionEvents === true) {
|
|
16
|
+
writer.uint32(8).bool(message.emitZionEvents);
|
|
17
|
+
}
|
|
14
18
|
return writer;
|
|
15
19
|
},
|
|
16
20
|
decode(input, length) {
|
|
@@ -20,6 +24,9 @@ exports.Params = {
|
|
|
20
24
|
while (reader.pos < end) {
|
|
21
25
|
const tag = reader.uint32();
|
|
22
26
|
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.emitZionEvents = reader.bool();
|
|
29
|
+
break;
|
|
23
30
|
default:
|
|
24
31
|
reader.skipType(tag & 7);
|
|
25
32
|
break;
|
|
@@ -27,22 +34,33 @@ exports.Params = {
|
|
|
27
34
|
}
|
|
28
35
|
return message;
|
|
29
36
|
},
|
|
30
|
-
fromJSON(
|
|
37
|
+
fromJSON(object) {
|
|
31
38
|
const message = Object.assign({}, baseParams);
|
|
39
|
+
message.emitZionEvents =
|
|
40
|
+
object.emitZionEvents !== undefined && object.emitZionEvents !== null
|
|
41
|
+
? Boolean(object.emitZionEvents)
|
|
42
|
+
: false;
|
|
32
43
|
return message;
|
|
33
44
|
},
|
|
34
|
-
toJSON(
|
|
45
|
+
toJSON(message) {
|
|
35
46
|
const obj = {};
|
|
47
|
+
message.emitZionEvents !== undefined &&
|
|
48
|
+
(obj.emitZionEvents = message.emitZionEvents);
|
|
36
49
|
return obj;
|
|
37
50
|
},
|
|
38
|
-
fromPartial(
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
var _a;
|
|
39
53
|
const message = Object.assign({}, baseParams);
|
|
54
|
+
message.emitZionEvents = (_a = object.emitZionEvents) !== null && _a !== void 0 ? _a : false;
|
|
40
55
|
return message;
|
|
41
56
|
},
|
|
42
57
|
};
|
|
43
58
|
const baseParamsToUpdate = {};
|
|
44
59
|
exports.ParamsToUpdate = {
|
|
45
|
-
encode(
|
|
60
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
61
|
+
if (message.emitZionEvents !== undefined) {
|
|
62
|
+
wrappers_1.BoolValue.encode({ value: message.emitZionEvents }, writer.uint32(10).fork()).ldelim();
|
|
63
|
+
}
|
|
46
64
|
return writer;
|
|
47
65
|
},
|
|
48
66
|
decode(input, length) {
|
|
@@ -52,6 +70,9 @@ exports.ParamsToUpdate = {
|
|
|
52
70
|
while (reader.pos < end) {
|
|
53
71
|
const tag = reader.uint32();
|
|
54
72
|
switch (tag >>> 3) {
|
|
73
|
+
case 1:
|
|
74
|
+
message.emitZionEvents = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
|
|
75
|
+
break;
|
|
55
76
|
default:
|
|
56
77
|
reader.skipType(tag & 7);
|
|
57
78
|
break;
|
|
@@ -59,16 +80,24 @@ exports.ParamsToUpdate = {
|
|
|
59
80
|
}
|
|
60
81
|
return message;
|
|
61
82
|
},
|
|
62
|
-
fromJSON(
|
|
83
|
+
fromJSON(object) {
|
|
63
84
|
const message = Object.assign({}, baseParamsToUpdate);
|
|
85
|
+
message.emitZionEvents =
|
|
86
|
+
object.emitZionEvents !== undefined && object.emitZionEvents !== null
|
|
87
|
+
? Boolean(object.emitZionEvents)
|
|
88
|
+
: undefined;
|
|
64
89
|
return message;
|
|
65
90
|
},
|
|
66
|
-
toJSON(
|
|
91
|
+
toJSON(message) {
|
|
67
92
|
const obj = {};
|
|
93
|
+
message.emitZionEvents !== undefined &&
|
|
94
|
+
(obj.emitZionEvents = message.emitZionEvents);
|
|
68
95
|
return obj;
|
|
69
96
|
},
|
|
70
|
-
fromPartial(
|
|
97
|
+
fromPartial(object) {
|
|
98
|
+
var _a;
|
|
71
99
|
const message = Object.assign({}, baseParamsToUpdate);
|
|
100
|
+
message.emitZionEvents = (_a = object.emitZionEvents) !== null && _a !== void 0 ? _a : undefined;
|
|
72
101
|
return message;
|
|
73
102
|
},
|
|
74
103
|
};
|
|
@@ -11,14 +11,27 @@ export interface MsgProcessCrossChainTx {
|
|
|
11
11
|
headerProof: string;
|
|
12
12
|
currentHeader: string;
|
|
13
13
|
}
|
|
14
|
+
export interface MsgProcessZionCrossChainTx {
|
|
15
|
+
submitter: string;
|
|
16
|
+
fromChainId: Long;
|
|
17
|
+
proof: string;
|
|
18
|
+
header: string;
|
|
19
|
+
rawCrossTx: string;
|
|
20
|
+
}
|
|
14
21
|
export interface MsgProcessCrossChainTxResponse {
|
|
15
22
|
}
|
|
23
|
+
export interface MsgProcessZionCrossChainTxResponse {
|
|
24
|
+
}
|
|
16
25
|
/** MsgCreateEmitEvent was removed, but leaving this as legacy record */
|
|
17
26
|
export interface MsgCreateEmitEvent {
|
|
18
27
|
creator: string;
|
|
19
28
|
toChainId: Long;
|
|
20
29
|
crossChainId: Long;
|
|
21
30
|
}
|
|
31
|
+
export interface MsgToggleEmitZionEvents {
|
|
32
|
+
creator: string;
|
|
33
|
+
toggleTo: boolean;
|
|
34
|
+
}
|
|
22
35
|
/**
|
|
23
36
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
24
37
|
*
|
|
@@ -45,6 +58,13 @@ export declare const MsgProcessCrossChainTx: {
|
|
|
45
58
|
toJSON(message: MsgProcessCrossChainTx): unknown;
|
|
46
59
|
fromPartial(object: DeepPartial<MsgProcessCrossChainTx>): MsgProcessCrossChainTx;
|
|
47
60
|
};
|
|
61
|
+
export declare const MsgProcessZionCrossChainTx: {
|
|
62
|
+
encode(message: MsgProcessZionCrossChainTx, writer?: _m0.Writer): _m0.Writer;
|
|
63
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgProcessZionCrossChainTx;
|
|
64
|
+
fromJSON(object: any): MsgProcessZionCrossChainTx;
|
|
65
|
+
toJSON(message: MsgProcessZionCrossChainTx): unknown;
|
|
66
|
+
fromPartial(object: DeepPartial<MsgProcessZionCrossChainTx>): MsgProcessZionCrossChainTx;
|
|
67
|
+
};
|
|
48
68
|
export declare const MsgProcessCrossChainTxResponse: {
|
|
49
69
|
encode(_: MsgProcessCrossChainTxResponse, writer?: _m0.Writer): _m0.Writer;
|
|
50
70
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgProcessCrossChainTxResponse;
|
|
@@ -52,6 +72,13 @@ export declare const MsgProcessCrossChainTxResponse: {
|
|
|
52
72
|
toJSON(_: MsgProcessCrossChainTxResponse): unknown;
|
|
53
73
|
fromPartial(_: DeepPartial<MsgProcessCrossChainTxResponse>): MsgProcessCrossChainTxResponse;
|
|
54
74
|
};
|
|
75
|
+
export declare const MsgProcessZionCrossChainTxResponse: {
|
|
76
|
+
encode(_: MsgProcessZionCrossChainTxResponse, writer?: _m0.Writer): _m0.Writer;
|
|
77
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgProcessZionCrossChainTxResponse;
|
|
78
|
+
fromJSON(_: any): MsgProcessZionCrossChainTxResponse;
|
|
79
|
+
toJSON(_: MsgProcessZionCrossChainTxResponse): unknown;
|
|
80
|
+
fromPartial(_: DeepPartial<MsgProcessZionCrossChainTxResponse>): MsgProcessZionCrossChainTxResponse;
|
|
81
|
+
};
|
|
55
82
|
export declare const MsgCreateEmitEvent: {
|
|
56
83
|
encode(message: MsgCreateEmitEvent, writer?: _m0.Writer): _m0.Writer;
|
|
57
84
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCreateEmitEvent;
|
|
@@ -59,6 +86,13 @@ export declare const MsgCreateEmitEvent: {
|
|
|
59
86
|
toJSON(message: MsgCreateEmitEvent): unknown;
|
|
60
87
|
fromPartial(object: DeepPartial<MsgCreateEmitEvent>): MsgCreateEmitEvent;
|
|
61
88
|
};
|
|
89
|
+
export declare const MsgToggleEmitZionEvents: {
|
|
90
|
+
encode(message: MsgToggleEmitZionEvents, writer?: _m0.Writer): _m0.Writer;
|
|
91
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgToggleEmitZionEvents;
|
|
92
|
+
fromJSON(object: any): MsgToggleEmitZionEvents;
|
|
93
|
+
toJSON(message: MsgToggleEmitZionEvents): unknown;
|
|
94
|
+
fromPartial(object: DeepPartial<MsgToggleEmitZionEvents>): MsgToggleEmitZionEvents;
|
|
95
|
+
};
|
|
62
96
|
export declare const MsgUpdateParams: {
|
|
63
97
|
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
64
98
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
@@ -77,6 +111,8 @@ export declare const MsgUpdateParamsResponse: {
|
|
|
77
111
|
export interface Msg {
|
|
78
112
|
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
79
113
|
Process(request: MsgProcessCrossChainTx): Promise<MsgProcessCrossChainTxResponse>;
|
|
114
|
+
ProcessZion(request: MsgProcessZionCrossChainTx): Promise<MsgProcessZionCrossChainTxResponse>;
|
|
115
|
+
ProcessToggleEmitZionEvents(request: MsgToggleEmitZionEvents): Promise<MsgProcessCrossChainTxResponse>;
|
|
80
116
|
/**
|
|
81
117
|
* UpdateParams defines a governance operation for updating the module
|
|
82
118
|
* parameters. The authority is hard-coded to the x/gov module account.
|
|
@@ -89,6 +125,8 @@ export declare class MsgClientImpl implements Msg {
|
|
|
89
125
|
private readonly rpc;
|
|
90
126
|
constructor(rpc: Rpc);
|
|
91
127
|
Process(request: MsgProcessCrossChainTx): Promise<MsgProcessCrossChainTxResponse>;
|
|
128
|
+
ProcessZion(request: MsgProcessZionCrossChainTx): Promise<MsgProcessZionCrossChainTxResponse>;
|
|
129
|
+
ProcessToggleEmitZionEvents(request: MsgToggleEmitZionEvents): Promise<MsgProcessCrossChainTxResponse>;
|
|
92
130
|
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
93
131
|
}
|
|
94
132
|
interface Rpc {
|