parent
3c8484b1b8
commit
799849b7ca
@ -1,14 +1 @@ |
||||
import { Dispatch } from 'react' |
||||
import { CircomPluginClient } from '../services/circomPluginClient' |
||||
|
||||
const plugin = new CircomPluginClient() |
||||
|
||||
export const initCircomPluginActions = () => async (dispatch: Dispatch<any>) => { |
||||
plugin.internalEvents.on('connectionChanged', (connected: boolean) => { |
||||
dispatch({ type: 'SET_REMIXD_CONNECTION_STATUS', payload: connected }) |
||||
}) |
||||
} |
||||
|
||||
export function activateRemixd () { |
||||
plugin.activateRemixDeamon() |
||||
} |
@ -0,0 +1,30 @@ |
||||
// const compile = () => {
|
||||
// const currentFile = api.currentFile
|
||||
|
||||
// if (currentFile.endsWith('.circom')) return compileCircuit()
|
||||
// if (!isSolFileSelected()) return
|
||||
// _setCompilerVersionFromPragma(currentFile)
|
||||
// let externalCompType
|
||||
// if (hhCompilation) externalCompType = 'hardhat'
|
||||
// else if (truffleCompilation) externalCompType = 'truffle'
|
||||
// compileTabLogic.runCompiler(externalCompType)
|
||||
// }
|
||||
|
||||
// const compileAndRun = () => {
|
||||
// const currentFile = api.currentFile
|
||||
|
||||
// if (currentFile.endsWith('.circom')) return compileCircuit()
|
||||
// if (!isSolFileSelected()) return
|
||||
// _setCompilerVersionFromPragma(currentFile)
|
||||
// let externalCompType
|
||||
// if (hhCompilation) externalCompType = 'hardhat'
|
||||
// else if (truffleCompilation) externalCompType = 'truffle'
|
||||
// api.runScriptAfterCompilation(currentFile)
|
||||
// compileTabLogic.runCompiler(externalCompType)
|
||||
// }
|
||||
|
||||
// const compileCircuit = () => {
|
||||
// const currentFile = api.currentFile
|
||||
|
||||
// console.log('Compiling circuit ' + currentFile)
|
||||
// }
|
Loading…
Reference in new issue