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!: Claimable trait for all contracts with no coreriff macro #44

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

asanson1404
Copy link
Contributor

What?
Possibility to claim/ import a contract to SmartDeploy which hasn't been deployed with the smartdeploy-cli. We keep the notion of ownership and redeployment.

Add an admin/ owner to the smartdeploy contract (justfile)

Why?
The idea is to easily allow developer to integrate SmartDeploy to their already deployed contract. They also use the function redeploy_claimed_contract to add the macro smartdeploy_sdk::core_riff

Copy link
Member

@willemneal willemneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of notes. One thing that I noticed is that smartdeploy can't initialize itself in one step. So perhaps it's worth creating a new contract that doesn't need an owner and so can't be redeployed. However, it wouldn't have any state. The idea would be to allow deploying contracts with a hash and an init function. This way we can deploy that first doesn't matter the owner, then deploy and initialize smartdeploy.

Possibility to claim/ import a contract to SmartDeploy which hasn't been deployed with the smartdeploy-cli. We keep the notion of ownership and redeployment.

Add an admin/ owner to the smartdeploy contract (justfile)
@willemneal willemneal merged commit 8467f6e into TENK-DAO:main Feb 28, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants