Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added eventappgraph/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions eventappgraph/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
85 changes: 85 additions & 0 deletions eventappgraph/abis/EventApp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"inputs": [
{ "internalType": "address", "name": "_token", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "regFee",
"type": "uint256"
}
],
"name": "EventListed",
"type": "event"
},
{
"inputs": [],
"name": "cUsd",
"outputs": [
{ "internalType": "contract IERC20", "name": "", "type": "address" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "string", "name": "_theme", "type": "string" },
{ "internalType": "uint256", "name": "_regFee", "type": "uint256" },
{ "internalType": "uint256", "name": "_starting", "type": "uint256" },
{ "internalType": "uint256", "name": "_ending", "type": "uint256" }
],
"name": "listEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "listedEvents",
"outputs": [
{ "internalType": "string", "name": "theme", "type": "string" },
{ "internalType": "uint256", "name": "id", "type": "uint256" },
{ "internalType": "address", "name": "owner", "type": "address" },
{ "internalType": "uint256", "name": "regFee", "type": "uint256" },
{ "internalType": "uint256", "name": "starting", "type": "uint256" },
{ "internalType": "uint256", "name": "ending", "type": "uint256" },
{ "internalType": "uint256", "name": "raised", "type": "uint256" },
{ "internalType": "bool", "name": "withdrawn", "type": "bool" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }],
"name": "register",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }],
"name": "withdrawEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Binary file added eventappgraph/build/EventApp/EventApp.wasm
Binary file not shown.
159 changes: 159 additions & 0 deletions eventappgraph/build/EventApp/abis/EventApp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "regFee",
"type": "uint256"
}
],
"name": "EventListed",
"type": "event"
},
{
"inputs": [],
"name": "cUsd",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_theme",
"type": "string"
},
{
"internalType": "uint256",
"name": "_regFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_starting",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_ending",
"type": "uint256"
}
],
"name": "listEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "listedEvents",
"outputs": [
{
"internalType": "string",
"name": "theme",
"type": "string"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "regFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "starting",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ending",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "raised",
"type": "uint256"
},
{
"internalType": "bool",
"name": "withdrawn",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
}
],
"name": "register",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
}
],
"name": "withdrawEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
9 changes: 9 additions & 0 deletions eventappgraph/build/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type EventListed @entity(immutable: true) {
id: Bytes!
EventApp_id: BigInt! # uint256
owner: Bytes! # address
regFee: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
24 changes: 24 additions & 0 deletions eventappgraph/build/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
specVersion: 0.0.5
schema:
file: schema.graphql
dataSources:
- kind: ethereum
name: EventApp
network: celo-alfajores
source:
address: "0x879e446E29617e4D5b8c208B6E1b0C722603c011"
abi: EventApp
startBlock: 18012128
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- EventListed
abis:
- name: EventApp
file: EventApp/abis/EventApp.json
eventHandlers:
- event: EventListed(indexed uint256,indexed address,uint256)
handler: handleEventListed
file: EventApp/EventApp.wasm
Loading