Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Sep 24, 2023
1 parent 52ac88d commit e5a6cd3
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 200 deletions.
2 changes: 1 addition & 1 deletion Components/sigseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import BuyAsset from "./buyAssetModal";
import { sellItem } from "../pages/api/sellItem";
import Web3Modal from "web3modal";
import { useAccount } from "wagmi";
import { useData } from "../../context/data";
import { useData } from "../context/data";

// const apiUrl =
// "https://testnet.gateway.myriadflow.com/api/v1.0/webapp/contracts/7aa9e5d1-a31f-4962-88f4-3d970c609844";
Expand Down
17 changes: 1 addition & 16 deletions pages/api/auctionbuy.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {
const { walletAddress } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
18 changes: 1 addition & 17 deletions pages/api/eternumcreated.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
18 changes: 1 addition & 17 deletions pages/api/fusioncreated.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
18 changes: 1 addition & 17 deletions pages/api/instagencreated.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
17 changes: 1 addition & 16 deletions pages/api/onefusion.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { nftid } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
17 changes: 1 addition & 16 deletions pages/api/oneinstagen.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { nftid } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
17 changes: 1 addition & 16 deletions pages/api/onesaleasset.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {
const { tokenid } = req.query;
const { subgraphUrl } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
17 changes: 1 addition & 16 deletions pages/api/onesigseries.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {
const { nftid } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
19 changes: 1 addition & 18 deletions pages/api/salegraph.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;

const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
18 changes: 1 addition & 17 deletions pages/api/selfsalegraph.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
18 changes: 1 addition & 17 deletions pages/api/sigseriescreated.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down
17 changes: 1 addition & 16 deletions pages/api/soldgraph.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
// pages/api/graphql.js
import axios from "axios";
import { useData } from "../../context/data";

export default async function handler(req, res) {
const { walletAddress } = req.query;

const { resdata } = useData();

const graphql = resdata?.Storefront.subgraphUrl;
console.log(graphql);

const regex = /^(.*?)(?=\/graphql)/;

// Use the regular expression to extract the URL
const match = graphql?.match(regex);

// Extract the matched URL or set it to null if no match was found
const graphqlAPI = match ? match[0] : null;
console.log(graphqlAPI);

const endPoint = graphqlAPI;
const endPoint = "http://3.15.54.199:8000/subgraphs/name/fnl";
const headers = {
"Content-Type": "application/json",
};
Expand Down

0 comments on commit e5a6cd3

Please sign in to comment.