Skip to content

Commit

Permalink
feat: update indexing var name
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Oct 21, 2024
1 parent 392044b commit 25f26b2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Address } from 'viem'
export const SENTINEL_ADDRESS: Address =
'0x0000000000000000000000000000000000000001'

export const GRAPHQL_API_URL =
export const INDEXER_URL =
'https://indexer.bigdevenergy.link/c03b38d/v1/graphql'
4 changes: 2 additions & 2 deletions src/common/queries/account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Address, PublicClient } from 'viem'
import { GRAPHQL_API_URL } from '../constants'
import { INDEXER_URL } from '../constants'
import { Account } from '../../account'

const query = `
Expand All @@ -23,7 +23,7 @@ export const getInstalledModules = async ({
chainId: await client.getChainId(),
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
4 changes: 2 additions & 2 deletions src/common/queries/registry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PublicClient } from 'viem'
import { GRAPHQL_API_URL } from '../constants'
import { INDEXER_URL } from '../constants'

const query = `
query ($chainId: Int) {
Expand All @@ -19,7 +19,7 @@ export const getRegistryModules = async ({
chainId: await client.getChainId(),
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
6 changes: 3 additions & 3 deletions src/common/queries/scheduledOrders.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Address, PublicClient } from 'viem'
import { GRAPHQL_API_URL } from '../constants'
import { INDEXER_URL } from '../constants'
import { Account } from '../../account'

const query = `
Expand Down Expand Up @@ -29,7 +29,7 @@ export const getScheduledOrders = async ({
chainId: client.chain?.id,
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -81,7 +81,7 @@ export const getScheduledOrderByJobId = async ({
chainId: await client.getChainId(),
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
6 changes: 3 additions & 3 deletions src/common/queries/scheduledTransfers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Address, PublicClient } from 'viem'
import { GRAPHQL_API_URL } from '../constants'
import { INDEXER_URL } from '../constants'
import { Account } from '../../account'

const query = `
Expand Down Expand Up @@ -29,7 +29,7 @@ export const getScheduledTransfers = async ({
chainId: await client.getChainId(),
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -81,7 +81,7 @@ export const getScheduledTransferByJobId = async ({
chainId: await client.getChainId(),
}

const response = await fetch(GRAPHQL_API_URL, {
const response = await fetch(INDEXER_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 25f26b2

Please sign in to comment.