├── .coderabbit.yaml ├── .github └── workflows │ ├── pre-commit.yml │ ├── release.yml │ └── run-tests.yml ├── .gitignore ├── .pre-commit-config.yaml ├── CHANGELOG.md ├── LICENSE.md ├── MANIFEST.in ├── Makefile ├── NOTICE.md ├── Pipfile ├── Pipfile.lock ├── README.md ├── buf.gen.yaml ├── codecov.yml ├── compatibility-tests ├── README.md ├── results.txt ├── run.sh ├── tests.py └── unit_tests.py ├── examples ├── SendToInjective.py ├── chain_client │ ├── 1_LocalOrderHash.py │ ├── 2_StreamEventOrderFail.py │ ├── 3_MessageBroadcaster.py │ ├── 4_MessageBroadcasterWithGranteeAccount.py │ ├── 5_MessageBroadcasterWithoutSimulation.py │ ├── 6_MessageBroadcasterWithGranteeAccountWithoutSimulation.py │ ├── 7_ChainStream.py │ ├── 9_PaginatedRequestExample.py │ ├── auction │ │ └── 1_MsgBid.py │ ├── auth │ │ └── query │ │ │ └── 1_Account.py │ ├── authz │ │ ├── 1_MsgGrant.py │ │ ├── 2_MsgExec.py │ │ ├── 3_MsgRevoke.py │ │ └── query │ │ │ └── 1_Grants.py │ ├── bank │ │ ├── 1_MsgSend.py │ │ └── query │ │ │ ├── 10_SendEnabled.py │ │ │ ├── 1_BankBalance.py │ │ │ ├── 2_BankBalances.py │ │ │ ├── 3_SpendableBalances.py │ │ │ ├── 4_SpendableBalancesByDenom.py │ │ │ ├── 5_TotalSupply.py │ │ │ ├── 6_SupplyOf.py │ │ │ ├── 7_DenomMetadata.py │ │ │ ├── 8_DenomsMetadata.py │ │ │ └── 9_DenomOwners.py │ ├── distribution │ │ ├── 1_SetWithdrawAddress.py │ │ ├── 2_WithdrawDelegatorReward.py │ │ ├── 3_WithdrawValidatorCommission.py │ │ ├── 4_FundCommunityPool.py │ │ └── query │ │ │ ├── 1_ValidatorDistributionInfo.py │ │ │ ├── 2_ValidatorOutstandingRewards.py │ │ │ ├── 3_ValidatorCommission.py │ │ │ ├── 4_ValidatorSlashes.py │ │ │ ├── 5_DelegationRewards.py │ │ │ ├── 6_DelegationTotalRewards.py │ │ │ ├── 7_DelegatorValidators.py │ │ │ ├── 8_DelegatorWithdrawAddress.py │ │ │ └── 9_CommunityPool.py │ ├── exchange │ │ ├── 10_MsgCreateDerivativeLimitOrder.py │ │ ├── 11_MsgCreateDerivativeMarketOrder.py │ │ ├── 12_MsgCancelDerivativeOrder.py │ │ ├── 13_MsgInstantBinaryOptionsMarketLaunch.py │ │ ├── 14_MsgCreateBinaryOptionsLimitOrder.py │ │ ├── 15_MsgCreateBinaryOptionsMarketOrder.py │ │ ├── 16_MsgCancelBinaryOptionsOrder.py │ │ ├── 17_MsgSubaccountTransfer.py │ │ ├── 18_MsgExternalTransfer.py │ │ ├── 19_MsgLiquidatePosition.py │ │ ├── 1_MsgDeposit.py │ │ ├── 20_MsgIncreasePositionMargin.py │ │ ├── 21_MsgRewardsOptOut.py │ │ ├── 22_MsgAdminUpdateBinaryOptionsMarket.py │ │ ├── 23_MsgDecreasePositionMargin.py │ │ ├── 24_MsgUpdateSpotMarket.py │ │ ├── 25_MsgUpdateDerivativeMarket.py │ │ ├── 26_MsgAuthorizeStakeGrants.py │ │ ├── 27_MsgActivateStakeGrant.py │ │ ├── 2_MsgWithdraw.py │ │ ├── 3_MsgInstantSpotMarketLaunch.py │ │ ├── 4_MsgInstantPerpetualMarketLaunch.py │ │ ├── 5_MsgInstantExpiryFuturesMarketLaunch.py │ │ ├── 6_MsgCreateSpotLimitOrder.py │ │ ├── 7_MsgCreateSpotMarketOrder.py │ │ ├── 8_MsgCancelSpotOrder.py │ │ ├── 9_MsgBatchUpdateOrders.py │ │ └── query │ │ │ ├── 10_SpotMarkets.py │ │ │ ├── 11_SpotMarket.py │ │ │ ├── 12_FullSpotMarkets.py │ │ │ ├── 13_FullSpotMarket.py │ │ │ ├── 14_SpotOrderbook.py │ │ │ ├── 15_TraderSpotOrders.py │ │ │ ├── 16_AccountAddressSpotOrders.py │ │ │ ├── 17_SpotOrdersByHashes.py │ │ │ ├── 18_SubaccountOrders.py │ │ │ ├── 19_TraderSpotTransientOrders.py │ │ │ ├── 1_SubaccountDeposits.py │ │ │ ├── 20_SpotMidPriceAndTOB.py │ │ │ ├── 21_DerivativeMidPriceAndTOB.py │ │ │ ├── 22_DerivativeOrderbook.py │ │ │ ├── 23_TraderDerivativeOrders.py │ │ │ ├── 24_AccountAddressDerivativeOrders.py │ │ │ ├── 25_DerivativeOrdersByHashes.py │ │ │ ├── 26_TraderDerivativeTransientOrders.py │ │ │ ├── 27_DerivativeMarkets.py │ │ │ ├── 28_DerivativeMarket.py │ │ │ ├── 29_DerivativeMarketAddress.py │ │ │ ├── 2_SubaccountDeposit.py │ │ │ ├── 30_SubaccountTradeNonce.py │ │ │ ├── 31_Positions.py │ │ │ ├── 32_SubaccountPositions.py │ │ │ ├── 33_SubaccountPositionInMarket.py │ │ │ ├── 34_SubaccountEffectivePositionInMarket.py │ │ │ ├── 35_PerpetualMarketInfo.py │ │ │ ├── 36_ExpiryFuturesMarketInfo.py │ │ │ ├── 37_PerpetualMarketFunding.py │ │ │ ├── 38_SubaccountOrderMetadata.py │ │ │ ├── 39_TradeRewardPoints.py │ │ │ ├── 3_ExchangeBalances.py │ │ │ ├── 40_PendingTradeRewardPoints.py │ │ │ ├── 41_TradeRewardCampaign.py │ │ │ ├── 42_FeeDiscountAccountInfo.py │ │ │ ├── 43_FeeDiscountSchedule.py │ │ │ ├── 44_BalanceMismatches.py │ │ │ ├── 45_BalanceWithBalanceHolds.py │ │ │ ├── 46_FeeDiscountTierStatistics.py │ │ │ ├── 47_MitoVaultInfos.py │ │ │ ├── 48_QueryMarketIDFromVault.py │ │ │ ├── 49_HistoricalTradeRecords.py │ │ │ ├── 4_AggregateVolume.py │ │ │ ├── 50_IsOptedOutOfRewards.py │ │ │ ├── 51_OptedOutOfRewardsAccounts.py │ │ │ ├── 52_MarketVolatility.py │ │ │ ├── 53_BinaryOptionsMarkets.py │ │ │ ├── 54_TraderDerivativeConditionalOrders.py │ │ │ ├── 55_MarketAtomicExecutionFeeMultiplier.py │ │ │ ├── 56_L3DerivativeOrderBook.py │ │ │ ├── 57_L3SpotOrderBook.py │ │ │ ├── 58_MarketBalance.py │ │ │ ├── 59_MarketBalances.py │ │ │ ├── 5_AggregateVolumes.py │ │ │ ├── 60_DenomMinNotional.py │ │ │ ├── 61_DenomMinNotionals.py │ │ │ ├── 6_AggregateMarketVolume.py │ │ │ ├── 7_AggregateMarketVolumes.py │ │ │ ├── 8_DenomDecimal.py │ │ │ └── 9_DenomDecimals.py │ ├── ibc │ │ ├── channel │ │ │ └── query │ │ │ │ ├── 10_PacketAcknowledgements.py │ │ │ │ ├── 11_UnreceivedPackets.py │ │ │ │ ├── 12_UnreceivedAcks.py │ │ │ │ ├── 13_NextSequenceReceive.py │ │ │ │ ├── 1_Channel.py │ │ │ │ ├── 2_Channels.py │ │ │ │ ├── 3_ConnectionChannels.py │ │ │ │ ├── 4_ChannelClientState.py │ │ │ │ ├── 5_ChannelConsensusState.py │ │ │ │ ├── 6_PacketCommitment.py │ │ │ │ ├── 7_PacketCommitments.py │ │ │ │ ├── 8_PacketReceipt.py │ │ │ │ └── 9_PacketAcknowledgement.py │ │ ├── client │ │ │ └── query │ │ │ │ ├── 1_ClientState.py │ │ │ │ ├── 2_ClientStates.py │ │ │ │ ├── 3_ConsensusState.py │ │ │ │ ├── 4_ConsensusStates.py │ │ │ │ ├── 5_ConsensusStateHeights.py │ │ │ │ ├── 6_ClientStatus.py │ │ │ │ ├── 7_ClientParams.py │ │ │ │ ├── 8_UpgradedClientState.py │ │ │ │ └── 9_UpgradedConsensusState.py │ │ ├── connection │ │ │ └── query │ │ │ │ ├── 1_Connection.py │ │ │ │ ├── 2_Connections.py │ │ │ │ ├── 3_ClientConnections.py │ │ │ │ ├── 4_ConnectionClientState.py │ │ │ │ ├── 5_ConnectionConsensusState.py │ │ │ │ └── 6_ConnectionParams.py │ │ └── transfer │ │ │ ├── 1_MsgTransfer.py │ │ │ └── query │ │ │ ├── 1_DenomTrace.py │ │ │ ├── 2_DenomTraces.py │ │ │ ├── 3_DenomHash.py │ │ │ ├── 4_EscrowAddress.py │ │ │ └── 5_TotalEscrowForDenom.py │ ├── insurance │ │ ├── 1_MsgCreateInsuranceFund.py │ │ ├── 2_MsgUnderwrite.py │ │ └── 3_MsgRequestRedemption.py │ ├── oracle │ │ ├── 1_MsgRelayPriceFeedPrice.py │ │ └── 2_MsgRelayProviderPrices.py │ ├── peggy │ │ └── 1_MsgSendToEth.py │ ├── permissions │ │ ├── 1_MsgCreateNamespace.py │ │ ├── 2_MsgUpdateNamespace.py │ │ ├── 3_MsgUpdateActorRoles.py │ │ ├── 4_MsgClaimVoucher.py │ │ └── query │ │ │ ├── 10_Vouchers.py │ │ │ ├── 11_Voucher.py │ │ │ ├── 12_PermissionsModuleState.py │ │ │ ├── 1_NamespaceDenoms.py │ │ │ ├── 2_Namespaces.py │ │ │ ├── 3_Namespace.py │ │ │ ├── 4_RolesByActor.py │ │ │ ├── 5_ActorsByRole.py │ │ │ ├── 6_RoleManagers.py │ │ │ ├── 7_RoleManager.py │ │ │ ├── 8_PolicyStatuses.py │ │ │ └── 9_PolicyManagerCapabilities.py │ ├── staking │ │ └── 1_MsgDelegate.py │ ├── tendermint │ │ └── query │ │ │ ├── 1_GetNodeInfo.py │ │ │ ├── 2_GetSyncing.py │ │ │ ├── 3_GetLatestBlock.py │ │ │ ├── 4_GetBlockByHeight.py │ │ │ ├── 5_GetLatestValidatorSet.py │ │ │ └── 6_GetValidatorSetByHeight.py │ ├── tokenfactory │ │ ├── 1_CreateDenom.py │ │ ├── 2_MsgMint.py │ │ ├── 3_MsgBurn.py │ │ ├── 4_MsgChangeAdmin.py │ │ ├── 5_MsgSetDenomMetadata.py │ │ └── query │ │ │ ├── 1_DenomAuthorityMetadata.py │ │ │ ├── 2_DenomsFromCreator.py │ │ │ └── 3_TokenfactoryModuleState.py │ ├── tx │ │ └── query │ │ │ └── 1_GetTx.py │ ├── txfees │ │ └── query │ │ │ └── 1_GetEipBaseFee.py │ ├── wasm │ │ ├── 1_MsgExecuteContract.py │ │ └── query │ │ │ ├── 10_ContractsByCreator.py │ │ │ ├── 1_ContractInfo.py │ │ │ ├── 2_ContractHistory.py │ │ │ ├── 3_ContractsByCode.py │ │ │ ├── 4_AllContractsState.py │ │ │ ├── 5_RawContractState.py │ │ │ ├── 6_SmartContractState.py │ │ │ ├── 7_SmartContractCode.py │ │ │ ├── 8_SmartContractCodes.py │ │ │ └── 9_SmartContractPinnedCodes.py │ └── wasmx │ │ └── 1_MsgExecuteContractCompat.py └── exchange_client │ ├── accounts_rpc │ ├── 1_StreamSubaccountBalance.py │ ├── 2_SubaccountBalance.py │ ├── 3_SubaccountsList.py │ ├── 4_SubaccountBalancesList.py │ ├── 5_SubaccountHistory.py │ ├── 6_SubaccountOrderSummary.py │ ├── 7_OrderStates.py │ ├── 8_Portfolio.py │ └── 9_Rewards.py │ ├── auctions_rpc │ ├── 1_Auction.py │ ├── 2_Auctions.py │ ├── 3_StreamBids.py │ └── 4_InjBurntEndpoint.py │ ├── derivative_exchange_rpc │ ├── 10_StreamHistoricalOrders.py │ ├── 11_Trades.py │ ├── 12_StreamTrades.py │ ├── 13_SubaccountOrdersList.py │ ├── 14_SubaccountTradesList.py │ ├── 15_FundingPayments.py │ ├── 17_FundingRates.py │ ├── 19_Binary_Options_Markets.py │ ├── 1_Market.py │ ├── 20_Binary_Options_Market.py │ ├── 21_Historical_Orders.py │ ├── 22_OrderbooksV2.py │ ├── 23_LiquidablePositions.py │ ├── 2_Markets.py │ ├── 3_StreamMarket.py │ ├── 4_Orderbook.py │ ├── 5_StreamOrderbooks.py │ ├── 6_StreamOrderbookUpdate.py │ ├── 7_Positions.py │ └── 9_StreamPositions.py │ ├── explorer_rpc │ ├── 10_GetIBCTransfers.py │ ├── 11_GetContractsTxsV2.py │ ├── 12_GetValidators.py │ ├── 13_GetValidator.py │ ├── 14_GetValidatorUptime.py │ ├── 15_GetWasmCodes.py │ ├── 16_GetWasmCodeById.py │ ├── 17_GetWasmContracts.py │ ├── 18_GetWasmContractByAddress.py │ ├── 19_GetCw20Balance.py │ ├── 1_GetTxByHash.py │ ├── 20_Relayers.py │ ├── 21_GetBankTransfers.py │ ├── 2_AccountTxs.py │ ├── 3_Blocks.py │ ├── 4_Block.py │ ├── 5_TxsRequest.py │ ├── 6_StreamTxs.py │ ├── 7_StreamBlocks.py │ ├── 8_GetPeggyDeposits.py │ └── 9_GetPeggyWithdrawals.py │ ├── insurance_rpc │ ├── 1_InsuranceFunds.py │ └── 2_Redemptions.py │ ├── meta_rpc │ ├── 1_Ping.py │ ├── 2_Version.py │ ├── 3_Info.py │ └── 4_StreamKeepAlive.py │ ├── oracle_rpc │ ├── 1_StreamPrices.py │ ├── 2_Price.py │ └── 3_OracleList.py │ ├── portfolio_rpc │ ├── 1_AccountPortfolio.py │ └── 2_StreamAccountPortfolio.py │ └── spot_exchange_rpc │ ├── 10_StreamTrades.py │ ├── 11_SubaccountOrdersList.py │ ├── 12_SubaccountTradesList.py │ ├── 14_Orderbooks.py │ ├── 15_HistoricalOrders.py │ ├── 1_Market.py │ ├── 2_Markets.py │ ├── 3_StreamMarkets.py │ ├── 4_Orderbook.py │ ├── 6_Trades.py │ ├── 7_StreamOrderbookSnapshot.py │ ├── 8_StreamOrderbookUpdate.py │ └── 9_StreamHistoricalOrders.py ├── poetry.lock ├── poetry.toml ├── pyinjective ├── Peggo_ABI.json ├── __init__.py ├── async_client.py ├── client │ ├── __init__.py │ ├── chain │ │ ├── __init__.py │ │ ├── grpc │ │ │ ├── __init__.py │ │ │ ├── chain_grpc_auction_api.py │ │ │ ├── chain_grpc_auth_api.py │ │ │ ├── chain_grpc_authz_api.py │ │ │ ├── chain_grpc_bank_api.py │ │ │ ├── chain_grpc_distribution_api.py │ │ │ ├── chain_grpc_exchange_api.py │ │ │ ├── chain_grpc_permissions_api.py │ │ │ ├── chain_grpc_token_factory_api.py │ │ │ ├── chain_grpc_txfees_api.py │ │ │ └── chain_grpc_wasm_api.py │ │ ├── grpc_stream │ │ │ ├── __init__.py │ │ │ └── chain_grpc_chain_stream.py │ │ └── model │ │ │ ├── __init__.py │ │ │ ├── account.py │ │ │ └── auth_params.py │ ├── indexer │ │ ├── __init__.py │ │ ├── grpc │ │ │ ├── __init__.py │ │ │ ├── indexer_grpc_account_api.py │ │ │ ├── indexer_grpc_auction_api.py │ │ │ ├── indexer_grpc_derivative_api.py │ │ │ ├── indexer_grpc_explorer_api.py │ │ │ ├── indexer_grpc_insurance_api.py │ │ │ ├── indexer_grpc_meta_api.py │ │ │ ├── indexer_grpc_oracle_api.py │ │ │ ├── indexer_grpc_portfolio_api.py │ │ │ └── indexer_grpc_spot_api.py │ │ └── grpc_stream │ │ │ ├── __init__.py │ │ │ ├── indexer_grpc_account_stream.py │ │ │ ├── indexer_grpc_auction_stream.py │ │ │ ├── indexer_grpc_derivative_stream.py │ │ │ ├── indexer_grpc_explorer_stream.py │ │ │ ├── indexer_grpc_meta_stream.py │ │ │ ├── indexer_grpc_oracle_stream.py │ │ │ ├── indexer_grpc_portfolio_stream.py │ │ │ └── indexer_grpc_spot_stream.py │ └── model │ │ ├── __init__.py │ │ └── pagination.py ├── composer.py ├── constant.py ├── core │ ├── __init__.py │ ├── broadcaster.py │ ├── gas_heuristics_gas_limit_estimator.py │ ├── gas_limit_estimator.py │ ├── ibc │ │ ├── __init__.py │ │ ├── channel │ │ │ ├── __init__.py │ │ │ └── grpc │ │ │ │ ├── __init__.py │ │ │ │ └── ibc_channel_grpc_api.py │ │ ├── client │ │ │ ├── __init__.py │ │ │ └── grpc │ │ │ │ ├── __init__.py │ │ │ │ └── ibc_client_grpc_api.py │ │ ├── connection │ │ │ ├── __init__.py │ │ │ └── grpc │ │ │ │ ├── __init__.py │ │ │ │ └── ibc_connection_grpc_api.py │ │ └── transfer │ │ │ ├── __init__.py │ │ │ └── grpc │ │ │ ├── __init__.py │ │ │ └── ibc_transfer_grpc_api.py │ ├── market.py │ ├── network.py │ ├── tendermint │ │ ├── __init__.py │ │ └── grpc │ │ │ ├── __init__.py │ │ │ └── tendermint_grpc_api.py │ ├── token.py │ ├── tokens_file_loader.py │ └── tx │ │ ├── __init__.py │ │ └── grpc │ │ ├── __init__.py │ │ └── tx_grpc_api.py ├── exceptions.py ├── ofac.json ├── ofac.py ├── orderhash.py ├── proto │ ├── __init__.py │ ├── amino │ │ ├── amino_pb2.py │ │ └── amino_pb2_grpc.py │ ├── capability │ │ └── v1 │ │ │ ├── capability_pb2.py │ │ │ ├── capability_pb2_grpc.py │ │ │ ├── genesis_pb2.py │ │ │ └── genesis_pb2_grpc.py │ ├── cosmos │ │ ├── app │ │ │ ├── runtime │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1alpha1 │ │ │ │ ├── config_pb2.py │ │ │ │ ├── config_pb2_grpc.py │ │ │ │ ├── module_pb2.py │ │ │ │ ├── module_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ └── query_pb2_grpc.py │ │ ├── auth │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── auth_pb2.py │ │ │ │ ├── auth_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── authz │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── authz_pb2.py │ │ │ │ ├── authz_pb2_grpc.py │ │ │ │ ├── event_pb2.py │ │ │ │ ├── event_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── autocli │ │ │ └── v1 │ │ │ │ ├── options_pb2.py │ │ │ │ ├── options_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ └── query_pb2_grpc.py │ │ ├── bank │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── authz_pb2.py │ │ │ │ ├── authz_pb2_grpc.py │ │ │ │ ├── bank_pb2.py │ │ │ │ ├── bank_pb2_grpc.py │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── base │ │ │ ├── abci │ │ │ │ └── v1beta1 │ │ │ │ │ ├── abci_pb2.py │ │ │ │ │ └── abci_pb2_grpc.py │ │ │ ├── node │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ └── query_pb2_grpc.py │ │ │ ├── query │ │ │ │ └── v1beta1 │ │ │ │ │ ├── pagination_pb2.py │ │ │ │ │ └── pagination_pb2_grpc.py │ │ │ ├── reflection │ │ │ │ ├── v1beta1 │ │ │ │ │ ├── reflection_pb2.py │ │ │ │ │ └── reflection_pb2_grpc.py │ │ │ │ └── v2alpha1 │ │ │ │ │ ├── reflection_pb2.py │ │ │ │ │ └── reflection_pb2_grpc.py │ │ │ ├── tendermint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ ├── types_pb2.py │ │ │ │ │ └── types_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── coin_pb2.py │ │ │ │ └── coin_pb2_grpc.py │ │ ├── circuit │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1 │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ ├── tx_pb2_grpc.py │ │ │ │ ├── types_pb2.py │ │ │ │ └── types_pb2_grpc.py │ │ ├── consensus │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1 │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── crisis │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── crypto │ │ │ ├── ed25519 │ │ │ │ ├── keys_pb2.py │ │ │ │ └── keys_pb2_grpc.py │ │ │ ├── hd │ │ │ │ └── v1 │ │ │ │ │ ├── hd_pb2.py │ │ │ │ │ └── hd_pb2_grpc.py │ │ │ ├── keyring │ │ │ │ └── v1 │ │ │ │ │ ├── record_pb2.py │ │ │ │ │ └── record_pb2_grpc.py │ │ │ ├── multisig │ │ │ │ ├── keys_pb2.py │ │ │ │ ├── keys_pb2_grpc.py │ │ │ │ └── v1beta1 │ │ │ │ │ ├── multisig_pb2.py │ │ │ │ │ └── multisig_pb2_grpc.py │ │ │ ├── secp256k1 │ │ │ │ ├── keys_pb2.py │ │ │ │ └── keys_pb2_grpc.py │ │ │ └── secp256r1 │ │ │ │ ├── keys_pb2.py │ │ │ │ └── keys_pb2_grpc.py │ │ ├── distribution │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── distribution_pb2.py │ │ │ │ ├── distribution_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── evidence │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── evidence_pb2.py │ │ │ │ ├── evidence_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── feegrant │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── feegrant_pb2.py │ │ │ │ ├── feegrant_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── genutil │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ └── genesis_pb2_grpc.py │ │ ├── gov │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ ├── v1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── gov_pb2.py │ │ │ │ ├── gov_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── gov_pb2.py │ │ │ │ ├── gov_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── group │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1 │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ ├── tx_pb2_grpc.py │ │ │ │ ├── types_pb2.py │ │ │ │ └── types_pb2_grpc.py │ │ ├── ics23 │ │ │ └── v1 │ │ │ │ ├── proofs_pb2.py │ │ │ │ └── proofs_pb2_grpc.py │ │ ├── mint │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── mint_pb2.py │ │ │ │ ├── mint_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── msg │ │ │ ├── textual │ │ │ │ └── v1 │ │ │ │ │ ├── textual_pb2.py │ │ │ │ │ └── textual_pb2_grpc.py │ │ │ └── v1 │ │ │ │ ├── msg_pb2.py │ │ │ │ └── msg_pb2_grpc.py │ │ ├── nft │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── event_pb2.py │ │ │ │ ├── event_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── nft_pb2.py │ │ │ │ ├── nft_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── orm │ │ │ ├── module │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ ├── query │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ └── query_pb2_grpc.py │ │ │ ├── v1 │ │ │ │ ├── orm_pb2.py │ │ │ │ └── orm_pb2_grpc.py │ │ │ └── v1alpha1 │ │ │ │ ├── schema_pb2.py │ │ │ │ └── schema_pb2_grpc.py │ │ ├── params │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── params_pb2.py │ │ │ │ ├── params_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ └── query_pb2_grpc.py │ │ ├── query │ │ │ └── v1 │ │ │ │ ├── query_pb2.py │ │ │ │ └── query_pb2_grpc.py │ │ ├── reflection │ │ │ └── v1 │ │ │ │ ├── reflection_pb2.py │ │ │ │ └── reflection_pb2_grpc.py │ │ ├── slashing │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── slashing_pb2.py │ │ │ │ ├── slashing_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── staking │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── authz_pb2.py │ │ │ │ ├── authz_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── staking_pb2.py │ │ │ │ ├── staking_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── store │ │ │ ├── internal │ │ │ │ └── kv │ │ │ │ │ └── v1beta1 │ │ │ │ │ ├── kv_pb2.py │ │ │ │ │ └── kv_pb2_grpc.py │ │ │ ├── snapshots │ │ │ │ └── v1 │ │ │ │ │ ├── snapshot_pb2.py │ │ │ │ │ └── snapshot_pb2_grpc.py │ │ │ ├── streaming │ │ │ │ └── abci │ │ │ │ │ ├── grpc_pb2.py │ │ │ │ │ └── grpc_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── commit_info_pb2.py │ │ │ │ ├── commit_info_pb2_grpc.py │ │ │ │ ├── listening_pb2.py │ │ │ │ └── listening_pb2_grpc.py │ │ ├── tx │ │ │ ├── config │ │ │ │ └── v1 │ │ │ │ │ ├── config_pb2.py │ │ │ │ │ └── config_pb2_grpc.py │ │ │ ├── signing │ │ │ │ └── v1beta1 │ │ │ │ │ ├── signing_pb2.py │ │ │ │ │ └── signing_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── service_pb2.py │ │ │ │ ├── service_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── upgrade │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ ├── module_pb2.py │ │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ ├── tx_pb2_grpc.py │ │ │ │ ├── upgrade_pb2.py │ │ │ │ └── upgrade_pb2_grpc.py │ │ └── vesting │ │ │ ├── module │ │ │ └── v1 │ │ │ │ ├── module_pb2.py │ │ │ │ └── module_pb2_grpc.py │ │ │ └── v1beta1 │ │ │ ├── tx_pb2.py │ │ │ ├── tx_pb2_grpc.py │ │ │ ├── vesting_pb2.py │ │ │ └── vesting_pb2_grpc.py │ ├── cosmos_proto │ │ ├── cosmos_pb2.py │ │ └── cosmos_pb2_grpc.py │ ├── cosmwasm │ │ └── wasm │ │ │ └── v1 │ │ │ ├── authz_pb2.py │ │ │ ├── authz_pb2_grpc.py │ │ │ ├── genesis_pb2.py │ │ │ ├── genesis_pb2_grpc.py │ │ │ ├── ibc_pb2.py │ │ │ ├── ibc_pb2_grpc.py │ │ │ ├── proposal_legacy_pb2.py │ │ │ ├── proposal_legacy_pb2_grpc.py │ │ │ ├── query_pb2.py │ │ │ ├── query_pb2_grpc.py │ │ │ ├── tx_pb2.py │ │ │ ├── tx_pb2_grpc.py │ │ │ ├── types_pb2.py │ │ │ └── types_pb2_grpc.py │ ├── exchange │ │ ├── event_provider_api_pb2.py │ │ ├── event_provider_api_pb2_grpc.py │ │ ├── health_pb2.py │ │ ├── health_pb2_grpc.py │ │ ├── injective_accounts_rpc_pb2.py │ │ ├── injective_accounts_rpc_pb2_grpc.py │ │ ├── injective_archiver_rpc_pb2.py │ │ ├── injective_archiver_rpc_pb2_grpc.py │ │ ├── injective_auction_rpc_pb2.py │ │ ├── injective_auction_rpc_pb2_grpc.py │ │ ├── injective_campaign_rpc_pb2.py │ │ ├── injective_campaign_rpc_pb2_grpc.py │ │ ├── injective_chart_rpc_pb2.py │ │ ├── injective_chart_rpc_pb2_grpc.py │ │ ├── injective_derivative_exchange_rpc_pb2.py │ │ ├── injective_derivative_exchange_rpc_pb2_grpc.py │ │ ├── injective_exchange_rpc_pb2.py │ │ ├── injective_exchange_rpc_pb2_grpc.py │ │ ├── injective_explorer_rpc_pb2.py │ │ ├── injective_explorer_rpc_pb2_grpc.py │ │ ├── injective_insurance_rpc_pb2.py │ │ ├── injective_insurance_rpc_pb2_grpc.py │ │ ├── injective_meta_rpc_pb2.py │ │ ├── injective_meta_rpc_pb2_grpc.py │ │ ├── injective_oracle_rpc_pb2.py │ │ ├── injective_oracle_rpc_pb2_grpc.py │ │ ├── injective_portfolio_rpc_pb2.py │ │ ├── injective_portfolio_rpc_pb2_grpc.py │ │ ├── injective_referral_rpc_pb2.py │ │ ├── injective_referral_rpc_pb2_grpc.py │ │ ├── injective_spot_exchange_rpc_pb2.py │ │ ├── injective_spot_exchange_rpc_pb2_grpc.py │ │ ├── injective_trading_rpc_pb2.py │ │ └── injective_trading_rpc_pb2_grpc.py │ ├── gogoproto │ │ ├── gogo_pb2.py │ │ └── gogo_pb2_grpc.py │ ├── google │ │ ├── api │ │ │ ├── annotations_pb2.py │ │ │ ├── annotations_pb2_grpc.py │ │ │ ├── client_pb2.py │ │ │ ├── client_pb2_grpc.py │ │ │ ├── expr │ │ │ │ ├── v1alpha1 │ │ │ │ │ ├── checked_pb2.py │ │ │ │ │ ├── checked_pb2_grpc.py │ │ │ │ │ ├── eval_pb2.py │ │ │ │ │ ├── eval_pb2_grpc.py │ │ │ │ │ ├── explain_pb2.py │ │ │ │ │ ├── explain_pb2_grpc.py │ │ │ │ │ ├── syntax_pb2.py │ │ │ │ │ ├── syntax_pb2_grpc.py │ │ │ │ │ ├── value_pb2.py │ │ │ │ │ └── value_pb2_grpc.py │ │ │ │ └── v1beta1 │ │ │ │ │ ├── decl_pb2.py │ │ │ │ │ ├── decl_pb2_grpc.py │ │ │ │ │ ├── eval_pb2.py │ │ │ │ │ ├── eval_pb2_grpc.py │ │ │ │ │ ├── expr_pb2.py │ │ │ │ │ ├── expr_pb2_grpc.py │ │ │ │ │ ├── source_pb2.py │ │ │ │ │ ├── source_pb2_grpc.py │ │ │ │ │ ├── value_pb2.py │ │ │ │ │ └── value_pb2_grpc.py │ │ │ ├── field_behavior_pb2.py │ │ │ ├── field_behavior_pb2_grpc.py │ │ │ ├── field_info_pb2.py │ │ │ ├── field_info_pb2_grpc.py │ │ │ ├── http_pb2.py │ │ │ ├── http_pb2_grpc.py │ │ │ ├── httpbody_pb2.py │ │ │ ├── httpbody_pb2_grpc.py │ │ │ ├── launch_stage_pb2.py │ │ │ ├── launch_stage_pb2_grpc.py │ │ │ ├── resource_pb2.py │ │ │ ├── resource_pb2_grpc.py │ │ │ ├── visibility_pb2.py │ │ │ └── visibility_pb2_grpc.py │ │ ├── bytestream │ │ │ ├── bytestream_pb2.py │ │ │ └── bytestream_pb2_grpc.py │ │ ├── geo │ │ │ └── type │ │ │ │ ├── viewport_pb2.py │ │ │ │ └── viewport_pb2_grpc.py │ │ ├── longrunning │ │ │ ├── operations_pb2.py │ │ │ └── operations_pb2_grpc.py │ │ ├── rpc │ │ │ ├── code_pb2.py │ │ │ ├── code_pb2_grpc.py │ │ │ ├── context │ │ │ │ ├── attribute_context_pb2.py │ │ │ │ └── attribute_context_pb2_grpc.py │ │ │ ├── error_details_pb2.py │ │ │ ├── error_details_pb2_grpc.py │ │ │ ├── status_pb2.py │ │ │ └── status_pb2_grpc.py │ │ └── type │ │ │ ├── calendar_period_pb2.py │ │ │ ├── calendar_period_pb2_grpc.py │ │ │ ├── color_pb2.py │ │ │ ├── color_pb2_grpc.py │ │ │ ├── date_pb2.py │ │ │ ├── date_pb2_grpc.py │ │ │ ├── datetime_pb2.py │ │ │ ├── datetime_pb2_grpc.py │ │ │ ├── dayofweek_pb2.py │ │ │ ├── dayofweek_pb2_grpc.py │ │ │ ├── decimal_pb2.py │ │ │ ├── decimal_pb2_grpc.py │ │ │ ├── expr_pb2.py │ │ │ ├── expr_pb2_grpc.py │ │ │ ├── fraction_pb2.py │ │ │ ├── fraction_pb2_grpc.py │ │ │ ├── interval_pb2.py │ │ │ ├── interval_pb2_grpc.py │ │ │ ├── latlng_pb2.py │ │ │ ├── latlng_pb2_grpc.py │ │ │ ├── localized_text_pb2.py │ │ │ ├── localized_text_pb2_grpc.py │ │ │ ├── money_pb2.py │ │ │ ├── money_pb2_grpc.py │ │ │ ├── month_pb2.py │ │ │ ├── month_pb2_grpc.py │ │ │ ├── phone_number_pb2.py │ │ │ ├── phone_number_pb2_grpc.py │ │ │ ├── postal_address_pb2.py │ │ │ ├── postal_address_pb2_grpc.py │ │ │ ├── quaternion_pb2.py │ │ │ ├── quaternion_pb2_grpc.py │ │ │ ├── timeofday_pb2.py │ │ │ └── timeofday_pb2_grpc.py │ ├── ibc │ │ ├── applications │ │ │ ├── fee │ │ │ │ └── v1 │ │ │ │ │ ├── ack_pb2.py │ │ │ │ │ ├── ack_pb2_grpc.py │ │ │ │ │ ├── fee_pb2.py │ │ │ │ │ ├── fee_pb2_grpc.py │ │ │ │ │ ├── genesis_pb2.py │ │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ │ ├── metadata_pb2.py │ │ │ │ │ ├── metadata_pb2_grpc.py │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ └── tx_pb2_grpc.py │ │ │ ├── interchain_accounts │ │ │ │ ├── controller │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── controller_pb2.py │ │ │ │ │ │ ├── controller_pb2_grpc.py │ │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ │ └── tx_pb2_grpc.py │ │ │ │ ├── genesis │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── genesis_pb2.py │ │ │ │ │ │ └── genesis_pb2_grpc.py │ │ │ │ ├── host │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── host_pb2.py │ │ │ │ │ │ ├── host_pb2_grpc.py │ │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ │ └── tx_pb2_grpc.py │ │ │ │ └── v1 │ │ │ │ │ ├── account_pb2.py │ │ │ │ │ ├── account_pb2_grpc.py │ │ │ │ │ ├── metadata_pb2.py │ │ │ │ │ ├── metadata_pb2_grpc.py │ │ │ │ │ ├── packet_pb2.py │ │ │ │ │ └── packet_pb2_grpc.py │ │ │ └── transfer │ │ │ │ ├── v1 │ │ │ │ ├── authz_pb2.py │ │ │ │ ├── authz_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── transfer_pb2.py │ │ │ │ ├── transfer_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ │ │ └── v2 │ │ │ │ ├── packet_pb2.py │ │ │ │ └── packet_pb2_grpc.py │ │ ├── core │ │ │ ├── channel │ │ │ │ └── v1 │ │ │ │ │ ├── channel_pb2.py │ │ │ │ │ ├── channel_pb2_grpc.py │ │ │ │ │ ├── genesis_pb2.py │ │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ ├── tx_pb2_grpc.py │ │ │ │ │ ├── upgrade_pb2.py │ │ │ │ │ └── upgrade_pb2_grpc.py │ │ │ ├── client │ │ │ │ └── v1 │ │ │ │ │ ├── client_pb2.py │ │ │ │ │ ├── client_pb2_grpc.py │ │ │ │ │ ├── genesis_pb2.py │ │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ └── tx_pb2_grpc.py │ │ │ ├── commitment │ │ │ │ └── v1 │ │ │ │ │ ├── commitment_pb2.py │ │ │ │ │ └── commitment_pb2_grpc.py │ │ │ ├── connection │ │ │ │ └── v1 │ │ │ │ │ ├── connection_pb2.py │ │ │ │ │ ├── connection_pb2_grpc.py │ │ │ │ │ ├── genesis_pb2.py │ │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ │ ├── query_pb2.py │ │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ │ ├── tx_pb2.py │ │ │ │ │ └── tx_pb2_grpc.py │ │ │ └── types │ │ │ │ └── v1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ └── genesis_pb2_grpc.py │ │ └── lightclients │ │ │ ├── localhost │ │ │ └── v2 │ │ │ │ ├── localhost_pb2.py │ │ │ │ └── localhost_pb2_grpc.py │ │ │ ├── solomachine │ │ │ ├── v2 │ │ │ │ ├── solomachine_pb2.py │ │ │ │ └── solomachine_pb2_grpc.py │ │ │ └── v3 │ │ │ │ ├── solomachine_pb2.py │ │ │ │ └── solomachine_pb2_grpc.py │ │ │ ├── tendermint │ │ │ └── v1 │ │ │ │ ├── tendermint_pb2.py │ │ │ │ └── tendermint_pb2_grpc.py │ │ │ └── wasm │ │ │ └── v1 │ │ │ ├── genesis_pb2.py │ │ │ ├── genesis_pb2_grpc.py │ │ │ ├── query_pb2.py │ │ │ ├── query_pb2_grpc.py │ │ │ ├── tx_pb2.py │ │ │ ├── tx_pb2_grpc.py │ │ │ ├── wasm_pb2.py │ │ │ └── wasm_pb2_grpc.py │ ├── injective │ │ ├── auction │ │ │ └── v1beta1 │ │ │ │ ├── auction_pb2.py │ │ │ │ ├── auction_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── crypto │ │ │ └── v1beta1 │ │ │ │ └── ethsecp256k1 │ │ │ │ ├── keys_pb2.py │ │ │ │ └── keys_pb2_grpc.py │ │ ├── exchange │ │ │ └── v1beta1 │ │ │ │ ├── authz_pb2.py │ │ │ │ ├── authz_pb2_grpc.py │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── exchange_pb2.py │ │ │ │ ├── exchange_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── proposal_pb2.py │ │ │ │ ├── proposal_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── insurance │ │ │ └── v1beta1 │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── insurance_pb2.py │ │ │ │ ├── insurance_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── ocr │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── ocr_pb2.py │ │ │ │ ├── ocr_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── oracle │ │ │ └── v1beta1 │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── oracle_pb2.py │ │ │ │ ├── oracle_pb2_grpc.py │ │ │ │ ├── proposal_pb2.py │ │ │ │ ├── proposal_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── peggy │ │ │ └── v1 │ │ │ │ ├── attestation_pb2.py │ │ │ │ ├── attestation_pb2_grpc.py │ │ │ │ ├── batch_pb2.py │ │ │ │ ├── batch_pb2_grpc.py │ │ │ │ ├── ethereum_signer_pb2.py │ │ │ │ ├── ethereum_signer_pb2_grpc.py │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── msgs_pb2.py │ │ │ │ ├── msgs_pb2_grpc.py │ │ │ │ ├── params_pb2.py │ │ │ │ ├── params_pb2_grpc.py │ │ │ │ ├── pool_pb2.py │ │ │ │ ├── pool_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── types_pb2.py │ │ │ │ └── types_pb2_grpc.py │ │ ├── permissions │ │ │ └── v1beta1 │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── params_pb2.py │ │ │ │ ├── params_pb2_grpc.py │ │ │ │ ├── permissions_pb2.py │ │ │ │ ├── permissions_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── stream │ │ │ └── v1beta1 │ │ │ │ ├── query_pb2.py │ │ │ │ └── query_pb2_grpc.py │ │ ├── tokenfactory │ │ │ └── v1beta1 │ │ │ │ ├── authorityMetadata_pb2.py │ │ │ │ ├── authorityMetadata_pb2_grpc.py │ │ │ │ ├── events_pb2.py │ │ │ │ ├── events_pb2_grpc.py │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── params_pb2.py │ │ │ │ ├── params_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ └── tx_pb2_grpc.py │ │ ├── txfees │ │ │ └── v1beta1 │ │ │ │ ├── genesis_pb2.py │ │ │ │ ├── genesis_pb2_grpc.py │ │ │ │ ├── query_pb2.py │ │ │ │ ├── query_pb2_grpc.py │ │ │ │ ├── tx_pb2.py │ │ │ │ ├── tx_pb2_grpc.py │ │ │ │ ├── txfees_pb2.py │ │ │ │ └── txfees_pb2_grpc.py │ │ ├── types │ │ │ └── v1beta1 │ │ │ │ ├── account_pb2.py │ │ │ │ ├── account_pb2_grpc.py │ │ │ │ ├── tx_ext_pb2.py │ │ │ │ ├── tx_ext_pb2_grpc.py │ │ │ │ ├── tx_response_pb2.py │ │ │ │ └── tx_response_pb2_grpc.py │ │ └── wasmx │ │ │ └── v1 │ │ │ ├── authz_pb2.py │ │ │ ├── authz_pb2_grpc.py │ │ │ ├── events_pb2.py │ │ │ ├── events_pb2_grpc.py │ │ │ ├── genesis_pb2.py │ │ │ ├── genesis_pb2_grpc.py │ │ │ ├── proposal_pb2.py │ │ │ ├── proposal_pb2_grpc.py │ │ │ ├── query_pb2.py │ │ │ ├── query_pb2_grpc.py │ │ │ ├── tx_pb2.py │ │ │ ├── tx_pb2_grpc.py │ │ │ ├── wasmx_pb2.py │ │ │ └── wasmx_pb2_grpc.py │ ├── osmosis │ │ └── txfees │ │ │ └── v1beta1 │ │ │ ├── query_pb2.py │ │ │ └── query_pb2_grpc.py │ └── tendermint │ │ ├── abci │ │ ├── types_pb2.py │ │ └── types_pb2_grpc.py │ │ ├── crypto │ │ ├── keys_pb2.py │ │ ├── keys_pb2_grpc.py │ │ ├── proof_pb2.py │ │ └── proof_pb2_grpc.py │ │ ├── libs │ │ └── bits │ │ │ ├── types_pb2.py │ │ │ └── types_pb2_grpc.py │ │ ├── p2p │ │ ├── types_pb2.py │ │ └── types_pb2_grpc.py │ │ ├── types │ │ ├── block_pb2.py │ │ ├── block_pb2_grpc.py │ │ ├── evidence_pb2.py │ │ ├── evidence_pb2_grpc.py │ │ ├── params_pb2.py │ │ ├── params_pb2_grpc.py │ │ ├── types_pb2.py │ │ ├── types_pb2_grpc.py │ │ ├── validator_pb2.py │ │ └── validator_pb2_grpc.py │ │ └── version │ │ ├── types_pb2.py │ │ └── types_pb2_grpc.py ├── sendtocosmos.py ├── transaction.py ├── utils │ ├── __init__.py │ ├── denom.py │ ├── grpc_api_request_assistant.py │ ├── grpc_api_stream_assistant.py │ └── logger.py └── wallet.py ├── pyproject.toml ├── run-examples.sh └── tests ├── __init__.py ├── client ├── __init__.py ├── chain │ ├── __init__.py │ ├── grpc │ │ ├── __init__.py │ │ ├── configurable_auction_query_servicer.py │ │ ├── configurable_auth_query_servicer.py │ │ ├── configurable_authz_query_servicer.py │ │ ├── configurable_bank_query_servicer.py │ │ ├── configurable_distribution_query_servicer.py │ │ ├── configurable_exchange_query_servicer.py │ │ ├── configurable_permissions_query_servicer.py │ │ ├── configurable_token_factory_query_servicer.py │ │ ├── configurable_txfees_query_servicer.py │ │ ├── configurable_wasm_query_servicer.py │ │ ├── test_chain_grpc_auction_api.py │ │ ├── test_chain_grpc_auth_api.py │ │ ├── test_chain_grpc_authz_api.py │ │ ├── test_chain_grpc_bank_api.py │ │ ├── test_chain_grpc_distribution_api.py │ │ ├── test_chain_grpc_exchange_api.py │ │ ├── test_chain_grpc_permissions_api.py │ │ ├── test_chain_grpc_token_factory_api.py │ │ ├── test_chain_grpc_txfees_api.py │ │ └── test_chain_grpc_wasm_api.py │ └── stream_grpc │ │ ├── __init__.py │ │ ├── configurable_chain_stream_query_servicer.py │ │ └── test_chain_grpc_chain_stream.py ├── indexer │ ├── __init__.py │ ├── configurable_account_query_servicer.py │ ├── configurable_auction_query_servicer.py │ ├── configurable_derivative_query_servicer.py │ ├── configurable_explorer_query_servicer.py │ ├── configurable_insurance_query_servicer.py │ ├── configurable_meta_query_servicer.py │ ├── configurable_oracle_query_servicer.py │ ├── configurable_portfolio_query_servicer.py │ ├── configurable_spot_query_servicer.py │ ├── grpc │ │ ├── __init__.py │ │ ├── test_indexer_grpc_account_api.py │ │ ├── test_indexer_grpc_auction_api.py │ │ ├── test_indexer_grpc_derivative_api.py │ │ ├── test_indexer_grpc_explorer_api.py │ │ ├── test_indexer_grpc_insurance_api.py │ │ ├── test_indexer_grpc_meta_api.py │ │ ├── test_indexer_grpc_oracle_api.py │ │ ├── test_indexer_grpc_portfolio_api.py │ │ └── test_indexer_grpc_spot_api.py │ └── stream_grpc │ │ ├── __init__.py │ │ ├── test_indexer_grpc_account_stream.py │ │ ├── test_indexer_grpc_auction_stream.py │ │ ├── test_indexer_grpc_derivative_stream.py │ │ ├── test_indexer_grpc_explorer_stream.py │ │ ├── test_indexer_grpc_meta_stream.py │ │ ├── test_indexer_grpc_oracle_stream.py │ │ ├── test_indexer_grpc_portfolio_stream.py │ │ └── test_indexer_grpc_spot_stream.py └── model │ ├── __init__.py │ └── test_pagination.py ├── core ├── __init__.py ├── ibc │ ├── __init__.py │ ├── channel │ │ ├── __init__.py │ │ └── grpc │ │ │ ├── __init__.py │ │ │ ├── configurable_ibc_channel_query_servicer.py │ │ │ └── test_ibc_channel_grpc_api.py │ ├── client │ │ ├── __init__.py │ │ └── grpc │ │ │ ├── __init__.py │ │ │ ├── configurable_ibc_client_query_servicer.py │ │ │ └── test_ibc_client_grpc_api.py │ ├── connection │ │ ├── __init__.py │ │ └── grpc │ │ │ ├── __init__.py │ │ │ ├── configurable_ibc_connection_query_servicer.py │ │ │ └── test_ibc_connection_grpc_api.py │ └── transfer │ │ ├── __init__.py │ │ └── grpc │ │ ├── __init__.py │ │ ├── configurable_ibc_transfer_query_servicer.py │ │ └── test_ibc_transfer_grpc_api.py ├── tendermint │ ├── __init__.py │ └── grpc │ │ ├── __init__.py │ │ ├── configurable_tendermint_query_servicer.py │ │ └── test_tendermint_grpc_api.py ├── test_broadcaster.py ├── test_gas_heuristics_gas_limit_estimator.py ├── test_gas_limit_estimator.py ├── test_market.py ├── test_message_based_transaction_fee_calculator.py ├── test_network.py ├── test_network_deprecation_warnings.py ├── test_token.py ├── test_tokens_file_loader.py └── tx │ ├── __init__.py │ └── grpc │ ├── __init__.py │ ├── configurable_tx_query_servicer.py │ └── test_tx_grpc_api.py ├── model_fixtures ├── __init__.py └── markets_fixtures.py ├── rpc_fixtures ├── __init__.py └── markets_fixtures.py ├── test_async_client.py ├── test_async_client_deprecation_warnings.py ├── test_composer.py ├── test_orderhash.py └── test_wallet.py /.coderabbit.yaml: -------------------------------------------------------------------------------- 1 | reviews: 2 | auto_review: 3 | base_branches: 4 | - "master" 5 | - "dev" 6 | - "feat/.*" 7 | chat: 8 | auto_reply: true 9 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Publish Python 🐍 distribution 📦 to PyPI 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | deploy: 9 | runs-on: ubuntu-latest 10 | 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v4 14 | - name: Install Python 15 | uses: actions/setup-python@v5 16 | - name: Install poetry 17 | run: python -m pip install poetry 18 | - name: Publish package 19 | env: 20 | PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} 21 | run: | 22 | poetry config pypi-token.pypi $PYPI_TOKEN 23 | poetry publish --build 24 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include pyinjective/proto *.py 2 | recursive-include pyinjective *.ini 3 | recursive-include pyinjective/cert/ *.crt 4 | -------------------------------------------------------------------------------- /NOTICE.md: -------------------------------------------------------------------------------- 1 | Copyright © 2021 - 2022 Injective Labs Inc. (https://injectivelabs.org/) 2 | 3 | 4 | 5 | Originally released by Injective Labs Inc. under:
6 | Apache License
7 | Version 2.0, January 2004
8 | http://www.apache.org/licenses/ 9 | -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | url = "https://pypi.org/simple" 3 | verify_ssl = true 4 | name = "pypi" 5 | 6 | [packages] 7 | aiocron = "*" 8 | aiohttp = "*" 9 | asyncio = "*" 10 | bech32 = "*" 11 | bip32 = "*" 12 | coincurve = "*" 13 | ecdsa = "*" 14 | eip712 = "*" 15 | grpcio = "*" 16 | grpcio-tools = "*" 17 | hdwallets = "*" 18 | mnemonic = "*" 19 | protobuf = "*" 20 | requests = "*" 21 | safe-pysha3 = "*" 22 | urllib3 = "<2" 23 | web3 = ">=6.0.0" 24 | websockets = "*" 25 | 26 | [dev-packages] 27 | pytest = "*" 28 | pytest-asyncio = "*" 29 | pytest-grpc = "*" 30 | requests-mock = "*" 31 | 32 | [requires] 33 | python_version = "3" 34 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/codecov.yml -------------------------------------------------------------------------------- /examples/chain_client/auth/query/1_Account.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" 11 | acc = await client.fetch_account(address=address) 12 | print(acc) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/authz/query/1_Grants.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import os 3 | 4 | import dotenv 5 | 6 | from pyinjective.async_client import AsyncClient 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | dotenv.load_dotenv() 12 | granter = os.getenv("INJECTIVE_GRANTER_PUBLIC_ADDRESS") 13 | grantee = os.getenv("INJECTIVE_GRANTEE_PUBLIC_ADDRESS") 14 | 15 | network = Network.testnet() 16 | client = AsyncClient(network) 17 | msg_type_url = "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder" 18 | authorizations = await client.fetch_grants(granter=granter, grantee=grantee, msg_type_url=msg_type_url) 19 | print(authorizations) 20 | 21 | 22 | if __name__ == "__main__": 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/10_SendEnabled.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | denom = "inj" 12 | enabled = await client.fetch_send_enabled( 13 | denoms=[denom], 14 | pagination=PaginationOption(limit=10), 15 | ) 16 | print(enabled) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/1_BankBalance.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r" 11 | denom = "inj" 12 | bank_balance = await client.fetch_bank_balance(address=address, denom=denom) 13 | print(bank_balance) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/2_BankBalances.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r" 11 | all_bank_balances = await client.fetch_bank_balances(address=address) 12 | print(all_bank_balances) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/3_SpendableBalances.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r" 11 | spendable_balances = await client.fetch_spendable_balances(address=address) 12 | print(spendable_balances) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/4_SpendableBalancesByDenom.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r" 11 | denom = "inj" 12 | spendable_balances = await client.fetch_spendable_balances_by_denom(address=address, denom=denom) 13 | print(spendable_balances) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/5_TotalSupply.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | total_supply = await client.fetch_total_supply( 12 | pagination=PaginationOption(limit=10), 13 | ) 14 | print(total_supply) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/6_SupplyOf.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | supply_of = await client.fetch_supply_of(denom="inj") 11 | print(supply_of) 12 | 13 | 14 | if __name__ == "__main__": 15 | asyncio.get_event_loop().run_until_complete(main()) 16 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/7_DenomMetadata.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | denom = "factory/inj107aqkjc3t5r3l9j4n9lgrma5tm3jav8qgppz6m/position" 11 | metadata = await client.fetch_denom_metadata(denom=denom) 12 | print(metadata) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/8_DenomsMetadata.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | denoms = await client.fetch_denoms_metadata( 12 | pagination=PaginationOption(limit=10), 13 | ) 14 | print(denoms) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/bank/query/9_DenomOwners.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | denom = "inj" 12 | owners = await client.fetch_denom_owners( 13 | denom=denom, 14 | pagination=PaginationOption(limit=10), 15 | ) 16 | print(owners) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/1_ValidatorDistributionInfo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | validator_address = "injvaloper1jue5dpr9lerjn6wlwtrywxrsenrf28ru89z99z" 11 | distribution_info = await client.fetch_validator_distribution_info(validator_address=validator_address) 12 | print(distribution_info) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/2_ValidatorOutstandingRewards.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | validator_address = "injvaloper1jue5dpr9lerjn6wlwtrywxrsenrf28ru89z99z" 11 | rewards = await client.fetch_validator_outstanding_rewards(validator_address=validator_address) 12 | print(rewards) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/3_ValidatorCommission.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | validator_address = "injvaloper1jue5dpr9lerjn6wlwtrywxrsenrf28ru89z99z" 11 | commission = await client.fetch_validator_commission(validator_address=validator_address) 12 | print(commission) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/4_ValidatorSlashes.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | limit = 2 13 | pagination = PaginationOption(limit=limit) 14 | validator_address = "injvaloper1jue5dpr9lerjn6wlwtrywxrsenrf28ru89z99z" 15 | contracts = await client.fetch_validator_slashes(validator_address=validator_address, pagination=pagination) 16 | print(contracts) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/5_DelegationRewards.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | delegator_address = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" 11 | validator_address = "injvaloper156t3yxd4udv0h9gwagfcmwnmm3quy0nph7tyh5" 12 | rewards = await client.fetch_delegation_rewards( 13 | delegator_address=delegator_address, validator_address=validator_address 14 | ) 15 | print(rewards) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/6_DelegationTotalRewards.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | delegator_address = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" 11 | rewards = await client.fetch_delegation_total_rewards( 12 | delegator_address=delegator_address, 13 | ) 14 | print(rewards) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/7_DelegatorValidators.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | delegator_address = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" 11 | validators = await client.fetch_delegator_validators( 12 | delegator_address=delegator_address, 13 | ) 14 | print(validators) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/8_DelegatorWithdrawAddress.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | delegator_address = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" 11 | withdraw_address = await client.fetch_delegator_withdraw_address( 12 | delegator_address=delegator_address, 13 | ) 14 | print(withdraw_address) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/distribution/query/9_CommunityPool.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | community_pool = await client.fetch_community_pool() 11 | print(community_pool) 12 | 13 | 14 | if __name__ == "__main__": 15 | asyncio.get_event_loop().run_until_complete(main()) 16 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/10_SpotMarkets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | spot_markets = await client.fetch_chain_spot_markets( 15 | status="Active", 16 | market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], 17 | ) 18 | print(spot_markets) 19 | 20 | 21 | if __name__ == "__main__": 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/11_SpotMarket.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | spot_market = await client.fetch_chain_spot_market( 15 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 16 | ) 17 | print(spot_market) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/12_FullSpotMarkets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | spot_markets = await client.fetch_chain_full_spot_markets( 15 | status="Active", 16 | market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], 17 | with_mid_price_and_tob=True, 18 | ) 19 | print(spot_markets) 20 | 21 | 22 | if __name__ == "__main__": 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/13_FullSpotMarket.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | spot_market = await client.fetch_chain_full_spot_market( 15 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 16 | with_mid_price_and_tob=True, 17 | ) 18 | print(spot_market) 19 | 20 | 21 | if __name__ == "__main__": 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/14_SpotOrderbook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | 12 | # initialize grpc client 13 | client = AsyncClient(network) 14 | 15 | pagination = PaginationOption(limit=2) 16 | 17 | orderbook = await client.fetch_chain_spot_orderbook( 18 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 19 | order_side="Buy", 20 | pagination=pagination, 21 | ) 22 | print(orderbook) 23 | 24 | 25 | if __name__ == "__main__": 26 | asyncio.get_event_loop().run_until_complete(main()) 27 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/20_SpotMidPriceAndTOB.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | prices = await client.fetch_spot_mid_price_and_tob( 15 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 16 | ) 17 | print(prices) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/21_DerivativeMidPriceAndTOB.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | prices = await client.fetch_derivative_mid_price_and_tob( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(prices) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/22_DerivativeOrderbook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | 12 | # initialize grpc client 13 | client = AsyncClient(network) 14 | 15 | pagination = PaginationOption(limit=2) 16 | 17 | orderbook = await client.fetch_chain_derivative_orderbook( 18 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 19 | pagination=pagination, 20 | ) 21 | print(orderbook) 22 | 23 | 24 | if __name__ == "__main__": 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/27_DerivativeMarkets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | derivative_markets = await client.fetch_chain_derivative_markets( 15 | status="Active", 16 | market_ids=["0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6"], 17 | ) 18 | print(derivative_markets) 19 | 20 | 21 | if __name__ == "__main__": 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/28_DerivativeMarket.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | derivative_market = await client.fetch_chain_derivative_market( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(derivative_market) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/29_DerivativeMarketAddress.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | address = await client.fetch_derivative_market_address( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(address) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/31_Positions.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | positions = await client.fetch_chain_positions() 15 | print(positions) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/35_PerpetualMarketInfo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | market_info = await client.fetch_chain_perpetual_market_info( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(market_info) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/36_ExpiryFuturesMarketInfo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | market_info = await client.fetch_chain_expiry_futures_market_info( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(market_info) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/37_PerpetualMarketFunding.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | funding = await client.fetch_chain_perpetual_market_funding( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(funding) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/3_ExchangeBalances.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | # initialize grpc client 11 | client = AsyncClient(network) 12 | 13 | balances = await client.fetch_exchange_balances() 14 | print(balances) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/43_FeeDiscountSchedule.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | schedule = await client.fetch_fee_discount_schedule() 15 | print(schedule) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/44_BalanceMismatches.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | mismatches = await client.fetch_balance_mismatches(dust_factor=1) 15 | print(mismatches) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/45_BalanceWithBalanceHolds.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | balance = await client.fetch_balance_with_balance_holds() 15 | print(balance) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/46_FeeDiscountTierStatistics.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | statistics = await client.fetch_fee_discount_tier_statistics() 15 | print(statistics) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/47_MitoVaultInfos.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | infos = await client.fetch_mito_vault_infos() 15 | print(infos) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/48_QueryMarketIDFromVault.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | market_id = await client.fetch_market_id_from_vault(vault_address="inj1qg5ega6dykkxc307y25pecuufrjkxkag6xhp6y") 15 | print(market_id) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/49_HistoricalTradeRecords.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | records = await client.fetch_historical_trade_records( 15 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" 16 | ) 17 | print(records) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/51_OptedOutOfRewardsAccounts.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | opted_out = await client.fetch_opted_out_of_rewards_accounts() 15 | print(opted_out) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/53_BinaryOptionsMarkets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | markets = await client.fetch_chain_binary_options_markets(status="Active") 15 | print(markets) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/55_MarketAtomicExecutionFeeMultiplier.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | multiplier = await client.fetch_market_atomic_execution_fee_multiplier( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(multiplier) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/56_L3DerivativeOrderBook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | orderbook = await client.fetch_l3_derivative_orderbook( 15 | market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 16 | ) 17 | print(orderbook) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/57_L3SpotOrderBook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | orderbook = await client.fetch_l3_spot_orderbook( 15 | market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 16 | ) 17 | print(orderbook) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/6_AggregateMarketVolume.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" 15 | 16 | volume = await client.fetch_aggregate_market_volume(market_id=market_id) 17 | print(volume) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/7_AggregateMarketVolumes.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | volume = await client.fetch_aggregate_market_volumes( 15 | market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], 16 | ) 17 | print(volume) 18 | 19 | 20 | if __name__ == "__main__": 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/8_DenomDecimal.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | deposits = await client.fetch_denom_decimal(denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5") 15 | print(deposits) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/exchange/query/9_DenomDecimals.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | 11 | # initialize grpc client 12 | client = AsyncClient(network) 13 | 14 | deposits = await client.fetch_denom_decimals(denoms=["inj", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5"]) 15 | print(deposits) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/11_UnreceivedPackets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | sequences = [1, 2] 16 | 17 | packets = await client.fetch_ibc_unreceived_packets( 18 | port_id=port_id, channel_id=channel_id, packet_commitment_sequences=sequences 19 | ) 20 | print(packets) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/12_UnreceivedAcks.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | 16 | acks = await client.fetch_ibc_unreceived_acks( 17 | port_id=port_id, 18 | channel_id=channel_id, 19 | ) 20 | print(acks) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/13_NextSequenceReceive.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | 16 | sequence = await client.fetch_next_sequence_receive( 17 | port_id=port_id, 18 | channel_id=channel_id, 19 | ) 20 | print(sequence) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/1_Channel.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | 16 | channel = await client.fetch_ibc_channel(port_id=port_id, channel_id=channel_id) 17 | print(channel) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/2_Channels.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | pagination = PaginationOption(skip=2, limit=4) 15 | 16 | channels = await client.fetch_ibc_channels(pagination=pagination) 17 | print(channels) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/3_ConnectionChannels.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | connection = "connection-182" 15 | pagination = PaginationOption(skip=2, limit=4) 16 | 17 | channels = await client.fetch_ibc_connection_channels(connection=connection, pagination=pagination) 18 | print(channels) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/4_ChannelClientState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | 16 | state = await client.fetch_ibc_channel_client_state(port_id=port_id, channel_id=channel_id) 17 | print(state) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/5_ChannelConsensusState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | revision_number = 1 16 | revision_height = 7990906 17 | 18 | state = await client.fetch_ibc_channel_consensus_state( 19 | port_id=port_id, channel_id=channel_id, revision_number=revision_number, revision_height=revision_height 20 | ) 21 | print(state) 22 | 23 | 24 | if __name__ == "__main__": 25 | symbol_db = symbol_database.Default() 26 | asyncio.get_event_loop().run_until_complete(main()) 27 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/6_PacketCommitment.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | sequence = 1 16 | 17 | commitment = await client.fetch_ibc_packet_commitment(port_id=port_id, channel_id=channel_id, sequence=sequence) 18 | print(commitment) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/8_PacketReceipt.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | sequence = 1 16 | 17 | receipt = await client.fetch_ibc_packet_receipt(port_id=port_id, channel_id=channel_id, sequence=sequence) 18 | print(receipt) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/channel/query/9_PacketAcknowledgement.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | sequence = 1 16 | 17 | acknowledgement = await client.fetch_ibc_packet_acknowledgement( 18 | port_id=port_id, channel_id=channel_id, sequence=sequence 19 | ) 20 | print(acknowledgement) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/1_ClientState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | client_id = "07-tendermint-0" 14 | 15 | state = await client.fetch_ibc_client_state(client_id=client_id) 16 | print(state) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/2_ClientStates.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | pagination = PaginationOption(skip=2, limit=4) 15 | 16 | states = await client.fetch_ibc_client_states(pagination=pagination) 17 | print(states) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/3_ConsensusState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | client_id = "07-tendermint-0" 14 | revision_number = 0 15 | revision_height = 7379538 16 | 17 | state = await client.fetch_ibc_consensus_state( 18 | client_id=client_id, revision_number=revision_number, revision_height=revision_height 19 | ) 20 | print(state) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/4_ConsensusStates.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | client_id = "07-tendermint-0" 15 | pagination = PaginationOption(skip=2, limit=4) 16 | 17 | states = await client.fetch_ibc_consensus_states(client_id=client_id, pagination=pagination) 18 | print(states) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/5_ConsensusStateHeights.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | client_id = "07-tendermint-0" 15 | pagination = PaginationOption(skip=2, limit=4) 16 | 17 | states = await client.fetch_ibc_consensus_state_heights(client_id=client_id, pagination=pagination) 18 | print(states) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/6_ClientStatus.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | client_id = "07-tendermint-0" 14 | 15 | state = await client.fetch_ibc_client_status(client_id=client_id) 16 | print(state) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/7_ClientParams.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | params = await client.fetch_ibc_client_params() 14 | print(params) 15 | 16 | 17 | if __name__ == "__main__": 18 | symbol_db = symbol_database.Default() 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/8_UpgradedClientState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | state = await client.fetch_ibc_upgraded_client_state() 14 | print(state) 15 | 16 | 17 | if __name__ == "__main__": 18 | symbol_db = symbol_database.Default() 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/client/query/9_UpgradedConsensusState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | state = await client.fetch_ibc_upgraded_consensus_state() 14 | print(state) 15 | 16 | 17 | if __name__ == "__main__": 18 | symbol_db = symbol_database.Default() 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/1_Connection.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | connection_id = "connection-0" 14 | 15 | connection = await client.fetch_ibc_connection(connection_id=connection_id) 16 | print(connection) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/2_Connections.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | pagination = PaginationOption(skip=2, limit=4) 15 | 16 | connections = await client.fetch_ibc_connections(pagination=pagination) 17 | print(connections) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/3_ClientConnections.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | client_id = "07-tendermint-0" 14 | 15 | connections = await client.fetch_ibc_client_connections(client_id=client_id) 16 | print(connections) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/4_ConnectionClientState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | connection_id = "connection-0" 14 | 15 | state = await client.fetch_ibc_connection_client_state(connection_id=connection_id) 16 | print(state) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/5_ConnectionConsensusState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | connection_id = "connection-0" 14 | revision_number = 0 15 | revision_height = 7379538 16 | 17 | state = await client.fetch_ibc_connection_consensus_state( 18 | connection_id=connection_id, revision_number=revision_number, revision_height=revision_height 19 | ) 20 | print(state) 21 | 22 | 23 | if __name__ == "__main__": 24 | symbol_db = symbol_database.Default() 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/connection/query/6_ConnectionParams.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | params = await client.fetch_ibc_connection_params() 14 | print(params) 15 | 16 | 17 | if __name__ == "__main__": 18 | symbol_db = symbol_database.Default() 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/transfer/query/1_DenomTrace.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from hashlib import sha256 3 | 4 | from google.protobuf import symbol_database 5 | 6 | from pyinjective.async_client import AsyncClient 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | path = "transfer/channel-126" 15 | base_denom = "uluna" 16 | full_path = f"{path}/{base_denom}" 17 | path_hash = sha256(full_path.encode()).hexdigest() 18 | trace_hash = f"ibc/{path_hash}" 19 | 20 | denom_trace = await client.fetch_denom_trace(hash=trace_hash) 21 | print(denom_trace) 22 | 23 | 24 | if __name__ == "__main__": 25 | symbol_db = symbol_database.Default() 26 | asyncio.get_event_loop().run_until_complete(main()) 27 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/transfer/query/2_DenomTraces.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | pagination = PaginationOption(skip=2, limit=4) 15 | 16 | denom_traces = await client.fetch_denom_traces(pagination=pagination) 17 | print(denom_traces) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/transfer/query/3_DenomHash.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | path = "transfer/channel-126" 14 | base_denom = "uluna" 15 | full_path = f"{path}/{base_denom}" 16 | 17 | denom_hash = await client.fetch_denom_hash(trace=full_path) 18 | print(denom_hash) 19 | 20 | 21 | if __name__ == "__main__": 22 | symbol_db = symbol_database.Default() 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/transfer/query/4_EscrowAddress.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | port_id = "transfer" 14 | channel_id = "channel-126" 15 | 16 | escrow_address = await client.fetch_escrow_address(port_id=port_id, channel_id=channel_id) 17 | print(escrow_address) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/ibc/transfer/query/5_TotalEscrowForDenom.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | base_denom = "uluna" 14 | 15 | escrow = await client.fetch_total_escrow_for_denom(denom=base_denom) 16 | print(escrow) 17 | 18 | 19 | if __name__ == "__main__": 20 | symbol_db = symbol_database.Default() 21 | asyncio.get_event_loop().run_until_complete(main()) 22 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/10_Vouchers.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | vouchers = await client.fetch_permissions_vouchers(denom=denom) 13 | print(vouchers) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/11_Voucher.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | address = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" 13 | voucher = await client.fetch_permissions_voucher(denom=denom, address=address) 14 | print(voucher) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/12_PermissionsModuleState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | state = await client.fetch_permissions_module_state() 12 | print(state) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/1_NamespaceDenoms.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | namespaces = await client.fetch_permissions_namespace_denoms() 12 | print(namespaces) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/2_Namespaces.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | namespaces = await client.fetch_permissions_namespaces() 12 | print(namespaces) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/3_Namespace.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | namespace = await client.fetch_permissions_namespace(denom=denom) 13 | print(namespace) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/4_RolesByActor.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | actor = "actor" 13 | roles = await client.fetch_permissions_roles_by_actor(denom=denom, actor=actor) 14 | print(roles) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/5_ActorsByRole.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | role = "roleName" 13 | addresses = await client.fetch_permissions_actors_by_role(denom=denom, role=role) 14 | print(addresses) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/6_RoleManagers.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | managers = await client.fetch_permissions_role_managers(denom=denom) 13 | print(managers) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/7_RoleManager.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | manager = "manager" 13 | managers = await client.fetch_permissions_role_manager(denom=denom, manager=manager) 14 | print(managers) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/8_PolicyStatuses.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | policy_statuses = await client.fetch_permissions_policy_statuses(denom=denom) 13 | print(policy_statuses) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/permissions/query/9_PolicyManagerCapabilities.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | denom = "inj" 12 | policy_manager_capabilities = await client.fetch_permissions_policy_manager_capabilities(denom=denom) 13 | print(policy_manager_capabilities) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/1_GetNodeInfo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | node_info = await client.fetch_node_info() 12 | print(node_info) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/2_GetSyncing.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | syncing = await client.fetch_syncing() 12 | print(syncing) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/3_GetLatestBlock.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | latest_block = await client.fetch_latest_block() 12 | print(latest_block) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/4_GetBlockByHeight.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | 11 | block = await client.fetch_block_by_height(height=15793860) 12 | print(block) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/5_GetLatestValidatorSet.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.core.network import Network 7 | 8 | 9 | async def main() -> None: 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | 13 | validator_set = await client.fetch_latest_validator_set() 14 | print(validator_set) 15 | 16 | 17 | if __name__ == "__main__": 18 | symbol_db = symbol_database.Default() 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/tendermint/query/6_GetValidatorSetByHeight.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from google.protobuf import symbol_database 4 | 5 | from pyinjective.async_client import AsyncClient 6 | from pyinjective.client.model.pagination import PaginationOption 7 | from pyinjective.core.network import Network 8 | 9 | 10 | async def main() -> None: 11 | network = Network.testnet() 12 | client = AsyncClient(network) 13 | 14 | pagination = PaginationOption(skip=2, limit=4) 15 | 16 | validator_set = await client.fetch_validator_set_by_height(height=23040174, pagination=pagination) 17 | print(validator_set) 18 | 19 | 20 | if __name__ == "__main__": 21 | symbol_db = symbol_database.Default() 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/chain_client/tokenfactory/query/1_DenomAuthorityMetadata.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | metadata = await client.fetch_denom_authority_metadata( 11 | creator="inj1uv6psuupldve0c9n3uezqlecadszqexv5vxx04", 12 | sub_denom="position", 13 | ) 14 | print(metadata) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/chain_client/tokenfactory/query/2_DenomsFromCreator.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | denoms = await client.fetch_denoms_from_creator(creator="inj1maeyvxfamtn8lfyxpjca8kuvauuf2qeu6gtxm3") 11 | print(denoms) 12 | 13 | 14 | if __name__ == "__main__": 15 | asyncio.get_event_loop().run_until_complete(main()) 16 | -------------------------------------------------------------------------------- /examples/chain_client/tokenfactory/query/3_TokenfactoryModuleState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | state = await client.fetch_tokenfactory_module_state() 11 | print(state) 12 | 13 | 14 | if __name__ == "__main__": 15 | asyncio.get_event_loop().run_until_complete(main()) 16 | -------------------------------------------------------------------------------- /examples/chain_client/tx/query/1_GetTx.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | tx_hash = "D265527E3171C47D01D7EC9B839A95F8F794D4E683F26F5564025961C96EFDDA" 11 | tx_logs = await client.fetch_tx(hash=tx_hash) 12 | print(tx_logs) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/txfees/query/1_GetEipBaseFee.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import json 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | metadata = await client.fetch_eip_base_fee() 12 | print(json.dumps(metadata, indent=2)) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/10_ContractsByCreator.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | creator = "inj1h3gepa4tszh66ee67he53jzmprsqc2l9npq3ty" 13 | limit = 2 14 | pagination = PaginationOption(limit=limit) 15 | response = await client.fetch_contracts_by_creator(creator_address=creator, pagination=pagination) 16 | print(response) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/1_ContractInfo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" 11 | contract_info = await client.fetch_contract_info(address=address) 12 | print(contract_info) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/2_ContractHistory.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | address = "inj18pp4vjwucpgg4nw3rr4wh4zyjg9ct5t8v9wqgj" 13 | limit = 2 14 | pagination = PaginationOption(limit=limit) 15 | contract_history = await client.fetch_contract_history(address=address, pagination=pagination) 16 | print(contract_history) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/3_ContractsByCode.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | code_id = 3770 13 | limit = 2 14 | pagination = PaginationOption(limit=limit) 15 | contracts = await client.fetch_contracts_by_code(code_id=code_id, pagination=pagination) 16 | print(contracts) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/4_AllContractsState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | address = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" 13 | limit = 2 14 | pagination = PaginationOption(limit=limit) 15 | contract_history = await client.fetch_all_contracts_state(address=address, pagination=pagination) 16 | print(contract_history) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/5_RawContractState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" 11 | query_data = '{"get_count": {}}' 12 | contract_state = await client.fetch_raw_contract_state(address=address, query_data=query_data) 13 | print(contract_state) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/6_SmartContractState.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | address = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" 11 | query_data = '{"get_count": {}}' 12 | contract_state = await client.fetch_smart_contract_state(address=address, query_data=query_data) 13 | print(contract_state) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/7_SmartContractCode.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import base64 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | response = await client.fetch_code(code_id=290) 12 | print(response) 13 | 14 | code = base64.b64decode(response["data"]).decode(encoding="utf-8", errors="replace") 15 | 16 | print(f"\n\n\n{code}") 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/8_SmartContractCodes.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | limit = 2 13 | pagination = PaginationOption(limit=limit) 14 | response = await client.fetch_codes(pagination=pagination) 15 | print(response) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/chain_client/wasm/query/9_SmartContractPinnedCodes.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | limit = 2 13 | pagination = PaginationOption(limit=limit) 14 | response = await client.fetch_pinned_codes(pagination=pagination) 15 | print(response) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/2_SubaccountBalance.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | subaccount_id = "0xaf79152ac5df276d9a8e1e2e22822f9713474902000000000000000000000000" 11 | denom = "inj" 12 | balance = await client.fetch_subaccount_balance(subaccount_id=subaccount_id, denom=denom) 13 | print(balance) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/3_SubaccountsList.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | account_address = "inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt" 11 | subacc_list = await client.fetch_subaccounts_list(account_address) 12 | print(subacc_list) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/4_SubaccountBalancesList.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | subaccount = "0xaf79152ac5df276d9a8e1e2e22822f9713474902000000000000000000000000" 11 | denoms = ["inj", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5"] 12 | subacc_balances_list = await client.fetch_subaccount_balances_list(subaccount_id=subaccount, denoms=denoms) 13 | print(subacc_balances_list) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/6_SubaccountOrderSummary.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | subaccount = "0xaf79152ac5df276d9a8e1e2e22822f9713474902000000000000000000000000" 11 | order_direction = "buy" 12 | market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" 13 | subacc_order_summary = await client.fetch_subaccount_order_summary( 14 | subaccount_id=subaccount, order_direction=order_direction, market_id=market_id 15 | ) 16 | print(subacc_order_summary) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/8_Portfolio.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | account_address = "inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku" 11 | portfolio = await client.fetch_portfolio(account_address=account_address) 12 | print(portfolio) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/accounts_rpc/9_Rewards.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | account_address = "inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku" 11 | epoch = -1 12 | rewards = await client.fetch_rewards(account_address=account_address, epoch=epoch) 13 | print(rewards) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/auctions_rpc/1_Auction.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | bid_round = 31 12 | auction = await client.fetch_auction(round=bid_round) 13 | print(auction) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/auctions_rpc/2_Auctions.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | auctions = await client.fetch_auctions() 12 | print(auctions) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/auctions_rpc/4_InjBurntEndpoint.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main(): 8 | # Select network: testnet, mainnet, or local 9 | network = Network.testnet() 10 | 11 | # Initialize AsyncClient 12 | client = AsyncClient(network) 13 | 14 | try: 15 | # Fetch INJ burnt amount 16 | inj_burnt_response = await client.fetch_inj_burnt() 17 | print("INJ Burnt Endpoint Response:") 18 | print(inj_burnt_response) 19 | 20 | except Exception as e: 21 | print(f"Error fetching INJ burnt amount: {e}") 22 | 23 | 24 | if __name__ == "__main__": 25 | asyncio.get_event_loop().run_until_complete(main()) 26 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/19_Binary_Options_Markets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_status = "active" 11 | quote_denom = "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7" 12 | market = await client.fetch_binary_options_markets(market_status=market_status, quote_denom=quote_denom) 13 | 14 | print(market) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/1_Market.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" 12 | market = await client.fetch_derivative_market(market_id=market_id) 13 | print(market) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/20_Binary_Options_Market.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_id = "0x175513943b8677368d138e57bcd6bef53170a0da192e7eaa8c2cd4509b54f8db" 11 | market = await client.fetch_binary_options_market(market_id=market_id) 12 | print(market) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/22_OrderbooksV2.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | market_ids = [ 12 | "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", 13 | "0xd5e4b12b19ecf176e4e14b42944731c27677819d2ed93be4104ad7025529c7ff", 14 | ] 15 | orderbooks = await client.fetch_derivative_orderbooks_v2(market_ids=market_ids) 16 | print(orderbooks) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/23_LiquidablePositions.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" 12 | skip = 10 13 | limit = 3 14 | pagination = PaginationOption(skip=skip, limit=limit) 15 | positions = await client.fetch_derivative_liquidable_positions( 16 | market_id=market_id, 17 | pagination=pagination, 18 | ) 19 | print(positions) 20 | 21 | 22 | if __name__ == "__main__": 23 | asyncio.get_event_loop().run_until_complete(main()) 24 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/2_Markets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | market_statuses = ["active"] 12 | quote_denom = "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5" 13 | market = await client.fetch_derivative_markets(market_statuses=market_statuses, quote_denom=quote_denom) 14 | print(market) 15 | 16 | 17 | if __name__ == "__main__": 18 | asyncio.get_event_loop().run_until_complete(main()) 19 | -------------------------------------------------------------------------------- /examples/exchange_client/derivative_exchange_rpc/4_Orderbook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" 12 | market = await client.fetch_derivative_orderbook_v2(market_id=market_id) 13 | print(market) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/12_GetValidators.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main(): 8 | # Select network: choose between testnet, mainnet, or local 9 | network = Network.testnet() 10 | 11 | # Initialize AsyncClient 12 | client = AsyncClient(network) 13 | 14 | try: 15 | # Fetch validators 16 | validators = await client.fetch_validators() 17 | 18 | # Print validators 19 | print("Validators:") 20 | print(validators) 21 | 22 | except Exception as e: 23 | print(f"Error: {e}") 24 | 25 | 26 | if __name__ == "__main__": 27 | asyncio.get_event_loop().run_until_complete(main()) 28 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/13_GetValidator.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main(): 8 | # Select network: choose between testnet, mainnet, or local 9 | network = Network.testnet() 10 | 11 | # Initialize AsyncClient 12 | client = AsyncClient(network) 13 | address = "injvaloper1kk523rsm9pey740cx4plalp40009ncs0wrchfe" 14 | 15 | try: 16 | # Fetch validator 17 | validator = await client.fetch_validator(address=address) 18 | 19 | # Print validators 20 | print("Validator:") 21 | print(validator) 22 | 23 | except Exception as e: 24 | print(f"Error: {e}") 25 | 26 | 27 | if __name__ == "__main__": 28 | asyncio.get_event_loop().run_until_complete(main()) 29 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/14_GetValidatorUptime.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main(): 8 | # Select network: choose between testnet, mainnet, or local 9 | network = Network.testnet() 10 | 11 | # Initialize AsyncClient 12 | client = AsyncClient(network) 13 | address = "injvaloper1kk523rsm9pey740cx4plalp40009ncs0wrchfe" 14 | 15 | try: 16 | # Fetch validator uptime 17 | uptime = await client.fetch_validator_uptime(address=address) 18 | 19 | # Print uptime 20 | print("Validator uptime:") 21 | print(uptime) 22 | 23 | except Exception as e: 24 | print(f"Error: {e}") 25 | 26 | 27 | if __name__ == "__main__": 28 | asyncio.get_event_loop().run_until_complete(main()) 29 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/16_GetWasmCodeById.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import logging 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # network: Network = Network.testnet() 10 | network: Network = Network.testnet() 11 | client: AsyncClient = AsyncClient(network) 12 | 13 | code_id = 2008 14 | 15 | wasm_code = await client.fetch_wasm_code_by_id( 16 | code_id=code_id, 17 | ) 18 | print("Wasm code:") 19 | print(wasm_code) 20 | 21 | 22 | if __name__ == "__main__": 23 | logging.basicConfig(level=logging.INFO) 24 | asyncio.get_event_loop().run_until_complete(main()) 25 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/18_GetWasmContractByAddress.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import logging 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # network: Network = Network.testnet() 10 | network: Network = Network.testnet() 11 | client: AsyncClient = AsyncClient(network) 12 | 13 | address = "inj1yhz4e7df95908jhs9erl87vdzjkdsc24q7afjf" 14 | 15 | wasm_contract = await client.fetch_wasm_contract_by_address(address=address) 16 | print("Wasm contract:") 17 | print(wasm_contract) 18 | 19 | 20 | if __name__ == "__main__": 21 | logging.basicConfig(level=logging.INFO) 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/19_GetCw20Balance.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import logging 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # network: Network = Network.testnet() 10 | network: Network = Network.testnet() 11 | client: AsyncClient = AsyncClient(network) 12 | 13 | address = "inj1phd706jqzd9wznkk5hgsfkrc8jqxv0kmlj0kex" 14 | 15 | balance = await client.fetch_cw20_balance(address=address) 16 | print("Cw20 balance:") 17 | print(balance) 18 | 19 | 20 | if __name__ == "__main__": 21 | logging.basicConfig(level=logging.INFO) 22 | asyncio.get_event_loop().run_until_complete(main()) 23 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/20_Relayers.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main(): 8 | # Select network: choose between testnet, mainnet, or local 9 | network = Network.testnet() 10 | 11 | # Initialize AsyncClient 12 | client = AsyncClient(network) 13 | 14 | try: 15 | # Fetch relayers 16 | validators = await client.fetch_relayers() 17 | 18 | # Print relayers 19 | print("Relayers:") 20 | print(validators) 21 | 22 | except Exception as e: 23 | print(f"Error: {e}") 24 | 25 | 26 | if __name__ == "__main__": 27 | asyncio.get_event_loop().run_until_complete(main()) 28 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/3_Blocks.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | limit = 2 13 | pagination = PaginationOption(limit=limit) 14 | blocks = await client.fetch_blocks(pagination=pagination) 15 | print(blocks) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/4_Block.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | block_height = "5825046" 12 | block = await client.fetch_block(block_id=block_height) 13 | print(block) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/5_TxsRequest.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | limit = 2 13 | pagination = PaginationOption(limit=limit) 14 | txs = await client.fetch_txs(pagination=pagination) 15 | print(txs) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/8_GetPeggyDeposits.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | receiver = "inj1phd706jqzd9wznkk5hgsfkrc8jqxv0kmlj0kex" 12 | peggy_deposits = await client.fetch_peggy_deposit_txs(receiver=receiver) 13 | print(peggy_deposits) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/explorer_rpc/9_GetPeggyWithdrawals.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.client.model.pagination import PaginationOption 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | sender = "inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku" 13 | limit = 2 14 | pagination = PaginationOption(limit=limit) 15 | peggy_deposits = await client.fetch_peggy_withdrawal_txs(sender=sender, pagination=pagination) 16 | print(peggy_deposits) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/exchange_client/insurance_rpc/1_InsuranceFunds.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | insurance_funds = await client.fetch_insurance_funds() 12 | print(insurance_funds) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/insurance_rpc/2_Redemptions.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | redeemer = "inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku" 12 | redemption_denom = "share4" 13 | status = "disbursed" 14 | insurance_redemptions = await client.fetch_redemptions(address=redeemer, denom=redemption_denom, status=status) 15 | print(insurance_redemptions) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/exchange_client/meta_rpc/1_Ping.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | resp = await client.fetch_ping() 12 | print("Health OK?", resp) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/meta_rpc/2_Version.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | resp = await client.fetch_version() 12 | print("Version:", resp) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/meta_rpc/3_Info.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import time 3 | 4 | from pyinjective.async_client import AsyncClient 5 | from pyinjective.core.network import Network 6 | 7 | 8 | async def main() -> None: 9 | # select network: local, testnet, mainnet 10 | network = Network.testnet() 11 | client = AsyncClient(network) 12 | resp = await client.fetch_info() 13 | print("[!] Info:") 14 | print(resp) 15 | latency = int(time.time() * 1000) - int(resp["timestamp"]) 16 | print(f"Server Latency: {latency}ms") 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/exchange_client/oracle_rpc/3_OracleList.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | oracle_list = await client.fetch_oracle_list() 12 | print(oracle_list) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | # select network: local, testnet, mainnet 9 | network = Network.testnet() 10 | client = AsyncClient(network) 11 | account_address = "inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt" 12 | portfolio = await client.fetch_account_portfolio_balances(account_address=account_address, usd=False) 13 | print(portfolio) 14 | 15 | 16 | if __name__ == "__main__": 17 | asyncio.get_event_loop().run_until_complete(main()) 18 | -------------------------------------------------------------------------------- /examples/exchange_client/spot_exchange_rpc/14_Orderbooks.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_ids = [ 11 | "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", 12 | "0x7a57e705bb4e09c88aecfc295569481dbf2fe1d5efe364651fbe72385938e9b0", 13 | ] 14 | orderbooks = await client.fetch_spot_orderbooks_v2(market_ids=market_ids) 15 | print(orderbooks) 16 | 17 | 18 | if __name__ == "__main__": 19 | asyncio.get_event_loop().run_until_complete(main()) 20 | -------------------------------------------------------------------------------- /examples/exchange_client/spot_exchange_rpc/1_Market.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" 11 | market = await client.fetch_spot_market(market_id=market_id) 12 | print(market) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /examples/exchange_client/spot_exchange_rpc/2_Markets.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_status = "active" 11 | base_denom = "inj" 12 | quote_denom = "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5" 13 | market = await client.fetch_spot_markets( 14 | market_statuses=[market_status], base_denom=base_denom, quote_denom=quote_denom 15 | ) 16 | print(market) 17 | 18 | 19 | if __name__ == "__main__": 20 | asyncio.get_event_loop().run_until_complete(main()) 21 | -------------------------------------------------------------------------------- /examples/exchange_client/spot_exchange_rpc/4_Orderbook.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from pyinjective.async_client import AsyncClient 4 | from pyinjective.core.network import Network 5 | 6 | 7 | async def main() -> None: 8 | network = Network.testnet() 9 | client = AsyncClient(network) 10 | market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" 11 | orderbook = await client.fetch_spot_orderbook_v2(market_id=market_id) 12 | print(orderbook) 13 | 14 | 15 | if __name__ == "__main__": 16 | asyncio.get_event_loop().run_until_complete(main()) 17 | -------------------------------------------------------------------------------- /poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | create = true 3 | in-project = true 4 | -------------------------------------------------------------------------------- /pyinjective/__init__.py: -------------------------------------------------------------------------------- 1 | # Import first api_implementation from protobuf to force the import of architecture specific dependencies 2 | # If this is not imported, importing later grpcio (required by AsyncClient) fails in Mac machines with M1 and M2 3 | from google.protobuf.internal import api_implementation # noqa: F401 4 | 5 | from pyinjective.async_client import AsyncClient # noqa: F401 6 | from pyinjective.transaction import Transaction # noqa: F401 7 | from pyinjective.wallet import Address, PrivateKey, PublicKey # noqa: F401 8 | -------------------------------------------------------------------------------- /pyinjective/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/chain/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/chain/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/chain/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/chain/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/chain/grpc_stream/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/chain/grpc_stream/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/chain/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/chain/model/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/indexer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/indexer/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/indexer/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/indexer/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/indexer/grpc_stream/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/indexer/grpc_stream/__init__.py -------------------------------------------------------------------------------- /pyinjective/client/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/client/model/__init__.py -------------------------------------------------------------------------------- /pyinjective/constant.py: -------------------------------------------------------------------------------- 1 | GAS_PRICE = 160_000_000 2 | GAS_FEE_BUFFER_AMOUNT = 25_000 3 | MAX_MEMO_CHARACTERS = 256 4 | ADDITIONAL_CHAIN_FORMAT_DECIMALS = 18 5 | TICKER_TOKENS_SEPARATOR = "/" 6 | INJ_DENOM = "inj" 7 | INJ_DECIMALS = 18 8 | -------------------------------------------------------------------------------- /pyinjective/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/channel/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/channel/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/channel/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/channel/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/client/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/client/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/client/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/connection/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/connection/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/connection/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/connection/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/transfer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/transfer/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/ibc/transfer/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/ibc/transfer/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/tendermint/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/tendermint/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/tendermint/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/tendermint/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/tx/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/tx/__init__.py -------------------------------------------------------------------------------- /pyinjective/core/tx/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/core/tx/grpc/__init__.py -------------------------------------------------------------------------------- /pyinjective/exceptions.py: -------------------------------------------------------------------------------- 1 | class PyInjectiveError(Exception): 2 | pass 3 | 4 | 5 | class ValueTooLargeError(PyInjectiveError): 6 | pass 7 | 8 | 9 | class EmptyMsgError(PyInjectiveError): 10 | pass 11 | 12 | 13 | class NotFoundError(PyInjectiveError): 14 | pass 15 | 16 | 17 | class UndefinedError(PyInjectiveError): 18 | pass 19 | 20 | 21 | class DecodeError(PyInjectiveError): 22 | pass 23 | 24 | 25 | class ConvertError(PyInjectiveError): 26 | pass 27 | 28 | 29 | class SchemaError(PyInjectiveError): 30 | pass 31 | -------------------------------------------------------------------------------- /pyinjective/proto/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/proto/__init__.py -------------------------------------------------------------------------------- /pyinjective/proto/amino/amino_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/capability/v1/capability_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/capability/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/app/runtime/v1alpha1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/app/v1alpha1/config_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/app/v1alpha1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/auth/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/auth/v1beta1/auth_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/authz/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/authz/v1beta1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/authz/v1beta1/event_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/autocli/v1/options_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/bank/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/bank/v1beta1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/bank/v1beta1/bank_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/bank/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/base/tendermint/v1beta1/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/base/v1beta1/coin_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/circuit/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/circuit/v1/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/consensus/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crisis/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/ed25519/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/hd/v1/hd_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/keyring/v1/record_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/multisig/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/distribution/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/evidence/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/feegrant/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/genutil/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/gov/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/gov/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/gov/v1/gov_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/gov/v1beta1/gov_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/group/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/group/v1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/group/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/group/v1/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/ics23/v1/proofs_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/mint/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/mint/v1beta1/mint_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/msg/textual/v1/textual_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/msg/v1/msg_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/nft/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/nft/v1beta1/event_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/nft/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/nft/v1beta1/nft_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/orm/v1/orm_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/params/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/params/v1beta1/params_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/query/v1/query_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/slashing/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/staking/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/staking/v1beta1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/staking/v1beta1/staking_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/store/internal/kv/v1beta1/kv_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/store/snapshots/v1/snapshot_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/store/v1beta1/commit_info_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/store/v1beta1/listening_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/tx/config/v1/config_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/tx/v1beta1/tx_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/upgrade/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/vesting/module/v1/module_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmos_proto/cosmos_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmwasm/wasm/v1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmwasm/wasm/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmwasm/wasm/v1/ibc_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmwasm/wasm/v1/proposal_legacy_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/cosmwasm/wasm/v1/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/gogoproto/gogo_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/annotations_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/client_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1alpha1/checked_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1alpha1/eval_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1alpha1/explain_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1alpha1/syntax_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1alpha1/value_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1beta1/decl_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1beta1/eval_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1beta1/expr_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1beta1/source_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/expr/v1beta1/value_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/field_behavior_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/field_info_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/http_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/httpbody_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/launch_stage_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/resource_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/api/visibility_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/geo/type/viewport_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/rpc/code_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/rpc/context/attribute_context_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/rpc/error_details_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/rpc/status_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/calendar_period_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/color_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/date_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/datetime_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/dayofweek_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/decimal_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/expr_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/fraction_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/interval_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/latlng_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/localized_text_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/money_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/month_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/phone_number_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/postal_address_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/quaternion_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/google/type/timeofday_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/fee/v1/ack_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/fee/v1/fee_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/fee/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/fee/v1/metadata_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/controller/v1/controller_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/genesis/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/host/v1/host_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/v1/account_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/v1/metadata_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/interchain_accounts/v1/packet_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/transfer/v1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/applications/transfer/v2/packet_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/channel/v1/channel_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/channel/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/channel/v1/upgrade_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/client/v1/client_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/client/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/commitment/v1/commitment_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/connection/v1/connection_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/connection/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/core/types/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/localhost/v2/localhost_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/solomachine/v3/solomachine_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/wasm/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/ibc/lightclients/wasm/v1/wasm_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/auction/v1beta1/auction_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/auction/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/crypto/v1beta1/ethsecp256k1/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/exchange/v1beta1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/exchange/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/exchange/v1beta1/exchange_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/exchange/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/exchange/v1beta1/proposal_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/insurance/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/insurance/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/insurance/v1beta1/insurance_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/ocr/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/ocr/v1beta1/ocr_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/oracle/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/oracle/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/oracle/v1beta1/oracle_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/oracle/v1beta1/proposal_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/attestation_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/batch_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/ethereum_signer_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/params_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/pool_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/peggy/v1/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/permissions/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/permissions/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/permissions/v1beta1/params_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/permissions/v1beta1/permissions_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/tokenfactory/v1beta1/authorityMetadata_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/tokenfactory/v1beta1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/tokenfactory/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/tokenfactory/v1beta1/params_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/txfees/v1beta1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/txfees/v1beta1/txfees_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/types/v1beta1/account_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/types/v1beta1/tx_ext_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/types/v1beta1/tx_response_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/wasmx/v1/authz_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/wasmx/v1/events_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/wasmx/v1/genesis_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/wasmx/v1/proposal_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/injective/wasmx/v1/wasmx_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/crypto/keys_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/crypto/proof_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/libs/bits/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/p2p/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/types/block_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/types/evidence_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/types/params_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/types/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/types/validator_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/proto/tendermint/version/types_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | """Client and server classes corresponding to protobuf-defined services.""" 3 | import grpc 4 | 5 | -------------------------------------------------------------------------------- /pyinjective/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/pyinjective/utils/__init__.py -------------------------------------------------------------------------------- /pyinjective/utils/denom.py: -------------------------------------------------------------------------------- 1 | class Denom: 2 | def __init__( 3 | self, 4 | description: str, 5 | base: int, 6 | quote: int, 7 | min_price_tick_size: float, 8 | min_quantity_tick_size: float, 9 | min_notional: float, 10 | ): 11 | self.description = description 12 | self.base = base 13 | self.quote = quote 14 | self.min_price_tick_size = min_price_tick_size 15 | self.min_quantity_tick_size = min_quantity_tick_size 16 | self.min_notional = min_notional 17 | -------------------------------------------------------------------------------- /pyinjective/utils/logger.py: -------------------------------------------------------------------------------- 1 | import logging 2 | from logging import Logger 3 | from typing import Type 4 | 5 | # If the application using the SDK has its own logging configuration, the following basic configuration will have no 6 | # effect 7 | logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") 8 | 9 | 10 | class LoggerProvider: 11 | def logger(self) -> Logger: 12 | return logging.getLogger(__name__) 13 | 14 | def logger_for_class(self, logging_class: Type) -> Logger: 15 | return logging.getLogger(f"{logging_class.__module__}.{logging_class.__name__}") 16 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/__init__.py -------------------------------------------------------------------------------- /tests/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/__init__.py -------------------------------------------------------------------------------- /tests/client/chain/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/chain/__init__.py -------------------------------------------------------------------------------- /tests/client/chain/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/chain/grpc/__init__.py -------------------------------------------------------------------------------- /tests/client/chain/grpc/configurable_txfees_query_servicer.py: -------------------------------------------------------------------------------- 1 | from collections import deque 2 | 3 | from pyinjective.proto.injective.txfees.v1beta1 import query_pb2 as txfees_query_pb, query_pb2_grpc as txfees_query_grpc 4 | 5 | 6 | class ConfigurableTxfeesQueryServicer(txfees_query_grpc.QueryServicer): 7 | def __init__(self): 8 | super().__init__() 9 | self.params_responses = deque() 10 | self.eip_base_fee_responses = deque() 11 | 12 | async def Params(self, request: txfees_query_pb.QueryParamsRequest, context=None, metadata=None): 13 | return self.params_responses.pop() 14 | 15 | async def GetEipBaseFee(self, request: txfees_query_pb.QueryEipBaseFeeRequest, context=None, metadata=None): 16 | return self.eip_base_fee_responses.pop() 17 | -------------------------------------------------------------------------------- /tests/client/chain/stream_grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/chain/stream_grpc/__init__.py -------------------------------------------------------------------------------- /tests/client/chain/stream_grpc/configurable_chain_stream_query_servicer.py: -------------------------------------------------------------------------------- 1 | from collections import deque 2 | 3 | from pyinjective.proto.injective.stream.v1beta1 import query_pb2 as chain_stream_pb, query_pb2_grpc as chain_stream_grpc 4 | 5 | 6 | class ConfigurableChainStreamQueryServicer(chain_stream_grpc.StreamServicer): 7 | def __init__(self): 8 | super().__init__() 9 | self.stream_responses = deque() 10 | 11 | async def Stream(self, request: chain_stream_pb.StreamRequest, context=None, metadata=None): 12 | for event in self.stream_responses: 13 | yield event 14 | -------------------------------------------------------------------------------- /tests/client/indexer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/indexer/__init__.py -------------------------------------------------------------------------------- /tests/client/indexer/configurable_insurance_query_servicer.py: -------------------------------------------------------------------------------- 1 | from collections import deque 2 | 3 | from pyinjective.proto.exchange import ( 4 | injective_insurance_rpc_pb2 as exchange_insurance_pb, 5 | injective_insurance_rpc_pb2_grpc as exchange_insurance_grpc, 6 | ) 7 | 8 | 9 | class ConfigurableInsuranceQueryServicer(exchange_insurance_grpc.InjectiveInsuranceRPCServicer): 10 | def __init__(self): 11 | super().__init__() 12 | self.funds_responses = deque() 13 | self.redemptions_responses = deque() 14 | 15 | async def Funds(self, request: exchange_insurance_pb.FundsRequest, context=None, metadata=None): 16 | return self.funds_responses.pop() 17 | 18 | async def Redemptions(self, request: exchange_insurance_pb.RedemptionsRequest, context=None, metadata=None): 19 | return self.redemptions_responses.pop() 20 | -------------------------------------------------------------------------------- /tests/client/indexer/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/indexer/grpc/__init__.py -------------------------------------------------------------------------------- /tests/client/indexer/stream_grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/indexer/stream_grpc/__init__.py -------------------------------------------------------------------------------- /tests/client/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/client/model/__init__.py -------------------------------------------------------------------------------- /tests/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/channel/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/channel/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/channel/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/channel/grpc/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/client/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/client/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/client/grpc/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/connection/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/connection/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/connection/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/connection/grpc/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/transfer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/transfer/__init__.py -------------------------------------------------------------------------------- /tests/core/ibc/transfer/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/ibc/transfer/grpc/__init__.py -------------------------------------------------------------------------------- /tests/core/tendermint/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/tendermint/__init__.py -------------------------------------------------------------------------------- /tests/core/tendermint/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/tendermint/grpc/__init__.py -------------------------------------------------------------------------------- /tests/core/test_token.py: -------------------------------------------------------------------------------- 1 | from decimal import Decimal 2 | 3 | from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401 4 | 5 | 6 | class TestToken: 7 | def test_chain_formatted_value(self, inj_token): 8 | value = Decimal("1.3456") 9 | 10 | chain_formatted_value = inj_token.chain_formatted_value(human_readable_value=value) 11 | expected_value = value * Decimal(f"1e{inj_token.decimals}") 12 | 13 | assert chain_formatted_value == expected_value 14 | -------------------------------------------------------------------------------- /tests/core/tx/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/tx/__init__.py -------------------------------------------------------------------------------- /tests/core/tx/grpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/core/tx/grpc/__init__.py -------------------------------------------------------------------------------- /tests/model_fixtures/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/model_fixtures/__init__.py -------------------------------------------------------------------------------- /tests/rpc_fixtures/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InjectiveLabs/sdk-python/f9b9b3f902a155517d0dc55e008ca7316dba42b4/tests/rpc_fixtures/__init__.py --------------------------------------------------------------------------------