LumiWave.move

init (private func)

Executed only once upon contract deployment: Issues 77,007,546 LWA tokens Creates voting dashboard shared object information Creates the denyCapobject

make_voteboard (private func)

// func parameter
ctx [TxContext]: transaction information (auto-filled)

Creates the voting dashboard object.

add_deny (public entry func)

// func parameter
denylist [DenyList]: deny list (fixed at 0x403)
deny_cap[DenyCap<LWA>]: information for the deny (block)
objectrecipient[address]: wallet address information for adding to the deny
listctx[TxContext]: transaction information (auto-filled)

Adds a specific wallet to the LWA deny list.

remove_deny (public entry func)

// func parameter
denylist [DenyList]: deny list (fixed at 0x403)
deny_cap[DenyCap<LWA>]: information for the deny (block) object
recipient [address]: wallet address information for removing from the deny list
ctx[TxContext]: transaction information (auto-filled)

Removes a specific wallet from the LWA deny list.

mint (public func)

Function for additional LWA minting, ensuring that the total supply does not exceed the maximum limit.

lock_coin_transfer (public entry func)

Transfers LWA to a specific wallet by applying a lock through a wrapper.

unlock_coin (public entry func)

Unwraps the locked object, allowing it to be used as LWA.

burn (public entry func)

Burns the coin held by the creator.

enable_vote (public entry func)

Enables or disables the voting functionality.

vote (public entry func)

Casts a vote.

vote_counting (public entry func)

Tallies the completed vote, and if the result is in favor, proceeds with additional coin minting.

vote_reset (public entry func)

Resets the completed tally to prepare for the next vote.

Last updated