Skip to content

Commit

Permalink
Merge pull request #240 from joeetwork/jet/update-env-path
Browse files Browse the repository at this point in the history
removed process env and added svelte's import
  • Loading branch information
0xIchigo committed Dec 5, 2023
2 parents 31aa726 + e15ebe0 commit afe3012
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/account-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { connect } from "$lib/xray";
import { LAMPORTS_PER_SOL, PublicKey, Connection } from "@solana/web3.js";
import { getRPCUrl } from "$lib/util/get-rpc-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const accountInfo = t.procedure
.input(z.tuple([z.string(), z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/account-usernames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { t } from "$lib/trpc/t";

import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

interface Username {
type: "bonfida";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { t } from "$lib/trpc/t";

import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

import { getRPCUrl } from "$lib/util/get-rpc-url";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from "zod";
import { isMainnet } from "../../util/stores/network";
import { getRPCUrl } from "$lib/util/get-rpc-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const assets = t.procedure
.input(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getAPIUrl } from "$lib/util/get-api-url";

import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const balances = t.procedure
.input(z.tuple([z.string(), z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/block-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "@solana/web3.js";
import { getRPCUrl } from "$lib/util/get-rpc-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

type TransactionWithInvocations = {
index: number;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/cnft-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { z } from "zod";
import { getAPIUrl } from "$lib/util/get-api-url";
import { getRPCUrl } from "$lib/util/get-rpc-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

type SignaturesResponse = {
jsonrpc: string;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/concurrent-merkle-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ConcurrentMerkleTreeAccount } from "@solana/spl-account-compression";
import { PublicKey, Connection } from "@solana/web3.js";
import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const concurrentMerkleTree = t.procedure
.input(z.object({ address: z.string(), isMainnet: z.boolean() }))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/current-slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from "zod";
import { Connection } from "@solana/web3.js";
import { getRPCUrl } from "$lib/util/get-rpc-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const currentSlot = t.procedure
.input(z.tuple([z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/raw-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { connect } from "$lib/xray";
import { getRPCUrl } from "$lib/util/get-rpc-url";
import { Connection } from "@solana/web3.js";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const rawTransaction = t.procedure
.input(z.tuple([z.string(), z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getAPIUrl } from "$lib/util/get-api-url";

import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const token = t.procedure
.input(z.tuple([z.string(), z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/token2022.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getRPCUrl } from "$lib/util/get-rpc-url";
import { PublicKey } from "@solana/web3.js";
import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const token2022 = t.procedure
.input(z.tuple([z.string(), z.boolean()]))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/tps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Helius } from "helius-sdk";
import { t } from "$lib/trpc/t";
import { z } from "zod";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const tps = t.procedure.input(z.boolean()).query(async ({ input }) => {
let helius;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { t } from "$lib/trpc/t";
import { z } from "zod";
import { getAPIUrl } from "$lib/util/get-api-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const transaction = t.procedure
.input(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { t } from "$lib/trpc/t";
import { z } from "zod";
import { getAPIUrl } from "$lib/util/get-api-url";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

export const transactions = t.procedure
.input(
Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/search/[query]/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { json, type RequestEvent } from "@sveltejs/kit";

import { search, connect } from "$lib/xray";

const { HELIUS_API_KEY } = process.env;
import { HELIUS_API_KEY } from "$env/static/private";

// Consume a search, return what to do with it
export async function GET({ params }: RequestEvent) {
Expand Down

0 comments on commit afe3012

Please sign in to comment.