carbon-js-sdk 0.11.10 → 0.11.11
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/clients/InsightsQueryClient.d.ts +1 -0
- package/lib/clients/InsightsQueryClient.js +10 -0
- package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +3 -3
- 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/insights/common.d.ts +1 -0
- package/lib/insights/common.js +1 -0
- package/lib/insights/funding.d.ts +12 -0
- package/lib/provider/amino/types/signless.js +9 -13
- 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/signless.d.ts +1 -1
- package/lib/util/signless.js +1 -1
- package/package.json +1 -1
- 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/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
|
@@ -60,6 +60,7 @@ declare class InsightsQueryClient {
|
|
|
60
60
|
DenomToGeckoIdMap(): Promise<Insights.InsightsQueryResponse<Insights.QueryDenomToGeckoIdMap>>;
|
|
61
61
|
FundingHistory(query: Insights.QueryGetFundingHistoryRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingHistoryResponse>>;
|
|
62
62
|
HistoricalFundingHistory(query: Insights.QueryGetFundingRateRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingRateResponse>>;
|
|
63
|
+
FundingHistoryGraphData(query: Insights.QueryGetFundingHistoryGraphDataRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingHistoryGraphDataResponse>>;
|
|
63
64
|
ProposalVotes(req: Insights.GetProposalVotesPathParams, query: Insights.GetProposalVotesQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetProposalVotesResponse>>;
|
|
64
65
|
Delegations(req: Insights.GetDelegationsPathParams, query: Insights.GetDelegationsQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetDelegationsResponse>>;
|
|
65
66
|
OraclePrices(req?: Insights.QueryGetOraclesPriceRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetOraclesPriceResponse>>;
|
|
@@ -503,6 +503,16 @@ class InsightsQueryClient {
|
|
|
503
503
|
return response.data;
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
+
FundingHistoryGraphData(query) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
const request = this.apiManager.path("market/funding/history/chart", {}, {
|
|
509
|
+
market: query.market,
|
|
510
|
+
period: query.period,
|
|
511
|
+
});
|
|
512
|
+
const response = yield request.get();
|
|
513
|
+
return response.data;
|
|
514
|
+
});
|
|
515
|
+
}
|
|
506
516
|
ProposalVotes(req, query) {
|
|
507
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
508
518
|
const request = this.apiManager.path("proposal/votes", req, query);
|
|
@@ -24,34 +24,34 @@ export interface RemoveMinGasPriceProposal {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const SetMsgGasCostProposal: {
|
|
26
26
|
encode(message: SetMsgGasCostProposal, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetMsgGasCostProposal;
|
|
28
28
|
fromJSON(object: any): SetMsgGasCostProposal;
|
|
29
29
|
toJSON(message: SetMsgGasCostProposal): unknown;
|
|
30
30
|
fromPartial(object: DeepPartial<SetMsgGasCostProposal>): SetMsgGasCostProposal;
|
|
31
31
|
};
|
|
32
32
|
export declare const SetMinGasPriceProposal: {
|
|
33
33
|
encode(message: SetMinGasPriceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetMinGasPriceProposal;
|
|
35
35
|
fromJSON(object: any): SetMinGasPriceProposal;
|
|
36
36
|
toJSON(message: SetMinGasPriceProposal): unknown;
|
|
37
37
|
fromPartial(object: DeepPartial<SetMinGasPriceProposal>): SetMinGasPriceProposal;
|
|
38
38
|
};
|
|
39
39
|
export declare const RemoveMsgGasCostProposal: {
|
|
40
40
|
encode(message: RemoveMsgGasCostProposal, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveMsgGasCostProposal;
|
|
42
42
|
fromJSON(object: any): RemoveMsgGasCostProposal;
|
|
43
43
|
toJSON(message: RemoveMsgGasCostProposal): unknown;
|
|
44
44
|
fromPartial(object: DeepPartial<RemoveMsgGasCostProposal>): RemoveMsgGasCostProposal;
|
|
45
45
|
};
|
|
46
46
|
export declare const RemoveMinGasPriceProposal: {
|
|
47
47
|
encode(message: RemoveMinGasPriceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveMinGasPriceProposal;
|
|
49
49
|
fromJSON(object: any): RemoveMinGasPriceProposal;
|
|
50
50
|
toJSON(message: RemoveMinGasPriceProposal): unknown;
|
|
51
51
|
fromPartial(object: DeepPartial<RemoveMinGasPriceProposal>): RemoveMinGasPriceProposal;
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
export
|
|
53
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
54
|
+
export 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 {} ? {
|
|
55
55
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
56
56
|
} : Partial<T>;
|
|
57
57
|
export {};
|
|
@@ -9,13 +9,13 @@ export interface CreateOracleProposal {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const CreateOracleProposal: {
|
|
11
11
|
encode(message: CreateOracleProposal, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateOracleProposal;
|
|
13
13
|
fromJSON(object: any): CreateOracleProposal;
|
|
14
14
|
toJSON(message: CreateOracleProposal): unknown;
|
|
15
15
|
fromPartial(object: DeepPartial<CreateOracleProposal>): CreateOracleProposal;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
export
|
|
17
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
18
|
+
export 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 {} ? {
|
|
19
19
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
20
20
|
} : Partial<T>;
|
|
21
21
|
export {};
|
|
@@ -12,20 +12,20 @@ export interface SettlementPriceParams {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const SettlementPriceProposal: {
|
|
14
14
|
encode(message: SettlementPriceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SettlementPriceProposal;
|
|
16
16
|
fromJSON(object: any): SettlementPriceProposal;
|
|
17
17
|
toJSON(message: SettlementPriceProposal): unknown;
|
|
18
18
|
fromPartial(object: DeepPartial<SettlementPriceProposal>): SettlementPriceProposal;
|
|
19
19
|
};
|
|
20
20
|
export declare const SettlementPriceParams: {
|
|
21
21
|
encode(message: SettlementPriceParams, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SettlementPriceParams;
|
|
23
23
|
fromJSON(object: any): SettlementPriceParams;
|
|
24
24
|
toJSON(message: SettlementPriceParams): unknown;
|
|
25
25
|
fromPartial(object: DeepPartial<SettlementPriceParams>): SettlementPriceParams;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
export
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
export 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 {} ? {
|
|
29
29
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
30
|
} : Partial<T>;
|
|
31
31
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
|
+
var query_1 = require("./query");
|
|
5
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
6
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
7
|
+
var tx_1 = require("./tx");
|
|
8
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
9
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
package/lib/insights/common.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare const InsightsEndpoints: {
|
|
|
46
46
|
"info/denom_gecko_map": string;
|
|
47
47
|
"market/funding/history/all": string;
|
|
48
48
|
"market/funding/history": string;
|
|
49
|
+
"market/funding/history/chart": string;
|
|
49
50
|
"proposal/votes": string;
|
|
50
51
|
"delegations/delegator": string;
|
|
51
52
|
"info/oracles_price": string;
|
package/lib/insights/common.js
CHANGED
|
@@ -58,6 +58,7 @@ exports.InsightsEndpoints = {
|
|
|
58
58
|
//funding
|
|
59
59
|
"market/funding/history/all": "/market/funding/history/all",
|
|
60
60
|
"market/funding/history": "/market/funding/history",
|
|
61
|
+
"market/funding/history/chart": "/market/funding/history/chart",
|
|
61
62
|
// Proposal api
|
|
62
63
|
"proposal/votes": "/gov/proposal/:proposalId/votes",
|
|
63
64
|
// Delegations api
|
|
@@ -27,3 +27,15 @@ export interface QueryGetFundingHistoryRequest {
|
|
|
27
27
|
limit?: number;
|
|
28
28
|
offset?: number;
|
|
29
29
|
}
|
|
30
|
+
export interface QueryGetFundingHistoryGraphDataRequest {
|
|
31
|
+
market: string;
|
|
32
|
+
period?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface FundingHistoryGraphData {
|
|
35
|
+
hourly: string;
|
|
36
|
+
market: string;
|
|
37
|
+
avgFunding: string;
|
|
38
|
+
}
|
|
39
|
+
export interface QueryGetFundingHistoryGraphDataResponse {
|
|
40
|
+
entries: FundingHistoryGraphData[];
|
|
41
|
+
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -94,7 +90,7 @@ const MsgFeeGrantAllowanceAmino = {
|
|
|
94
90
|
},
|
|
95
91
|
};
|
|
96
92
|
const preProcessAmino = (value, valueMap) => {
|
|
97
|
-
return
|
|
93
|
+
return utils_1.mapEachIndiv(value, valueMap, false);
|
|
98
94
|
};
|
|
99
95
|
const checkDecodeGrantAuthz = (content, amino) => {
|
|
100
96
|
const decodedValue = util_1.SignlessUtils.decodeContent(content);
|
|
@@ -182,12 +178,12 @@ const feegrantAminoProcess = {
|
|
|
182
178
|
},
|
|
183
179
|
};
|
|
184
180
|
const SignlessAmino = {
|
|
185
|
-
[CarbonTx.Types.MsgGrant]:
|
|
186
|
-
[CarbonTx.Types.MsgGrantAllowance]:
|
|
187
|
-
[CarbonTx.Types.MsgRevokeAllowance]:
|
|
188
|
-
[CarbonTx.Types.MsgExec]:
|
|
189
|
-
[SignlessTypes.GenericAuthorization]:
|
|
190
|
-
[SignlessTypes.AllowedMsgAllowance]:
|
|
191
|
-
[SignlessTypes.BasicAllowance]:
|
|
181
|
+
[CarbonTx.Types.MsgGrant]: utils_1.generateAminoType(MsgGrantAuthz, grantAuthzAminoProcess),
|
|
182
|
+
[CarbonTx.Types.MsgGrantAllowance]: utils_1.generateAminoType(MsgFeeGrantAllowance, feegrantAminoProcess),
|
|
183
|
+
[CarbonTx.Types.MsgRevokeAllowance]: utils_1.generateAminoType(MsgRevokeAllowance),
|
|
184
|
+
[CarbonTx.Types.MsgExec]: utils_1.generateAminoType(MsgExec),
|
|
185
|
+
[SignlessTypes.GenericAuthorization]: utils_1.generateAminoType(GenericAuthorizationAminoType),
|
|
186
|
+
[SignlessTypes.AllowedMsgAllowance]: utils_1.generateAminoType(AllowedMsgAllowanceAminoType),
|
|
187
|
+
[SignlessTypes.BasicAllowance]: utils_1.generateAminoType(BasicAllowanceAminoType),
|
|
192
188
|
};
|
|
193
189
|
exports.default = SignlessAmino;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import { AminoSignResponse, OfflineAminoSigner, StdSignature, StdSignDoc } from '@cosmjs/amino';
|
|
3
|
+
import { DirectSignResponse, OfflineDirectSigner, OfflineSigner } from '@cosmjs/proto-signing';
|
|
4
|
+
import type { ChainInfo } from '@keplr-wallet/types';
|
|
5
|
+
declare enum BroadcastMode {
|
|
6
|
+
/** Return after tx commit */
|
|
7
|
+
Block = "block",
|
|
8
|
+
/** Return after CheckTx */
|
|
9
|
+
Sync = "sync",
|
|
10
|
+
/** Return right away */
|
|
11
|
+
Async = "async"
|
|
12
|
+
}
|
|
13
|
+
export interface Key {
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly algo: string;
|
|
16
|
+
readonly pubKey: Uint8Array;
|
|
17
|
+
readonly address: Uint8Array;
|
|
18
|
+
readonly bech32Address: string;
|
|
19
|
+
readonly isNanoLedger: boolean;
|
|
20
|
+
readonly isSmartContract?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface LeapSignOptions {
|
|
23
|
+
readonly preferNoSetFee?: boolean;
|
|
24
|
+
readonly preferNoSetMemo?: boolean;
|
|
25
|
+
readonly disableBalanceCheck?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface Leap {
|
|
28
|
+
defaultOptions: {
|
|
29
|
+
sign?: LeapSignOptions;
|
|
30
|
+
};
|
|
31
|
+
disconnect(): Promise<void>;
|
|
32
|
+
enable(chainIds: string | string[]): Promise<void>;
|
|
33
|
+
suggestToken(chainId: string, contractAddress: string): Promise<void>;
|
|
34
|
+
suggestCW20Token(chainId: string, contractAddress: string): Promise<void>;
|
|
35
|
+
mode: 'extension';
|
|
36
|
+
getKey(chainId: string): Promise<Key>;
|
|
37
|
+
getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
|
|
38
|
+
getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
|
|
39
|
+
getOfflineSignerAuto(chainId: string): Promise<OfflineSigner>;
|
|
40
|
+
signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: LeapSignOptions): Promise<AminoSignResponse>;
|
|
41
|
+
signDirect(chainId: string, signer: string, signDoc: {
|
|
42
|
+
/** SignDoc bodyBytes */
|
|
43
|
+
bodyBytes?: Uint8Array | null;
|
|
44
|
+
/** SignDoc authInfoBytes */
|
|
45
|
+
authInfoBytes?: Uint8Array | null;
|
|
46
|
+
/** SignDoc chainId */
|
|
47
|
+
chainId?: string | null;
|
|
48
|
+
/** SignDoc accountNumber */
|
|
49
|
+
accountNumber?: Long | null;
|
|
50
|
+
}, signOptions?: LeapSignOptions): Promise<DirectSignResponse>;
|
|
51
|
+
signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
|
|
52
|
+
getEnigmaPubKey(chainId: string): Promise<Uint8Array>;
|
|
53
|
+
getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
|
|
54
|
+
enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
|
|
55
|
+
enigmaDecrypt(chainId: string, ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
|
|
56
|
+
sendTx(chainId: string, tx: Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
|
57
|
+
experimentalSuggestChain(chainInfo: ChainInfo): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var BroadcastMode;
|
|
4
|
+
(function (BroadcastMode) {
|
|
5
|
+
/** Return after tx commit */
|
|
6
|
+
BroadcastMode["Block"] = "block";
|
|
7
|
+
/** Return after CheckTx */
|
|
8
|
+
BroadcastMode["Sync"] = "sync";
|
|
9
|
+
/** Return right away */
|
|
10
|
+
BroadcastMode["Async"] = "async";
|
|
11
|
+
})(BroadcastMode || (BroadcastMode = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CarbonSDK, SupportedEip6963Provider } from "../../index";
|
|
1
|
+
import { CarbonSDK, EVMChain as EVMChainV2, SupportedEip6963Provider } from "../../index";
|
|
2
2
|
import { CarbonSigner } from "../../wallet";
|
|
3
3
|
import { ethers } from "ethers";
|
|
4
4
|
import { StdFee } from "@cosmjs/stargate";
|
|
5
5
|
import { SWTHAddressOptions } from "../../util/address";
|
|
6
6
|
import { AminoMsg } from "@cosmjs/amino";
|
|
7
|
-
import { BlockchainV2 } from "../../util/blockchain";
|
|
8
|
-
import {
|
|
7
|
+
import { Blockchain, BlockchainV2 } from "../../util/blockchain";
|
|
8
|
+
import { Network } from "../../constant";
|
|
9
9
|
import { Eip6963Provider } from "../eip6963Provider";
|
|
10
10
|
import { ChangeNetworkParam } from "../../constant";
|
|
11
11
|
export interface RainbowKitWalletOpts {
|
|
@@ -13,6 +13,11 @@ export interface RainbowKitWalletOpts {
|
|
|
13
13
|
publicKeyBase64: string;
|
|
14
14
|
walletProvider: SupportedEip6963Provider;
|
|
15
15
|
}
|
|
16
|
+
export interface SyncResult {
|
|
17
|
+
blockchain?: Blockchain | BlockchainV2;
|
|
18
|
+
chainId?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare type EVMChain = EVMChainV2;
|
|
16
21
|
declare class RainbowKitAccount extends Eip6963Provider {
|
|
17
22
|
readonly legacyEip712SignMode: boolean;
|
|
18
23
|
private provider;
|
package/lib/util/signless.d.ts
CHANGED
package/lib/util/signless.js
CHANGED
|
@@ -80,7 +80,7 @@ const decodeContent = (content) => {
|
|
|
80
80
|
}
|
|
81
81
|
case signless_1.SignlessTypes.AllowedMsgAllowance: {
|
|
82
82
|
const value = feegrant_1.AllowedMsgAllowance.decode(content.value);
|
|
83
|
-
return Object.assign(Object.assign({}, content), { value: Object.assign(Object.assign({}, value), { allowance: Object.assign({},
|
|
83
|
+
return Object.assign(Object.assign({}, content), { value: Object.assign(Object.assign({}, value), { allowance: Object.assign({}, exports.decodeContent(value.allowance)) }) });
|
|
84
84
|
}
|
|
85
85
|
case signless_1.SignlessTypes.BasicAllowance: {
|
|
86
86
|
return Object.assign(Object.assign({}, content), { value: feegrant_1.BasicAllowance.decode(content.value) });
|
package/package.json
CHANGED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
4
|
-
export declare const protobufPackage = "Switcheo.carbon.bridge";
|
|
5
|
-
export interface BridgeState {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
isEnabled: boolean;
|
|
9
|
-
}
|
|
10
|
-
/** each bridge have multiple connections to different chains */
|
|
11
|
-
export interface Connection {
|
|
12
|
-
/** = bridgeId_chainId */
|
|
13
|
-
connectionId: string;
|
|
14
|
-
bridgeId: string;
|
|
15
|
-
chainId: string;
|
|
16
|
-
chainDisplayName: string;
|
|
17
|
-
tokenGatewayAddress: string;
|
|
18
|
-
encoding: string;
|
|
19
|
-
escrowAddress: string;
|
|
20
|
-
isEnabled: boolean;
|
|
21
|
-
}
|
|
22
|
-
/** each connection can have multiple external tokens, which contains the mapping to native denom */
|
|
23
|
-
export interface ExternalTokenMapping {
|
|
24
|
-
connectionId: string;
|
|
25
|
-
isEnabled: boolean;
|
|
26
|
-
isCarbonOwned: boolean;
|
|
27
|
-
externalAddress: string;
|
|
28
|
-
/** corresponding carbon native denom */
|
|
29
|
-
denom: string;
|
|
30
|
-
}
|
|
31
|
-
/** accounts/contracts from external chains can be allowed to execute certain predefined functions on carbon */
|
|
32
|
-
export interface ExternalExecutor {
|
|
33
|
-
connectionId: string;
|
|
34
|
-
externalAddress: string;
|
|
35
|
-
carbonAddress: string;
|
|
36
|
-
}
|
|
37
|
-
/** contracts from external chains that can be executed by carbon */
|
|
38
|
-
export interface ExecutableContract {
|
|
39
|
-
connectionId: string;
|
|
40
|
-
address: string;
|
|
41
|
-
}
|
|
42
|
-
/** RelayFee */
|
|
43
|
-
export interface RelayFee {
|
|
44
|
-
relayerDepositAddress: string;
|
|
45
|
-
fee?: Coin;
|
|
46
|
-
}
|
|
47
|
-
/** WithdrawalDetails */
|
|
48
|
-
export interface WithdrawalDetails {
|
|
49
|
-
connectionId: string;
|
|
50
|
-
sender: string;
|
|
51
|
-
receiver: string;
|
|
52
|
-
coin?: Coin;
|
|
53
|
-
relayFee?: RelayFee;
|
|
54
|
-
}
|
|
55
|
-
export declare const BridgeState: {
|
|
56
|
-
encode(message: BridgeState, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BridgeState;
|
|
58
|
-
fromJSON(object: any): BridgeState;
|
|
59
|
-
toJSON(message: BridgeState): unknown;
|
|
60
|
-
fromPartial(object: DeepPartial<BridgeState>): BridgeState;
|
|
61
|
-
};
|
|
62
|
-
export declare const Connection: {
|
|
63
|
-
encode(message: Connection, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Connection;
|
|
65
|
-
fromJSON(object: any): Connection;
|
|
66
|
-
toJSON(message: Connection): unknown;
|
|
67
|
-
fromPartial(object: DeepPartial<Connection>): Connection;
|
|
68
|
-
};
|
|
69
|
-
export declare const ExternalTokenMapping: {
|
|
70
|
-
encode(message: ExternalTokenMapping, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ExternalTokenMapping;
|
|
72
|
-
fromJSON(object: any): ExternalTokenMapping;
|
|
73
|
-
toJSON(message: ExternalTokenMapping): unknown;
|
|
74
|
-
fromPartial(object: DeepPartial<ExternalTokenMapping>): ExternalTokenMapping;
|
|
75
|
-
};
|
|
76
|
-
export declare const ExternalExecutor: {
|
|
77
|
-
encode(message: ExternalExecutor, writer?: _m0.Writer): _m0.Writer;
|
|
78
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ExternalExecutor;
|
|
79
|
-
fromJSON(object: any): ExternalExecutor;
|
|
80
|
-
toJSON(message: ExternalExecutor): unknown;
|
|
81
|
-
fromPartial(object: DeepPartial<ExternalExecutor>): ExternalExecutor;
|
|
82
|
-
};
|
|
83
|
-
export declare const ExecutableContract: {
|
|
84
|
-
encode(message: ExecutableContract, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ExecutableContract;
|
|
86
|
-
fromJSON(object: any): ExecutableContract;
|
|
87
|
-
toJSON(message: ExecutableContract): unknown;
|
|
88
|
-
fromPartial(object: DeepPartial<ExecutableContract>): ExecutableContract;
|
|
89
|
-
};
|
|
90
|
-
export declare const RelayFee: {
|
|
91
|
-
encode(message: RelayFee, writer?: _m0.Writer): _m0.Writer;
|
|
92
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RelayFee;
|
|
93
|
-
fromJSON(object: any): RelayFee;
|
|
94
|
-
toJSON(message: RelayFee): unknown;
|
|
95
|
-
fromPartial(object: DeepPartial<RelayFee>): RelayFee;
|
|
96
|
-
};
|
|
97
|
-
export declare const WithdrawalDetails: {
|
|
98
|
-
encode(message: WithdrawalDetails, writer?: _m0.Writer): _m0.Writer;
|
|
99
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WithdrawalDetails;
|
|
100
|
-
fromJSON(object: any): WithdrawalDetails;
|
|
101
|
-
toJSON(message: WithdrawalDetails): unknown;
|
|
102
|
-
fromPartial(object: DeepPartial<WithdrawalDetails>): WithdrawalDetails;
|
|
103
|
-
};
|
|
104
|
-
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
105
|
-
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 {} ? {
|
|
106
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
107
|
-
} : Partial<T>;
|
|
108
|
-
export {};
|