-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Update Required: UTxO RPC Spec v0.18.1
The lucid-evolution-provider currently depends on @utxorpc/spec version 0.17.0. This needs to be updated to 0.18.1 to support the latest spec features.
Current Dependencies
"@utxorpc/sdk": "0.7.0",
"@utxorpc/spec": "0.17.0"Required Updates
"@utxorpc/sdk": "^0.8.0", // or latest
"@utxorpc/spec": "^0.18.1"Breaking Changes in 0.18.1
The following breaking changes need to be addressed:
1. Single TX Submission
SubmitTx changed from repeated tx to single tx. The provider may need updates if it batches transactions.
2. BigInt for Amounts
Many fields now use BigInt instead of numeric types. Check:
result.parsedValued.coin(line 293) - may need BigInt handlingsubAsset.outputCoin(line 303) - may need BigInt handling
3. Idle Action in WatchTx
New idle action type in WatchTxResponse for block progress signals (not used by this provider currently).
Current Feature Support
The provider uses @utxorpc/sdk for:
- ✅
QueryClient.readParams()- Protocol parameters - ✅
QueryClient.searchUtxosByAddress()- UTxO queries - ✅
QueryClient.searchUtxosByPaymentPart()- Payment credential queries - ✅
QueryClient.searchUtxosByDelegationPart()- Delegation credential queries - ✅
QueryClient.searchUtxosByAddressWithAsset()- UTxO with asset queries - ✅
QueryClient.searchUtxosByPaymentPartWithAsset()- Payment + asset queries - ✅
QueryClient.searchUtxosByDelegationPartWithAsset()- Delegation + asset queries - ✅
QueryClient.searchUtxosByAsset()- Asset queries - ✅
QueryClient.readUtxosByOutputRef()- Resolve UTxOs - ✅
SubmitClient.submitTx()- Transaction submission - ✅
SubmitClient.waitForTx()- Await confirmation - ✅
SubmitClient.evalTx()- Transaction evaluation
Not Implemented
- ❌
getDelegation()- throws "Method not implemented" - ❌
getDatum()- throws "Method not implemented"
Action Items
- Update
@utxorpc/specto^0.18.1 - Update
@utxorpc/sdkto latest version - Test BigInt handling for coin/asset amounts
- Verify transaction submission still works with single-tx API
- Consider implementing
getDatum()usingQueryClient.readData()when available in SDK
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo