Skip to content

Commit

Permalink
Updated bytecode and added getUserTickets function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShay committed Oct 27, 2024
1 parent 51c6a97 commit 1af0c14
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 62 deletions.
4 changes: 4 additions & 0 deletions contracts/EventManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,8 @@ contract EventManager {
transferTicketForce(_ticketId, _to);
}

function getUserTickets(address _user) public view returns (uint256[] memory _ticketIds) {
return userTickets[_user];
}

}
143 changes: 81 additions & 62 deletions contracts/EventManagerABI.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -152,25 +147,6 @@
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_cents",
"type": "uint256"
}
],
"name": "centsToFlare",
"outputs": [
{
"internalType": "uint256",
"name": "_flr",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -225,6 +201,66 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_ticketId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
}
],
"name": "transferTicket",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_ticketId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
}
],
"name": "transferTicketFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_cents",
"type": "uint256"
}
],
"name": "centsToFlare",
"outputs": [
{
"internalType": "uint256",
"name": "_flr",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "eventCounter",
Expand Down Expand Up @@ -269,9 +305,9 @@
"type": "uint64"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "ticketsSold",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "uint64",
Expand Down Expand Up @@ -419,6 +455,25 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "getUserTickets",
"outputs": [
{
"internalType": "uint256[]",
"name": "_ticketIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ticketCounter",
Expand Down Expand Up @@ -461,42 +516,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_ticketId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
}
],
"name": "transferTicket",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_ticketId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
}
],
"name": "transferTicketFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down

0 comments on commit 1af0c14

Please sign in to comment.