-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
312a681
commit 341654b
Showing
15,552 changed files
with
3,000,573 additions
and
43 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
type BaseMetric @entity { | ||
id: ID! | ||
type: EventType! | ||
transactionMetadata: TransactionMetadata! | ||
params: MetricParam | ||
} | ||
|
||
type TransactionMetadata @entity { | ||
id: ID! # The TxHash toHex() | ||
txValue: BigInt! | ||
timestamp: BigInt! | ||
blockNumber: BigInt! | ||
txTo: Bytes | ||
txFrom: Bytes! | ||
txGas: BigInt! | ||
} | ||
|
||
type InMemoryIncrementStore @entity { | ||
id: ID! # Always 1 = store this const in the mapping and always just retrieve it - then incrementValue++ when new even | ||
incrementValue: BigInt! | ||
} | ||
|
||
type EventType @entity { | ||
id: ID! #ToHex of EventName | ||
} | ||
|
||
type MetricParam @entity { | ||
id: ID! | ||
|
||
paramName1: String | ||
paramValue1: String | ||
paramType1: String | ||
|
||
paramName2: String | ||
paramValue2: String | ||
paramType2: String | ||
|
||
paramName3: String | ||
paramValue3: String | ||
paramType3: String | ||
|
||
paramName4: String | ||
paramValue4: String | ||
paramType4: String | ||
|
||
paramName5: String | ||
paramValue5: String | ||
paramType5: String | ||
|
||
paramName6: String | ||
paramValue6: String | ||
paramType6: String | ||
} | ||
|
||
type BadgeType @entity { | ||
id: ID! | ||
name: String! #The Badge | ||
ipfs: String! #The | ||
soul: BigInt! | ||
linkingParam: String! # This is what ties a baseMetric to a user | ||
baseMetric: [BadgeMetricLookup!] #The base | ||
} | ||
|
||
type BadgeMetricLookup @entity { | ||
id: ID! #Combination of BaseMetric ID + BaseID | ||
badge: BadgeType! #Combination of | ||
baseMetric: BaseMetric! | ||
} | ||
|
||
type UserBadge @entity { | ||
id: ID! #BadgeTypeID + UserAddress | ||
badge: BadgeType! #Combination of | ||
account: Bytes! | ||
vanityValue: Bytes! # HOW MUCH THEY HAVE CURATED IN TOTALITY | ||
vanityName: Bytes! # | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
specVersion: 0.0.5 | ||
schema: | ||
file: schema.graphql | ||
dataSources: | ||
- kind: ethereum | ||
name: superRare | ||
network: mainnet | ||
source: | ||
address: "0x41a322b28d0ff354040e2cbc676f0320d8c8850d" | ||
abi: superRare | ||
startBlock: 5364089 | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.5 | ||
language: wasm/assemblyscript | ||
entities: | ||
- BaseMetric | ||
- TransactionMetadata | ||
- InMemoryIncrementStore | ||
- EventType | ||
- MetricParam | ||
- BadgeType | ||
- BadgeMetricLookup | ||
- UserBadge | ||
abis: | ||
- name: superRare | ||
file: superRare/abis/superRare.json | ||
eventHandlers: | ||
- event: WhitelistCreator(indexed address) | ||
handler: handleWhitelistCreator | ||
- event: Bid(indexed address,indexed uint256,indexed uint256) | ||
handler: handleBid | ||
- event: AcceptBid(indexed address,indexed address,uint256,indexed uint256) | ||
handler: handleAcceptBid | ||
- event: CancelBid(indexed address,indexed uint256,indexed uint256) | ||
handler: handleCancelBid | ||
- event: Sold(indexed address,indexed address,uint256,indexed uint256) | ||
handler: handleSold | ||
- event: SalePriceSet(indexed uint256,indexed uint256) | ||
handler: handleSalePriceSet | ||
- event: OwnershipTransferred(indexed address,indexed address) | ||
handler: handleOwnershipTransferred | ||
- event: Transfer(indexed address,indexed address,uint256) | ||
handler: handleTransfer | ||
- event: Approval(indexed address,indexed address,uint256) | ||
handler: handleApproval | ||
file: superRare/superRare.wasm |
Oops, something went wrong.