Alpaca API update for tokens
craftTransaction
Update craftTransaction so we can support token intents
Integration test requirement (for each token type):
- Send token => crafted tx with corresponding amount
estimateFees
Integration test requirement (for each token type):
- Send tx fee estimation => No error, fees higher than 0
getBalance
Return balance of each token type
Integration test requirement (for each token type):
- Token not in account => value at 0 expected
- Account with balance => value higher than 0 expected
listOperations
Returns operations on address related account. One operation is a movement of funds, so one blockchain transaction can trigger multiple operations (tracked via operationIndex)
We need to return alpaca operations that will then be mapped into Live operations
Integration test requirement (for each token type):
- IN operation metadata
- OUT operation metadata