Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Update to BandChain v3 #36

Merged
merged 19 commits into from
Jan 21, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Code Checkout
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ __pycache__/
*.egg-info
.env
**/.DS_Store
.idea
.venv
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def main():
)

# Sign and broadcast a transaction
tx_block = await c.send_tx_block_mode(wallet.sign_and_build(txn))
tx_block = await c.send_tx_sync_mode(wallet.sign_and_build(txn))

# Converting to JSON for readability
print(tx_block.to_json(indent=4))
Expand Down
4 changes: 2 additions & 2 deletions examples/ledger_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio

from pyband import Client, Transaction, Wallet
from pyband.messages.oracle.v1 import MsgEditDataSource
from pyband.messages.band.oracle.v1 import MsgEditDataSource
from pyband.proto.cosmos.base.v1beta1 import Coin


Expand Down Expand Up @@ -44,7 +44,7 @@ async def main():
)

# Sign and broadcast a transaction
tx_block = await c.send_tx_block_mode(wallet.sign_and_build(txn))
tx_block = await c.send_tx_sync_mode(wallet.sign_and_build(txn))

# Convert to JSON for readability
print(tx_block.to_json(indent=4))
Expand Down
4 changes: 2 additions & 2 deletions examples/request_data_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

from pyband import Client, Transaction, Wallet
from pyband.messages.oracle.v1 import MsgRequestData
from pyband.messages.band.oracle.v1 import MsgRequestData
from pyband.proto.cosmos.base.v1beta1 import Coin


Expand Down Expand Up @@ -47,7 +47,7 @@ async def main():
)

# Sign and broadcast a transaction
tx_block = await c.send_tx_block_mode(wallet.sign_and_build(txn))
tx_block = await c.send_tx_sync_mode(wallet.sign_and_build(txn))

# Converting to JSON for readability
print(tx_block.to_json(indent=4))
Expand Down
2 changes: 1 addition & 1 deletion examples/send_band_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def main():
)

# Sign and broadcast a transaction
tx_block = await c.send_tx_block_mode(wallet.sign_and_build(txn))
tx_block = await c.send_tx_sync_mode(wallet.sign_and_build(txn))

# Converting to JSON for readability
print(tx_block.to_json(indent=4))
Expand Down
1,180 changes: 732 additions & 448 deletions poetry.lock

Large diffs are not rendered by default.

Loading