register-user
function in the CityCoin contract, which can be done with the Stacks Web Wallet through an interface like minecitycoins.com.register-user
function will:core
as active in the core contract map in auth
token
as active and set the coinbase amounts and coinbase thresholdscore
to match that of token
(ok (var-get activationBlock)) returned as a uint
ERR_CONTRACT_NOT_ACTIVATED u1005
(var-get activation-delay) as a uint
(var-get activationReached) as a boolean
(var-get activationTarget) as a uint
(var-get activationThreshold) as uint
(var-get usersNonce) as uint
user as principal
(some uint) OR (none)
userId as uint
(some principal) OR (none)
optional memo as string-utf8, length 50
(ok true)
ERR_USER_ALREADY_REGISTERED u1001
ERR_ACTIVATION_THRESHOLD_REACHED u1004
register-user
function in the contract, which optionally accepts up to 50 characters as a memo to record on-chain.