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

Contract deletion #2495

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

corrideat
Copy link
Member

Close #1927

@corrideat corrideat requested a review from taoeffect January 6, 2025 19:02
Copy link

cypress bot commented Jan 6, 2025

group-income    Run #3898

Run Properties:  status check passed Passed #3898  •  git commit fbeefe37c6 ℹ️: Merge 838794c5f08e2aa1ff62eabea32fa3749b95d2c9 into 63bf41c7410cea13274e3840daf8...
Project group-income
Branch Review 1927-design-implement-contract-deletion-op_contract_delete
Run status status check passed Passed #3898
Run duration 11m 31s
Commit git commit fbeefe37c6 ℹ️: Merge 838794c5f08e2aa1ff62eabea32fa3749b95d2c9 into 63bf41c7410cea13274e3840daf8...
Committer Ricardo Iván Vieitez Parra
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 114
View all changes introduced in this branch ↗︎

@corrideat corrideat self-assigned this Jan 7, 2025
@corrideat corrideat added this to the Final breaking changes milestone Jan 7, 2025
@corrideat corrideat force-pushed the 1927-design-implement-contract-deletion-op_contract_delete branch from ee948fb to 0b72902 Compare January 8, 2025 20:26
@corrideat corrideat force-pushed the 1927-design-implement-contract-deletion-op_contract_delete branch from 6d0de94 to 4055758 Compare January 9, 2025 16:26

switch (cheloniaState.type) {
case 'gi.contracts/chatroom': {
// TODO: Leave chatroom on our identity contract or our group, if we've
Copy link
Member Author

Choose a reason for hiding this comment

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

Not having a chatroom->parent relationship makes this difficult to implement (efficiently, at least). We also need to add a new action to the identity contract, to delete chatrooms (currently, it's append-only).

@corrideat corrideat force-pushed the 1927-design-implement-contract-deletion-op_contract_delete branch from c096100 to e274fc5 Compare January 19, 2025 19:36
@corrideat corrideat force-pushed the 1927-design-implement-contract-deletion-op_contract_delete branch from e274fc5 to e3ac815 Compare January 19, 2025 19:37
@corrideat corrideat force-pushed the 1927-design-implement-contract-deletion-op_contract_delete branch from c337a31 to 0b5351a Compare January 20, 2025 18:16
@corrideat
Copy link
Member Author

Some useful console invocations for testing this PR:

// Delete the current identity contract (and everything it owns)
await sbp('gi.app/identity/delete', sbp('state/vuex/state').reverseNamespaceLookups[sbp('state/vuex/state').loggedIn.identityContractID], sbp('state/vuex/state').loggedIn.identityContractID, prompt('Password'))

// Delete the current group (and everything it owns)
await sbp('chelonia/out/deleteContract', sbp('state/vuex/state').currentGroupId, {[sbp('state/vuex/state').currentGroupId]: { billableContractID: sbp('state/vuex/state').loggedIn.identityContractID } })

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.

Design & Implement Contract Deletion (OP_CONTRACT_DELETE?)
1 participant