Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ make tests
**0.7.1.1**
* Fixed Testnet network URLs

**0.7.1.1**
* Fixed Testnet network URLs

**0.7.1**
* Include implementation of the MessageBroadcaster, to simplify the transaction creation and broadcasting process.
* Include implementation of the TransactionBroadcaster, to simplify the transaction creation and broadcasting process.

**0.7.0.6**
* ADD SEI/USDT in metadata
Expand Down
2 changes: 1 addition & 1 deletion examples/SendToInjective.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import asyncio
import logging

from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.sendtocosmos import Peggo

import importlib.resources as pkg_resources
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/0_LocalOrderHash.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey
from pyinjective.orderhash import OrderHashManager

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/13_MsgIncreasePositionMargin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/15_MsgWithdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/16_MsgSubaccountTransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/17_MsgBatchUpdateOrders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/18_MsgBid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/19_MsgGrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
5 changes: 2 additions & 3 deletions examples/chain_client/1_MsgSend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand All @@ -11,8 +11,7 @@ async def main() -> None:
network = Network.testnet()

# initialize grpc client
# set custom cookie location (optional) - defaults to current dir
client = AsyncClient(network, insecure=False, chain_cookie_location="/tmp/.chain_cookie")
client = AsyncClient(network, insecure=False)
composer = await client.composer()
await client.sync_timeout_height()

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/20_MsgExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey, Address


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/21_MsgRevoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/22_MsgSendToEth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/23_MsgRelayPriceFeedPrice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/24_MsgRewardsOptOut.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/25_MsgDelegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/26_MsgWithdrawDelegatorReward.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/27_Grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import logging

from pyinjective.async_client import AsyncClient
from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.testnet()
Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/28_BankBalances.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import logging

from pyinjective.async_client import AsyncClient
from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.testnet()
Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/29_BankBalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import logging

from pyinjective.async_client import AsyncClient
from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.testnet()
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/2_MsgDeposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/30_ExternalTransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/31_MsgCreateBinaryOptionsLimitOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network, Denom
from pyinjective.constant import Denom
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/33_MsgCancelBinaryOptionsOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/36_MsgRelayProviderPrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/37_GetTx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import logging

from pyinjective.async_client import AsyncClient
from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.testnet()
Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/38_StreamEventOrderFail.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import websockets
import base64

from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.mainnet()
Expand Down
3 changes: 2 additions & 1 deletion examples/chain_client/39_Account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import logging

from pyinjective.async_client import AsyncClient
from pyinjective.constant import Network
from pyinjective.core.network import Network


async def main() -> None:
network = Network.testnet()
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/3_MsgCreateSpotLimitOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/40_MsgExecuteContract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/41_MsgCreateInsuranceFund.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/42_MsgUnderwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/43_MsgRequestRedemption.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.async_client import AsyncClient
from pyinjective.transaction import Transaction
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey

async def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/44_MessageBroadcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyinjective.composer import Composer as ProtoMsgComposer
from pyinjective.core.broadcaster import MsgBroadcasterWithPk
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pyinjective.composer import Composer as ProtoMsgComposer
from pyinjective.async_client import AsyncClient
from pyinjective.core.broadcaster import MsgBroadcasterWithPk
from pyinjective.constant import Network
from pyinjective.core.network import Network
from pyinjective.wallet import PrivateKey, Address


Expand Down
Loading