diff --git a/components.d.ts b/components.d.ts index 867774f17..3345620b0 100644 --- a/components.d.ts +++ b/components.d.ts @@ -82,6 +82,7 @@ declare module '@vue/runtime-core' { Erc165: typeof import('./src/tools/erc-165/erc-165.vue')['default'] Erc173: typeof import('./src/tools/erc-173/erc-173.vue')['default'] Erc191: typeof import('./src/tools/erc-191/erc-191.vue')['default'] + Erc1967: typeof import('./src/tools/erc-1967/erc-1967.vue')['default'] Erc20: typeof import('./src/tools/erc-20/erc-20.vue')['default'] Erc721: typeof import('./src/tools/erc-721/erc-721.vue')['default'] Erc725: typeof import('./src/tools/erc-725/erc-725.vue')['default'] diff --git a/src/tools/erc-1967/erc-1967.vue b/src/tools/erc-1967/erc-1967.vue new file mode 100644 index 000000000..7e1a618a9 --- /dev/null +++ b/src/tools/erc-1967/erc-1967.vue @@ -0,0 +1,176 @@ + + + + + + + + {{ walletConnected ? 'Disconnect' : 'Connect Wallet' }} + + + + + Connected Network: {{ networkInfo }} + + + + + + + Query Proxy Info + + + + + + + + + {{ errorMessage }} + + + + + diff --git a/src/tools/erc-1967/index.ts b/src/tools/erc-1967/index.ts new file mode 100644 index 000000000..7168fc246 --- /dev/null +++ b/src/tools/erc-1967/index.ts @@ -0,0 +1,12 @@ +import { ArrowsShuffle } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'ERC1967', + path: '/erc-1967', + description: 'Checks the ERC1967 proxy storage slots.', + keywords: ['ERC1967', 'Proxy', 'Proxy Storage Slots'], + component: () => import('./erc-1967.vue'), + icon: ArrowsShuffle, + createdAt: new Date('2024-07-16'), +}); diff --git a/src/tools/index.ts b/src/tools/index.ts index f06eb7d15..63f6f625f 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -93,6 +93,7 @@ import { tool as erc725 } from './erc-725'; import { tool as erc1155 } from './erc-1155'; import { tool as erc1167 } from './erc-1167'; import { tool as erc1271 } from './erc-1271'; +import { tool as erc1967 } from './erc-1967'; // Added EVM Tools import { tool as evmKeys } from './evm-keys'; @@ -109,7 +110,7 @@ import { tool as evmNamehash } from './evm-namehash'; export const toolsByCategory: ToolCategory[] = [ { name: 'ERC', - components: [erc20, erc165, erc173, erc191, erc721, erc725, erc777, erc1155, erc1167, erc1271], + components: [erc20, erc165, erc173, erc191, erc721, erc725, erc777, erc1155, erc1167, erc1271, erc1967], }, { name: 'EVM',