Skip to content

Commit

Permalink
chore(build)
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Sep 19, 2024
1 parent 6e5d3fb commit 47614e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
25 changes: 2 additions & 23 deletions src/handlers/tezos/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
import { hash } from "@stablelib/blake2b";

import { Tzip16Module, bytes2Char, tzip16 } from "@taquito/tzip16";
import * as api from "@tzkt/sdk-api";
import { eventsGetContractEvents } from "@tzkt/sdk-api";

import {
b58cdecode,
b58cencode,
char2Bytes,
prefix,
validateAddress,
} from "@taquito/utils";
import { BridgeContractType } from "../../contractsTypes/tezos/Bridge.types";
import { NFTContractType } from "../../contractsTypes/tezos/NFT.types";
import { MMap, bytes, nat, tas } from "../../contractsTypes/tezos/type-aliases";

import {
ContractAbstraction,
ContractMethod,
Expand All @@ -37,13 +22,11 @@ import {
} from "@taquito/utils";
import * as api from "@tzkt/sdk-api";
import { eventsGetContractEvents } from "@tzkt/sdk-api";
import axios from "axios";
import { BridgeContractType } from "../../contractsTypes/tezos/Bridge.types";
import { NFTCode } from "../../contractsTypes/tezos/NFT.code";
import { NFTContractType } from "../../contractsTypes/tezos/NFT.types";
import { MMap, bytes, nat, tas } from "../../contractsTypes/tezos/type-aliases";
import { raise } from "../ton";
import { TNFTData } from "../types";
import { fetchHttpOrIpfs } from "../utils/index";
import { TTezosHandler, TTezosParams, TezosSigner } from "./types";

Expand Down Expand Up @@ -167,7 +150,6 @@ export function tezosHandler({
return sender.getPKH();
}

const http = axios.create();
const getNftTokenMetaData = async (contract: string, tokenId: bigint) => {
const nftContract = await Tezos.contract.at<NFTContractType>(contract);

Expand Down Expand Up @@ -467,10 +449,7 @@ export function tezosHandler({
try {
const isUrl = URLCanParse(tokenMd);
if (isUrl) {
const metaData: { symbol?: string } = await fetchHttpOrIpfs(
tokenMd,
http,
);
const metaData: { symbol?: string } = await fetchHttpOrIpfs(tokenMd);
symbol = metaData.symbol ?? symbol;
}
symbol = JSON.parse(tokenMd).symbol ?? symbol;
Expand All @@ -491,7 +470,7 @@ export function tezosHandler({
};

if (isUrl) {
metaData = await fetchHttpOrIpfs(metaDataOrURL, http);
metaData = await fetchHttpOrIpfs(metaDataOrURL);
} else {
metaData = JSON.parse(metaDataOrURL);
}
Expand Down
18 changes: 0 additions & 18 deletions src/handlers/utils/checkHttp.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/handlers/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { fetchHttpOrIpfs } from "./fetchHttpOrIpfs";
import retryFn from "./retryFn";

Expand Down

0 comments on commit 47614e1

Please sign in to comment.