Skip to content
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 apps/api-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"scripts": {
"build": "next build",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"fix:lint": "eslint --fix . --max-warnings 0",
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_gbljYVzp0m5EpCuOF6nZpM4WMFM6 vercel env pull",
"start:dev": "next dev --port 3002",
"start:prod": "next start --port 3002",
"test:format": "prettier --check .",
"test:lint": "eslint .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions apps/entropy-debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"scripts": {
"build": "next build",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"fix:lint": "eslint --fix . --max-warnings 0",
"start:dev": "next dev --port 3005",
"start:prod": "next start --port 3005",
"test:format": "prettier --check .",
"test:lint": "eslint .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/hermes/client/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"pull:schema": "curl -o schema.json -z schema.json https://hermes.pyth.network/docs/openapi.json",
"example": "node lib/examples/HermesClient.js",
"format": "prettier --write \"src/**/*.ts\"",
"test:lint": "eslint src/",
"test:lint": "eslint src/ --max-warnings 0",
"prepublishOnly": "pnpm run build:typescript && pnpm run test:lint",
"preversion": "pnpm run test:lint",
"version": "pnpm run format && git add -A src"
Expand Down
3 changes: 2 additions & 1 deletion apps/hermes/client/js/src/examples/HermesClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ async function run() {

eventSource.onmessage = (event: MessageEvent<string>) => {
console.log("Received price update:", event.data);
const _priceUpdate = JSON.parse(event.data) as PriceUpdate;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const priceUpdate = JSON.parse(event.data) as PriceUpdate;
};

eventSource.onerror = (error: Event) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"start:dev": "next dev --port 3003",
"start:prod": "next start --port 3003",
"test:format": "prettier --check .",
"test:lint:eslint": "eslint .",
"test:lint:stylelint": "stylelint 'src/**/*.scss'",
"test:lint:eslint": "eslint . --max-warnings 0",
"test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
"test:types": "tsc"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/price_pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"build": "tsc",
"format": "prettier --write \"src/**/*.ts\"",
"test:lint": "eslint src/",
"test:lint": "eslint src/ --max-warnings 0",
"start": "node lib/index.js",
"dev": "ts-node src/index.ts",
"prepublishOnly": "pnpm run build && pnpm run test:lint",
Expand Down
4 changes: 2 additions & 2 deletions apps/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"scripts": {
"build": "next build",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"fix:lint": "eslint --fix . --max-warnings 0",
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_3TIYzlYYncZx7wRtfmzG2YUsNzKp vercel env pull",
"start:dev": "next dev --port 3001",
"start:prod": "next start --port 3001",
"test:format": "prettier --check .",
"test:lint": "eslint .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc",
"test:unit": "jest --selectProjects unit"
},
Expand Down
1 change: 1 addition & 0 deletions apps/staking/src/hooks/use-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ const useApiContext = (
lastStakeAccountMainnet,
lastStakeAccountDevnet,
mutate,
simulationPayer,
]);
};

Expand Down
2 changes: 1 addition & 1 deletion contract_manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc",
"shell": "ts-node ./src/shell.ts",
"test:lint": "eslint src/ scripts/",
"test:lint": "eslint src/ scripts/ --max-warnings 0",
"format": "prettier --write \"src/**/*.ts\" \"scripts/**/*.ts\""
},
"author": "",
Expand Down
3 changes: 1 addition & 2 deletions contract_manager/scripts/load_test_entropy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import { DefaultStore, EvmChain, toPrivateKey } from "../src";
import { COMMON_DEPLOY_OPTIONS, findEntropyContract } from "./common";
import Web3 from "web3";

const parser = yargs(hideBin(process.argv))
.usage(
Expand Down Expand Up @@ -58,7 +57,7 @@ const ABI = [
stateMutability: "nonpayable",
type: "function",
},
] as any;
] as any; // eslint-disable-line @typescript-eslint/no-explicit-any

async function main() {
const argv = await parser.argv;
Expand Down
4 changes: 3 additions & 1 deletion contract_manager/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ export class GlobalChain extends Chain {
);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
async getAccountAddress(_privateKey: PrivateKey): Promise<string> {
throw new Error("Can not get account for GlobalChain.");
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
async getAccountBalance(_privateKey: PrivateKey): Promise<number> {
throw new Error("Can not get account balance for GlobalChain.");
}
Expand Down Expand Up @@ -439,7 +441,7 @@ export class EvmChain extends Chain {
}

async estiamteAndSendTransaction(
transactionObject: any,
transactionObject: any, // eslint-disable-line @typescript-eslint/no-explicit-any
txParams: { from?: string; value?: string }
) {
const GAS_ESTIMATE_MULTIPLIER = 2;
Expand Down
1 change: 1 addition & 0 deletions contract_manager/src/contracts/sui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ export class SuiWormholeContract extends WormholeContract {
return { id: result.digest, info: result };
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
private async getStateFields(): Promise<any> {
const provider = this.chain.getProvider();
const result = await provider.getObject({
Expand Down
2 changes: 1 addition & 1 deletion contract_manager/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class Store {
*/
getChainOrThrow<T extends Chain>(
chainId: string,
ChainClass?: { new (...args: any[]): T; type: string }
ChainClass?: { new (...args: any[]): T; type: string } // eslint-disable-line @typescript-eslint/no-explicit-any
): T {
const chain = this.chains[chainId];
if (!chain) {
Expand Down
4 changes: 2 additions & 2 deletions governance/pyth_staking_sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"scripts": {
"build": "tsc",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"fix:lint": "eslint --fix . --max-warnings 0",
"prepublishOnly": "node scripts/update-package-json.mjs",
"test:format": "prettier --check .",
"test:lint": "eslint .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ClusterSwitch = ({ light }: { light?: boolean | null }) => {

const { cluster, setCluster } = useContext(ClusterContext)
const handleChange = useCallback(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(event: any) => {
if (event.target.value) {
router.query.cluster = event.target.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const PermissionDepermissionKey = ({

// get current input value

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const handleChange = (event: any) => {
setSelectedAssetType(event.target.value)
setIsModalOpen(true)
Expand Down Expand Up @@ -135,6 +136,7 @@ const PermissionDepermissionKey = ({
toast.success(`Proposal sent! 🚀 Proposal Pubkey: ${proposalPubkey}`)
setIsSubmitButtonLoading(false)
closeModal()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
if (error.response) {
toast.error(capitalizeFirstLetter(error.response.data))
Expand Down Expand Up @@ -168,7 +170,14 @@ const PermissionDepermissionKey = ({
})
setPriceAccounts(res)
}
}, [rawConfig, dataIsLoading, selectedAssetType, isPermission, publisherKey])
}, [
rawConfig,
dataIsLoading,
selectedAssetType,
isPermission,
publisherKey,
cluster,
])

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Modal: React.FC<{
isModalOpen: boolean
setIsModalOpen: Dispatch<SetStateAction<boolean>>
closeModal: () => void
content: any
content: any // eslint-disable-line @typescript-eslint/no-explicit-any
}> = ({ isModalOpen, setIsModalOpen, closeModal, content }) => {
return (
<Transition appear show={isModalOpen} as={Fragment}>
Expand Down
Loading
Loading