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

feat(sdk): lock proxy #31

Merged
merged 4 commits into from
Nov 23, 2023
Merged

feat(sdk): lock proxy #31

merged 4 commits into from
Nov 23, 2023

Conversation

ShookLyngs
Copy link
Collaborator

@ShookLyngs ShookLyngs commented Nov 7, 2023

Changes

  • Support lock proxy in Clustered Spore creation
  • Add new SporeType script version to the testnet config

Features

Lock proxy

Lock proxy is a set of new rules for creating Clustered Spores (spores with a Cluster ID), which enables users to create Clustered Spores without unlocking/refreshing their clusters in the Spore creation transaction.

With lock proxy, a Clustered Spore creation transaction may look like this:

Transaction:
  cellDeps: 
    - Spore Type Script Cell
    - Cluster Type Script Cell
    - Cluster Cell from Charlie
  inputs:
    - Normal Cell(s) from Charlie ...
  outputs:
    - Spore Cell to props.toLock
    - Change Cell to Charlie

As comparison, a Clustered Spore creation transaction without lock proxy would look like this:

Transaction:
  cellDeps: 
    - Spore Type Script Cell
    - Cluster Type Script Cell
    - Cluster Cell from Charlie
  inputs:
    - Cluster Cell from Charlie
    - Normal Cell(s) from Charlie ...
  outputs:
    - Cluster Cell to Charlie
    - Spore Cell to props.toLock
    - Change Cell to Charlie

New SporeType version

A new version of SporeType script is included in this PR, meaning:

  1. New spores will use the new SporeType as type script
  2. Existing spores should not be affected, users should still be able to transfer/melt them with spore-sdk

@ShookLyngs
Copy link
Collaborator Author

Rebased the branch onto beta and resolved conflicts.

@ShookLyngs ShookLyngs merged commit c6c3d36 into beta Nov 23, 2023
@ShookLyngs ShookLyngs deleted the feat-lock-proxy branch December 26, 2023 08:06
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants