Created
April 29, 2023 17:03
-
-
Save owenkellogg/af4ed5f6098b6a6d15e0aace2e07499c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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