Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge vercel/staging into vercel/prod #234

Merged
merged 133 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
87bd6d0
github-actions[bot] Mar 18, 2023
1f2ca22
github-actions[bot] Mar 18, 2023
8662cc9
github-actions[bot] Mar 18, 2023
72a13d8
github-actions[bot] Mar 21, 2023
306ea1f
github-actions[bot] Mar 21, 2023
cf21812
github-actions[bot] Mar 22, 2023
117dd1f
github-actions[bot] Mar 22, 2023
315f432
github-actions[bot] Mar 27, 2023
37b09a9
github-actions[bot] Apr 4, 2023
5a53fdd
github-actions[bot] Apr 4, 2023
95a1813
github-actions[bot] Apr 6, 2023
409b824
github-actions[bot] Apr 6, 2023
fc5935f
github-actions[bot] Apr 6, 2023
bf81625
github-actions[bot] Apr 11, 2023
66dfad3
github-actions[bot] Apr 11, 2023
f061fec
github-actions[bot] Apr 13, 2023
6438e54
github-actions[bot] Apr 20, 2023
5f3af42
citrus config types
ssamkkim Apr 22, 2023
7b25ee7
foreclose loan
ssamkkim Apr 22, 2023
f4d5ad3
stake & unstake token config
ssamkkim Apr 23, 2023
ae5c51d
search resolves cnfts
ssamkkim Apr 24, 2023
3720d8d
chore: add recommendations for vscode
jim4067 Apr 24, 2023
f7cf15b
chore: add .env template file
jim4067 Apr 24, 2023
3dcebb4
Merge pull request #170 from jim4067/jimii/vscode-recommendations
qudo-code Apr 26, 2023
4f7e68b
github-actions[bot] Apr 26, 2023
f118634
github-actions[bot] Apr 26, 2023
7d4370c
Merge pull request #169 from helius-labs/scammo/compressed-nft-search…
qudo-code Apr 26, 2023
c8fd366
Merge pull request #168 from helius-labs/scammo/foxy-staking-type
qudo-code Apr 26, 2023
a102631
github-actions[bot] Apr 26, 2023
6e974fe
github-actions[bot] Apr 26, 2023
57b5911
Merge branch 'dev' into scammo/more-sharky-tx-types
ssamkkim Apr 26, 2023
dc58243
Update config.ts
ssamkkim Apr 26, 2023
6447809
Merge pull request #167 from helius-labs/scammo/more-sharky-tx-types
ssamkkim Apr 26, 2023
35d4a7a
github-actions[bot] Apr 26, 2023
3c9e932
github-actions[bot] Apr 26, 2023
7ad5c50
feat: update to helius icarus endpoint
helius-wedtm May 7, 2023
28f727e
fix: formatting and new url
helius-wedtm May 9, 2023
8c7b86b
Merge pull request #180 from helius-labs/update-helius-endpoint
qudo-code May 9, 2023
c8ed610
github-actions[bot] May 9, 2023
b4eb6b3
github-actions[bot] May 9, 2023
1aef42d
readme typo
joaomendoncaa May 14, 2023
3074f00
feeBasisPoints on asset route - string util - icons - aditional info …
joaomendoncaa May 14, 2023
30a5cba
typo
joaomendoncaa May 14, 2023
8cb4b47
oopsie
joaomendoncaa May 14, 2023
6f353d5
Merge pull request #186 from joaomendoncaa/jm/better-creators-info
qudo-code May 14, 2023
12e9294
github-actions[bot] May 14, 2023
012c745
github-actions[bot] May 14, 2023
353311e
fix (#194)
ssamkkim Jun 1, 2023
ba5d4e5
fix (#193)
ssamkkim Jun 1, 2023
9283d32
github-actions[bot] Jun 1, 2023
dbe855e
github-actions[bot] Jun 1, 2023
d41f399
compressed nft details (#191)
ssamkkim Jun 1, 2023
e48c53c
compressed nft burn (#190)
ssamkkim Jun 1, 2023
2d04a36
github-actions[bot] Jun 1, 2023
6040ea5
github-actions[bot] Jun 1, 2023
5384f39
Cover readme update (#188)
joaomendoncaa Jun 1, 2023
001fa78
github-actions[bot] Jun 1, 2023
b17b3ca
github-actions[bot] Jun 1, 2023
6ed287a
account current merkle tree detail (#184)
ssamkkim Jun 1, 2023
cfa86bc
github-actions[bot] Jun 1, 2023
733c210
github-actions[bot] Jun 1, 2023
02ffb9d
removed helius section on home page (#173)
ssamkkim Jun 1, 2023
d81b997
log messages improved formatting (#171)
ssamkkim Jun 1, 2023
fb4d0dd
github-actions[bot] Jun 1, 2023
90d11cd
github-actions[bot] Jun 1, 2023
850c83b
switch back to rpc.helius.xyz (#185)
ssamkkim Jun 1, 2023
dd404c5
github-actions[bot] Jun 1, 2023
ae66ea3
compressed nft transfer fix (#178)
ssamkkim Jun 1, 2023
a466804
github-actions[bot] Jun 1, 2023
b5061ef
github-actions[bot] Jun 1, 2023
00ab884
proton documentation redo (#165)
ssamkkim Jun 1, 2023
f81b53c
github-actions[bot] Jun 1, 2023
386d2bb
github-actions[bot] Jun 1, 2023
d45fbee
github-actions[bot] Jun 1, 2023
9ecf6c5
base hooks for linting and formatting pre commit and testing pre push…
joaomendoncaa Jun 1, 2023
bf38d15
github-actions[bot] Jun 1, 2023
aa044a3
github-actions[bot] Jun 1, 2023
072d44d
more transaction type configs (#160)
ssamkkim Jun 1, 2023
8758296
github-actions[bot] Jun 1, 2023
2de905f
github-actions[bot] Jun 1, 2023
81e63cb
username provider (#141)
ssamkkim Jun 1, 2023
ad8ec28
github-actions[bot] Jun 1, 2023
cb3c5a8
github-actions[bot] Jun 1, 2023
046e79b
Merge branch 'vercel/prod' into main
qudo-code Jun 1, 2023
8bbbc45
fix dev
qudo-code Jun 1, 2023
7083f43
fix merge
qudo-code Jun 1, 2023
0d22a6c
get token2022 tokens from account
ssamkkim Jun 1, 2023
4523ec7
token2022 metadata
ssamkkim Jun 2, 2023
4f8ff90
search resolve for token2022
ssamkkim Jun 2, 2023
00bab89
Merge branch 'dev' into scammo/token-2022-support
ssamkkim Jun 2, 2023
b578753
solarmoon token add
ssamkkim Jun 2, 2023
59d8eb3
Merge branch 'scammo/token-2022-support' of github.com:helius-labs/xr…
ssamkkim Jun 2, 2023
56ff143
Merge pull request #197 from helius-labs/scammo/token-2022-support
qudo-code Jun 2, 2023
3a8628c
github-actions[bot] Jun 2, 2023
5e50100
github-actions[bot] Jun 2, 2023
ec574ba
remove turbo
qudo-code Jun 18, 2023
65852c5
build command
qudo-code Jun 18, 2023
af80f7b
fix paths
qudo-code Jun 18, 2023
c094dab
Merge pull request #202 from helius-labs/q/doctor-deployment
qudo-code Jun 18, 2023
405be78
github-actions[bot] Jun 18, 2023
4719f59
github-actions[bot] Jun 18, 2023
cd164d2
update rpc url (#205)
qudo-code Jun 30, 2023
9f55fa4
updated env key (#206)
qudo-code Jun 30, 2023
c5b7ba9
github-actions[bot] Jun 30, 2023
2db4342
github-actions[bot] Jun 30, 2023
a1c1562
remove -1 for leaves (#208)
hagitran Jul 16, 2023
cbad9e4
github-actions[bot] Jul 16, 2023
2cb5341
github-actions[bot] Jul 16, 2023
0231c6c
from in ./trpc/transactions to null
solhosty Aug 12, 2023
1171ac2
revert others
solhosty Aug 12, 2023
f5cd1f1
other removals
solhosty Aug 12, 2023
9f229d5
Merge pull request #209 from helius-labs/trpc-hot-fix
solhosty Aug 12, 2023
220e35c
Add get-mime-type.ts
0xIchigo Oct 14, 2023
7d1b1a8
Implement Video Support
0xIchigo Oct 14, 2023
cc56d21
Try Fixing Undefined URL Calls With Better Error Handling + Metadata …
0xIchigo Oct 16, 2023
4125cbd
Fix Type Issue, Try Embedding Directly to Video Tag
0xIchigo Oct 16, 2023
0befd9d
Test Removing Set Metadata Store
0xIchigo Oct 16, 2023
377c142
Fix Setting Metadata
0xIchigo Oct 16, 2023
b8d3526
Add FileProperties Interface and Update UITokenMetadata
0xIchigo Oct 21, 2023
32c7743
Fetch files and video_uri for Metadata, Better Video Handling
0xIchigo Oct 21, 2023
23b3036
Clean Up Code
0xIchigo Oct 21, 2023
00ad244
Merge pull request #231 from helius-labs/i/add-video-support
0xIchigo Oct 23, 2023
12ef772
github-actions[bot] Oct 23, 2023
eac1bcf
github-actions[bot] Oct 23, 2023
8515193
Merge pull request #233 from helius-labs/vercel/staging
0xIchigo Nov 10, 2023
783ab9b
github-actions[bot] Nov 10, 2023
c049892
github-actions[bot] Nov 10, 2023
4645621
Initial Fix Commit
0xIchigo Nov 14, 2023
e285a24
The Conflictooorr
0xIchigo Nov 14, 2023
15508f6
Fix Lint Errors
0xIchigo Nov 14, 2023
daa8583
Fix Build Error in vite.config.js
0xIchigo Nov 14, 2023
13812dc
Disable Lint for transactions.svelte
0xIchigo Nov 14, 2023
7a01d0c
Bug Fixes
0xIchigo Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test
30 changes: 16 additions & 14 deletions src/lib/components/account-header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@
balance.set($accountInfo.data.balance);
}
function toggleNetwork() {
isMainnetValue = !isMainnetValue;
localStorage.setItem("isMainnet", JSON.stringify(isMainnetValue));
const params = new URLSearchParams(window.location.search);
params.set("network", isMainnetValue ? "mainnet" : "devnet");
history.replaceState({}, "", "?" + params.toString());
history.go(0);
}
isMainnetValue = !isMainnetValue;
localStorage.setItem("isMainnet", JSON.stringify(isMainnetValue));

const params = new URLSearchParams(window.location.search);

params.set("network", isMainnetValue ? "mainnet" : "devnet");

history.replaceState({}, "", "?" + params.toString());
history.go(0);
}

$: worth = $balance * $price?.data;
</script>
Expand All @@ -77,7 +80,6 @@
let:usernames
let:usernameIsLoading
>

<div class="nav sticky top-16 z-30 gap-2 bg-base-100 px-3 pt-2">
<div class="flex flex-col bg-base-100">
<div class="flex items-center justify-between">
Expand All @@ -95,12 +97,12 @@
</div>
</div>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="badge cursor-default badge-outline py-2 px-4 flex relative mx-2 opacity-90"
on:click={toggleNetwork}
>
{isMainnetValue ? "mainnet" : "devnet"}
</div>
<div
class="badge-outline badge relative mx-2 flex cursor-default px-4 py-2 opacity-90"
on:click={toggleNetwork}
>
{isMainnetValue ? "mainnet" : "devnet"}
</div>
</div>
<div class="relative text-right">
<h1 class="text-md md:block">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/copy-button.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { Icon as IconType } from "src/lib/types";
import type { Icon as IconType } from "$lib/types";

import { copyToClipboard } from "$lib/util/clipboard";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="col-span-1 flex w-full justify-end">
<div class="mr-12">
<a
href="https://discord.gg/nSkq35VUf5"
href="https://discord.gg/mV3dNPwDnZ"
class="btn-ghost btn"
>
<Icon
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/log-messages.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<style>
.text-sky {
@apply text-info-content;
color: text-info-content;
}

.text-tangerine {
@apply text-[#e8a034];
color: text-#e8a034;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modals/help.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { Icon as IconType } from "src/lib/types";
import type { Icon as IconType } from "$lib/types";
import Icon from "$lib/components/icon.svelte";
const supportedSearches: Array<[IconType, string]> = [
["globe", ".sol, .abc, .poor, .bonk domains"],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modals/menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Network from "../network.svelte";
</script>

{#each [{ name: "Contribute", url: "https://github.com/helius-labs/xray" }, { name: "Join Discord", url: "https://discord.gg/nSkq35VUf5" }] as { name, url }}
{#each [{ name: "Home", url: "/" }, { name: "About Helius APIs", url: "https://helius.xyz" }, { name: "Contribute", url: "https://github.com/helius-labs/xray" }, { name: "Join Discord", url: "https://discord.gg/nSkq35VUf5" }] as { name, url }}
<a
href={url}
data-sveltekit-reload
Expand Down
2 changes: 0 additions & 2 deletions src/lib/components/modals/transaction-filter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import { transactionActionsMetadata } from "$lib/types";
import { filterStore } from "$lib/util/stores/filter";

import Icon from "../icon.svelte";

const handleClick = (key: string) => {
$filterStore = key;
hideModal();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modals/wallets.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import shortenString from "$lib/util/shorten-string";

import { hideModal } from "$lib/state/stores/modals";
// import { hideModal } from "$lib/state/stores/modals";
</script>

{#each addresses as address}
Expand Down
66 changes: 41 additions & 25 deletions src/lib/components/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,50 @@

<div class="col-span-2 flex items-center justify-end">
<div class="flex justify-end pr-2">
<div class="tooltip" data-tip="Docs">
<a href="https://docs.helius.dev/welcome/what-is-helius" rel="noreferrer" target="_blank"
class="btn-ghost btn"
<div
class="tooltip"
data-tip="Docs"
>
<img class="h-6 opacity-90" src="docs.svg" alt="">
</a>
</div>
<div class="tooltip" data-tip="Help">
<button
class="btn-ghost btn"
on:click={() => showModal("HELP")}
<a
href="https://docs.helius.dev/welcome/what-is-helius"
rel="noreferrer"
target="_blank"
class="btn-ghost btn"
>
<img
class="h-6 opacity-90"
src="docs.svg"
alt=""
/>
</a>
</div>
<div
class="tooltip"
data-tip="Help"
>
<Icon
id="question"
size="md"
/>
</button>
</div>
<div class="tooltip" data-tip="Menu">
<button
class="btn-ghost btn"
on:click={() => showModal("MENU")}
<button
class="btn-ghost btn"
on:click={() => showModal("HELP")}
>
<Icon
id="question"
size="md"
/>
</button>
</div>
<div
class="tooltip"
data-tip="Menu"
>
<Icon
id="hamburger"
size="lg"
/>
</button>
<button
class="btn-ghost btn"
on:click={() => showModal("MENU")}
>
<Icon
id="hamburger"
size="lg"
/>
</button>
</div>
</div>
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/lib/components/network.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
}
});
onMount(() => {
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
isMainnetValue = network !== "devnet";
localStorage.setItem("isMainnet", JSON.stringify(isMainnetValue));
});
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
isMainnetValue = network !== "devnet";
localStorage.setItem("isMainnet", JSON.stringify(isMainnetValue));
});
function toggleNetwork(event: Event) {
isMainnetValue = (event.target as HTMLInputElement).checked;
localStorage.setItem("isMainnet", JSON.stringify(isMainnetValue));
Expand All @@ -25,7 +25,9 @@
}
</script>

<div class="toggle-container m-auto p-4 mt-2 flex w-full flex-col justify-center">
<div
class="toggle-container m-auto mt-2 flex w-full flex-col justify-center p-4"
>
<label class="toggle-label m-auto flex flex-col">
<input
type="checkbox"
Expand Down
8 changes: 7 additions & 1 deletion src/lib/components/providers/token-provider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
};

const metadata: UITokenMetadata = {
export const metadata: UITokenMetadata = {
address: "",
attributes: [],
collectionKey: "",
Expand Down Expand Up @@ -123,6 +123,12 @@
data?.offChainMetadata?.metadata?.name ||
data?.legacyMetadata?.name ||
data?.onChainMetadata?.metadata?.data.name;
metadata.files = data?.offChainMetadata?.metadata?.properties?.files;
// Checking all files to see if a video exists
metadata.video_uri =
data?.offChainMetadata?.metadata?.properties?.files?.find(
(file: any) => file.type.startsWith("video/")
)?.uri;
}

$: tokenIsLoading = address !== SOL && $token.isLoading;
Expand Down
92 changes: 46 additions & 46 deletions src/lib/components/search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,63 +103,63 @@
};

const newSearch = async () => {
searchError = "";
isSearching = true;
searchError = "";
isSearching = true;

try {
const response = await fetch(
`/api/search/${inputValue}?network=${
isMainnetValue ? "mainnet" : "devnet"
}`
);
try {
const response = await fetch(
`/api/search/${inputValue}?network=${
isMainnetValue ? "mainnet" : "devnet"
}`
);

const data = await response.json();
const data = await response.json();

if (!data.valid) {
if (!data.valid) {
searchFailed();
return;
}

selectSearch(data);
} catch (error) {
searchFailed();
return;
}

selectSearch(data);
} catch (error) {
searchFailed();
}
};
};

let isMainnetValue = true;

onMount(() => {
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
if (network !== null) {
isMainnetValue = network === "mainnet";
}
recent = getRecentSearches();

isBackpack =
window?.localStorage?.getItem("walletAdapter") === '"Backpack"';
});

$: if ($walletStore.connected && !connected) {
focusInput();
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
isMainnetValue = network !== "devnet";
inputValue = $walletStore.publicKey?.toBase58() || "";
addRecent({
address: inputValue,
search: inputValue,
type: "account",
url: `/account/${inputValue}?network=${
isMainnetValue ? "mainnet" : "devnet"
}`,
valid: true,
onMount(() => {
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
if (network !== null) {
isMainnetValue = network === "mainnet";
}
recent = getRecentSearches();

isBackpack =
window?.localStorage?.getItem("walletAdapter") === '"Backpack"';
});

window.location.href = `/account/${inputValue}`;
$: if ($walletStore.connected && !connected) {
focusInput();
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
isMainnetValue = network !== "devnet";
inputValue = $walletStore.publicKey?.toBase58() || "";
addRecent({
address: inputValue,
search: inputValue,
type: "account",
url: `/account/${inputValue}?network=${
isMainnetValue ? "mainnet" : "devnet"
}`,
valid: true,
});

window.location.href = `/account/${inputValue}`;

connected = true;
}
connected = true;
}
</script>

<div class="relative z-30 my-2 w-full">
Expand Down
Loading