Skip to content

Commit

Permalink
fix: remove unused indexing logics and entities
Browse files Browse the repository at this point in the history
  • Loading branch information
mortimr committed Oct 3, 2024
1 parent 4a4febb commit 4b56f97
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 1,492 deletions.
257 changes: 1 addition & 256 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1212,262 +1212,7 @@ type ERC20Approval @entity {
editedAtBlock: BigInt!
}

#
# ███████ ██████ ██████ ██ ██ ███████ ███████
# ██ ██ ██ ██ ███ ███ ██ ██
# █████ ██████ ██ █████ ██ ██ ███████ ███████
# ██ ██ ██ ██ ██ ██ ██ ██
# ███████ ██ ██ ██████ ██ ██ ███████ ███████
#

type ERC1155Deposit @entity {
id: String! # txHash+integrationAddress+tokenId+stakerAddress
token: ERC1155!

hash: Bytes!

staker: Bytes!
depositAmount: BigInt!
# mintedShares: BigInt!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type ERC1155Balance @entity {
id: String! # integrationAddress+tokenId+stakerAddress
token: ERC1155!

staker: Bytes!
tokenBalance: BigInt!
totalDeposited: BigInt!
adjustedTotalDeposited: BigInt!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type ERC1155Transfer @entity {
id: String! # eventLog+integrationAddress+tokenId
token: ERC1155!

from: Bytes!
to: Bytes!
by: Bytes!
amount: BigInt!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type ERC1155Approval @entity {
id: String! # integrationAddress+owner+spender
integration: ERC1155Integration!

owner: Bytes!
operator: Bytes!
approval: Boolean!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type ERC1155 @entity {
id: String! # integrationAddress+tokenId

integration: ERC1155Integration!
tokenId: BigInt!
totalSupply: BigInt!
totalUnderlyingSupply: BigInt!
pool: MultiPool!

deposits: [ERC1155Deposit!]! @derivedFrom(field: "token")
balances: [ERC1155Balance!]! @derivedFrom(field: "token")
transfers: [ERC1155Transfer!]! @derivedFrom(field: "token")

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type ERC1155Integration implements vPoolIntegration & Integration @entity {
uriPrefix: String!
totalSupply: BigInt!
totalUnderlyingSupply: BigInt!
tokens: [ERC1155!]! @derivedFrom(field: "integration")
approvals: [ERC1155Approval!]! @derivedFrom(field: "integration")

# vPoolIntegration
pools: [MultiPool!]! @derivedFrom(field: "integration")
commissions: [Commission!]! @derivedFrom(field: "vPoolIntegration")
maxCommission: BigInt!

# Integration
id: Bytes!
address: Bytes!
channel: IntegrationChannel!
name: String!
symbol: String!
proxy: TUPProxy!
type: String!

paused: Boolean!
admin: Bytes!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}


#
# ██ ██ ███ ██ ███████ ████████
# ██ ██ ████ ██ ██ ██
# ██ ██ ██ ██ ██ █████ ██
# ██ ██ ██ ██ ██ ██ ██
# ████ ██ ████ ██ ██
#

type VaultClaim @entity {
id: String! # logIndex+vaultAddress
execLayerVault: MerkleVault!

hash: Bytes!

account: Bytes!
amount: BigInt!
totalClaimed: BigInt!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type MerkleVault @entity {
id: Bytes!

root: Bytes!
frameSize: BigInt!
ipfsHash: String!

integrations: [vNFTIntegration!]! @derivedFrom(field: "execLayerVault")
claims: [VaultClaim!]! @derivedFrom(field: "execLayerVault")

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type vNFTApprovals @entity {
id: String! # integrationAddress+owner+operator
integration: vNFTIntegration!

owner: Bytes!
operator: Bytes!
approval: Boolean!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type vNFTIntegration implements Integration @entity {
vFactory: vFactory!
execLayerVault: MerkleVault!
operatorCommission: BigInt!
integratorCommission: BigInt!
integrator: Bytes!
proxy: TUPProxy!
type: String!

soulboundMode: Boolean!
extraData: String!
uriPrefix: String!
supply: BigInt!

vnfts: [vNFT!]! @derivedFrom(field: "integration")
approvals: [vNFTApprovals!]! @derivedFrom(field: "integration")

# Integration
id: Bytes!
address: Bytes!
channel: IntegrationChannel!
name: String!
symbol: String!

paused: Boolean!
admin: Bytes!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type vNFT @entity {
id: String! # integrationAddress+internalTokenId
tokenId: BigInt!
internalTokenId: BigInt!
integration: vNFTIntegration!

owner: Bytes!
validator: ValidationKey!

transfers: [vNFTTransfer!]! @derivedFrom(field: "vNFT")
user: vNFTUser @derivedFrom(field: "vNFT")
approval: Bytes

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type vNFTidsMapping @entity {
id: String! # integrationAddress+tokenId

externalTokenId: BigInt!
internalTokenId: BigInt!
}

type vNFTTransfer @entity {
id: String! # eventLog+integrationAddress+tokenId
vNFT: vNFT!

from: Bytes!
to: Bytes!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}

type vNFTUser @entity {
id: String! # integrationAddress+tokenId

vNFT: vNFT!
user: Bytes!
expiry: BigInt!

createdAt: BigInt!
editedAt: BigInt!
createdAtBlock: BigInt!
editedAtBlock: BigInt!
}
# system events

type G @entity {
id: String!
Expand Down
Loading

0 comments on commit 4b56f97

Please sign in to comment.