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

[Feat] Expose Optional Encoding Param for getAccountInfo #58

Merged
merged 2 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"// Lint": "-------------------------------------------------------------",
"test": "npm run lint",
"lint": "eslint .",
"lint": "eslint . --fix",
"format": "prettier --write '{public,src}/**/*.{css,html,js,svelte}'",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"npm run lint",
"npm run format",
"git add"
"git add ."
]
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Docs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{#if selectedMethod}
<div
class="drop-shadow-1xl flex justify-center"
transition:fly={{ y: 200, duration: 1600 }}
transition:fly={{ duration: 1600, y: 200 }}
>
<div
class="m-3 w-full rounded-xl border border-zinc-800 border-opacity-50 p-4 md:w-3/4"
Expand Down
22 changes: 11 additions & 11 deletions src/lib/components/RPCMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
let questions = Object.keys(methods).map((method, index) => {
return { id: index + 1, text: method };
});

export let answer = "";
if (typeof window !== 'undefined') {

if (typeof window !== "undefined") {
// Initialize from localStorage
answer = localStorage.getItem('rpcUrl') || "";
answer = localStorage.getItem("rpcUrl") || "";
}

let isVisible = false;

$: {
if (!answer && typeof window !== 'undefined') {
answer = localStorage.getItem('rpcUrl') || "";
if (!answer && typeof window !== "undefined") {
answer = localStorage.getItem("rpcUrl") || "";
}

let rpcUrlValue = answer;

if (!rpcUrlValue) {
currentRPC.set("https://api.mainnet-beta.solana.com");
}
Expand All @@ -32,8 +32,8 @@
}
currentRPC.set(rpcUrlValue);

if (typeof window !== 'undefined') {
localStorage.setItem('rpcUrl', rpcUrlValue); // Save to localStorage
if (typeof window !== "undefined") {
localStorage.setItem("rpcUrl", rpcUrlValue); // Save to localStorage
}
}

Expand All @@ -47,7 +47,7 @@
{#if isVisible}
<div
class="my-2 flex justify-center"
transition:fly={{ y: 200, duration: 1800 }}
transition:fly={{ duration: 1800, y: 200 }}
>
<form class="flex w-full justify-center">
<div
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/RaceModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
</div>
<div class="flex justify-center">
<button
class="btn btn my-4 w-full border-none bg-gradient-to-r from-orange-400 to-orange-600 p-2 text-white shadow-md"
class="btn my-4 w-full border-none bg-gradient-to-r from-orange-400 to-orange-600 p-2 text-white shadow-md"
on:click={runSpeedTest}>Start</button
>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Request.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{#if selectedMethod}
<div
class="min-h-100 my-1 p-2 text-white"
transition:fly={{ y: 200, duration: 1600 }}
transition:fly={{ duration: 1600, y: 200 }}
>
<div
class="rounded rounded-xl border-2 border-zinc-900 border-opacity-50 p-4 shadow-lg"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Response.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
{#if selectedMethod && responseStatus == "false"}
<div
class="min-h-96 z-1 relative p-2 text-white opacity-90"
transition:fly={{ y: 200, duration: 1500 }}
transition:fly={{ duration: 1500, y: 200 }}
>
<div
class="min-h-100 rounded-xl border border-zinc-900 border-opacity-80 p-4 opacity-50 shadow-lg"
Expand Down
Loading