constdeployMsg=['creation of library test.sol:lib1 pending...',
'creation of library test.sol:lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2 pending...']
'creation of library test.sol:lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2 pending...']
constdeployMsg=['creation of library test.sol:lib1 pending...',
'creation of library test.sol:lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2 pending...']
'creation of library test.sol:lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2_lib2 pending...']
{type:'testPass',debugTxHash:'0x57af51c2c19db390a4ccf72fa3d32347fb3d998e70820909c7876bd8ccebf8a3',value:'Equal int pass test',filename: __dirname+'/examples_0/assert_equal_test.sol',context:'AssertEqualTest'},
{type:'testFailure',debugTxHash:'0x710f3a54a561c009fcf0277273b8fe337b2c493e9e83e0ae02786d487339ca7b',value:'Equal int fail test',filename: __dirname+'/examples_0/assert_equal_test.sol',errMsg:'equalIntFailTest fails',context:'AssertEqualTest',assertMethod:'equal',location:'493:45:0',expected:'2',returned:'-1'},
{type:'testPass',debugTxHash:'0x57af51c2c19db390a4ccf72fa3d32347fb3d998e70820909c7876bd8ccebf8a3',value:'Equal int pass test',filename: __dirname+'/examples_0/assert_equal_test.sol',context:'AssertEqualTest'},
{type:'testFailure',debugTxHash:'0x710f3a54a561c009fcf0277273b8fe337b2c493e9e83e0ae02786d487339ca7b',value:'Equal int fail test',filename: __dirname+'/examples_0/assert_equal_test.sol',errMsg:'equalIntFailTest fails',context:'AssertEqualTest',assertMethod:'equal',location:'493:45:0',expected:'2',returned:'-1'},
{type:'testPass',debugTxHash:'0xdc325916fd93227b76231131e52e67f8913d395098c5ac767032db9bd757a91c',value:'Greater than uint pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0xf98eea22bb86f13e0bb4072df22b540289a46b332bdb203a1e488d7e14a1dcd4',value:'Greater than uint fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanUintFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'303:69:0',expected:'4',returned:'1'},
{type:'testPass',debugTxHash:'0xef5ef38329ba6aac2f868d53d803053c52b1895a2c25b704260435c141a63bfc',value:'Greater than int pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0x6b9430f3f12c12fb11e5a8d32fef849ab34614e644be20c6b41a25e510453440',value:'Greater than int fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanIntFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'569:67:0',expected:'1',returned:'-1'},
{type:'testPass',debugTxHash:'0x4c6e10815a5e82bf2c60950606dc886317f680028a9229ba2dda17b5ea36325a',value:'Greater than uint int pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0x989c405c32c8e270a5dea69e6250a514c05dacd6fcf018365a241abc28c2497b',value:'Greater than uint int fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanUintIntFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'845:71:0',expected:'2',returned:'1'},
{type:'testPass',debugTxHash:'0x9fed670ae2061929f71780835b7ea3eb7da6d4fb553cd2d5f62950c353165861',value:'Greater than int uint pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0xcf394fd279293cdcf58efc42f3a443595fdb171769a45df01b0c84cd76b3a9a2',value:'Greater than int uint fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanIntUintFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'1125:76:0',expected:'115792089237316195423570985008687907853269984665640564039457584007913129639836',returned:'100'}
{type:'testPass',debugTxHash:'0x524fb46aa0e8a78bc11a99432908d422450c2933d837f858aeacba9b84706d5c',value:'Lesser than uint pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x0551a67b10b9e13182e8bdb4e530ed92466d5054ae959f999f2c558da2c39d22',value:'Lesser than uint fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanUintFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'298:67:0',expected:'2',returned:'4'},
{type:'testPass',debugTxHash:'0x6d63958d8c3230e837d0ca8335e57262c6e0c6b2c07a5b481842b9ad7329ac28',value:'Lesser than int pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x38e96ef44f4e785db4d40a95862a9797e8cef6de0ce1d059da72ff42e2f3ca62',value:'Lesser than int fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanIntFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'557:65:0',expected:'-1',returned:'1'},
{type:'testPass',debugTxHash:'0x699f9fc2bf7a14134e89b94cd9dc1c537b5d4581a1c26a34a0c3343ddede9608',value:'Lesser than uint int pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0xce1391dcfbfdc6c611e357e6c1c9f6cd9f257153ee400cb80bd36af6d239c342',value:'Lesser than uint int fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanUintIntFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'826:71:0',expected:'-1',returned:'115792089237316195423570985008687907853269984665640564039457584007913129639935'},
{type:'testPass',debugTxHash:'0x7040e6664c13e6b35ef1daaef93a8cae36a62150d818183892096a98b921800c',value:'Lesser than int uint pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x8c58bb433ea41760dcf11114232407d703e8ebf7d5e9637e2923282eae5caee6',value:'Lesser than int uint fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanIntUintFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'1105:69:0',expected:'1',returned:'1'},
{type:'testPass',debugTxHash:'0xdc325916fd93227b76231131e52e67f8913d395098c5ac767032db9bd757a91c',value:'Greater than uint pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0xf98eea22bb86f13e0bb4072df22b540289a46b332bdb203a1e488d7e14a1dcd4',value:'Greater than uint fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanUintFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'303:69:0',expected:'4',returned:'1'},
{type:'testPass',debugTxHash:'0xef5ef38329ba6aac2f868d53d803053c52b1895a2c25b704260435c141a63bfc',value:'Greater than int pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0x6b9430f3f12c12fb11e5a8d32fef849ab34614e644be20c6b41a25e510453440',value:'Greater than int fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanIntFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'569:67:0',expected:'1',returned:'-1'},
{type:'testPass',debugTxHash:'0x4c6e10815a5e82bf2c60950606dc886317f680028a9229ba2dda17b5ea36325a',value:'Greater than uint int pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0x989c405c32c8e270a5dea69e6250a514c05dacd6fcf018365a241abc28c2497b',value:'Greater than uint int fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanUintIntFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'845:71:0',expected:'2',returned:'1'},
{type:'testPass',debugTxHash:'0x9fed670ae2061929f71780835b7ea3eb7da6d4fb553cd2d5f62950c353165861',value:'Greater than int uint pass test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',context:'AssertGreaterThanTest'},
{type:'testFailure',debugTxHash:'0xcf394fd279293cdcf58efc42f3a443595fdb171769a45df01b0c84cd76b3a9a2',value:'Greater than int uint fail test',filename: __dirname+'/examples_0/assert_greaterThan_test.sol',errMsg:'greaterThanIntUintFailTest fails',context:'AssertGreaterThanTest',assertMethod:'greaterThan',location:'1125:76:0',expected:'115792089237316195423570985008687907853269984665640564039457584007913129639836',returned:'100'}
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'},
{type:'testPass',debugTxHash:'0x79cae5c4f44edfd7ae3490e01c75df5741b107672cef5e69800e4d30d380a721',value:'Initial value should not be200',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'},
{type:'testFailure',debugTxHash:'0x24a20f7643e88f891e469ef495911ab0b75f99e2b09b9b091e688674910d1506',value:'Should trigger one fail',filename: __dirname+'/examples_1/simple_storage_test.sol',errMsg:'uint test 1 fails',context:'MyTest',assertMethod:'equal',location:'532:51:1',expected:'2',returned:'1'},
{type:'testPass',debugTxHash:'0x08b1f60c908b7e6cf2dd24fc166c755f0fe5336aebfb325cae4ce00ea9bbf932',value:'Should trigger one pass',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'}
{type:'testPass',debugTxHash:'0x524fb46aa0e8a78bc11a99432908d422450c2933d837f858aeacba9b84706d5c',value:'Lesser than uint pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x0551a67b10b9e13182e8bdb4e530ed92466d5054ae959f999f2c558da2c39d22',value:'Lesser than uint fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanUintFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'298:67:0',expected:'2',returned:'4'},
{type:'testPass',debugTxHash:'0x6d63958d8c3230e837d0ca8335e57262c6e0c6b2c07a5b481842b9ad7329ac28',value:'Lesser than int pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x38e96ef44f4e785db4d40a95862a9797e8cef6de0ce1d059da72ff42e2f3ca62',value:'Lesser than int fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanIntFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'557:65:0',expected:'-1',returned:'1'},
{type:'testPass',debugTxHash:'0x699f9fc2bf7a14134e89b94cd9dc1c537b5d4581a1c26a34a0c3343ddede9608',value:'Lesser than uint int pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0xce1391dcfbfdc6c611e357e6c1c9f6cd9f257153ee400cb80bd36af6d239c342',value:'Lesser than uint int fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanUintIntFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'826:71:0',expected:'-1',returned:'115792089237316195423570985008687907853269984665640564039457584007913129639935'},
{type:'testPass',debugTxHash:'0x7040e6664c13e6b35ef1daaef93a8cae36a62150d818183892096a98b921800c',value:'Lesser than int uint pass test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',context:'AssertLesserThanTest'},
{type:'testFailure',debugTxHash:'0x8c58bb433ea41760dcf11114232407d703e8ebf7d5e9637e2923282eae5caee6',value:'Lesser than int uint fail test',filename: __dirname+'/examples_0/assert_lesserThan_test.sol',errMsg:'lesserThanIntUintFailTest fails',context:'AssertLesserThanTest',assertMethod:'lesserThan',location:'1105:69:0',expected:'1',returned:'1'},
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_2/simple_storage_test.sol',context:'MyTest'},
{type:'testPass',debugTxHash:'0x8ed5b4858405b43ad4052f5690b4b711c0f6cdeb67a64f54084417d43bc54308',value:'Value is set200',filename: __dirname+'/examples_2/simple_storage_test.sol',context:'MyTest'}
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'},
{type:'testPass',debugTxHash:'0x79cae5c4f44edfd7ae3490e01c75df5741b107672cef5e69800e4d30d380a721',value:'Initial value should not be200',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'},
{type:'testFailure',debugTxHash:'0x24a20f7643e88f891e469ef495911ab0b75f99e2b09b9b091e688674910d1506',value:'Should trigger one fail',filename: __dirname+'/examples_1/simple_storage_test.sol',errMsg:'uint test 1 fails',context:'MyTest',assertMethod:'equal',location:'532:51:1',expected:'2',returned:'1'},
{type:'testPass',debugTxHash:'0x08b1f60c908b7e6cf2dd24fc166c755f0fe5336aebfb325cae4ce00ea9bbf932',value:'Should trigger one pass',filename: __dirname+'/examples_1/simple_storage_test.sol',context:'MyTest'}
{type:'testPass',debugTxHash:'0x3567da76ffbec37e3b43a41987a7ff3e61b41b4c544f35c010d2d4b39568d6d4',value:'Initial value should be hello world',filename: __dirname+'/examples_3/simple_string_test.sol',context:'StringTest'},
{type:'testPass',debugTxHash:'0x8619b743ccc99be7d5347a064732474b2d1b69844be65b0e7754c6ac1340d275',value:'Value should not be hello wordl',filename: __dirname+'/examples_3/simple_string_test.sol',context:'StringTest'}
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_2/simple_storage_test.sol',context:'MyTest'},
{type:'testPass',debugTxHash:'0x8ed5b4858405b43ad4052f5690b4b711c0f6cdeb67a64f54084417d43bc54308',value:'Value is set200',filename: __dirname+'/examples_2/simple_storage_test.sol',context:'MyTest'}
],['time','web3'])
})
})
// Test multiple directory import in test contract
describe('test multiple directory import in test contract',function(){
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'},
{type:'testPass',debugTxHash:'0x6893fe4f5a83cc51f03c9237ab93b93ffd826236167d58e20666be4c1b3128a4',value:'Check if even',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'},
{type:'testPass',debugTxHash:'0x64e600b32be681b68926660042ddd96f22d07949b424959811b8acb56e72f719',value:'Check if odd',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'}
{type:'testPass',debugTxHash:'0x3567da76ffbec37e3b43a41987a7ff3e61b41b4c544f35c010d2d4b39568d6d4',value:'Initial value should be hello world',filename: __dirname+'/examples_3/simple_string_test.sol',context:'StringTest'},
{type:'testPass',debugTxHash:'0x8619b743ccc99be7d5347a064732474b2d1b69844be65b0e7754c6ac1340d275',value:'Value should not be hello wordl',filename: __dirname+'/examples_3/simple_string_test.sol',context:'StringTest'}
{type:'testPass',debugTxHash:'0xed5b6898331119c6e3d1185b9de65d87ad7329cc629a8f2d43b966cf180a5dc1',value:'Initial value should be100',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'},
{type:'testPass',debugTxHash:'0x6893fe4f5a83cc51f03c9237ab93b93ffd826236167d58e20666be4c1b3128a4',value:'Check if even',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'},
{type:'testPass',debugTxHash:'0x64e600b32be681b68926660042ddd96f22d07949b424959811b8acb56e72f719',value:'Check if odd',filename: __dirname+'/examples_5/test/simple_storage_test.sol',context:'StorageResolveTest'}
// await this.props.plugin.call('notification', 'toast', `Too many completion items. Only ${this.maximumItemsForContractCompletion} items will be shown.`)
// await this.props.plugin.call('notification', 'toast', `Too many completion items. Only ${this.maximumItemsForContractCompletion} items will be shown.`)
@ -23,60 +23,60 @@ export function AccountUI (props: AccountProps) {
useEffect(()=>{
switch(props.selectExEnv){
case'injected':
case'injected':
setPlusOpt({
classList:'udapp_disableMouseEvents',
title:"Unfortunately it's not possible to create an account using injected provider. Please create the account directly from your provider (i.e metamask or other of the same type)."
})
break
case'vm-merge':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'vm-london':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'vm-berlin':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'vm-shanghai':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'web3':
if(!props.personalMode){
setPlusOpt({
classList:'udapp_disableMouseEvents',
title:"Unfortunately it's not possible to create an account using injected provider. Please create the account directly from your provider (i.e metamask or other of the same type)."
})
break
case'vm-merge':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'vm-london':
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'vm-berlin':
setPlusOpt({
classList:'',
title:'Create a new account'
classList:'disableMouseEvents',
title:'Creating an account is possible only in Personal mode. Please go to Settings to enable it.'
})
break
case'vm-shanghai':
}else{
setPlusOpt({
classList:'',
title:'Create a new account'
})
break
case'web3':
if(!props.personalMode){
setPlusOpt({
classList:'disableMouseEvents',
title:'Creating an account is possible only in Personal mode. Please go to Settings to enable it.'
})
}else{
setPlusOpt({
classList:'',
title:'Create a new account'
})
}
break
default:
setPlusOpt({
classList:'disableMouseEvents',
title:`Unfortunately it's not possible to create an account using an external wallet (${props.selectExEnv}).`
})
}
break
default:
setPlusOpt({
classList:'disableMouseEvents',
title:`Unfortunately it's not possible to create an account using an external wallet (${props.selectExEnv}).`