Several breaking changes and improvements to the SDK to make it more robust and easier to use.
Breaking Changes:
- `Edge` objects' entites have been collapsed into `Connection` objects to remove the need for the client to manaually pull out entities from the `edges` field.
**Before:**
python
for edge in account.get_transactions().edges:
print(edge.entity.amount)
**After:**
python
for transaction in account.get_transactions().entities:
print(transaction.amount)
- Removed several queries and types which are not needed in the 3P SDK and shouldn't have been exposed. If you were using any of these, please let us know!
New Features:
- `LightsparkClient.fund_node` to automatically add fake funds to a REGTEST node.
- `LightsparkClient.create_api_token` and `LightsparkClient.delete_api_token` to create and delete API tokens.
- `LightsparkClient.send_payment` to send a keysend payment using a destination node's public key which doesn't require an invoice at all.
Notable fixes:
- Adding a `__FUTURE_VALUE__` value to all enum classes. This allows the SDK to be forward-compatible with new values that may be added to the API in the future, rather than crashing.