Skip to content

Optimization about Model Pattern #355

@Keith-CY

Description

@Keith-CY

After the demonstration of Kuai MVP, we got 2 feedback about Model Pattern at

@ActorProvider({ ref: { name: 'omnilock', path: `/:args/` } })
@LockPattern()
@DataPattern('0x')
@Omnilock()

  1. LockPattern is a newborn word in Kuai, the term Filter would be more acquainted in functional programming context. So what if renaming them into LockFilter, etc.

  2. LockPattern should work with another decorator, e.g.

    @LockPattern()
    @DataPattern('0x')
    @Omnilock()
    
    @LockPattern()
    @TypePattern()
    @Lock()
    

    what if achieve the function with a single decorator like

    @LockPattern('Omnilock')
    
    @LockPattern({ codeHash, hashType })
    

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions