Skip to content

Commit ee51198

Browse files
authored
Merge pull request #1 from Synthetixio/update-version
Update version
2 parents e7b0145 + 18c6932 commit ee51198

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
PROVIDER_RPC=https://base.publicnode.com
2-
NETWORK_ID=8453
32
ADDRESS=
43
PRIVATE_KEY=

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ pip install -r requirements.txt
3131

3232
```
3333
PROVIDER_RPC=<An RPC endpoint>
34-
NETWORK_ID=<The network ID>
35-
ADDRESS=<Your address>
3634
PRIVATE_KEY=<Your private key (optional)>
3735
```
3836

39-
The private key is optional. If one is not provided, the SDK will simulate the specified address, but transaction signing will be disabled.
37+
The private key is optional. If one is not provided, the SDK can simulate a specified address, but transaction signing will be disabled.
4038

4139
5. Run the status script:
4240

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
python-dotenv
22
ipykernel
3-
synthetix==0.1.2
3+
synthetix==0.1.10

scripts/create_account.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
from synthetix import Synthetix
44

55
# load environment variables
6-
load_dotenv()
6+
load_dotenv(override=True)
77

88
# initialize the client
99
snx = Synthetix(
1010
provider_rpc=os.getenv("PROVIDER_RPC"),
11-
network_id=os.getenv("NETWORK_ID"),
12-
address=os.getenv("ADDRESS"),
1311
private_key=os.getenv("PRIVATE_KEY"),
1412
)
1513

status.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
from synthetix import Synthetix
44

55
# load environment variables
6-
load_dotenv()
6+
load_dotenv(override=True)
77

88
# initialize the client
99
snx = Synthetix(
1010
provider_rpc=os.getenv("PROVIDER_RPC"),
11-
network_id=os.getenv("NETWORK_ID"),
1211
address=os.getenv("ADDRESS"),
13-
private_key=os.getenv("PRIVATE_KEY"),
1412
)
1513

1614
snx.perps.get_account_ids()

0 commit comments

Comments
 (0)