Skip to content

Commit

Permalink
Merge pull request holaplex#321 from holaplex/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
kristianeboe authored Apr 11, 2022
2 parents 68235ee + 11bd38d commit 7264181
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_ARWEAVE_CDN_HOST=/api/arweave/txt
NEXT_PUBLIC_MARKETPLACE_ENABLED=true
FEATURED_STOREFRONTS_URL="https://bafkreigvmqgo5l6zvoc6gscqhrm6a2qboio2jbgpkewv6pwylgbf4v52ai.ipfs.nftstorage.link/"
NEXT_PUBLIC_INDEXER_GRAPHQL_URL="https://graph-test.holaplex.com/v1"
NEXT_PUBLIC_INDEXER_GRAPHQL_URL="https://graph.holaplex.com/v1"
2 changes: 1 addition & 1 deletion src/graphql/activity/activityPage.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query activityPage($address: String!) {
query activityPage($address: PublicKey!) {
wallet(address: $address) {
__typename
address
Expand Down
79 changes: 73 additions & 6 deletions src/graphql/indexerTypes.ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ export type BidReceipt = {
tradeStateBump: Scalars['Int'];
};

export type ConnectionCounts = {
__typename?: 'ConnectionCounts';
fromCount: Scalars['Int'];
toCount: Scalars['Int'];
};

export type Creator = {
__typename?: 'Creator';
address: Scalars['String'];
attributeGroups: Array<AttributeGroup>;
counts: CreatorCounts;
profile?: Maybe<TwitterProfile>;
stats: Array<MintStats>;
};

Expand All @@ -109,6 +116,13 @@ export type Denylist = {
storefronts: Array<Scalars['PublicKey']>;
};

export type GraphConnection = {
__typename?: 'GraphConnection';
address: Scalars['String'];
from: Wallet;
to: Wallet;
};

export type Listing = {
__typename?: 'Listing';
address: Scalars['String'];
Expand All @@ -122,6 +136,7 @@ export type Listing = {
storefront?: Maybe<Storefront>;
};

/** An NFT listing receipt */
export type ListingReceipt = {
__typename?: 'ListingReceipt';
address: Scalars['String'];
Expand Down Expand Up @@ -210,6 +225,17 @@ export type NftAttribute = {
value: Scalars['String'];
};

export type NftCount = {
__typename?: 'NftCount';
listed: Scalars['Int'];
total: Scalars['Int'];
};


export type NftCountListedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type NftCreator = {
__typename?: 'NftCreator';
address: Scalars['String'];
Expand All @@ -235,6 +261,7 @@ export type Profile = {
handle: Scalars['String'];
profileImageUrlHighres: Scalars['String'];
profileImageUrlLowres: Scalars['String'];
walletAddress?: Maybe<Scalars['String']>;
};

/** auction house bid receipt */
Expand All @@ -250,18 +277,28 @@ export type PurchaseReceipt = {

export type QueryRoot = {
__typename?: 'QueryRoot';
connections: Array<GraphConnection>;
creator: Creator;
denylist: Denylist;
listings: Array<Listing>;
/** A marketplace */
marketplace?: Maybe<Marketplace>;
nft?: Maybe<Nft>;
nftCounts: NftCount;
nfts: Array<Nft>;
profile?: Maybe<Profile>;
/** A storefront */
storefront?: Maybe<Storefront>;
storefronts: Array<Storefront>;
wallet?: Maybe<Wallet>;
wallet: Wallet;
};


export type QueryRootConnectionsArgs = {
from?: InputMaybe<Array<Scalars['PublicKey']>>;
limit: Scalars['Int'];
offset: Scalars['Int'];
to?: InputMaybe<Array<Scalars['PublicKey']>>;
};


Expand All @@ -280,6 +317,11 @@ export type QueryRootNftArgs = {
};


export type QueryRootNftCountsArgs = {
creators: Array<Scalars['PublicKey']>;
};


export type QueryRootNftsArgs = {
attributes?: InputMaybe<Array<AttributeFilter>>;
creators?: InputMaybe<Array<Scalars['PublicKey']>>;
Expand All @@ -302,7 +344,7 @@ export type QueryRootStorefrontArgs = {


export type QueryRootWalletArgs = {
address: Scalars['String'];
address: Scalars['PublicKey'];
};

export type StoreCreator = {
Expand Down Expand Up @@ -335,16 +377,41 @@ export type TwitterProfile = {

export type Wallet = {
__typename?: 'Wallet';
address: Scalars['String'];
address: Scalars['PublicKey'];
bids: Array<Bid>;
connectionCounts: ConnectionCounts;
nftCounts: WalletNftCount;
profile?: Maybe<TwitterProfile>;
};


export type WalletNftCountsArgs = {
creators?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type WalletNftCount = {
__typename?: 'WalletNftCount';
listed: Scalars['Int'];
offered: Scalars['Int'];
owned: Scalars['Int'];
};


export type WalletNftCountListedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};


export type WalletNftCountOfferedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type ActivityPageQueryVariables = Exact<{
address: Scalars['String'];
address: Scalars['PublicKey'];
}>;


export type ActivityPageQuery = { __typename?: 'QueryRoot', wallet?: { __typename: 'Wallet', address: string, bids: Array<{ __typename: 'Bid', listingAddress: string, bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listing?: { __typename?: 'Listing', address: string, ended: boolean, storefront?: { __typename: 'Storefront', ownerAddress: string, subdomain: string, title: string, description: string, faviconUrl: string, logoUrl: string, bannerUrl: string } | null, nfts: Array<{ __typename: 'Nft', address: string, name: string, description: string, image: string }>, bids: Array<{ __typename?: 'Bid', bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listingAddress: string }> } | null }> } | null };
export type ActivityPageQuery = { __typename?: 'QueryRoot', wallet: { __typename: 'Wallet', address: any, bids: Array<{ __typename: 'Bid', listingAddress: string, bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listing?: { __typename?: 'Listing', address: string, ended: boolean, storefront?: { __typename: 'Storefront', ownerAddress: string, subdomain: string, title: string, description: string, faviconUrl: string, logoUrl: string, bannerUrl: string } | null, nfts: Array<{ __typename: 'Nft', address: string, name: string, description: string, image: string }>, bids: Array<{ __typename?: 'Bid', bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listingAddress: string }> } | null }> } };

export type OwnedNfTsQueryVariables = Exact<{
address: Scalars['PublicKey'];
Expand Down Expand Up @@ -379,7 +446,7 @@ export type NftPageQuery = { __typename?: 'QueryRoot', nft?: { __typename?: 'Nft


export const ActivityPageDocument = gql`
query activityPage($address: String!) {
query activityPage($address: PublicKey!) {
wallet(address: $address) {
__typename
address
Expand Down
79 changes: 73 additions & 6 deletions src/graphql/indexerTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ export type BidReceipt = {
tradeStateBump: Scalars['Int'];
};

export type ConnectionCounts = {
__typename?: 'ConnectionCounts';
fromCount: Scalars['Int'];
toCount: Scalars['Int'];
};

export type Creator = {
__typename?: 'Creator';
address: Scalars['String'];
attributeGroups: Array<AttributeGroup>;
counts: CreatorCounts;
profile?: Maybe<TwitterProfile>;
stats: Array<MintStats>;
};

Expand All @@ -109,6 +116,13 @@ export type Denylist = {
storefronts: Array<Scalars['PublicKey']>;
};

export type GraphConnection = {
__typename?: 'GraphConnection';
address: Scalars['String'];
from: Wallet;
to: Wallet;
};

export type Listing = {
__typename?: 'Listing';
address: Scalars['String'];
Expand All @@ -122,6 +136,7 @@ export type Listing = {
storefront?: Maybe<Storefront>;
};

/** An NFT listing receipt */
export type ListingReceipt = {
__typename?: 'ListingReceipt';
address: Scalars['String'];
Expand Down Expand Up @@ -210,6 +225,17 @@ export type NftAttribute = {
value: Scalars['String'];
};

export type NftCount = {
__typename?: 'NftCount';
listed: Scalars['Int'];
total: Scalars['Int'];
};


export type NftCountListedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type NftCreator = {
__typename?: 'NftCreator';
address: Scalars['String'];
Expand All @@ -235,6 +261,7 @@ export type Profile = {
handle: Scalars['String'];
profileImageUrlHighres: Scalars['String'];
profileImageUrlLowres: Scalars['String'];
walletAddress?: Maybe<Scalars['String']>;
};

/** auction house bid receipt */
Expand All @@ -250,18 +277,28 @@ export type PurchaseReceipt = {

export type QueryRoot = {
__typename?: 'QueryRoot';
connections: Array<GraphConnection>;
creator: Creator;
denylist: Denylist;
listings: Array<Listing>;
/** A marketplace */
marketplace?: Maybe<Marketplace>;
nft?: Maybe<Nft>;
nftCounts: NftCount;
nfts: Array<Nft>;
profile?: Maybe<Profile>;
/** A storefront */
storefront?: Maybe<Storefront>;
storefronts: Array<Storefront>;
wallet?: Maybe<Wallet>;
wallet: Wallet;
};


export type QueryRootConnectionsArgs = {
from?: InputMaybe<Array<Scalars['PublicKey']>>;
limit: Scalars['Int'];
offset: Scalars['Int'];
to?: InputMaybe<Array<Scalars['PublicKey']>>;
};


Expand All @@ -280,6 +317,11 @@ export type QueryRootNftArgs = {
};


export type QueryRootNftCountsArgs = {
creators: Array<Scalars['PublicKey']>;
};


export type QueryRootNftsArgs = {
attributes?: InputMaybe<Array<AttributeFilter>>;
creators?: InputMaybe<Array<Scalars['PublicKey']>>;
Expand All @@ -302,7 +344,7 @@ export type QueryRootStorefrontArgs = {


export type QueryRootWalletArgs = {
address: Scalars['String'];
address: Scalars['PublicKey'];
};

export type StoreCreator = {
Expand Down Expand Up @@ -335,16 +377,41 @@ export type TwitterProfile = {

export type Wallet = {
__typename?: 'Wallet';
address: Scalars['String'];
address: Scalars['PublicKey'];
bids: Array<Bid>;
connectionCounts: ConnectionCounts;
nftCounts: WalletNftCount;
profile?: Maybe<TwitterProfile>;
};


export type WalletNftCountsArgs = {
creators?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type WalletNftCount = {
__typename?: 'WalletNftCount';
listed: Scalars['Int'];
offered: Scalars['Int'];
owned: Scalars['Int'];
};


export type WalletNftCountListedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};


export type WalletNftCountOfferedArgs = {
auctionHouses?: InputMaybe<Array<Scalars['PublicKey']>>;
};

export type ActivityPageQueryVariables = Exact<{
address: Scalars['String'];
address: Scalars['PublicKey'];
}>;


export type ActivityPageQuery = { __typename?: 'QueryRoot', wallet?: { __typename: 'Wallet', address: string, bids: Array<{ __typename: 'Bid', listingAddress: string, bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listing?: { __typename?: 'Listing', address: string, ended: boolean, storefront?: { __typename: 'Storefront', ownerAddress: string, subdomain: string, title: string, description: string, faviconUrl: string, logoUrl: string, bannerUrl: string } | null, nfts: Array<{ __typename: 'Nft', address: string, name: string, description: string, image: string }>, bids: Array<{ __typename?: 'Bid', bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listingAddress: string }> } | null }> } | null };
export type ActivityPageQuery = { __typename?: 'QueryRoot', wallet: { __typename: 'Wallet', address: any, bids: Array<{ __typename: 'Bid', listingAddress: string, bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listing?: { __typename?: 'Listing', address: string, ended: boolean, storefront?: { __typename: 'Storefront', ownerAddress: string, subdomain: string, title: string, description: string, faviconUrl: string, logoUrl: string, bannerUrl: string } | null, nfts: Array<{ __typename: 'Nft', address: string, name: string, description: string, image: string }>, bids: Array<{ __typename?: 'Bid', bidderAddress: string, lastBidTime: string, lastBidAmount: any, cancelled: boolean, listingAddress: string }> } | null }> } };

export type OwnedNfTsQueryVariables = Exact<{
address: Scalars['PublicKey'];
Expand Down Expand Up @@ -379,7 +446,7 @@ export type NftPageQuery = { __typename?: 'QueryRoot', nft?: { __typename?: 'Nft


export const ActivityPageDocument = gql`
query activityPage($address: String!) {
query activityPage($address: PublicKey!) {
wallet(address: $address) {
__typename
address
Expand Down

0 comments on commit 7264181

Please sign in to comment.