-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
app: tangle-cloud βοΈtype: feature βTasks that are functional additions or enhancementsTasks that are functional additions or enhancements
Description
Goal
Fix request-arg encoding so deploy works with non-empty args, and support all three contract request variants (basic, with exposure, with security).
Status
π΄ BROKEN FOR NON-EMPTY ARGS β encodeServiceConfig throws when args are non-empty. Exposure request variant is unsupported.
Must-Have Tasks
| # | Task | Type | Contract Function | Current State |
|---|---|---|---|---|
| 3.1 | Implement end-to-end request arg encoder aligned with contract schema | Bug fix | N/A | encodeServiceConfig throws on non-empty args |
| 3.2 | Support requestService (basic) variant |
Feature | Services.requestService() |
Partially working |
| 3.3 | Support requestServiceWithExposure variant |
Feature | Services.requestServiceWithExposure() |
Not implemented |
| 3.4 | Support requestServiceWithSecurity variant |
Feature | Services.requestServiceWithSecurity() |
Partially implemented |
| 3.5 | Add hook selection logic to auto-route to correct variant | Feature | N/A | Basic/security only |
| 3.6 | Add explicit validation and user-readable errors before tx step | Feature | N/A | Not implemented |
Files
apps/tangle-cloud/src/pages/blueprints/[id]/deploy/page.tsxβ deploy pagelibs/tangle-shared-ui/src/data/graphql/useServiceRequest.tsβ request hook../tnt-core/src/interfaces/ITangleServices.solβ contract interface../tnt-core/src/core/ServicesLifecycle.solβ contract implementation
Test Criteria
- Deploy succeeds with empty request args
- Deploy succeeds with non-empty structured request args
- Exposure-only request variant can be selected and submitted
- Security request variant works with asset/security combinations
- User sees readable validation errors for malformed args before tx step
- Correct contract function is called based on deploy configuration
Nice-to-Have
- Arg schema auto-detection from blueprint metadata
- Preview of encoded args before submission
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
app: tangle-cloud βοΈtype: feature βTasks that are functional additions or enhancementsTasks that are functional additions or enhancements
Type
Projects
Status
Not Started π§