-
Notifications
You must be signed in to change notification settings - Fork 1
/
GuestWeddingAPI.sol
24 lines (16 loc) · 1.14 KB
/
GuestWeddingAPI.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pragma experimental ABIEncoderV2;
pragma solidity >=0.4.0 <0.7.0;
contract Wedding{
function login(string memory guestname, int256 guestticket) view public returns (string memory);
function acceptTheWedding(string memory name) public;
function getWeddingInfo(string memory name) view public returns(string memory, string memory, //Name of the couple
string memory, string memory, // Location
string memory, string memory, // Date
string memory, uint, // Num of paticipant
string memory, string memory);
function getGuestTicket(string memory name) view public returns (uint256);
function opposeTheWedding(string memory reason, string memory name) public;
function getObjectionStatus(string memory name) public view returns (string memory, string memory, uint256, uint256, uint8);
function getCurrentVote(string memory name) view public returns(int8, uint256);
function voteForObjection(string memory name, bool wannaStop) public;
}