Skip to content

Commit f5915bf

Browse files
committed
indev
1 parent ff8e1d7 commit f5915bf

8 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ package_testing.ipynb
151151
Result/*
152152
dev_ref/*
153153
testing*
154-
tests/report.csv
154+
examples/report.csv

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,22 @@ How to use the package:
5252

5353
### Avalanche:
5454

55-
1. Import the package into your Python script:
55+
1. Import the AvalanchePosition class into your Python script:
5656
```python
57-
from alpha_homora_v2.util import get_web3_provider
5857
from alpha_homora_v2.position import AvalanchePosition
5958
```
6059

61-
2. **(Optional)** Create your Web3 provider object to interact with the network:
60+
2. **(Optional)** Instantiate your custom Web3 provider object to interact with the network:
6261
```python
62+
from alpha_homora_v2.util import get_web3_provider
63+
6364
NETWORK_RPC_URL = "your_rpc_url"
6465
provider = get_web3_provider(NETWORK_RPC_URL)
6566
```
6667
3. Creating an [AvalanchePosition](alpha_homora_v2/position.py) instance requires the following:
6768
- Your position ID (an integer)
6869
- This ID should match your position on Alpha Homora, without the "#"
69-
- ![demo](img/id_highlight.png)
70+
![demo](img/id_highlight.png)
7071

7172
<!--- DEPRECATED
7273
- The token symbol/pair (a string)

tests/avalanche/generate_avax_position_report.py renamed to examples/avalanche/generate_avax_position_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
ADDRESS = os.getenv("PUBLIC_WALLET_ADDRESS")
12-
CSV_OUTPUT_FILEPATH = os.path.join(os.path.dirname(__file__), "report.csv") # File will be generated to tests/report.csv
12+
CSV_OUTPUT_FILEPATH = os.path.join(os.path.dirname(__file__), "report.csv") # File will be generated to examples/report.csv
1313

1414

1515
def build_rows(ahv2_positions: list[AvalanchePosition]):

0 commit comments

Comments
 (0)