Skip to content

Commit fece3ef

Browse files
authored
fix(rpc): use pactus-grpc as rpc dependency (#41)
1 parent 0935b56 commit fece3ef

25 files changed

+34
-2950
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Install locally
2525
run: |
26-
pip install -e .
26+
python3 -m pip install .
2727
2828
- name: Run all Examples
2929
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Install locally
2525
run: |
26-
pip install -e .
26+
python3 -m pip install .
2727
2828
- name: Run tests
2929
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Explore the `examples` folder for more detailed usage scenarios.
3030
For local development, you can install the package in editable mode, which allows you to make changes and test them immediately:
3131

3232
```bash
33-
pip install -e .
33+
python3 -m pip install .
3434
```
3535

3636
After making changes, it's important to ensure all tests pass by running:

examples/example_get_blockchain_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pactus.rpc.blockchain_pb2_grpc import BlockchainStub
2-
from pactus.rpc.blockchain_pb2 import GetBlockchainInfoRequest
1+
from pactus_grpc.blockchain_pb2_grpc import BlockchainStub
2+
from pactus_grpc.blockchain_pb2 import GetBlockchainInfoRequest
33
import grpc
44

55

examples/example_get_consensus_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pactus.rpc.blockchain_pb2_grpc import BlockchainStub
2-
from pactus.rpc.blockchain_pb2 import GetConsensusInfoRequest
1+
from pactus_grpc.blockchain_pb2_grpc import BlockchainStub
2+
from pactus_grpc.blockchain_pb2 import GetConsensusInfoRequest
33
import grpc
44

55

examples/example_get_node_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pactus.rpc.network_pb2_grpc import NetworkStub
2-
from pactus.rpc.network_pb2 import GetNodeInfoRequest
1+
from pactus_grpc.network_pb2_grpc import NetworkStub
2+
from pactus_grpc.network_pb2 import GetNodeInfoRequest
33
import grpc
44

55

pactus/rpc/__init__.py

Whitespace-only changes.

pactus/rpc/blockchain_pb2.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)