avantis-trader-sdk 0.8.2__py3-none-any.whl → 0.8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- avantis_trader_sdk/__init__.py +5 -5
- avantis_trader_sdk/abis/AggregatorV3Interface.json +606 -606
- avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json +4 -4
- avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json +7132 -7132
- avantis_trader_sdk/abis/Sanctions.json +190 -190
- avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json +4 -4
- avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json +2637 -2637
- avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json +1628 -1628
- avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json +2781 -2781
- avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json +3729 -3729
- avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json +2330 -2330
- avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json +1890 -1890
- avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json +7022 -7022
- avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json +1283 -1283
- avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json +2424 -2424
- avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json +855 -855
- avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json +4 -4
- avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json +10 -10
- avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json +4 -4
- avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json +320 -320
- avantis_trader_sdk/client.py +369 -367
- avantis_trader_sdk/config.py +14 -14
- avantis_trader_sdk/feed/feed_client.py +263 -261
- avantis_trader_sdk/rpc/asset_parameters.py +499 -499
- avantis_trader_sdk/rpc/blended.py +71 -71
- avantis_trader_sdk/rpc/category_parameters.py +216 -216
- avantis_trader_sdk/rpc/fee_parameters.py +237 -237
- avantis_trader_sdk/rpc/pairs_cache.py +130 -130
- avantis_trader_sdk/rpc/rpc_helpers.py +8 -8
- avantis_trader_sdk/rpc/snapshot.py +142 -142
- avantis_trader_sdk/rpc/trade.py +701 -710
- avantis_trader_sdk/rpc/trading_parameters.py +139 -139
- avantis_trader_sdk/types.py +462 -462
- avantis_trader_sdk/utils.py +78 -78
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/METADATA +124 -113
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/RECORD +38 -39
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/WHEEL +1 -1
- avantis_trader_sdk/feed/feedIds.json +0 -214
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/top_level.txt +0 -0
avantis_trader_sdk/utils.py
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
from web3 import Web3
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def is_tuple_type(type_):
|
|
5
|
-
return type_.startswith("tuple")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def is_array_type(type_):
|
|
9
|
-
return type_.endswith("[]")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def process_output_types(abi_outputs):
|
|
13
|
-
"""Processes ABI outputs, handling tuples based on their components."""
|
|
14
|
-
processed_types = []
|
|
15
|
-
for output in abi_outputs:
|
|
16
|
-
output_type = output["type"] # Get the type string
|
|
17
|
-
if is_array_type(output_type):
|
|
18
|
-
# Assuming arrays will always contain types, not data
|
|
19
|
-
processed_types.append(output_type)
|
|
20
|
-
elif is_tuple_type(output_type):
|
|
21
|
-
# Recursively process the tuple's components
|
|
22
|
-
processed_components = process_output_types(output["components"])
|
|
23
|
-
tuple_str = f"({','.join(processed_components)})" # Construct tuple string
|
|
24
|
-
processed_types.append(tuple_str)
|
|
25
|
-
else:
|
|
26
|
-
processed_types.append(output_type)
|
|
27
|
-
return processed_types
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def assign_names_to_decoded(decoded_output, abi_outputs):
|
|
31
|
-
"""Assigns names from ABI outputs to values in a decoded tuple/array."""
|
|
32
|
-
if not isinstance(decoded_output, (list, tuple)):
|
|
33
|
-
return decoded_output # Not an array or tuple
|
|
34
|
-
|
|
35
|
-
result = {}
|
|
36
|
-
for output, value in zip(abi_outputs, decoded_output):
|
|
37
|
-
if "components" in output:
|
|
38
|
-
result[output["name"]] = assign_names_to_decoded(
|
|
39
|
-
value, output["components"]
|
|
40
|
-
)
|
|
41
|
-
elif output["type"] == "bytes32": # Check for bytes32
|
|
42
|
-
result[output["name"]] = Web3.to_hex(value) # Convert to hex string
|
|
43
|
-
else:
|
|
44
|
-
result[output["name"]] = value
|
|
45
|
-
return result
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# def auto_decode(contract, function_name, *args):
|
|
49
|
-
# # Get the function from the contract
|
|
50
|
-
# function = getattr(contract.functions, function_name)
|
|
51
|
-
|
|
52
|
-
# # Call the function with the provided arguments
|
|
53
|
-
# raw_output = function(*args).call()
|
|
54
|
-
|
|
55
|
-
# # Get the ABI for the function
|
|
56
|
-
# abi_outputs = [output for output in contract.abi if output.get('name') == function_name][0]['outputs']
|
|
57
|
-
|
|
58
|
-
# # Decode the output
|
|
59
|
-
# output_types = [output['type'] for output in abi_outputs]
|
|
60
|
-
# decoded_output = Web3.codec.decode(output_types, raw_output)
|
|
61
|
-
|
|
62
|
-
# # Convert the decoded output to a structured object
|
|
63
|
-
# structured_output = convert_array_to_object(abi_outputs, decoded_output)
|
|
64
|
-
|
|
65
|
-
# return structured_output
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def decoder(web3, contract, function_name, raw_output):
|
|
69
|
-
abi_outputs = [
|
|
70
|
-
output for output in contract.abi if output.get("name") == function_name
|
|
71
|
-
][0]["outputs"]
|
|
72
|
-
|
|
73
|
-
output_types = process_output_types(abi_outputs)
|
|
74
|
-
decoded_output = raw_output
|
|
75
|
-
if not isinstance(raw_output, list):
|
|
76
|
-
decoded_output = web3.codec.decode(output_types, raw_output)
|
|
77
|
-
decoded_output = assign_names_to_decoded(decoded_output, abi_outputs)
|
|
78
|
-
return decoded_output
|
|
1
|
+
from web3 import Web3
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def is_tuple_type(type_):
|
|
5
|
+
return type_.startswith("tuple")
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def is_array_type(type_):
|
|
9
|
+
return type_.endswith("[]")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def process_output_types(abi_outputs):
|
|
13
|
+
"""Processes ABI outputs, handling tuples based on their components."""
|
|
14
|
+
processed_types = []
|
|
15
|
+
for output in abi_outputs:
|
|
16
|
+
output_type = output["type"] # Get the type string
|
|
17
|
+
if is_array_type(output_type):
|
|
18
|
+
# Assuming arrays will always contain types, not data
|
|
19
|
+
processed_types.append(output_type)
|
|
20
|
+
elif is_tuple_type(output_type):
|
|
21
|
+
# Recursively process the tuple's components
|
|
22
|
+
processed_components = process_output_types(output["components"])
|
|
23
|
+
tuple_str = f"({','.join(processed_components)})" # Construct tuple string
|
|
24
|
+
processed_types.append(tuple_str)
|
|
25
|
+
else:
|
|
26
|
+
processed_types.append(output_type)
|
|
27
|
+
return processed_types
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def assign_names_to_decoded(decoded_output, abi_outputs):
|
|
31
|
+
"""Assigns names from ABI outputs to values in a decoded tuple/array."""
|
|
32
|
+
if not isinstance(decoded_output, (list, tuple)):
|
|
33
|
+
return decoded_output # Not an array or tuple
|
|
34
|
+
|
|
35
|
+
result = {}
|
|
36
|
+
for output, value in zip(abi_outputs, decoded_output):
|
|
37
|
+
if "components" in output:
|
|
38
|
+
result[output["name"]] = assign_names_to_decoded(
|
|
39
|
+
value, output["components"]
|
|
40
|
+
)
|
|
41
|
+
elif output["type"] == "bytes32": # Check for bytes32
|
|
42
|
+
result[output["name"]] = Web3.to_hex(value) # Convert to hex string
|
|
43
|
+
else:
|
|
44
|
+
result[output["name"]] = value
|
|
45
|
+
return result
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# def auto_decode(contract, function_name, *args):
|
|
49
|
+
# # Get the function from the contract
|
|
50
|
+
# function = getattr(contract.functions, function_name)
|
|
51
|
+
|
|
52
|
+
# # Call the function with the provided arguments
|
|
53
|
+
# raw_output = function(*args).call()
|
|
54
|
+
|
|
55
|
+
# # Get the ABI for the function
|
|
56
|
+
# abi_outputs = [output for output in contract.abi if output.get('name') == function_name][0]['outputs']
|
|
57
|
+
|
|
58
|
+
# # Decode the output
|
|
59
|
+
# output_types = [output['type'] for output in abi_outputs]
|
|
60
|
+
# decoded_output = Web3.codec.decode(output_types, raw_output)
|
|
61
|
+
|
|
62
|
+
# # Convert the decoded output to a structured object
|
|
63
|
+
# structured_output = convert_array_to_object(abi_outputs, decoded_output)
|
|
64
|
+
|
|
65
|
+
# return structured_output
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def decoder(web3, contract, function_name, raw_output):
|
|
69
|
+
abi_outputs = [
|
|
70
|
+
output for output in contract.abi if output.get("name") == function_name
|
|
71
|
+
][0]["outputs"]
|
|
72
|
+
|
|
73
|
+
output_types = process_output_types(abi_outputs)
|
|
74
|
+
decoded_output = raw_output
|
|
75
|
+
if not isinstance(raw_output, list):
|
|
76
|
+
decoded_output = web3.codec.decode(output_types, raw_output)
|
|
77
|
+
decoded_output = assign_names_to_decoded(decoded_output, abi_outputs)
|
|
78
|
+
return decoded_output
|
|
@@ -1,113 +1,124 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.8.
|
|
4
|
-
Summary: SDK for interacting with Avantis trading contracts.
|
|
5
|
-
Home-page: https://avantisfi.com/
|
|
6
|
-
Author: Avantis Labs
|
|
7
|
-
Author-email: brank@avantisfi.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Keywords: trading sdk blockchain ethereum web3 avantis
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Requires-Python: >=3.6
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: web3<7,>=6.15.1
|
|
16
|
-
Requires-Dist: pydantic<3,>=2.8.2
|
|
17
|
-
Requires-Dist: websockets<14,>=12.0
|
|
18
|
-
Requires-Dist: boto3<2,>=1.35.44
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
Requires-Dist: toolz<1,>=0.12.1
|
|
21
|
-
Requires-Dist:
|
|
22
|
-
Requires-Dist: pyasn1<1,>=0.6.1
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
[
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: avantis_trader_sdk
|
|
3
|
+
Version: 0.8.3
|
|
4
|
+
Summary: SDK for interacting with Avantis trading contracts.
|
|
5
|
+
Home-page: https://avantisfi.com/
|
|
6
|
+
Author: Avantis Labs
|
|
7
|
+
Author-email: brank@avantisfi.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: trading sdk blockchain ethereum web3 avantis
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: web3<7,>=6.15.1
|
|
16
|
+
Requires-Dist: pydantic<3,>=2.8.2
|
|
17
|
+
Requires-Dist: websockets<14,>=12.0
|
|
18
|
+
Requires-Dist: boto3<2,>=1.35.44
|
|
19
|
+
Requires-Dist: eth_account<0.12.0,>=0.10.0
|
|
20
|
+
Requires-Dist: toolz<1,>=0.12.1
|
|
21
|
+
Requires-Dist: eth_utils<5,>=2.1.0
|
|
22
|
+
Requires-Dist: pyasn1<1,>=0.6.1
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: keywords
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
34
|
+
|
|
35
|
+
# Welcome to Avantis Trader SDK’s documentation!
|
|
36
|
+
|
|
37
|
+
Avantis Trader SDK is a powerful and flexible toolkit for trading on the Avantis platform. This documentation will guide you through the installation process, basic usage, and advanced features of the SDK.
|
|
38
|
+
|
|
39
|
+
## 📚 [Read the Full Documentation Here](https://sdk.avantisfi.com/)
|
|
40
|
+
|
|
41
|
+
Contents:
|
|
42
|
+
|
|
43
|
+
- [Introduction](#introduction)
|
|
44
|
+
- [About Avantis](#about-avantis)
|
|
45
|
+
- [Purpose of the Avantis Trader SDK](#purpose-of-the-avantis-trader-sdk)
|
|
46
|
+
- [Getting Started](#getting_started)
|
|
47
|
+
- [Installation](#installation)
|
|
48
|
+
- [Next Steps](#next-steps)
|
|
49
|
+
- [Examples](#examples)
|
|
50
|
+
|
|
51
|
+
# Introduction
|
|
52
|
+
|
|
53
|
+
Welcome to the Avantis Trader SDK, a powerful tool designed to interact with the Avantis decentralized exchange (DEX) and leverage its advanced features for trading and market-making in cryptocurrencies, forex, and commodities.
|
|
54
|
+
|
|
55
|
+
## About Avantis
|
|
56
|
+
|
|
57
|
+
[Avantis](https://avantisfi.com/) is at the forefront of decentralized leveraged trading platforms, offering users the ability to take long or short positions in synthetic crypto, forex, and commodities using perpetuals—a financial instrument that provides leverage without an expiration date. With synthetic leverage and a USDC stablecoin liquidity pool, Avantis achieves high capital efficiency, enabling a diverse selection of tradable assets and leverage up to 100x.
|
|
58
|
+
|
|
59
|
+
The platform also introduces fine-grained risk management for liquidity providers (LPs) through time and risk parameters. This innovation allows any LP to become a sophisticated market maker for a wide range of derivatives, starting with perpetuals.
|
|
60
|
+
|
|
61
|
+
Read more about Avantis at [https://docs.avantisfi.com/](https://docs.avantisfi.com/).
|
|
62
|
+
|
|
63
|
+
## Purpose of the Avantis Trader SDK
|
|
64
|
+
|
|
65
|
+
The Avantis Trader SDK is designed to simplify and enhance the experience of interacting with the Avantis DEX. It provides developers and traders with a set of tools to:
|
|
66
|
+
|
|
67
|
+
- Access real-time price feeds for supported trading pairs.
|
|
68
|
+
- Retrieve and analyze key parameters for assets, categories, and trading strategies.
|
|
69
|
+
- Integrate live price updates into applications or trading algorithms.
|
|
70
|
+
- Execute trades and manage positions on the Avantis platform.
|
|
71
|
+
|
|
72
|
+
Whether you are a developer building decentralized finance (DeFi) applications, a trader seeking to automate your strategies, or a market maker looking to optimize your operations, the Avantis Trader SDK offers the functionality you need to succeed in the rapidly evolving world of decentralized trading.
|
|
73
|
+
|
|
74
|
+
# Getting Started
|
|
75
|
+
|
|
76
|
+
## Installation
|
|
77
|
+
|
|
78
|
+
To get started with the Avantis Trader SDK, follow these steps to install the package:
|
|
79
|
+
|
|
80
|
+
1. Ensure you have Python 3.6 or later installed on your system.
|
|
81
|
+
2. Install the SDK using pip:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pip install avantis-trader-sdk
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
or
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install git+https://github.com/Avantis-Labs/avantis_trader_sdk.git
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Alternatively, if you have a local copy of the source:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
git clone https://github.com/yourusername/avantis-trader-sdk.git
|
|
97
|
+
cd avantis-trader-sdk
|
|
98
|
+
pip install .
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
3. Verify the installation:
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
import avantis_trader_sdk
|
|
105
|
+
print(avantis_trader_sdk.__version__)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
If the installation was successful, this command should print the version number of the Avantis Trader SDK.
|
|
109
|
+
|
|
110
|
+
## Next Steps
|
|
111
|
+
|
|
112
|
+
Once you have installed the Avantis Trader SDK, you can start using it to interact with the Avantis platform. Here are some things you might want to do next:
|
|
113
|
+
|
|
114
|
+
- Explore the SDK’s features and capabilities.
|
|
115
|
+
- Access real-time price feeds for various trading pairs.
|
|
116
|
+
- Integrate the SDK into your trading algorithms or DeFi applications.
|
|
117
|
+
|
|
118
|
+
## Examples
|
|
119
|
+
|
|
120
|
+
You can find practical examples and sample code for using the Avantis Trader SDK in our GitHub repository. These examples are designed to help you get started quickly and explore the capabilities of the SDK.
|
|
121
|
+
|
|
122
|
+
📂 [Browse the Examples on GitHub](https://github.com/Avantis-Labs/avantis_trader_sdk/tree/main/examples)
|
|
123
|
+
|
|
124
|
+
## 📚 [Read the Full Documentation Here](https://sdk.avantisfi.com/)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
avantis_trader_sdk/__init__.py,sha256=
|
|
2
|
-
avantis_trader_sdk/client.py,sha256=
|
|
3
|
-
avantis_trader_sdk/config.py,sha256=
|
|
4
|
-
avantis_trader_sdk/types.py,sha256=
|
|
5
|
-
avantis_trader_sdk/utils.py,sha256=
|
|
6
|
-
avantis_trader_sdk/abis/AggregatorV3Interface.json,sha256=
|
|
7
|
-
avantis_trader_sdk/abis/Sanctions.json,sha256=
|
|
1
|
+
avantis_trader_sdk/__init__.py,sha256=zRfKzpfeHb9wcxzEtTy-HEE0y8vUvVpnA-RGEb_mCFk,134
|
|
2
|
+
avantis_trader_sdk/client.py,sha256=n6iXxmy_bVV6AdcgMrtqNgUe_A-VsYmuq2IvkV-IJgM,10970
|
|
3
|
+
avantis_trader_sdk/config.py,sha256=AWMAW4SdMCSjNjOy3PMPn0rE_VY2DJ-LGDK2E27Q6jc,638
|
|
4
|
+
avantis_trader_sdk/types.py,sha256=IGiCmZcpvpkfz70VYkSYPMcQewST_ch3dBHh2f3SSoI,13817
|
|
5
|
+
avantis_trader_sdk/utils.py,sha256=gTYgNVVd5rLZEUf2eyJftjKYxn55wRm09xAXIF_xjXM,2831
|
|
6
|
+
avantis_trader_sdk/abis/AggregatorV3Interface.json,sha256=qUeDGZ55Akgu8zOv_Wzf21sTREEyZXF47K_TdPcliBM,26244
|
|
7
|
+
avantis_trader_sdk/abis/Sanctions.json,sha256=Fsn67jEGW4GdS15icrtxN_sur4e8-06SoijL7K79vAE,3857
|
|
8
8
|
avantis_trader_sdk/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
avantis_trader_sdk/abis/ABDK.t.sol/ABDKTest.json,sha256=_YhIIBohK_PFO6hZR5TfbRIIop2PCqKlYE4-wQBfwr8,1119927
|
|
10
10
|
avantis_trader_sdk/abis/AbstractPyth.sol/AbstractPyth.json,sha256=khNu_UctdJJJNd6Xn5DBMZ4vEAop4acemMUh9V59TDI,103569
|
|
@@ -64,7 +64,7 @@ avantis_trader_sdk/abis/IPairInfos.sol/IPairInfos.json,sha256=f5_-shyVyGshV2HAYv
|
|
|
64
64
|
avantis_trader_sdk/abis/IPairStorage.sol/IPairStorage.json,sha256=Q8zwXQsXk-ofMUY8QyWn8V9SnlLiA9C_6qymz-iN3RA,92783
|
|
65
65
|
avantis_trader_sdk/abis/IPausable.sol/IPausable.json,sha256=0LA7bXTrgNXgPavCYzX56yQZrCMN3uk14OWN8KfnfNw,4801
|
|
66
66
|
avantis_trader_sdk/abis/IPriceAggregator.sol/IPriceAggregator.json,sha256=Q0-riMYZ1YIyCpd2HjCqgNNCCoZGptF454syKlz0BkU,65715
|
|
67
|
-
avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json,sha256=
|
|
67
|
+
avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json,sha256=ut_fShmAMz4EPjPECSuNyOC2iqwhwEjOwCv4mDfNaCU,108
|
|
68
68
|
avantis_trader_sdk/abis/IPyth.sol/IPyth.json,sha256=CDTBihj9OFSnjRSI1ShgBbdyo42Z6Ni8n37JjfhMJpY,65856
|
|
69
69
|
avantis_trader_sdk/abis/IPythEvents.sol/IPythEvents.json,sha256=8iDG4f1nGiDOAfBp35UIKtCTjH3EOyqt5OqbQZ7mjH8,10522
|
|
70
70
|
avantis_trader_sdk/abis/IReferral.sol/IReferral.json,sha256=S-TyMEsc7CO2SEHk-1gYtf1YVp7ujtMFk_eaqrCqtJE,48599
|
|
@@ -98,7 +98,7 @@ avantis_trader_sdk/abis/PythErrors.sol/PythErrors.json,sha256=ZGC_RsX18RPpAM7LoB
|
|
|
98
98
|
avantis_trader_sdk/abis/PythStructs.sol/PythStructs.json,sha256=wL-Sb5BnuEfVbz65xDFTosQZaVHPcMf8Kw9WvVeeDyM,7973
|
|
99
99
|
avantis_trader_sdk/abis/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.json,sha256=76gQ_UcX-HImLlGiKfTPj7PREJp6A9zJE5gD_grHb8k,22858
|
|
100
100
|
avantis_trader_sdk/abis/Referral.sol/Referral.json,sha256=VsYQysyHRGrraxBsqiZK3BFQTQDmBxkQkfVQDf7Qpqs,123372
|
|
101
|
-
avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json,sha256=
|
|
101
|
+
avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json,sha256=rZAO2loqdUzPm53uwn-B9anH7wVBceuS2Xyp1OooNBc,298722
|
|
102
102
|
avantis_trader_sdk/abis/Referral.t.sol/Referral.json,sha256=iUqfkOMmOTq0CcgS7raEXOHeJWffyY5jUs7VJ5UEZL8,1367955
|
|
103
103
|
avantis_trader_sdk/abis/SafeERC20.sol/SafeERC20.json,sha256=pjE25IFPDjQQmW2ndGZyGL9cylit6O9IOcq1JsQV-UQ,99908
|
|
104
104
|
avantis_trader_sdk/abis/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.json,sha256=flK3W_Z-wakLR1fMc5PCsBK4CalOyfRWHVQRL7tGtX4,101988
|
|
@@ -134,7 +134,7 @@ avantis_trader_sdk/abis/TradingStorage.sol/TradingStorage.json,sha256=ImaFCa_a4h
|
|
|
134
134
|
avantis_trader_sdk/abis/Tranche.sol/Tranche.json,sha256=AZX5KxzyXI6ao93UrZsqQE9FpNZAArOqReJX0OzoT2E,392082
|
|
135
135
|
avantis_trader_sdk/abis/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.json,sha256=JzZ9LTpg6rTkQtwimdWaP-_gBg4yXC_iGyc9P4vdMBs,86405
|
|
136
136
|
avantis_trader_sdk/abis/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json,sha256=Q3BrFLOIPxuzg3gobI9Tlbg9axQJONQ7xj0R84WK5Jg,109628
|
|
137
|
-
avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json,sha256=
|
|
137
|
+
avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json,sha256=VnccfpR6u7EGs1vmN-xQxc3_eqCvHHUOdezCjNTp_ZA,108
|
|
138
138
|
avantis_trader_sdk/abis/USDC.sol/USDC.json,sha256=rJ-_IshkdFoZGi5ypjHpHkWjr90FF0Lhb_Ljt69jdKM,51189
|
|
139
139
|
avantis_trader_sdk/abis/Upgradability.t.sol/Upgradability.json,sha256=bJL6MyTdllCqYGS1KKAsSJwJ2fRi-SZkcy-CHaP4iWk,1155398
|
|
140
140
|
avantis_trader_sdk/abis/Vault.t.sol/Vault.json,sha256=RUnFvb3rWI23uoZJU1DPpmXGWUhdFKJZ8LYbqg5RMIs,1162827
|
|
@@ -153,18 +153,18 @@ avantis_trader_sdk/abis/draft-IERC1822.sol/IERC1822Proxiable.json,sha256=JUN6UPR
|
|
|
153
153
|
avantis_trader_sdk/abis/getPair.s.sol/UpdateScript.json,sha256=FfWTDUZ9rVj5IE9ISk87gIHYdp9OwTvZzHOi8RIQ14U,138847
|
|
154
154
|
avantis_trader_sdk/abis/getTrade.s.sol/UpdateScript.json,sha256=cqT3gemfhfrns0HWozhi9CmiqBv1jkZ14PvsKgxLci0,158956
|
|
155
155
|
avantis_trader_sdk/abis/getTranche.s.sol/UpdateScript.json,sha256=WgLAWuYmusLwLviDkEAnO1kb4_uL0MDT_r1MpCG7XF4,127750
|
|
156
|
-
avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json,sha256=
|
|
157
|
-
avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json,sha256=
|
|
158
|
-
avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json,sha256=
|
|
159
|
-
avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json,sha256=
|
|
160
|
-
avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json,sha256=
|
|
161
|
-
avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json,sha256=
|
|
162
|
-
avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json,sha256=
|
|
163
|
-
avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json,sha256=
|
|
164
|
-
avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json,sha256=
|
|
165
|
-
avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json,sha256=
|
|
166
|
-
avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json,sha256=
|
|
167
|
-
avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json,sha256=
|
|
156
|
+
avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json,sha256=r36BblJVVRFve91U1nOVefcy3TWGKi0sXmNB4y4Kwow,119848
|
|
157
|
+
avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json,sha256=lStOBVcIvkgVfmGZNH4NQfGBQBmMaLXn2uu9ptIS4EY,72807
|
|
158
|
+
avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json,sha256=FqcgE5LjlxTDC_V9qb5f4mU-yiTRtqwZay67wVKJEOc,127355
|
|
159
|
+
avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json,sha256=Sip7IeTNEAlOADQrT-8__KC-MERK35rHNSXeKmAQkHg,153122
|
|
160
|
+
avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json,sha256=0RRW5ALv3cjRff0yNKx5WDnbBbv2CQNZHaY7Y3twIn0,101054
|
|
161
|
+
avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json,sha256=9BhwvuxHMBO3ubP_jDIaUL8OrUYsXK2IAgMe45A7vDc,80242
|
|
162
|
+
avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json,sha256=9c9-sgUNRSKwsI3UbL4r4L501Ux-X50m6pxaYvGO5pk,309306
|
|
163
|
+
avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json,sha256=mUkXYmD0nJDg-8mdCX9-2l-YnvhMSFUb5emTt98k_cc,81129
|
|
164
|
+
avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json,sha256=qQ1hWp_at3HCfltx2pqHc6VCY6ThIctEXZPxTKAo3ws,100647
|
|
165
|
+
avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json,sha256=f4jN9hV4E3lH708nr7UbfB3WnRygavnUBgl_i-8lrnE,37306
|
|
166
|
+
avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json,sha256=VHle_bpK8TdKxHTVf-slLmYeN-2nlBgPf-4mP9BZlWY,112
|
|
167
|
+
avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json,sha256=0pSvO0j7UfwOkJRGAQq_42jgsWnhP7VBi1tN1kmYRkI,696
|
|
168
168
|
avantis_trader_sdk/abis/liquidityBase.s.sol/LiquidityScript.json,sha256=Aw0hZ0L2dN-tqmQnXcVrvu0dJdvXYj1Vo1CqK8G6T_Y,196447
|
|
169
169
|
avantis_trader_sdk/abis/lp.s.sol/Lp.json,sha256=G83l7aYXOdFytEGHot2xWlIkr8dKQ29qA86OGo5syp0,174463
|
|
170
170
|
avantis_trader_sdk/abis/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json,sha256=lQ3AUhOgS7kuzbT3WXygw8y6bRZq8y_lYe6FW8Et3U0,29215
|
|
@@ -181,8 +181,8 @@ avantis_trader_sdk/abis/setupTimelock.s.sol/SetupTimelock.json,sha256=q0xW58AJtm
|
|
|
181
181
|
avantis_trader_sdk/abis/setupTimelock.sol/SetupTimelock.json,sha256=WQeGoZciFBTm2WX0r0KxnLK13vjMgRNwxM2jYxuELcA,244173
|
|
182
182
|
avantis_trader_sdk/abis/test.sol/DSTest.json,sha256=rg09_NEMwNAD8SjOnA10WM8p0IGSoX89wz7EztIB5Ps,535833
|
|
183
183
|
avantis_trader_sdk/abis/test.sol/Test.json,sha256=Z5luPHYGczJL6Duawg8J9eSNZwRDqwINRRgdRteKQPI,40812
|
|
184
|
-
avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json,sha256=
|
|
185
|
-
avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json,sha256=
|
|
184
|
+
avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json,sha256=VHle_bpK8TdKxHTVf-slLmYeN-2nlBgPf-4mP9BZlWY,112
|
|
185
|
+
avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json,sha256=K6gkjU5xK6uJ-ioSSLD4y6-erTsVuUwlPavDt0Q6J2k,17912
|
|
186
186
|
avantis_trader_sdk/abis/transparent/ProxyAdmin.sol/ProxyAdmin.json,sha256=iZ_DrIu5M6MCmcE6loPcvo2To34VBw-Jhkk8oFeAe3k,62246
|
|
187
187
|
avantis_trader_sdk/abis/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.json,sha256=rHchictswAmgCVJLx6xuOmVg3vNrcf8Eq5DEiTmbsxc,86869
|
|
188
188
|
avantis_trader_sdk/abis/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json,sha256=qn2gqRSYBuLKiEDRDcpeN_DRp9hHvCVC1VmnHfsgVwQ,110197
|
|
@@ -194,25 +194,24 @@ avantis_trader_sdk/abis/wire.s.sol/Wire.json,sha256=b8M2fVPiLMMZhapuD3FilICRjfRW
|
|
|
194
194
|
avantis_trader_sdk/crypto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
195
195
|
avantis_trader_sdk/crypto/spki.py,sha256=CNy7A8TTwBHiNSzIj7uqiHKAeLcn1Q9MbszW_2mdXgI,3080
|
|
196
196
|
avantis_trader_sdk/feed/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
197
|
-
avantis_trader_sdk/feed/
|
|
198
|
-
avantis_trader_sdk/feed/feed_client.py,sha256=kzn3XSbYU68R18JUB2GUN70SuyuILyGVSd65onJLsPk,9473
|
|
197
|
+
avantis_trader_sdk/feed/feed_client.py,sha256=SsCX5CJfrXjN5rl8hMqED-kebHnM3AMRDkdCKeMV5DI,9283
|
|
199
198
|
avantis_trader_sdk/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
200
|
-
avantis_trader_sdk/rpc/asset_parameters.py,sha256=
|
|
201
|
-
avantis_trader_sdk/rpc/blended.py,sha256=
|
|
202
|
-
avantis_trader_sdk/rpc/category_parameters.py,sha256=
|
|
203
|
-
avantis_trader_sdk/rpc/fee_parameters.py,sha256=
|
|
204
|
-
avantis_trader_sdk/rpc/pairs_cache.py,sha256=
|
|
205
|
-
avantis_trader_sdk/rpc/rpc_helpers.py,sha256=
|
|
206
|
-
avantis_trader_sdk/rpc/snapshot.py,sha256=
|
|
207
|
-
avantis_trader_sdk/rpc/trade.py,sha256=
|
|
208
|
-
avantis_trader_sdk/rpc/trading_parameters.py,sha256=
|
|
199
|
+
avantis_trader_sdk/rpc/asset_parameters.py,sha256=ESx4eg0K3W9EigsEmN0a7Pym2hL4iJgMWmzhHmmWXyY,19323
|
|
200
|
+
avantis_trader_sdk/rpc/blended.py,sha256=tRWfO7XreY_YahL9ACpss7ylWz5fdk6G3bv4QpLpGms,2441
|
|
201
|
+
avantis_trader_sdk/rpc/category_parameters.py,sha256=ofsKct23E8DThCKqP627ol-_YPIdN5HAn09eLqyf6WM,7965
|
|
202
|
+
avantis_trader_sdk/rpc/fee_parameters.py,sha256=0UCf4FZQp26777o8aA75oOO-b3xFK88c-_glbqQ2-8M,9132
|
|
203
|
+
avantis_trader_sdk/rpc/pairs_cache.py,sha256=lXKqGTjJFFTmGOk1RyiEXatsr2ls7vOELlu_HTHAoek,4559
|
|
204
|
+
avantis_trader_sdk/rpc/rpc_helpers.py,sha256=Sywz6BIj4y2gkudkOhPEND2r2ILvtfq502A_pSEUDv8,284
|
|
205
|
+
avantis_trader_sdk/rpc/snapshot.py,sha256=hfLRfCbOqnqcuZncaiTmm0BJ2pgLFOEHgsgQ-92Xlcs,5352
|
|
206
|
+
avantis_trader_sdk/rpc/trade.py,sha256=rT_tTeTG8LVj04nV2H3sEfLFLB9lcqvdZGH9Z39Pwa0,23214
|
|
207
|
+
avantis_trader_sdk/rpc/trading_parameters.py,sha256=mpWK8dyA0k0KvPHVlFzU21Akdl1VxTzNYy47YZ5ud-c,4640
|
|
209
208
|
avantis_trader_sdk/signers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
210
209
|
avantis_trader_sdk/signers/base.py,sha256=QaOu0CxFq60oR4LegCp1XwONMQx8ZShXyiLZvfcbCPM,260
|
|
211
210
|
avantis_trader_sdk/signers/kms_signer.py,sha256=lxK3f9KQsdCDAvOE1SHleKjI8zD_3PTvywDjDVQGDKg,4448
|
|
212
211
|
avantis_trader_sdk/signers/local_signer.py,sha256=kUx5vExiBfvFGmoMCFR6b7_4cXx2mvYOJNqZQDIEcG8,505
|
|
213
212
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
214
213
|
tests/test_client.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
|
-
avantis_trader_sdk-0.8.
|
|
216
|
-
avantis_trader_sdk-0.8.
|
|
217
|
-
avantis_trader_sdk-0.8.
|
|
218
|
-
avantis_trader_sdk-0.8.
|
|
214
|
+
avantis_trader_sdk-0.8.3.dist-info/METADATA,sha256=s7z0HFsOHM5Wk-s7ftrULbytxOZfkiBO9f-q58lPUeQ,5035
|
|
215
|
+
avantis_trader_sdk-0.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
216
|
+
avantis_trader_sdk-0.8.3.dist-info/top_level.txt,sha256=XffaQJ68SGT1KUz2HHXSGSEsmNy8-AGjgtO127xhzQA,25
|
|
217
|
+
avantis_trader_sdk-0.8.3.dist-info/RECORD,,
|