wallet-fetcher: wallet address as a secret and updating sync mode
Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
parent
2bf4aecade
commit
365cd2f6e4
|
@ -10,7 +10,7 @@ data:
|
|||
connectorSubtype: api
|
||||
connectorType: source
|
||||
definitionId: 1e55cfe0-f591-4281-9a20-18d89d45f685
|
||||
dockerImageTag: 0.2.0
|
||||
dockerImageTag: 0.3.0
|
||||
dockerRepository: harbor.status.im/status-im/airbyte/wallet-fetcher
|
||||
githubIssueLabel: source-wallet-fetcher
|
||||
icon: icon.svg
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"wallets": [
|
||||
{
|
||||
"address": "bc1qcm0frkpfhsem5rdx9c4qjzeet038xhyscfgtcq",
|
||||
"name": "test-wallet-btc",
|
||||
"blockchain": [
|
||||
"BTC"
|
||||
],
|
||||
"tags": "EOA,Stacking"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -8,10 +8,10 @@
|
|||
"type": "object"
|
||||
},
|
||||
"supported_sync_modes": [
|
||||
"full_refresh"
|
||||
"full_refresh", "incremental"
|
||||
]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"sync_mode": "incremental",
|
||||
"destination_sync_mode": "overwrite"
|
||||
},
|
||||
{
|
||||
|
@ -22,10 +22,10 @@
|
|||
"type": "object"
|
||||
},
|
||||
"supported_sync_modes": [
|
||||
"full_refresh"
|
||||
"full_refresh", "incremental"
|
||||
]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"sync_mode": "incremental",
|
||||
"destination_sync_mode": "overwrite"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -5,6 +5,7 @@ connectionSpecification:
|
|||
type: object
|
||||
required:
|
||||
- wallets
|
||||
additionalProperties: true
|
||||
properties:
|
||||
wallets:
|
||||
title: Wallets
|
||||
|
@ -12,12 +13,12 @@ connectionSpecification:
|
|||
type: array
|
||||
items:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
properties:
|
||||
address:
|
||||
title: Address
|
||||
type: string
|
||||
description: Address of the wallet
|
||||
airbyte_secret: true
|
||||
name:
|
||||
title: Name
|
||||
type: string
|
||||
|
|
|
@ -45,6 +45,7 @@ class BitcoinToken(BlockchainStream):
|
|||
**kwargs
|
||||
) -> Iterable[Mapping]:
|
||||
logger.info("Getting Bitcoin Balance information")
|
||||
logger.info("Response %s", response.json())
|
||||
bitcoin_data = response.json()
|
||||
yield {
|
||||
"wallet_name": stream_slice['name'],
|
||||
|
|
Loading…
Reference in New Issue