Open leohhhn opened 1 year ago
Name | Link |
---|---|
Latest commit | acb55740df72183839ae08ecaedee3e076455ff6 |
Latest deploy log | https://app.netlify.com/sites/gnochess-signup-form/deploys/6512e52ccba57c000859e440 |
Name | Link |
---|---|
Latest commit | acb55740df72183839ae08ecaedee3e076455ff6 |
Latest deploy log | https://app.netlify.com/sites/gnochess/deploys/6512e52c52d3e300086f31ae |
Description
This PR introduces ownership & realm migration functionality to the
chess
package, and addresses issue #56.This PR also introduces an
init
function to the Chess realm, setting the realm owner to its deployer keypair upon deployment. The following functionality is added:Ownership functionality:
owner
variable is added to realm state,isOwner()
will check if the caller is owner and will panic if the caller is not the owner,Migration functionality:
migrateTo
variable added to represent the path of new deployment of realmmigrated
bool added to indicate if a migration has happened beforeMigrate
function to allow migrating, only callable by current owner of realmcheckMigrated