Skip to content

Instantly share code, notes, and snippets.

@owenkellogg
Created April 29, 2023 17:03
Show Gist options
  • Save owenkellogg/af4ed5f6098b6a6d15e0aace2e07499c to your computer and use it in GitHub Desktop.
Save owenkellogg/af4ed5f6098b6a6d15e0aace2e07499c to your computer and use it in GitHub Desktop.
class PersonalInterest extends SmartContract {
@prop
owner: PubKey;
@prop
name: ByteString:
@prop(true)
weight: BigInt;
@method
updateWeight(weight: BigInt, sig: Sig) {
// update the weight property
}
@method
updateValue(sig: Sig) {
// update the number of satoshis held
}
@method
remove(sig: Sig) {
// remove the interest, reclaim the coins
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment