mine-tokens
and mine-many
.mine-tokens
:mine-many
:stacksHeight as uint
(some MiningStatsAtBlock) as a tuple
or none
minersCount
- total minersamount
- total amount committedamountToCity
- amount transferred to city walletamountToStackers
- amount transferred to $MIA StackersrewardClaimed
- true/false if reward was claimedstacksHeight as uint
(some MiningStatsAtBlock) as a tuple, or defaults
get-mining-stats-at-block
above, except if no entry is found, returns the default structure of:minersCount: 0
amount: 0
amountToCity: 0
amountToStackers: 0
rewardClaimed: false
stacksHeight as uint
and userId as uint
true
or false
stacksHeight as uint
and userId as uint
(some MinersAtBlock) as a tuple
or (none)
ustx
- total commitment in uSTXlowValue
- used by VRF to determine winnerhighValue
- used by VRF to determine winnerwinner
- true/false updated after miner claims the rewardstacksHeight as uint
and userId as uint
(some MinersAtBlock) as a tuple, or defaults
get-miner-at-block
above, except if no entry is found, returns the default structure of:ustx: 0
lowValue: 0
highValue: 0
winner: false
stacksHeight as uint
highValue as uint, or default (u0)
stacksHeight as uint
(some userId) as uint
or none
amountUstx as uint
and memo as buff 34 (optional)
(ok true)
ERR_CONTRACT_NOT_ACTIVATED u1005
ERR_USER_ALREADY_MINED u1006
ERR_INSUFFICIENT_COMMITMENT u1007
ERR_INSUFFICIENT_BALANCE u1008
ERR_STACKING_NOT_AVAILABLE u1015
mine-tokens
function in the contract, which optionally accepts up to 34 characters as a memo to record on-chain.amounts as list of uints, up to 200
(ok true)
ERR_CONTRACT_NOT_ACTIVATED u1005
ERR_USER_ALREADY_MINED u1006
ERR_INSUFFICIENT_COMMITMENT u1007
ERR_INSUFFICIENT_BALANCE u1008
ERR_STACKING_NOT_AVAILABLE u1015
mine-many
function in the contract, which accepts a list of amounts up to 200 items in length.