Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 33 additions & 39 deletions holaplex.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,11 @@ enum AssetType {
"""Ethereum Mainnet"""
ETH

"""
Note: Holaplex uses `ETH_TEST` for provisioning wallets on its staging environment but still submits transactions to mainnet.
"""
ETH_TEST

"""Mainnet Polygon"""
MATIC

"""
Ploygon Mumbai Testnet
Note: Holaplex uses `MATIC_TEST` for provisioning wallets on its staging environment but still submits transactions to mainnet.
"""
MATIC_TEST

"""Mainnet Solana"""
SOL

"""
Devnet Solana
Note: Holaplex uses `SOL_TEST` for provisioning wallets on its staging environment but still submits transactions to mainnet.
"""
SOL_TEST
}

enum Blockchain {
Expand All @@ -112,6 +95,8 @@ type BlockchainCost {
type Collection {
"""
The blockchain address of the collection used to view it in blockchain explorers.
On Solana this is the mint address.
On EVM chains it is the concatenation of the contract address and the token id `{contractAddress}:{tokenId}`.
"""
address: String

Expand Down Expand Up @@ -191,8 +176,12 @@ input CollectionCreatorInput {

"""Represents a single NFT minted from a collection."""
type CollectionMint {
"""The wallet address of the NFT."""
address: String!
"""
The address of the NFT
On Solana this is the mint address.
On EVM chains it is the concatenation of the contract address and the token id `{contractAddress}:{tokenId}`.
"""
address: String

"""The collection the NFT was minted from."""
collection: Collection
Expand Down Expand Up @@ -637,6 +626,9 @@ enum FilterType {
"""Event triggered when a new drop is minted"""
DROP_MINTED

"""Event triggered when a mint has been successfully transfered"""
MINT_TRANSFERED

"""Event triggered when a new project is created"""
PROJECT_CREATED

Expand All @@ -653,7 +645,7 @@ type Holder {
collectionId: UUID!

"""The specific mints from the collection that the holder owns."""
mints: [String!]!
mints: [UUID!]!

"""The number of NFTs that the holder owns in the collection."""
owns: Int!
Expand All @@ -664,7 +656,7 @@ type Invite {
"""
The datetime, in UTC, when the invitation to join the organization was created.
"""
createdAt: NaiveDateTime!
createdAt: DateTime!

"""The ID of the user who created the invitation."""
createdBy: UUID!
Expand Down Expand Up @@ -692,7 +684,7 @@ type Invite {
status: InviteStatus!

"""The datetime, in UTC, when the invitation status was updated."""
updatedAt: NaiveDateTime
updatedAt: DateTime
}

"""Input required for inviting a member to the organization."""
Expand Down Expand Up @@ -726,12 +718,12 @@ A member of a Holaplex organization, representing an individual who has been gra
"""
type Member {
"""The datetime, in UTC, when the member joined the organization."""
createdAt: NaiveDateTime!
createdAt: DateTime!

"""
The datetime, in UTC, when the member was deactivated from the organization.
"""
deactivatedAt: NaiveDateTime
deactivatedAt: DateTime

"""The unique identifier of the member."""
id: UUID!
Expand Down Expand Up @@ -759,7 +751,7 @@ type Member {
"""
The datetime, in UTC, when the member was revoked from the organization.
"""
revokedAt: NaiveDateTime
revokedAt: DateTime

"""The user identity who is a member of the organization."""
user: User
Expand Down Expand Up @@ -1061,7 +1053,7 @@ type Organization {
"""
The datetime, in UTC, when the Holaplex organization was created by its owner.
"""
createdAt: NaiveDateTime!
createdAt: DateTime!

"""
Get a single API credential by client ID.
Expand Down Expand Up @@ -1103,7 +1095,7 @@ type Organization {
"""
The datetime, in UTC, when the Holaplex organization was deactivated by its owner.
"""
deactivatedAt: NaiveDateTime
deactivatedAt: DateTime

"""
Define an asynchronous function to load the total credits deducted for each action
Expand Down Expand Up @@ -1137,11 +1129,12 @@ type Organization {
The owner of the Holaplex organization, who has created the organization and has full control over its settings and members.
"""
owner: Owner
profileImageUrl: String

"""
The optional profile image associated with the Holaplex organization, which can be used to visually represent the organization.
"""
profileImageUrl: String
profileImageUrlOriginal: String

"""
The projects that have been created and are currently associated with the Holaplex organization, which are used to organize NFT campaigns or initiatives within the organization.
Expand Down Expand Up @@ -1189,7 +1182,7 @@ The owner of the Holaplex organization, who is the individual that created the o
"""
type Owner {
"""The datetime, in UTC, when the organization was created."""
createdAt: NaiveDateTime!
createdAt: DateTime!

"""
The unique identifier assigned to the record of the user who created the Holaplex organization and serves as its owner, which is used to distinguish their record from other records within the Holaplex ecosystem.
Expand Down Expand Up @@ -1259,7 +1252,7 @@ A Holaplex project that belongs to an organization. Projects are used to group u
"""
type Project {
"""The datetime, in UTC, when the project was created."""
createdAt: NaiveDateTime!
createdAt: DateTime!

"""Retrieve a customer record associated with the project, using its ID."""
customer(id: UUID!): Customer
Expand All @@ -1270,7 +1263,7 @@ type Project {
"""
The date and time in Coordinated Universal Time (UTC) when the Holaplex project was created. Once a project is deactivated, objects that were assigned to the project can no longer be interacted with.
"""
deactivatedAt: NaiveDateTime
deactivatedAt: DateTime

"""Look up a drop associated with the project by its ID."""
drop(id: UUID!): Drop
Expand All @@ -1289,11 +1282,12 @@ type Project {

"""The ID of the Holaplex organization to which the project belongs."""
organizationId: UUID!
profileImageUrl: String

"""
The optional profile image associated with the project, which can be used to visually represent the project.
"""
profileImageUrl: String
profileImageUrlOriginal: String

"""
The treasury assigned to the project, which contains the project's wallets.
Expand Down Expand Up @@ -1434,8 +1428,8 @@ type TransferAssetPayload {
A collection of wallets assigned to different entities in the Holaplex ecosystem.
"""
type Treasury {
"""The creation datetime of the vault."""
createdAt: NaiveDateTime!
"""The creation DateTimeWithTimeZone of the vault."""
createdAt: DateTime!

"""The unique identifier for the treasury."""
id: UUID!
Expand Down Expand Up @@ -1502,20 +1496,20 @@ A blockchain wallet is a digital wallet that allows users to securely store, man
"""
type Wallet {
"""The wallet address."""
address: String!
address: String

"""The wallet's associated blockchain."""
assetId: AssetType!
createdAt: NaiveDateTime!
createdAt: DateTime!
createdBy: UUID!
legacyAddress: String!
deductionId: UUID
id: UUID!

"""
The NFTs that were minted from Holaplex and are owned by the wallet's address.
"""
mints: [CollectionMint!]
removedAt: NaiveDateTime
tag: String!
removedAt: DateTime
treasuryId: UUID!
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/airdrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const start = async () => {
project: process.env.HOLAPLEX_PROJECT_ID as string
}
});

console.log('result', result);
result.data.project.drops?.map(async (drop: Drop) => {
console.log(drop);
const airdrop = await db.airdrop.findFirst({
Expand Down
Loading