From ce27d3e0cb89df65e7fc5d9abd5442fa03f54dc4 Mon Sep 17 00:00:00 2001 From: Alexis Pentori Date: Wed, 21 Feb 2024 11:11:09 +0100 Subject: [PATCH] wallet-fetcher: adding token address in eth token Signed-off-by: Alexis Pentori --- wallet-fetcher/metadata.yaml | 2 +- .../source_wallet_fetcher/schemas/ethereum_token.json | 6 ++++++ wallet-fetcher/source_wallet_fetcher/stream.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wallet-fetcher/metadata.yaml b/wallet-fetcher/metadata.yaml index 2e2db74..dad75bd 100644 --- a/wallet-fetcher/metadata.yaml +++ b/wallet-fetcher/metadata.yaml @@ -10,7 +10,7 @@ data: connectorSubtype: api connectorType: source definitionId: 1e55cfe0-f591-4281-9a20-18d89d45f685 - dockerImageTag: 0.8.0 + dockerImageTag: 0.9.0 dockerRepository: status-im/airbyte/wallet-fetcher githubIssueLabel: source-wallet-fetcher icon: icon.svg diff --git a/wallet-fetcher/source_wallet_fetcher/schemas/ethereum_token.json b/wallet-fetcher/source_wallet_fetcher/schemas/ethereum_token.json index bd4b42e..d1db5f2 100644 --- a/wallet-fetcher/source_wallet_fetcher/schemas/ethereum_token.json +++ b/wallet-fetcher/source_wallet_fetcher/schemas/ethereum_token.json @@ -49,6 +49,12 @@ "null", "string" ] + }, + "address": { + "type": [ + "null", + "string" + ] } } } diff --git a/wallet-fetcher/source_wallet_fetcher/stream.py b/wallet-fetcher/source_wallet_fetcher/stream.py index 3cf76a8..c96bd13 100644 --- a/wallet-fetcher/source_wallet_fetcher/stream.py +++ b/wallet-fetcher/source_wallet_fetcher/stream.py @@ -92,7 +92,7 @@ class EthereumToken(BlockchainStream): "balance":eth_data['rawBalance'], "decimal":18, "tags": stream_slice['tags'] - + "address": "eth" } if 'tokens' in response.json(): tokens_data=response.json()['tokens']