-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #337 from InjectiveLabs/dev
Release v1.6.0
- Loading branch information
Showing
673 changed files
with
61,535 additions
and
16,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: v2 | ||
managed: | ||
enabled: true | ||
plugins: | ||
- remote: buf.build/protocolbuffers/python | ||
out: ./pyinjective/proto/ | ||
- remote: buf.build/grpc/python | ||
out: ./pyinjective/proto/ | ||
inputs: | ||
- module: buf.build/cosmos/cosmos-proto | ||
- module: buf.build/cosmos/gogo-proto | ||
- module: buf.build/googleapis/googleapis | ||
- module: buf.build/cosmos/ics23 | ||
- git_repo: https://github.com/InjectiveLabs/cosmos-sdk | ||
tag: v0.50.8-inj-0 | ||
- git_repo: https://github.com/InjectiveLabs/ibc-go | ||
tag: v8.3.2-inj-0 | ||
- git_repo: https://github.com/InjectiveLabs/wasmd | ||
tag: v0.51.0-inj-0 | ||
# - git_repo: https://github.com/InjectiveLabs/wasmd | ||
# branch: v0.51.x-inj | ||
# subdir: proto | ||
- git_repo: https://github.com/InjectiveLabs/injective-core | ||
tag: v1.13.0 | ||
subdir: proto | ||
# - git_repo: https://github.com/InjectiveLabs/injective-core | ||
# branch: master | ||
# subdir: proto | ||
- directory: proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/chain_client/ibc/channel/query/10_PacketAcknowledgements.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.client.model.pagination import PaginationOption | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
port_id = "transfer" | ||
channel_id = "channel-126" | ||
sequences = [1, 2] | ||
pagination = PaginationOption(skip=2, limit=4) | ||
|
||
acknowledgements = await client.fetch_ibc_packet_acknowledgements( | ||
port_id=port_id, | ||
channel_id=channel_id, | ||
packet_commitment_sequences=sequences, | ||
pagination=pagination, | ||
) | ||
print(acknowledgements) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
25 changes: 25 additions & 0 deletions
25
examples/chain_client/ibc/channel/query/11_UnreceivedPackets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
port_id = "transfer" | ||
channel_id = "channel-126" | ||
sequences = [1, 2] | ||
|
||
packets = await client.fetch_ibc_unreceived_packets( | ||
port_id=port_id, channel_id=channel_id, packet_commitment_sequences=sequences | ||
) | ||
print(packets) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
25 changes: 25 additions & 0 deletions
25
examples/chain_client/ibc/channel/query/12_UnreceivedAcks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
port_id = "transfer" | ||
channel_id = "channel-126" | ||
|
||
acks = await client.fetch_ibc_unreceived_acks( | ||
port_id=port_id, | ||
channel_id=channel_id, | ||
) | ||
print(acks) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
25 changes: 25 additions & 0 deletions
25
examples/chain_client/ibc/channel/query/13_NextSequenceReceive.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
port_id = "transfer" | ||
channel_id = "channel-126" | ||
|
||
sequence = await client.fetch_next_sequence_receive( | ||
port_id=port_id, | ||
channel_id=channel_id, | ||
) | ||
print(sequence) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
port_id = "transfer" | ||
channel_id = "channel-126" | ||
|
||
channel = await client.fetch_ibc_channel(port_id=port_id, channel_id=channel_id) | ||
print(channel) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import asyncio | ||
|
||
from google.protobuf import symbol_database | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.client.model.pagination import PaginationOption | ||
from pyinjective.core.network import Network | ||
|
||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network) | ||
|
||
pagination = PaginationOption(skip=2, limit=4) | ||
|
||
channels = await client.fetch_ibc_channels(pagination=pagination) | ||
print(channels) | ||
|
||
|
||
if __name__ == "__main__": | ||
symbol_db = symbol_database.Default() | ||
asyncio.get_event_loop().run_until_complete(main()) |
Oops, something went wrong.