Skip to content

nomadconnection/GoodsEvent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Developed smart contract to be used for airdrop event from ICON Communication team.


Requirement Description

  1. The operator can specify event start or stop.
  2. Participants can not participate in the event once the event has stopped.
  3. The operator can change the event stop setting to the start again.
  4. Participants participate in the event by submitting the selected number of views for the question.
  5. You can participate multiple times.
  6. The answer will be updated to reflect the latest submission when participating multiple times.
  7. Event winners are selected one at a time.

Development Environment

  • OS : ubuntu 18.04 (Docker = Ubuntu 18.04.1 LTS)
  • python : 3.6.6
  • T-bears : v1.0.6.1 (Docker)

Methods

def owner_check(self) -> None:
  • Verify SCORE execution permissions.
@external
def event_start(self) -> None:
  • Start the event. Only the owner can change.
@external
def event_stop(self) -> None:
  • Stop the event. Only the owner can change.
@external
def join_event(self, _join_message:int) -> None:
  • Enter the optional value _join_message when participating in the event.
@external
def raffle(self) -> str:
  • Only the owner can execute. Select the Winner of the Event.
@external(readonly=True)
def count_join_user(self) -> str:
  • Shows the number of event participants.
@external(readonly=True)
def show_event_winner(self) -> str:
  • Shows the number and wallet address of the event winners.
@external(readonly=True)
def check_join_message(self, _join_address:str = None) -> str:
  • Allows you to see the value of the participant's selected response. If there is no wallet address to inquire, the user's response value that caused the transaction is returned. If you enter the wallet address to query in _join_address, it prints the message you entered when you joined the event.
@external(readonly=True)
def check_event_state(self) -> str:
  • Outputs the open/close status of the current event.

Author

nomadconnection Techsupport TEAM. (bjlee)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages