declare const schema = "#--Airstack Schemas--\n\ntype AirBlock @entity {\n id: ID! #chain-number\n hash: String!\n number: BigInt!\n timestamp: BigInt!\n}\n\ntype AirMeta @entity {\n id: ID! # air_meta \n network: String!\n schemaVersion: String!\n slug: String! #Opensea_V1\n name: String! # Opeasea V1\n\tversion: String!\n}\n\ntype AirEntityCounter @entity {\n\tid: ID!\n\tcount: BigInt!\n\tcreatedAt: AirBlock! \n\tlastUpdatedAt: AirBlock!\n}\n\ntype AirExtra @entity {\n id: ID! # Concatenation of domainId and name\n name: String!\n value: String!\n}\n\ntype AirAccount @entity {\n id: ID!\n address: String!\n createdAt: AirBlock!\n}\n\ntype AirToken @entity {\n id: ID!\n address: String!\n}\n\ntype AirDomain @entity {\n id: ID! # The namehash of the name\n name: String # The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.[1234].eth)\n labelName: String # The human readable label name (imported from CSV), if known\n labelHash: String # keccak256(labelName)\n tokenId: String # dec(labelHash)\n parent: AirDomain # The namehash (id) of the parent name\n subdomains: [AirDomain!]! @derivedFrom(field: \"parent\") # Can count domains from length of array\n subdomainCount: BigInt! # The number of subdomains\n resolvedAddress: AirAccount # Address logged from current resolver, if any\n owner: AirAccount!\n resolver: AirResolver\n isPrimary: Boolean! # - NA # Is the primary domain for the resolved address\n expiryTimestamp: BigInt!\n registrationCost: BigInt! # Cost of domain registration in wei\n paymentToken: AirToken # Token used to pay for registration\n tokenAddress: AirToken! # Domain (eg: ens) token contract address\n createdAt: AirBlock!\n\tlastUpdatedBlock: AirBlock #- NA\n extras: [AirExtra!]\n}\n\ntype AirDomainTransferTransaction implements AirDomainEvent @entity {\n id: ID!\n from: AirAccount! # - NA\n to: AirAccount! # - NA\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ntype AirDomainOwnerChangedTransaction implements AirDomainEvent @entity {\n id: ID!\n previousOwner: AirAccount! # - NA\n newOwner: AirAccount! # - owner\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ntype AirDomainNewResolverTransaction implements AirDomainEvent @entity {\n id: ID!\n previousResolver: AirAccount # - NA\n newOwnerResolver: AirAccount! # - resolver\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ntype AirDomainNewTTLTransaction implements AirDomainEvent @entity {\n id: ID!\n oldTTL: BigInt # - NA\n newTTL: BigInt! # - ttl\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ntype AirResolver @entity {\n id: ID! # Concatenation of resolver address and namehash\n domain: AirDomain\n address: AirAccount! # Address of resolver contract\n resolvedAddress: AirAccount # Current value of resolved address record (per events)\n}\n\ntype AirResolvedAddressChanged implements AirDomainEvent @entity {\n id: ID!\n resolver: AirResolver!\n previousResolvedAddress: AirAccount # previous resolved address record\n newResolvedAddress: AirAccount! # new resolved address record\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ninterface AirDomainEvent {\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) - NA\n domain: AirDomain!\n index: BigInt! # - NA\n}\n\ninterface AirDomainRegistrationEvent {\n cost: BigInt\n paymentToken: AirToken\n expiryTimestamp: BigInt!\n}\n\ntype AirNameRegisteredTransaction implements AirDomainEvent & AirDomainRegistrationEvent @entity {\n id: ID!\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n cost: BigInt\n paymentToken: AirToken\n registrant: AirAccount!\n expiryTimestamp: BigInt! # - expiryTimestamp to be added to air domain\n}\n\ntype AirNameRenewedTransaction implements AirDomainEvent & AirDomainRegistrationEvent @entity {\n\tid: ID!\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain!\n index: BigInt! # - NA\n cost: BigInt\n paymentToken: AirToken\n renewer: AirAccount!\n expiryTimestamp: BigInt! # - expiryTimestamp to be added to air domain\n}\n\ntype AirPrimaryDomainTransaction implements AirDomainEvent @entity {\n id: ID!\n block: AirBlock!\n transactionHash: String!\n tokenId: String # dec(labelhash) # - NA\n domain: AirDomain! # - name\n index: BigInt! # - NA\n resolvedAddress: AirAccount! #make sure to remove the old primary ens if changed\n}\n"; export default schema; //# sourceMappingURL=airstack-domain-name-schema.graphql.d.ts.map