.cryptocash-core-trait
This doc is wip of v1 .cryptocash-core-trait contract - for CryptoCash needs
register-user
: This function appears to allow users to register themselves. It takes an optional string parameter (possibly representing user information) and returns a boolean indicating success or failure, along with a uint.mine-tokens
: This function seems to facilitate the mining of tokens. It takes a uint parameter (possibly representing the number of tokens to mine) and an optional buffer parameter, and returns a boolean indicating success or failure, along with a uint.claim-mining-reward
: This function is likely used to claim mining rewards. It takes a uint parameter (possibly representing the reward to claim) and returns a boolean indicating success or failure, along with a uint.stack-tokens
: This function seems to handle the stacking of tokens. It takes two uint parameters (possibly representing the amount of tokens and some identifier) and returns a boolean indicating success or failure, along with a uint.claim-stacking-reward
: This function appears to be for claiming stacking rewards. It takes a uint parameter (possibly representing the reward to claim) and returns a boolean indicating success or failure, along with a uint.set-foundation-wallet
: This function is to set a foundation wallet address. It takes a principal parameter (possibly representing a wallet address) and returns a boolean indicating success or failure, along with a uint.shutdown-contract
: This function seems to be for shutting down the contract. It takes a uint parameter (possibly representing some condition for shutdown) and returns a boolean indicating success or failure, along with a uint.
Last updated