Merge branch 'master' into foundry

pull/5370/head
bunsenstraat 2 years ago committed by GitHub
commit 1c02856a6f
  1. 2
      apps/remix-ide-e2e/src/tests/recorder.test.ts
  2. 2
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  3. 1
      apps/remix-ide/src/app.js
  4. 2
      apps/remix-ide/src/app/panels/file-panel.js
  5. 7
      apps/remix-ide/src/app/plugins/remixd-handle.tsx
  6. 2
      apps/remix-ide/src/remixAppManager.js
  7. 5
      babel.config.js
  8. 4
      libs/remix-debug/src/solidity-decoder/internalCallTree.ts
  9. 2
      libs/remix-debug/src/solidity-decoder/solidityProxy.ts
  10. 2
      libs/remix-ws-templates/src/templates/remixDefault/contracts/1_Storage.sol

@ -470,7 +470,7 @@ const liveModeScenario = {
const testStorageForLiveMode = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage

@ -584,7 +584,7 @@ contract OwnerTest {
const scriptAutoExec = {
contract: `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.2 <0.9.0;
library lib {
function test () public view returns (uint) {

@ -343,7 +343,6 @@ class AppComponent {
analysis,
test,
filePanel.remixdHandle,
filePanel.gitHandle,
filePanel.hardhatHandle,
filePanel.foundryHandle,
filePanel.truffleHandle,

@ -5,7 +5,6 @@ import React from 'react' // eslint-disable-line
import { FileSystemProvider } from '@remix-ui/workspace' // eslint-disable-line
import Registry from '../state/registry'
import { RemixdHandle } from '../plugins/remixd-handle'
const { GitHandle } = require('../files/git-handle.js')
const { HardhatHandle } = require('../files/hardhat-handle.js')
const { FoundryHandle } = require('../files/foundry-handle.js')
const { TruffleHandle } = require('../files/truffle-handle.js')
@ -52,7 +51,6 @@ module.exports = class Filepanel extends ViewPlugin {
this.el.setAttribute('id', 'fileExplorerView')
this.remixdHandle = new RemixdHandle(this.fileProviders.localhost, appManager)
this.gitHandle = new GitHandle()
this.hardhatHandle = new HardhatHandle()
this.foundryHandle = new FoundryHandle()
this.truffleHandle = new TruffleHandle()

@ -6,7 +6,6 @@ import * as packageJson from '../../../../../package.json'
import { version as remixdVersion } from '../../../../../libs/remixd/package.json'
import { PluginManager } from '@remixproject/engine'
import { AppModal, AlertModal } from '@remix-ui/app'
import { CopyToClipboard } from '@remix-ui/clipboard'
const LOCALHOST = ' - connect to localhost - '
@ -25,12 +24,6 @@ const profile = {
authorContact: ""
}
enum State {
ok,
cancel,
new
}
export class RemixdHandle extends WebsocketPlugin {
localhostProvider: any
appManager: PluginManager

@ -190,7 +190,7 @@ class PluginLoader {
constructor() {
const queryParams = new QueryParams()
this.donotAutoReload = ['remixd', 'git'] // that would be a bad practice to force loading some plugins at page load.
this.donotAutoReload = ['remixd'] // that would be a bad practice to force loading some plugins at page load.
this.loaders = {}
this.loaders.localStorage = {
set: (plugin, actives) => {

@ -6,5 +6,8 @@ module.exports = {
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-nullish-coalescing-operator",
["@babel/plugin-proposal-private-property-in-object", { "loose": false }],
["@babel/plugin-proposal-private-methods", { "loose": false }]]
["@babel/plugin-proposal-private-methods", { "loose": false }],
["@babel/plugin-transform-runtime", {
"regenerator": true
}]]
}

@ -82,6 +82,7 @@ export class InternalCallTree {
if (!compResult) {
this.event.trigger('noCallTreeAvailable', [])
} else {
try {
buildTree(this, 0, scopeId, isCreation).then((result) => {
if (result.error) {
this.event.trigger('callTreeBuildFailed', [result.error])
@ -94,6 +95,9 @@ export class InternalCallTree {
console.log('analyzing trace falls ' + reason)
this.event.trigger('callTreeNotReady', [reason])
})
} catch (e) {
console.log(e)
}
}
})
}

@ -115,7 +115,7 @@ export class SolidityProxy {
for (const source of generatedSources) {
if (source.id === sourceLocation.file) return source.ast
}
} else if (compilationResult.data.sources[file]) {
} else if (compilationResult.data.sources && compilationResult.data.sources[file]) {
return compilationResult.data.sources[file].ast
}
return null

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage

Loading…
Cancel
Save