Skip to content

Commit

Permalink
Fixed precommit, removed unusued files.
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicF96 committed Mar 4, 2024
1 parent 5f1dd38 commit e7a45a2
Show file tree
Hide file tree
Showing 55 changed files with 606 additions and 570 deletions.
2 changes: 1 addition & 1 deletion configs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const DEFAULT_SERVICE_PORT = 443;
export const DOMAIN = "pinax.network";
export const DOMAIN = 'pinax.network';
export const DEFAULT_IMG_BASE_URL = `https://${DOMAIN}/vector/chain`;
28 changes: 14 additions & 14 deletions data/blocktypes.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { BlockType } from "../types/block.types";
import { Standard } from "../types/standard.types";
import { BlockType } from '../types/block.types';
import { Standard } from '../types/standard.types';

const BLOCKTYPES: { [standard in Standard]: BlockType } = {
antelope: {
label: "sf.antelope.type.v1.Block",
url: "https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1",
label: 'sf.antelope.type.v1.Block',
url: 'https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1',
},
arweave: {
label: "sf.arweave.type.v1.Block",
url: "https://buf.build/pinax/firehose-arweave/docs/main:sf.arweave.type.v1",
label: 'sf.arweave.type.v1.Block',
url: 'https://buf.build/pinax/firehose-arweave/docs/main:sf.arweave.type.v1',
},
brc20: {
label: "sf.bitcoin.type.v1.Block",
url: "https://buf.build/streamingfast/firehose-bitcoin/docs/main:sf.bitcoin.type.v1",
label: 'sf.bitcoin.type.v1.Block',
url: 'https://buf.build/streamingfast/firehose-bitcoin/docs/main:sf.bitcoin.type.v1',
},
cosmos: {
label: "sf.cosmos.type.v1.Block",
url: "https://github.com/figment-networks/proto-cosmos/blob/main/sf/cosmos/type/v1/type.proto",
label: 'sf.cosmos.type.v1.Block',
url: 'https://github.com/figment-networks/proto-cosmos/blob/main/sf/cosmos/type/v1/type.proto',
},
erc20: {
label: "sf.ethereum.type.v2.Block",
url: "https://buf.build/streamingfast/firehose-ethereum/docs/main:sf.ethereum.type.v2",
label: 'sf.ethereum.type.v2.Block',
url: 'https://buf.build/streamingfast/firehose-ethereum/docs/main:sf.ethereum.type.v2',
},
near: {
label: "sf.near.type.v1.Block",
url: "https://buf.build/streamingfast/firehose-near/docs/main:sf.near.type.v1",
label: 'sf.near.type.v1.Block',
url: 'https://buf.build/streamingfast/firehose-near/docs/main:sf.near.type.v1',
},
};
export default BLOCKTYPES;
16 changes: 8 additions & 8 deletions data/chains/alfajores.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "alfajores";
const id: PinaxId = 'alfajores';

const chain: Chain = {
id,
index: 4,
graph_id: undefined,
name: "Alfajores",
name: 'Alfajores',
alt_names: [],
mainnet: "celo",
standard: "erc20",
mainnet: 'celo',
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: true,
Expand Down
18 changes: 9 additions & 9 deletions data/chains/arbgoerli.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "arbgoerli";
const id: PinaxId = 'arbgoerli';

const chain: Chain = {
id,
index: 4,
graph_id: "arbitrum-goerli",
name: "Arbitrum Goerli",
graph_id: 'arbitrum-goerli',
name: 'Arbitrum Goerli',
alt_names: [],
mainnet: "arbitrum",
standard: "erc20",
mainnet: 'arbitrum',
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: false,
Expand Down
18 changes: 9 additions & 9 deletions data/chains/arbone.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "arbone";
const id: PinaxId = 'arbone';

const chain: Chain = {
id,
index: 4,
graph_id: "arbitrum-one",
name: "Arbitrum One",
graph_id: 'arbitrum-one',
name: 'Arbitrum One',
alt_names: [],
mainnet: "arbitrum",
standard: "erc20",
mainnet: 'arbitrum',
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: false,
Expand Down
18 changes: 9 additions & 9 deletions data/chains/arbsepolia.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "arbsepolia";
const id: PinaxId = 'arbsepolia';

const chain: Chain = {
id,
index: 4,
graph_id: "arbitrum-sepolia",
name: "Arbitrum Sepolia",
graph_id: 'arbitrum-sepolia',
name: 'Arbitrum Sepolia',
alt_names: [],
mainnet: "arbitrum",
standard: "erc20",
mainnet: 'arbitrum',
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: false,
Expand Down
20 changes: 10 additions & 10 deletions data/chains/arweave.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "arweave";
const id: PinaxId = 'arweave';

const chain: Chain = {
id,
index: 4,
graph_id: "arweave-mainnet",
name: "Arweave",
graph_id: 'arweave-mainnet',
name: 'Arweave',
alt_names: [],
mainnet: id,
standard: "erc20",
standard: 'erc20',
block_type: BLOCKTYPE.arweave,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: true,
is_testnet: false,
supported_services: {
firehose: {
released_at: new Date("2023-12-01"),
released_at: new Date('2023-12-01'),
deprecated_at: undefined,
},
substreams: {
released_at: new Date("2024-03-03"),
released_at: new Date('2024-03-03'),
deprecated_at: undefined,
},
rpc: {
Expand Down
14 changes: 7 additions & 7 deletions data/chains/avalanche.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "avalanche";
const id: PinaxId = 'avalanche';

const chain: Chain = {
id,
index: 3,
graph_id: id,
name: "Avalanche",
name: 'Avalanche',
alt_names: [],
mainnet: id,
standard: "erc20",
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: true,
Expand Down
14 changes: 7 additions & 7 deletions data/chains/base.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "base";
const id: PinaxId = 'base';

const chain: Chain = {
id,
index: 4,
graph_id: id,
name: "Base",
name: 'Base',
alt_names: [],
mainnet: id,
standard: "erc20",
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: true,
Expand Down
20 changes: 10 additions & 10 deletions data/chains/bitcoin.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "bitcoin";
const id: PinaxId = 'bitcoin';

const chain: Chain = {
id,
index: 2,
graph_id: undefined,
name: "Bitcoin",
alt_names: ["btc"],
name: 'Bitcoin',
alt_names: ['btc'],
mainnet: id,
standard: "brc20",
standard: 'brc20',
block_type: BLOCKTYPE.brc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: false,
is_testnet: false,
supported_services: {
firehose: {
released_at: new Date("2023-12-21"),
released_at: new Date('2023-12-21'),
deprecated_at: undefined,
},
substreams: {
released_at: new Date("2023-12-21"),
released_at: new Date('2023-12-21'),
deprecated_at: undefined,
},
rpc: {
Expand Down
24 changes: 12 additions & 12 deletions data/chains/bsc.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { bsc as bscMeta } from "wagmi/chains";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';
import { bsc as bscMeta } from 'wagmi/chains';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "bsc";
const id: PinaxId = 'bsc';

const chain: Chain = {
id,
index: 2,
graph_id: id,
name: "BNB",
alt_names: ["bsc", "binance"],
name: 'BNB',
alt_names: ['bsc', 'binance'],
mainnet: id,
standard: "erc20",
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: false,
is_testnet: false,
supported_services: {
firehose: {
released_at: new Date("2023-12-01"),
released_at: new Date('2023-12-01'),
deprecated_at: undefined,
},
substreams: {
released_at: new Date("2023-12-01"),
released_at: new Date('2023-12-01'),
deprecated_at: undefined,
},
rpc: {
released_at: new Date("2023-12-01"),
released_at: new Date('2023-12-01'),
deprecated_at: undefined,
},
},
Expand Down
16 changes: 8 additions & 8 deletions data/chains/celo.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DEFAULT_IMG_BASE_URL } from "../../configs";
import { Chain } from "../../types/chain.types";
import { PinaxId } from "../../types/pinax.types";
import BLOCKTYPE from "../blocktypes";
import { DEFAULT_IMG_BASE_URL } from '../../configs';
import { Chain } from '../../types/chain.types';
import { PinaxId } from '../../types/pinax.types';
import BLOCKTYPE from '../blocktypes';

// Getting a type error? Run `npm run generate_pinaxid_type`
const id: PinaxId = "celo";
const id: PinaxId = 'celo';

const chain: Chain = {
id,
index: 2,
graph_id: "celo",
name: "Celo",
graph_id: 'celo',
name: 'Celo',
alt_names: [],
mainnet: id,
standard: "erc20",
standard: 'erc20',
block_type: BLOCKTYPE.erc20,
img: new URL(`${DEFAULT_IMG_BASE_URL}/${id}.svg`),
is_img_dt_invert: true,
Expand Down
Loading

0 comments on commit e7a45a2

Please sign in to comment.