Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ngundotra committed Oct 1, 2024
1 parent 044d59e commit f19dfa0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion app/address/[address]/program-multisig/page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Props = Readonly<{
};
}>;


function ProgramMultisigCardRenderer({
account,
onNotFound,
Expand Down
5 changes: 1 addition & 4 deletions app/components/account/UpgradeableLoaderAccountSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,10 @@ export function UpgradeableProgramSection({
<td className="text-lg-end">
{cluster == Cluster.MainnetBeta && squadMapInfo?.isSquad ? (
<MultisigBadge pubkey={account.pubkey} />
): null}
) : null}
<Address pubkey={programData.authority} alignRight link />
</td>
</tr>
{/* Squads Multisig reverse map info is only available on mainnet */}
{/*<UpgradeAuthorityInfo squadMapInfo={squadMapInfo} version={squadMapInfo?.version} /> : <></>*/}
</>
)}
</>
Expand All @@ -174,7 +172,6 @@ function MultisigBadge({ pubkey }: { pubkey: PublicKey }) {
);
}


function SecurityLabel() {
return (
<InfoTooltip text="Security.txt helps security researchers to contact developers if they find security bugs.">
Expand Down
11 changes: 6 additions & 5 deletions app/providers/squadsMultisig.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Program } from "@coral-xyz/anchor";
import { PublicKey } from "@solana/web3.js";
import { Cluster } from "@utils/cluster";
import useSWRImmutable from "swr/immutable";
import { Program } from '@coral-xyz/anchor';
import { PublicKey } from '@solana/web3.js';
import { Cluster } from '@utils/cluster';
import useSWRImmutable from 'swr/immutable';

export const SQUADS_V3_ADDRESS = 'SMPLecH534NA9acpos4G6x7uf3LWbCAwZQE9e8ZekMu';
export const SQUADS_V4_ADDRESS = 'SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf';
Expand All @@ -18,6 +18,7 @@ export type MinimalMultisigInfo =

const SQUADS_MAP_URL = 'https://4fnetmviidiqkjzenwxe66vgoa0soerr.lambda-url.us-east-1.on.aws/isSquadV2';

// Squads Multisig reverse map info is only available on mainnet
export function useSquadsMultisigLookup(programAuthority: PublicKey | null | undefined, cluster: Cluster) {
return useSWRImmutable<SquadsMultisigMapInfo | null>(
['squadsReverseMap', programAuthority?.toString(), cluster],
Expand Down Expand Up @@ -65,4 +66,4 @@ export function useSquadsMultisig(
}
}
);
}
}

0 comments on commit f19dfa0

Please sign in to comment.