From 2dcf0aba10287a5d662b9b24e96a473df2b3e309 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 24 Nov 2023 10:22:00 +0100 Subject: [PATCH] debugging errors and add types for packagemanifest format --- apps/vyper/src/app/components/VyperResult.tsx | 13 +- apps/vyper/src/app/utils/compiler.tsx | 3 +- apps/vyper/src/app/utils/types.ts | 273 ++++++++++++++++++ 3 files changed, 283 insertions(+), 6 deletions(-) diff --git a/apps/vyper/src/app/components/VyperResult.tsx b/apps/vyper/src/app/components/VyperResult.tsx index afeffcbe93..40f9e5a5a6 100644 --- a/apps/vyper/src/app/components/VyperResult.tsx +++ b/apps/vyper/src/app/components/VyperResult.tsx @@ -64,14 +64,14 @@ function VyperResult({ output, themeColor }: VyperResultProps) { }, { tabHeadingText: 'Bytecode', - tabPayload: Object.values(output)[0]['bytecode'].object.toString(), + // tabPayload: Object.values(output)[0]['bytecode'].object.toString(), tabMemberType: 'bytecode', tabButtonText: () => 'Copy Bytecode', eventKey: 'bytecode' }, { tabHeadingText: 'Runtime Bytecode', - tabPayload: Object.values(output)[0]['runtimeBytecode'].object.toString(), + // tabPayload: Object.values(output)[0]['runtimeBytecode'].object.toString(), tabMemberType: 'bytecode_runtime', tabButtonText: () => 'Copy Runtime Bytecode', eventKey: 'bytecode_runtime' @@ -89,7 +89,7 @@ function VyperResult({ output, themeColor }: VyperResultProps) { setActive(key)} justify> {tabContent.map((content, index) => ( - content.eventKey !== 'abi' ? content.tabPayload : JSON.stringify(Object.values(output)[0]['abi'])}> + {/* content.eventKey !== 'abi' ? content.tabPayload : JSON.stringify(Object.values(output)[0]['abi'])}> @@ -99,8 +99,11 @@ function VyperResult({ output, themeColor }: VyperResultProps) { ) } - )) - } + } */} + + ))} ) } diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index 7ace5cfa7a..b1cdc71e30 100644 --- a/apps/vyper/src/app/utils/compiler.tsx +++ b/apps/vyper/src/app/utils/compiler.tsx @@ -67,8 +67,9 @@ export async function compile(url: string, contract: Contract): Promise