From c18dd52269c1d06bfe94699790f016ede9aa6913 Mon Sep 17 00:00:00 2001 From: step21 Date: Mon, 27 Jan 2020 22:17:03 +0100 Subject: [PATCH] parent 60fc300e32222093cd6c72a6bb9a736010eb0c37 author step21 1580159823 +0100 committer step21 1582131959 +0100 Lexon modifications --- src/app/compiler/compiler-artefacts.js | 4 ++++ src/app/tabs/runTab/model/dropdownlogic.js | 3 +++ src/app/ui/landing-page/workspace.js | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/src/app/compiler/compiler-artefacts.js b/src/app/compiler/compiler-artefacts.js index 860954bb2d..98c9cabb29 100644 --- a/src/app/compiler/compiler-artefacts.js +++ b/src/app/compiler/compiler-artefacts.js @@ -28,5 +28,9 @@ module.exports = class CompilerArtefacts extends Plugin { this.on('vyper', 'compilationFinished', (file, source, languageVersion, data) => { this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source) }) + + this.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => { + this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source) + }) } } diff --git a/src/app/tabs/runTab/model/dropdownlogic.js b/src/app/tabs/runTab/model/dropdownlogic.js index 78497907fa..4ce649d177 100644 --- a/src/app/tabs/runTab/model/dropdownlogic.js +++ b/src/app/tabs/runTab/model/dropdownlogic.js @@ -31,6 +31,9 @@ class DropdownLogic { this.runView.on('vyper', 'compilationFinished', (file, source, languageVersion, data) => broadcastCompilationResult(file, source, languageVersion, data) ) + this.runView.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => + broadcastCompilationResult(file, source, languageVersion, data) + ) } loadContractFromAddress (address, confirmCb, cb) { diff --git a/src/app/ui/landing-page/workspace.js b/src/app/ui/landing-page/workspace.js index 0dcb0c5e44..c415d596dd 100644 --- a/src/app/ui/landing-page/workspace.js +++ b/src/app/ui/landing-page/workspace.js @@ -28,6 +28,14 @@ export const defaultWorkspaces = (appManager) => { appManager.ensureActivated('vyper') appManager.ensureActivated('udapp') }, () => {}), + new Workspace( + 'Lexon', + 'Lexon is a language modelling legal contracts that compiles down to ethereum smart contracts', + true, + () => { + appManager.ensureActivated('lexon') + appManager.ensureActivated('udapp') + }, () => {}), new Workspace('Debugger', 'Debug transactions with remix', false, () => { appManager.ensureActivated('debugger') }, () => {}),