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

Load Stargaze NFT data from Stargaze indexer #1484

Merged
merged 8 commits into from
Nov 27, 2023
Merged
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
2 changes: 1 addition & 1 deletion apps/dapp/.env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NEXT_PUBLIC_DAO_DAO_DAO_ADDRESS=juno10h0hc64jv006rr8qy0zhlu4jsxct8qwa0vtaleayh0u
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=BMGcq4QJkuTZoUZl3P_jk4X5uy3BsamFBzaFRmhwkRf16B3m4ZW--pP7Nbk8zlOt-u5SuXYbs2KigxnxxEz437k

# Stargaze
NEXT_PUBLIC_STARGAZE_PROFILE_API_TEMPLATE=https://nft-api.stargaze-apis.com/api/v1beta/profile/ADDRESS/nfts
NEXT_PUBLIC_STARGAZE_GQL_INDEXER_URI=https://graphql.mainnet.stargaze-apis.com/graphql
NEXT_PUBLIC_STARGAZE_URL_BASE=https://stargaze.zone
NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0ur5lhe49uhlsasszc5fhr

Expand Down
4 changes: 2 additions & 2 deletions apps/dapp/.env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ NEXT_PUBLIC_DAO_DAO_DAO_ADDRESS=
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=BKloh0zJRJMSnZnro2qr6eDkT2echfshttYXPnCwb7BcAawwYJF9Df_xDoXGD4EE_l2tToFoByp890nl8HTGKMY

# Stargaze
NEXT_PUBLIC_STARGAZE_PROFILE_API_TEMPLATE=https://nft-api.elgafar-1.stargaze-apis.com/api/v1beta/profile/ADDRESS/nfts
NEXT_PUBLIC_STARGAZE_URL_BASE=https://stargaze.zone
NEXT_PUBLIC_STARGAZE_GQL_INDEXER_URI=https://galaxy-graphql-testnet.fly.dev/graphql
NEXT_PUBLIC_STARGAZE_URL_BASE=https://testnet.publicawesome.dev
NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1rgn9tuxnl3ju9td3mfxdl2vm4t8xuaztcdakgtyx23c4ffm97cus25fvjs

# Wallet profiles
Expand Down
1 change: 1 addition & 0 deletions apps/dapp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const config = {
images: {
domains: [
'ipfs.stargaze.zone',
'ipfs-gw.stargaze-apis.com',
'nftstorage.link',
'img-proxy.ekez.workers.dev',
'raw.githubusercontent.com',
Expand Down
2 changes: 1 addition & 1 deletion apps/dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"analyze": "ANALYZE=true next build",
"prepare": "npm run build:worker",
"prebuild": "npm run build:worker",
"prebuild": "npm run build:worker && cd ../../packages/state && npm run build:gql",
"build": "next build --debug",
"build:worker": "tsc sw/index.ts --lib webworker --outfile public/sw.js && eslint public/sw.js --fix",
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion apps/sda/.env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NEXT_PUBLIC_SDA_DEFAULT_DAO_ADDRESS=juno10h0hc64jv006rr8qy0zhlu4jsxct8qwa0vtalea
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=BMGcq4QJkuTZoUZl3P_jk4X5uy3BsamFBzaFRmhwkRf16B3m4ZW--pP7Nbk8zlOt-u5SuXYbs2KigxnxxEz437k

# Stargaze
NEXT_PUBLIC_STARGAZE_PROFILE_API_TEMPLATE=https://nft-api.stargaze-apis.com/api/v1beta/profile/ADDRESS/nfts
NEXT_PUBLIC_STARGAZE_GQL_INDEXER_URI=https://nft-api.stargaze-apis.com/api/v1beta/profile/ADDRESS/nfts
NEXT_PUBLIC_STARGAZE_URL_BASE=https://stargaze.zone
NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0ur5lhe49uhlsasszc5fhr

Expand Down
4 changes: 2 additions & 2 deletions apps/sda/.env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ NEXT_PUBLIC_SDA_DEFAULT_DAO_ADDRESS=juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=BKloh0zJRJMSnZnro2qr6eDkT2echfshttYXPnCwb7BcAawwYJF9Df_xDoXGD4EE_l2tToFoByp890nl8HTGKMY

# Stargaze
NEXT_PUBLIC_STARGAZE_PROFILE_API_TEMPLATE=https://nft-api.elgafar-1.stargaze-apis.com/api/v1beta/profile/ADDRESS/nfts
NEXT_PUBLIC_STARGAZE_URL_BASE=https://stargaze.zone
NEXT_PUBLIC_STARGAZE_GQL_INDEXER_URI=https://galaxy-graphql-testnet.fly.dev/graphql
NEXT_PUBLIC_STARGAZE_URL_BASE=https://testnet.publicawesome.dev
NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1rgn9tuxnl3ju9td3mfxdl2vm4t8xuaztcdakgtyx23c4ffm97cus25fvjs

# Wallet profiles
Expand Down
1 change: 1 addition & 0 deletions apps/sda/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const config = {
images: {
domains: [
'ipfs.stargaze.zone',
'ipfs-gw.stargaze-apis.com',
'nftstorage.link',
'img-proxy.ekez.workers.dev',
'raw.githubusercontent.com',
Expand Down
1 change: 1 addition & 0 deletions apps/sda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "AGPL-3.0-only",
"scripts": {
"analyze": "ANALYZE=true next build",
"prebuild": "cd ../../packages/state && npm run build:gql",
"build": "next build --debug",
"dev": "next dev",
"format": "eslint . --fix",
Expand Down
18 changes: 18 additions & 0 deletions packages/state/gql-codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
schema: 'https://graphql.mainnet.stargaze-apis.com/graphql',
documents: ['./graphql/**/*.ts'],
generates: {
'./graphql/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
},
},
ignoreNoDocuments: true,
}

export default config
86 changes: 86 additions & 0 deletions packages/state/graphql/__generated__/fragment-masking.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions packages/state/graphql/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading