Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit da8e8c0

Browse files
committed
Merge branch 'release/1.4.1'
2 parents c2f5aab + bd5c6b4 commit da8e8c0

File tree

117 files changed

+2724
-718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2724
-718
lines changed

.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323
#!docs/README.md
2424

2525
docs/BulkApi.md
26+
.travis.yml
27+
.gitlab-ci.yml

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# Changelog
22

3-
Please see the [changelog of GraphSense OpenAPI](https://github.com/graphsense/graphsense-openapi/blob/master/CHANGELOG.md).
3+
Please see the [changelog of GraphSense OpenAPI](https://github.com/graphsense/graphsense-openapi/blob/master/CHANGELOG.md) for changes related to the API.
4+
5+
## [24.01.0/1.4.1] - 2024-01-25
6+
7+
### Added
8+
- Added instructions and templates for generating the library using openapi-generator.

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
generate-openapi-client:
2+
docker run --rm \
3+
-v "${PWD}:/build:Z" \
4+
-v "${PWD}/templates:/templates:Z" \
5+
openapitools/openapi-generator-cli:v5.2.1 \
6+
generate -i "$(GS_REST_SERVICE_URL)/openapi.json" \
7+
-g python \
8+
-t /templates \
9+
-o /build \
10+
--additional-properties=packageName=graphsense \
11+
--additional-properties=projectName=graphsense-python
12+
13+
14+
.PHONY: generate-openapi-client

README.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ GraphSense API provides programmatic access to various ledgers' addresses, entit
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 1.4.0
7-
- Package version: 1.4.0
6+
- API version: 1.4.1
7+
- Package version: 1.4.1
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -40,21 +40,6 @@ Then import the package:
4040
import graphsense
4141
```
4242

43-
44-
### Generate from OpenAPI specification
45-
46-
In order to generate the client from [Graphsense's OpenAPI specification](https://github.com/graphsense/graphsense-openapi) run the [OpenAPI Generator CLI](https://openapi-generator.tech/), eg. using docker:
47-
48-
```
49-
URL=https://github.com/graphsense/graphsense-openapi/blob/master/graphsense.yaml
50-
docker run --rm \
51-
-v "${PWD}:/build" \
52-
openapitools/openapi-generator-cli:v5.1.1 \
53-
generate -i "$URL" \
54-
-g python \
55-
-o /build
56-
```
57-
5843
## Getting Started
5944

6045
Please follow the [installation procedure](#installation--usage) and then run the following:
@@ -72,10 +57,10 @@ from graphsense.model.entity import Entity
7257
from graphsense.model.height import Height
7358
from graphsense.model.links import Links
7459
from graphsense.model.neighbor_addresses import NeighborAddresses
75-
# Defining the host is optional and defaults to https://api.ikna.io
60+
# Defining the host is optional and defaults to https://api.test.ikna.io
7661
# See configuration.py for a list of all supported configuration parameters.
7762
configuration = graphsense.Configuration(
78-
host = "https://api.ikna.io"
63+
host = "https://api.test.ikna.io"
7964
)
8065

8166
# The client must configure the authentication and authorization parameters
@@ -95,7 +80,7 @@ with graphsense.ApiClient(configuration) as api_client:
9580
# Create an instance of the API class
9681
api_instance = addresses_api.AddressesApi(api_client)
9782
currency = "btc" # str | The cryptocurrency code (e.g., btc)
98-
address = "addressA" # str | The cryptocurrency address
83+
address = "addressA" # str | The cryptocurrency address
9984

10085
try:
10186
# Get an address
@@ -107,7 +92,7 @@ address = "addressA" # str | The cryptocurrency address
10792

10893
## Documentation for API Endpoints
10994

110-
All URIs are relative to *https://api.ikna.io*
95+
All URIs are relative to *https://api.test.ikna.io*
11196

11297
Class | Method | HTTP request | Description
11398
------------ | ------------- | ------------- | -------------
@@ -229,3 +214,12 @@ Run the jupyter notebooks
229214
jupyter notebook
230215

231216

217+
218+
## Generation from OpenAPI specification
219+
220+
This python package has been generated from [Graphsense's OpenAPI specification](https://api.test.ikna.io) hosted by [Iknaio Cryptoasset Analytics GmbH](https://ikna.io) using this command:
221+
222+
```
223+
make GS_REST_SERVICE_URL="https://api.test.ikna.io" generate-openapi-client
224+
```
225+

docs/Actor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**categories** | [**[LabeledItemRef]**](LabeledItemRef.md) | A list actor categories |
87
**id** | **str** | Id of the actor |
9-
**jurisdictions** | [**[LabeledItemRef]**](LabeledItemRef.md) | A list jurisdictions |
108
**label** | **str** | Label |
119
**uri** | **str** | URI |
12-
**context** | [**ActorContext**](ActorContext.md) | | [optional]
10+
**categories** | [**[LabeledItemRef]**](LabeledItemRef.md) | A list actor categories |
11+
**jurisdictions** | [**[LabeledItemRef]**](LabeledItemRef.md) | A list jurisdictions |
1312
**nr_tags** | **int** | number of address tags of the actor | [optional]
13+
**context** | [**ActorContext**](ActorContext.md) | | [optional]
1414
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
1515

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

docs/ActorContext.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**coingecko_ids** | **[str]** | list of references to coingecko exchanges or coins |
8-
**defilama_ids** | **[str]** | list of references to defilama |
7+
**uris** | **[str]** | list of additonal uris identifying the actor |
98
**images** | **[str]** | list of uris to logos of the actor |
109
**refs** | **[str]** | list of uris to further information of the actors. |
11-
**uris** | **[str]** | list of additonal uris identifying the actor |
10+
**coingecko_ids** | **[str]** | list of references to coingecko exchanges or coins |
11+
**defilama_ids** | **[str]** | list of references to defilama |
12+
**twitter_handle** | **str** | semi-colon separated list of twitter handles used by the actor | [optional]
1213
**github_organisation** | **str** | semi-colon separated list of github organisations used by the actor | [optional]
1314
**legal_name** | **str** | Name of the legal entity registerd by the actor. | [optional]
14-
**twitter_handle** | **str** | semi-colon separated list of twitter handles used by the actor | [optional]
1515
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
1616

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

docs/Address.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**address** | **str** | Address |
8-
**balance** | [**Values**](Values.md) | |
97
**currency** | **str** | crypto currency code |
8+
**address** | **str** | Address |
109
**entity** | **int** | Entity id |
10+
**balance** | [**Values**](Values.md) | |
1111
**first_tx** | [**TxSummary**](TxSummary.md) | |
12-
**in_degree** | **int** | |
1312
**last_tx** | [**TxSummary**](TxSummary.md) | |
13+
**in_degree** | **int** | |
14+
**out_degree** | **int** | |
1415
**no_incoming_txs** | **int** | |
1516
**no_outgoing_txs** | **int** | |
16-
**out_degree** | **int** | |
17-
**status** | **str** | |
1817
**total_received** | [**Values**](Values.md) | |
1918
**total_spent** | [**Values**](Values.md) | |
20-
**actors** | [**LabeledItemRefs**](LabeledItemRefs.md) | | [optional]
21-
**is_contract** | **bool** | | [optional]
19+
**status** | **str** | |
2220
**token_balances** | [**TokenValues**](TokenValues.md) | | [optional]
2321
**total_tokens_received** | [**TokenValues**](TokenValues.md) | | [optional]
2422
**total_tokens_spent** | [**TokenValues**](TokenValues.md) | | [optional]
23+
**actors** | [**LabeledItemRefs**](LabeledItemRefs.md) | | [optional]
24+
**is_contract** | **bool** | | [optional]
2525
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2626

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

docs/AddressTag.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **str** | crypto currency code |
8-
**is_cluster_definer** | **bool** | whether the address tag applies to the entity level |
97
**label** | **str** | Label |
10-
**tagpack_creator** | **str** | Tagpack creator |
11-
**tagpack_is_public** | **bool** | whether the address is public |
128
**tagpack_title** | **str** | Tagpack title |
9+
**tagpack_is_public** | **bool** | whether the address is public |
10+
**tagpack_creator** | **str** | Tagpack creator |
11+
**is_cluster_definer** | **bool** | whether the address tag applies to the entity level |
12+
**currency** | **str** | crypto currency code |
1313
**address** | **str** | Address |
1414
**entity** | **int** | Entity id |
15-
**abuse** | **str** | Abuses | [optional]
16-
**actor** | **str** | id of the actor that controlls the address | [optional]
1715
**category** | **str** | Category | [optional]
16+
**actor** | **str** | id of the actor that controlls the address | [optional]
17+
**abuse** | **str** | Abuses | [optional]
18+
**tagpack_uri** | **str** | Tagpack URI | [optional]
19+
**source** | **str** | Source | [optional]
20+
**lastmod** | **int** | Last modified | [optional]
1821
**confidence** | **str** | Confidence name | [optional]
1922
**confidence_level** | **int** | Confidence level | [optional]
20-
**lastmod** | **int** | Last modified | [optional]
21-
**source** | **str** | Source | [optional]
22-
**tagpack_uri** | **str** | Tagpack URI | [optional]
2323
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2424

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

docs/AddressTx.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**tx_type** | **str** | | defaults to "account"
8-
**contract_creation** | **bool** | Indicates if this transaction created a new contract. Recipient address is the address of the new contract. | [optional]
98
**token_tx_id** | **int** | | [optional]
10-
**coinbase** | **bool** | Coinbase transaction flag | [optional]
9+
**contract_creation** | **bool** | Indicates if this transaction created a new contract. Recipient address is the address of the new contract. | [optional]
10+
**tx_hash** | **str** | Transaction hash | [optional]
1111
**currency** | **str** | crypto currency code | [optional]
12+
**coinbase** | **bool** | Coinbase transaction flag | [optional]
1213
**height** | [**Height**](Height.md) | | [optional]
1314
**timestamp** | **int** | Timestamp | [optional]
14-
**tx_hash** | **str** | Transaction hash | [optional]
1515
**value** | [**Values**](Values.md) | | [optional]
1616
**from_address** | **str** | Address | [optional]
1717
**to_address** | **str** | Address | [optional]

docs/AddressTxUtxo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**coinbase** | **bool** | Coinbase transaction flag |
7+
**tx_hash** | **str** | Transaction hash |
88
**currency** | **str** | crypto currency code |
9+
**coinbase** | **bool** | Coinbase transaction flag |
910
**height** | [**Height**](Height.md) | |
1011
**timestamp** | **int** | Timestamp |
11-
**tx_hash** | **str** | Transaction hash |
1212
**value** | [**Values**](Values.md) | |
1313
**tx_type** | **str** | | defaults to "utxo"
1414
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

0 commit comments

Comments
 (0)