Skip to content

Commit

Permalink
removed supporters NFT
Browse files Browse the repository at this point in the history
  • Loading branch information
NorVirae committed Feb 1, 2023
1 parent 5a285c3 commit dfa1719
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 124 deletions.
3 changes: 0 additions & 3 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"mumbai": {
"PodShipAuction": {
"address": "0xFdc217E2867717ca21A5Edc13Fb8feA73192292D"
},
"PodShipSupporterNFT": {
"address": "0x643089d3eb7Cc0291a3A16F57c9CB8154A98477A"
}
}
}
11 changes: 1 addition & 10 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,19 @@ type Podcast @entity {
creator: User
}

type SupporterNFT @entity{
id: ID!
metadataURI: String
created: BigInt
ownerAddress: User
creator: User
}


type User @entity{
id: ID!
podcasts: [Podcast!] @derivedFrom(field: "ownerAddress")
isRecentWinner: Boolean
SupporterNFTs: [SupporterNFT!] @derivedFrom(field: "ownerAddress")
created: [Podcast!] @derivedFrom(field: "creator")
bids: [Bid!] @derivedFrom(field: "bidder")
tips: [Tip!] @derivedFrom(field: "supporter")
}

type Tip @entity{
id: ID!
tip: BigInt
supporter: User
podcast: Podcast
}

Expand Down
1 change: 0 additions & 1 deletion src/pod-ship-auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ export function handleTipping(event: Tipping): void {

let tip = new Tip(event.address.toHex() + '-' + event.params.podcastId.toString())
tip.tip = event.params.tip
tip.supporter = event.transaction.from.toHexString()
tip.podcast = event.params.podcastId.toHex()
tip.save()

Expand Down
82 changes: 0 additions & 82 deletions src/pod-ship-supporter-nft.ts

This file was deleted.

29 changes: 1 addition & 28 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,4 @@ dataSources:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/pod-ship-auction.ts
- kind: ethereum
name: PodShipSupporterNFT
network: mumbai
source:
address: "0x643089d3eb7Cc0291a3A16F57c9CB8154A98477A"
abi: PodShipSupporterNFT
startBlock: 29165229
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- SupporterNFT
abis:
- name: PodShipSupporterNFT
file: ./abis/PodShipSupporterNFT.json
eventHandlers:
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: URI(string,indexed uint256)
handler: handleURI
file: ./src/pod-ship-supporter-nft.ts

0 comments on commit dfa1719

Please sign in to comment.