Skip to content

Commit

Permalink
Merge branch 'master' into react18v4
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat authored Oct 20, 2023
2 parents 8cd615b + 3ee974d commit 3623835
Show file tree
Hide file tree
Showing 37 changed files with 584 additions and 144 deletions.
345 changes: 345 additions & 0 deletions apps/remix-ide-e2e/src/tests/proxy_oz_v4.test.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = {
.click('[data-id="confirmProxyDeployment-modal-footer-ok-react"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander0"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander1"]')
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Deploying ERC1967 >= 5.0.0 as proxy...')
},

'Should interact with deployed contract via ERC1967 (proxy) #group1': function (browser: NightwatchBrowser) {
Expand Down Expand Up @@ -142,6 +143,7 @@ module.exports = {
.click('[data-id="confirmProxyDeployment-modal-footer-ok-react"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander0"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander1"]')
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Deploying ERC1967 >= 5.0.0 as proxy...')
},

'Should interact with initialized contract to verify parameters #group1': function (browser: NightwatchBrowser) {
Expand All @@ -165,6 +167,7 @@ module.exports = {

'Should upgrade contract by selecting a previously deployed proxy address from dropdown (MyTokenV1 to MyTokenV2) #group1': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="terminalClearConsole"]')
.waitForElementPresent('[data-id="deployAndRunClearInstances"]')
.click('[data-id="deployAndRunClearInstances"]')
.openFile('myTokenV2.sol')
Expand Down Expand Up @@ -196,6 +199,7 @@ module.exports = {
})
.waitForElementPresent('[data-id="universalDappUiTitleExpander0"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander1"]')
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Using ERC1967 >= 5.0.0 for the proxy upgrade...')
},

'Should interact with upgraded function in contract MyTokenV2 #group1': function (browser: NightwatchBrowser) {
Expand All @@ -210,6 +214,7 @@ module.exports = {

'Should upgrade contract by providing proxy address in input field (MyTokenV1 to MyTokenV2) #group1': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="terminalClearConsole"]')
.waitForElementPresent('[data-id="deployAndRunClearInstances"]')
.click('[data-id="deployAndRunClearInstances"]')
.openFile('myTokenV2.sol')
Expand All @@ -233,17 +238,30 @@ module.exports = {
.click('[data-id="confirmProxyDeployment-modal-footer-ok-react"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander0"]')
.waitForElementPresent('[data-id="universalDappUiTitleExpander1"]')
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Using ERC1967 >= 5.0.0 for the proxy upgrade...')
},

'Should interact with upgraded contract through provided proxy address #group1': function (browser: NightwatchBrowser) {
browser
.clearConsole()
.clickInstance(1)
.perform((done) => {
browser.testConstantFunction(firstProxyAddress, 'version - call', null, '0:\nstring: MyTokenV2!').perform(() => {
done()
})
})
.end()
},
'Should debug the call': function(browser: NightwatchBrowser) {
browser
.debugTransaction(0)
.waitForElementVisible({
locateStrategy: 'xpath',
selector: '//*[@data-id="treeViewLivm trace step" and contains(.,"7")]',
timeout: 60000
})
.goToVMTraceStep(129)
.waitForElementContainsText('*[data-id="functionPanel"]', 'version()', 60000)
.end()
}
}

Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/tabs/debugger-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ViewPlugin } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json'
import React from 'react' // eslint-disable-line
import { bleach } from '@remix-ui/helper'
import { compilationFinishedToastMsg, compilingToastMsg, localCompilationToastMsg, notFoundToastMsg, sourceVerificationNotAvailableToastMsg } from '@remix-ui/helper'
import { compilationFinishedToastMsg, compilingToastMsg, notFoundToastMsg, sourceVerificationNotAvailableToastMsg } from '@remix-ui/helper'
const css = require('./styles/debugger-tab-styles')

const profile = {
Expand Down
1 change: 1 addition & 0 deletions apps/remix-ide/src/app/tabs/locales/en/debugger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"debugger.displayName": "Debugger",
"debugger.debuggerConfiguration": "Debugger Configuration",
"debugger.stopDebugging": "Stop debugging",
"debugger.provideTxNumber": "Please provide a valid transaction hash",
"debugger.startDebugging": "Start debugging",
"debugger.placeholder": "Transaction hash, should start with 0x",
"debugger.debugLocaNodeLabel": "Force using local node",
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/tabs/network-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class NetworkModule extends Plugin {
this.blockchain.addProvider({ name: network.name, provider })
}

/** Remove a network to the list of availble networks */
/** Remove a network to the list of available networks */
removeNetwork (name) {
this.blockchain.removeProvider(name)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,7 @@ textarea.form-control {

}
.btn {
cursor: pointer;
display:inline-block;
font-weight:400;
color:#495057;
Expand Down Expand Up @@ -2150,7 +2151,8 @@ textarea.form-control {
box-shadow:0 0 0 .2rem rgba(47,164,231,.25)
}
.btn.disabled,.btn:disabled {
opacity:.65
opacity:.65;
cursor: not-allowed
}
.btn:not(:disabled):not(.disabled) {
cursor:pointer
Expand Down Expand Up @@ -3928,7 +3930,8 @@ input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-
padding:1.25rem
}
.card-title {
margin-bottom:.75rem
margin-bottom:.75rem;
color: var(--text);
}
.card-subtitle {
margin-top:-.375rem;
Expand Down
7 changes: 5 additions & 2 deletions apps/remix-ide/src/assets/css/themes/bootstrap-cyborg.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,7 @@ textarea.form-control {

}
.btn {
cursor: pointer;;
display:inline-block;
font-weight:400;
color:#adafae;
Expand Down Expand Up @@ -2151,7 +2152,8 @@ textarea.form-control {
box-shadow:0 0 0 .2rem rgba(42,159,214,.25)
}
.btn.disabled,.btn:disabled {
opacity:.65
opacity:.65;
cursor: not-allowed;
}
.btn:not(:disabled):not(.disabled) {
cursor:pointer
Expand Down Expand Up @@ -3929,7 +3931,8 @@ input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-
padding:1.25rem
}
.card-title {
margin-bottom:.75rem
margin-bottom:.75rem;
color: var(--text);
}
.card-subtitle {
margin-top:-.375rem;
Expand Down
7 changes: 5 additions & 2 deletions apps/remix-ide/src/assets/css/themes/bootstrap-flatly.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,7 @@ textarea.form-control {

}
.btn {
cursor: pointer;
display:inline-block;
font-weight:400;
color:#212529;
Expand Down Expand Up @@ -2152,7 +2153,8 @@ textarea.form-control {
box-shadow:0 0 0 .2rem rgba(44,62,80,.25)
}
.btn.disabled,.btn:disabled {
opacity:.65
opacity:.65;
cursor: not-allowed;
}
.btn:not(:disabled):not(.disabled) {
cursor:pointer
Expand Down Expand Up @@ -3395,7 +3397,8 @@ input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-
-ms-flex:1 1 auto; flex:1 1 auto; min-height:1px; padding:1.25rem
}
.card-title {
margin-bottom:.75rem
margin-bottom:.75rem;
color: var(--text);
}
.card-subtitle {
margin-top:-.375rem; margin-bottom:0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,7 @@ textarea.form-control {

}
.btn {
cursor: pointer;
display:inline-block;
font-weight:400;
color:#777;
Expand Down Expand Up @@ -2153,7 +2154,8 @@ textarea.form-control {
box-shadow:0 0 0 .2rem rgba(68,110,155,.25)
}
.btn.disabled,.btn:disabled {
opacity:.65
opacity:.65;
cursor: not-allowed
}
.btn:not(:disabled):not(.disabled) {
cursor:pointer
Expand Down Expand Up @@ -3931,7 +3933,8 @@ input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-
padding:1.25rem
}
.card-title {
margin-bottom:.75rem
margin-bottom:.75rem;
color: var(--text);
}
.card-subtitle {
margin-top:-.375rem;
Expand Down
2 changes: 2 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-black_undtds.css
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ textarea.form-control.is-invalid {
}
}
.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #d5d5d5;
Expand Down Expand Up @@ -2127,6 +2128,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.65;
cursor: not-allowed
}
a.btn.disabled,
fieldset:disabled a.btn {
Expand Down
3 changes: 3 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-candy_ikhg4m.css
Original file line number Diff line number Diff line change
Expand Up @@ -2314,6 +2314,7 @@ textarea.form-control.is-invalid {
}

.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #0f7292;
Expand Down Expand Up @@ -2346,6 +2347,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.7;
cursor: not-allowed
}

a.btn.disabled,
Expand Down Expand Up @@ -4371,6 +4373,7 @@ input[type="button"].btn-block {

.card-title {
margin-bottom: 0.75rem;
color: var(--text);
}

.card-subtitle {
Expand Down
2 changes: 2 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-dark_tvx1s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,7 @@ textarea.form-control.is-invalid {
}
}
.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #fff;
Expand Down Expand Up @@ -2128,6 +2129,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.65;
cursor: not-allowed
}
a.btn.disabled,
fieldset:disabled a.btn {
Expand Down
2 changes: 2 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-hacker_owl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,7 @@ textarea.form-control.is-invalid {
}
}
.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #fff;
Expand Down Expand Up @@ -2142,6 +2143,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.65;
cursor: not-allowed;
}
a.btn.disabled,
fieldset:disabled a.btn {
Expand Down
3 changes: 3 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-light_powaqg.css
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,7 @@ textarea.form-control.is-invalid {
}

.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #2e3145;
Expand Down Expand Up @@ -2342,6 +2343,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

a.btn.disabled,
Expand Down Expand Up @@ -4367,6 +4369,7 @@ input[type="button"].btn-block {

.card-title {
margin-bottom: 0.75rem;
color: var(--text);
}

.card-subtitle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2315,6 +2315,7 @@ textarea.form-control.is-invalid {
}

.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #062809;
Expand Down Expand Up @@ -2347,6 +2348,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

a.btn.disabled,
Expand Down Expand Up @@ -4373,6 +4375,7 @@ input[type="button"].btn-block {

.card-title {
margin-bottom: 0.75rem;
color: var(--text);
}

.card-subtitle {
Expand Down
3 changes: 3 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-unicorn.css
Original file line number Diff line number Diff line change
Expand Up @@ -2313,6 +2313,7 @@ textarea.form-control.is-invalid {
}

.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #2e3145;
Expand Down Expand Up @@ -2346,6 +2347,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

a.btn.disabled,
Expand Down Expand Up @@ -4371,6 +4373,7 @@ input[type="button"].btn-block {

.card-title {
margin-bottom: 0.75rem;
color: var(--text);
}

.card-subtitle {
Expand Down
3 changes: 3 additions & 0 deletions apps/remix-ide/src/assets/css/themes/remix-violet.css
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,7 @@ textarea.form-control.is-invalid {
}

.btn {
cursor: pointer;
display: inline-block;
font-weight: 400;
color: #2e3145;
Expand Down Expand Up @@ -2342,6 +2343,7 @@ textarea.form-control.is-invalid {
.btn.disabled,
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

a.btn.disabled,
Expand Down Expand Up @@ -4367,6 +4369,7 @@ input[type="button"].btn-block {

.card-title {
margin-bottom: 0.75rem;
color: var(--text);
}

.card-subtitle {
Expand Down
Loading

0 comments on commit 3623835

Please sign in to comment.