From 3bbc5be5f011f9cd4b2db0ea8b3fae5c942423df Mon Sep 17 00:00:00 2001 From: Alexis Pentori Date: Tue, 5 Dec 2023 14:13:25 +0100 Subject: [PATCH] wallet-fetcher: allowing multiple wallet Signed-off-by: Alexis Pentori --- wallet-fetcher/source_wallet_fetcher/source.py | 2 +- wallet-fetcher/source_wallet_fetcher/spec.yaml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wallet-fetcher/source_wallet_fetcher/source.py b/wallet-fetcher/source_wallet_fetcher/source.py index fce2185..1ed46e1 100644 --- a/wallet-fetcher/source_wallet_fetcher/source.py +++ b/wallet-fetcher/source_wallet_fetcher/source.py @@ -77,7 +77,7 @@ class SourceWalletFetcher(AbstractSource): for wallet in config["wallets"]: tokens.append( Token( - wallet_address=wallet, + wallet_address=wallet['address'], ) ) return tokens diff --git a/wallet-fetcher/source_wallet_fetcher/spec.yaml b/wallet-fetcher/source_wallet_fetcher/spec.yaml index 0eeca24..b9272ca 100644 --- a/wallet-fetcher/source_wallet_fetcher/spec.yaml +++ b/wallet-fetcher/source_wallet_fetcher/spec.yaml @@ -11,4 +11,12 @@ connectionSpecification: description: "List of wallet to scan" type: array items: - type: string + type: object + additionalProperties: true + properties: + address: + title: Address + type: string + name: + title: Name + type: string