Skip to content

Commit

Permalink
chore: fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Jun 3, 2024
1 parent 664e561 commit 4c86b18
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/deploy-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@akashnetwork/akash-api": "^1.3.0",
"@akashnetwork/akashjs": "^0.10.0",
"@auth0/nextjs-auth0": "^3.5.0",
"@chain-registry/types": "^0.41.3",
"@cosmjs/encoding": "^0.32.3",
"@cosmjs/stargate": "^0.32.3",
"@cosmos-kit/cosmostation-extension": "^2.6.4",
Expand Down
4 changes: 3 additions & 1 deletion apps/deploy-web/src/chains/akash-sandbox.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AssetList } from "@chain-registry/types";

import { akash, akashAssetList } from "./akash";

export const akashSandbox = {
Expand All @@ -12,4 +14,4 @@ export const akashSandbox = {
}
};

export const akashSandboxAssetList = { ...akashAssetList, chain_name: "akash-sandbox", assets: [...akashAssetList.assets] };
export const akashSandboxAssetList: AssetList = { ...akashAssetList, chain_name: "akash-sandbox", assets: [...akashAssetList.assets] };
4 changes: 3 additions & 1 deletion apps/deploy-web/src/chains/akash-testnet.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AssetList } from "@chain-registry/types";

import { akash, akashAssetList } from "./akash";

export const akashTestnet = {
Expand All @@ -12,4 +14,4 @@ export const akashTestnet = {
}
};

export const akashTestnetAssetList = { ...akashAssetList, chain_name: "akash-testnet", assets: [...akashAssetList.assets] };
export const akashTestnetAssetList: AssetList = { ...akashAssetList, chain_name: "akash-testnet", assets: [...akashAssetList.assets] };
2 changes: 1 addition & 1 deletion apps/deploy-web/src/components/table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function DataTable<TData, TValue>({

return (
<div className="space-y-4">
<DataTableToolbar table={table} hasStatusFilter={hasStatusFilter} />
<DataTableToolbar table={table} />
<div className="rounded-md border">
<Table>
<TableHeader>
Expand Down
1 change: 0 additions & 1 deletion apps/deploy-web/src/components/ui/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type FormItemContextValue = {
const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);

const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {
// @ts-expect-error till types are outdated
const id = React.useId();

return (
Expand Down
12 changes: 12 additions & 0 deletions apps/indexer/src/indexers/messageAddressesIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,16 @@ export class MessageAddressesIndexer extends Indexer {

return { multisigThreshold, addresses };
}

initCache(): Promise<void> {
return Promise.resolve(undefined);
}

seed(): Promise<void> {
return Promise.resolve(undefined);
}

afterEveryBlock(): Promise<void> {
return Promise.resolve(undefined);
}
}
12 changes: 12 additions & 0 deletions apps/indexer/src/indexers/validatorIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,16 @@ export class ValidatorIndexer extends Indexer {

await validator.save({ transaction: dbTransaction });
}

initCache(): Promise<void> {
return Promise.resolve(undefined);
}

afterEveryTransaction(): Promise<void> {
return Promise.resolve(undefined);
}

afterEveryBlock(): Promise<void> {
return Promise.resolve(undefined);
}
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"./apps/*"
],
"scripts": {
"lint": "eslint .",
"format": "prettier --write ./**/*.{ts,tsx,js,json}"
"format": "prettier --write ./**/*.{ts,tsx,js,json}",
"lint": "eslint ."
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.11.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.3",
"eslint-plugin-simple-import-sort": "^12.1.0",
"prettier": "^3.3.0",
"prettier-plugin-tailwindcss": "^0.6.1"
},
Expand All @@ -22,8 +23,5 @@
"volta": {
"node": "18.20.2",
"npm": "10.5.0"
},
"dependencies": {
"eslint-plugin-simple-import-sort": "^12.1.0"
}
}

0 comments on commit 4c86b18

Please sign in to comment.