Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate bindings based on @ckb-ccc/ssri through build.rs and ckb-script-template #22

Open
Alive24 opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Alive24
Copy link
Owner

Alive24 commented Nov 26, 2024

Principles:

  • There should be default implementations for serialization and deserialization based on the type annotations.
  • Allow cassading style of overriding
const mySsriTraitInstance = new ExampleTrait({
    // Allow partial overriding
    process: (input: ComplexParam, options?: { timeout?: number }): ResultType<string> => {
        // Full type safety and IDE support
        const { field1, field2, nested } = input;
        
        return {
            data: `Processed ${field1} with ${field2.length} items`,
            error: nested?.value ? undefined : 'Missing nested value'
        };
    }
});
@Alive24 Alive24 self-assigned this Nov 26, 2024
@Alive24 Alive24 transferred this issue from Alive24/ckb_ssri_cli Nov 26, 2024
@Alive24 Alive24 added the enhancement New feature or request label Nov 26, 2024
@Alive24 Alive24 moved this from In progress to Paused in CKB SSRI Dec 4, 2024
@Alive24 Alive24 changed the title ssri_ts_toolkit for generating molecule definitions and method entries in TypeScript Build.rs for generating molecule definitions and method entries in TypeScript Dec 11, 2024
@Alive24 Alive24 moved this from Paused to Backlog in CKB SSRI Dec 18, 2024
@Alive24 Alive24 changed the title Build.rs for generating molecule definitions and method entries in TypeScript ckb-script-templates + Build.rs for generating molecule definitions and method entries in TypeScript Dec 30, 2024
@Alive24 Alive24 moved this from Backlog to In progress in CKB SSRI Dec 30, 2024
@Alive24 Alive24 moved this from In progress to Ready in CKB SSRI Jan 12, 2025
@Alive24 Alive24 changed the title ckb-script-templates + Build.rs for generating molecule definitions and method entries in TypeScript Generate bindings based on @ckb-ccc/ssri through build.rs and ckb-script-template Jan 12, 2025
@Alive24 Alive24 moved this from Ready to Backlog in CKB SSRI Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant