Skip to content

Commit

Permalink
deployed on new contract
Browse files Browse the repository at this point in the history
  • Loading branch information
SairajK19 committed Jul 26, 2021
1 parent a58d54e commit c66966e
Show file tree
Hide file tree
Showing 93 changed files with 24,670 additions and 6,329 deletions.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

47 changes: 0 additions & 47 deletions abis/Contract.json → abis/PaperHouse.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,6 @@
"type": "function",
"constant": true
},
{
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "donations",
"outputs": [
{ "internalType": "address", "name": "from", "type": "address" },
{ "internalType": "address", "name": "to", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
{ "internalType": "uint256", "name": "paperId", "type": "uint256" }
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
Expand Down Expand Up @@ -366,40 +353,6 @@
"type": "function",
"payable": true
},
{
"inputs": [
{ "internalType": "uint256", "name": "paperId", "type": "uint256" }
],
"name": "getPaper",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "address", "name": "owner", "type": "address" },
{ "internalType": "string", "name": "author", "type": "string" },
{ "internalType": "string", "name": "tokenUri", "type": "string" },
{ "internalType": "bool", "name": "allowFunding", "type": "bool" },
{
"internalType": "uint256",
"name": "fundAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalAmountFunded",
"type": "uint256"
}
],
"internalType": "struct PaperHouse.ResearchPaper",
"name": "",
"type": "tuple"
},
{ "internalType": "string", "name": "", "type": "string" }
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{ "internalType": "uint256", "name": "_paperid", "type": "uint256" },
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -222,41 +222,6 @@
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "donations",
"outputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "paperId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
Expand Down Expand Up @@ -574,68 +539,6 @@
"type": "function",
"payable": true
},
{
"inputs": [
{
"internalType": "uint256",
"name": "paperId",
"type": "uint256"
}
],
"name": "getPaper",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "string",
"name": "author",
"type": "string"
},
{
"internalType": "string",
"name": "tokenUri",
"type": "string"
},
{
"internalType": "bool",
"name": "allowFunding",
"type": "bool"
},
{
"internalType": "uint256",
"name": "fundAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalAmountFunded",
"type": "uint256"
}
],
"internalType": "struct PaperHouse.ResearchPaper",
"name": "",
"type": "tuple"
},
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
Expand Down
3 changes: 2 additions & 1 deletion build/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type Paper @entity {
id: ID!
paperId: String!
owner: Bytes! # address
author: String!
tokenUri: String!
Expand All @@ -8,7 +9,7 @@ type Paper @entity {
totalAmountFunded: String!
}

type Funding @entity {
type PaperFunding @entity {
id: ID!
from: Bytes! # addres in bytes
to: Bytes!
Expand Down
12 changes: 6 additions & 6 deletions build/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
name: PaperHouse
network: mumbai
source:
address: "0x7fC940D109f0EE2391586bBeb8ec6902D5089479"
abi: Contract
address: "0x4cbAfb37e0126A8a57978B9435b8b77b73834fA9"
abi: PaperHouse
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand All @@ -20,8 +20,8 @@ dataSources:
- Transfer
- UpdatePaper
abis:
- name: Contract
file: Contract/abis/Contract.json
- name: PaperHouse
file: PaperHouse/abis/PaperHouse.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
Expand All @@ -35,4 +35,4 @@ dataSources:
handler: handleTransfer
- event: UpdatePaper(uint256,bool,uint256)
handler: handleUpdatePaper
file: Contract/Contract.wasm
file: PaperHouse/PaperHouse.wasm
Loading

0 comments on commit c66966e

Please sign in to comment.