Skip to content

Commit

Permalink
update client codes
Browse files Browse the repository at this point in the history
  • Loading branch information
arashalaei committed Dec 13, 2024
1 parent 985aa2d commit 41f56f1
Show file tree
Hide file tree
Showing 638 changed files with 26,162 additions and 17,541 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="zarban",
version="0.4.1",
version="0.5.0",
author="Zarban",
author_email="info@zarban.io",
description="Python SDK for Zarban",
Expand Down
1 change: 1 addition & 0 deletions src/zarban/service/docs/Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**total_deposits** | **dict(str, str)** | |
**lendingpool_summary** | [**AccountLendingpoolSummary**](AccountLendingpoolSummary.md) | |
**stabelcoin_system_summary** | [**AccountStablecoinSystemSummary**](AccountStablecoinSystemSummary.md) | |
**staking_summary** | [**AccountStakingSummary**](AccountStakingSummary.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
12 changes: 12 additions & 0 deletions src/zarban/service/docs/AccountStakingSummary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AccountStakingSummary

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total_stake** | **dict(str, str)** | |
**unclaimed_reward** | **dict(str, str)** | |
**net_apy** | **str** | Net annual percentage yield in staking contract |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


22 changes: 11 additions & 11 deletions src/zarban/service/docs/AccountsApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# openapi_client.AccountsApi
# zarban.service.openapi_client.AccountsApi

All URIs are relative to *https://api.zarban.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**accounts_address_get**](AccountsApi.md#accounts_address_get) | **GET** /accounts/{address} | Get account by address
[**get_account_by_address**](AccountsApi.md#get_account_by_address) | **GET** /v2/accounts/{address} | Get account by address


# **accounts_address_get**
> Account accounts_address_get(address)
# **get_account_by_address**
> Account get_account_by_address(address)
Get account by address

Expand All @@ -19,28 +19,28 @@ Get account by address
```python
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
import zarban.service.openapi_client
from zarban.service.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.zarban.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = zarban.service.openapi_client.Configuration(
host = "https://api.zarban.io"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
with zarban.service.openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = openapi_client.AccountsApi(api_client)
api_instance = zarban.service.openapi_client.AccountsApi(api_client)
address = '0x1234567890123456789012345678901234567890' # str | Ethereum address of the account

try:
# Get account by address
api_response = api_instance.accounts_address_get(address)
api_response = api_instance.get_account_by_address(address)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->accounts_address_get: %s\n" % e)
print("Exception when calling AccountsApi->get_account_by_address: %s\n" % e)
```

### Parameters
Expand Down
10 changes: 10 additions & 0 deletions src/zarban/service/docs/AddressResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AddressResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**list[Address]**](Address.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


24 changes: 12 additions & 12 deletions src/zarban/service/docs/AddressesApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# openapi_client.AddressesApi
# zarban.service.openapi_client.AddressesApi

All URIs are relative to *https://api.zarban.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addresses_get**](AddressesApi.md#addresses_get) | **GET** /addresses | Get all addresses
[**get_all_addresses**](AddressesApi.md#get_all_addresses) | **GET** /v2/addresses | Get all addresses


# **addresses_get**
> list[Address] addresses_get(format=format)
# **get_all_addresses**
> AddressResponse get_all_addresses(format=format)
Get all addresses

Expand All @@ -19,28 +19,28 @@ All addresses knows to Zarban.
```python
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
import zarban.service.openapi_client
from zarban.service.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.zarban.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = zarban.service.openapi_client.Configuration(
host = "https://api.zarban.io"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
with zarban.service.openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = openapi_client.AddressesApi(api_client)
api_instance = zarban.service.openapi_client.AddressesApi(api_client)
format = 'format_example' # str | The type of addresses to return (optional)

try:
# Get all addresses
api_response = api_instance.addresses_get(format=format)
api_response = api_instance.get_all_addresses(format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling AddressesApi->addresses_get: %s\n" % e)
print("Exception when calling AddressesApi->get_all_addresses: %s\n" % e)
```

### Parameters
Expand All @@ -51,7 +51,7 @@ Name | Type | Description | Notes

### Return type

[**list[Address]**](Address.md)
[**AddressResponse**](AddressResponse.md)

### Authorization

Expand Down
24 changes: 12 additions & 12 deletions src/zarban/service/docs/BorrowsApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# openapi_client.BorrowsApi
# zarban.service.openapi_client.BorrowsApi

All URIs are relative to *https://api.zarban.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**lendingpool_borrows_get**](BorrowsApi.md#lendingpool_borrows_get) | **GET** /lendingpool/borrows | Get user borrows of lendingpool
[**get_user_borrows**](BorrowsApi.md#get_user_borrows) | **GET** /v2/lendingpool/borrows | Get user borrows of lendingpool


# **lendingpool_borrows_get**
> list[LendingpoolBorrow] lendingpool_borrows_get(user=user, reserve=reserve, cursor=cursor, limit=limit)
# **get_user_borrows**
> UserBorrowsResponse get_user_borrows(user=user, reserve=reserve, cursor=cursor, limit=limit)
Get user borrows of lendingpool

Expand All @@ -19,31 +19,31 @@ Get user borrows of lendingpool
```python
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
import zarban.service.openapi_client
from zarban.service.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.zarban.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = zarban.service.openapi_client.Configuration(
host = "https://api.zarban.io"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
with zarban.service.openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = openapi_client.BorrowsApi(api_client)
api_instance = zarban.service.openapi_client.BorrowsApi(api_client)
user = 'user_example' # str | Ethereum address of the user (optional)
reserve = 'reserve_example' # str | Ethereum address of the reserve (optional)
cursor = 56 # int | Cursor for pagination (optional)
limit = 50 # int | Limit the number of deposits returned (default is 50) (optional) (default to 50)

try:
# Get user borrows of lendingpool
api_response = api_instance.lendingpool_borrows_get(user=user, reserve=reserve, cursor=cursor, limit=limit)
api_response = api_instance.get_user_borrows(user=user, reserve=reserve, cursor=cursor, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling BorrowsApi->lendingpool_borrows_get: %s\n" % e)
print("Exception when calling BorrowsApi->get_user_borrows: %s\n" % e)
```

### Parameters
Expand All @@ -57,7 +57,7 @@ Name | Type | Description | Notes

### Return type

[**list[LendingpoolBorrow]**](LendingpoolBorrow.md)
[**UserBorrowsResponse**](UserBorrowsResponse.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion src/zarban/service/docs/ChainActivityStep.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | |
**data** | [**OneOfPreparedTxEIP712SignRequestPersonalSignRequest**](OneOfPreparedTxEIP712SignRequestPersonalSignRequest.md) | |
**data** | [**ChainActivityStepData**](ChainActivityStepData.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
18 changes: 18 additions & 0 deletions src/zarban/service/docs/ChainActivityStepData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ChainActivityStepData

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | |
**label** | **dict(str, str)** | |
**gas_use_estimate** | **int** | |
**gas_fee_estimate** | **dict(str, str)** | |
**method_parameters** | [**MethodParameters**](MethodParameters.md) | |
**name** | **str** | The name of the EIP712 signature |
**typed_data** | [**TypedData**](TypedData.md) | |
**hash** | **str** | The hash of the EIP712 signature that needs to be signed |
**message** | **str** | The message that needs to be signed |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


22 changes: 11 additions & 11 deletions src/zarban/service/docs/CollectorApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# openapi_client.CollectorApi
# zarban.service.openapi_client.CollectorApi

All URIs are relative to *https://api.zarban.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**stats_get**](CollectorApi.md#stats_get) | **GET** /stats | Get collector data
[**get_collector_data**](CollectorApi.md#get_collector_data) | **GET** /v2/stats | Get collector data


# **stats_get**
> Stats stats_get()
# **get_collector_data**
> Stats get_collector_data()
Get collector data

Expand All @@ -19,27 +19,27 @@ Get collector data
```python
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
import zarban.service.openapi_client
from zarban.service.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.zarban.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = zarban.service.openapi_client.Configuration(
host = "https://api.zarban.io"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
with zarban.service.openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = openapi_client.CollectorApi(api_client)
api_instance = zarban.service.openapi_client.CollectorApi(api_client)

try:
# Get collector data
api_response = api_instance.stats_get()
api_response = api_instance.get_collector_data()
pprint(api_response)
except ApiException as e:
print("Exception when calling CollectorApi->stats_get: %s\n" % e)
print("Exception when calling CollectorApi->get_collector_data: %s\n" % e)
```

### Parameters
Expand Down
24 changes: 12 additions & 12 deletions src/zarban/service/docs/DepositsApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# openapi_client.DepositsApi
# zarban.service.openapi_client.DepositsApi

All URIs are relative to *https://api.zarban.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**lendingpool_deposits_get**](DepositsApi.md#lendingpool_deposits_get) | **GET** /lendingpool/deposits | Get user deposits of Lendingpool
[**get_user_deposits**](DepositsApi.md#get_user_deposits) | **GET** /v2/lendingpool/deposits | Get user deposits of Lendingpool


# **lendingpool_deposits_get**
> list[LendingpoolDeposit] lendingpool_deposits_get(user=user, reserve=reserve, cursor=cursor, limit=limit)
# **get_user_deposits**
> UserDepositsResponse get_user_deposits(user=user, reserve=reserve, cursor=cursor, limit=limit)
Get user deposits of Lendingpool

Expand All @@ -19,31 +19,31 @@ Get user deposits of Lendingpool
```python
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
import zarban.service.openapi_client
from zarban.service.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.zarban.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = zarban.service.openapi_client.Configuration(
host = "https://api.zarban.io"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
with zarban.service.openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = openapi_client.DepositsApi(api_client)
api_instance = zarban.service.openapi_client.DepositsApi(api_client)
user = 'user_example' # str | Ethereum address of the user (optional)
reserve = 'reserve_example' # str | Ethereum address of the reserve (optional)
cursor = 56 # int | Cursor for pagination (optional)
limit = 50 # int | Limit the number of deposits returned (default is 50) (optional) (default to 50)

try:
# Get user deposits of Lendingpool
api_response = api_instance.lendingpool_deposits_get(user=user, reserve=reserve, cursor=cursor, limit=limit)
api_response = api_instance.get_user_deposits(user=user, reserve=reserve, cursor=cursor, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling DepositsApi->lendingpool_deposits_get: %s\n" % e)
print("Exception when calling DepositsApi->get_user_deposits: %s\n" % e)
```

### Parameters
Expand All @@ -57,7 +57,7 @@ Name | Type | Description | Notes

### Return type

[**list[LendingpoolDeposit]**](LendingpoolDeposit.md)
[**UserDepositsResponse**](UserDepositsResponse.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion src/zarban/service/docs/Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**msg** | **str** | Error message |
**reasons** | **list[str]** | | [optional]
**reasons** | **list[str]** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# UserErrorMessages
# ErrorMessage

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user_message** | **str** | User-friendly error message |
**solutions** | **list[str]** | | [optional]
**solutions** | **list[str]** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading

0 comments on commit 41f56f1

Please sign in to comment.