Skip to content

Commit

Permalink
Merge pull request #30 from adrianvrj/29-fetch-match-by-id
Browse files Browse the repository at this point in the history
[#29] fetching teams info directly from contract
  • Loading branch information
adrianvrj authored Jul 30, 2024
2 parents 235e6a1 + fef99bb commit cc3f873
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 23 deletions.
71 changes: 71 additions & 0 deletions BetsAbi.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,77 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
}
],
"name": "getEventById",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "eventType",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "team1name",
"type": "string"
},
{
"internalType": "string",
"name": "team2name",
"type": "string"
},
{
"internalType": "string",
"name": "team1imgurl",
"type": "string"
},
{
"internalType": "string",
"name": "team2imgurl",
"type": "string"
},
{
"internalType": "string",
"name": "time",
"type": "string"
},
{
"internalType": "uint8",
"name": "result",
"type": "uint8"
},
{
"internalType": "bool",
"name": "isActive",
"type": "bool"
}
],
"internalType": "struct Bets.Event",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit cc3f873

Please sign in to comment.