Merge branch 'master' of https://github.com/ethereum/remix-project into gitui
commit
9f7c1c6d76
@ -0,0 +1,32 @@ |
|||||||
|
--- |
||||||
|
name: Bug report |
||||||
|
about: Create a report to help us improve |
||||||
|
title: '' |
||||||
|
labels: '' |
||||||
|
assignees: '' |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
**Describe the bug** |
||||||
|
A clear and concise description of what the bug is. |
||||||
|
|
||||||
|
**To Reproduce** |
||||||
|
Steps to reproduce the behavior: |
||||||
|
1. Go to '...' |
||||||
|
2. Click on '....' |
||||||
|
3. Scroll down to '....' |
||||||
|
4. See error |
||||||
|
|
||||||
|
**Expected behavior** |
||||||
|
A clear and concise description of what you expected to happen. |
||||||
|
|
||||||
|
**Screenshots** |
||||||
|
If applicable, add screenshots to help explain your problem. |
||||||
|
|
||||||
|
**Desktop (please complete the following information):** |
||||||
|
- OS: [e.g. Windows, Linux or MacOS] |
||||||
|
- Browser [e.g. chrome, firefox] |
||||||
|
- Version [e.g. 22] |
||||||
|
|
||||||
|
**Additional context** |
||||||
|
Add any other context about the problem here. |
@ -0,0 +1,20 @@ |
|||||||
|
--- |
||||||
|
name: Feature request |
||||||
|
about: Suggest an idea for this project |
||||||
|
title: '' |
||||||
|
labels: '' |
||||||
|
assignees: '' |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.** |
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] |
||||||
|
|
||||||
|
**Describe the solution you'd like** |
||||||
|
A clear and concise description of what you want to happen. |
||||||
|
|
||||||
|
**Describe alternatives you've considered** |
||||||
|
A clear and concise description of any alternative solutions or features you've considered. |
||||||
|
|
||||||
|
**Additional context** |
||||||
|
Add any other context or screenshots about the feature request here. |
@ -1,398 +0,0 @@ |
|||||||
{ |
|
||||||
"_format": "ethers-rs-sol-cache-3", |
|
||||||
"paths": { |
|
||||||
"artifacts": "out", |
|
||||||
"build_infos": "out/build-info", |
|
||||||
"sources": "src", |
|
||||||
"tests": "test", |
|
||||||
"scripts": "script", |
|
||||||
"libraries": [ |
|
||||||
"lib" |
|
||||||
] |
|
||||||
}, |
|
||||||
"files": { |
|
||||||
"lib/forge-std/lib/ds-test/src/test.sol": { |
|
||||||
"lastModificationDate": 1661541843388, |
|
||||||
"contentHash": "962996f0e05d5218857a538a62d7c47e", |
|
||||||
"sourceName": "lib/forge-std/lib/ds-test/src/test.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [], |
|
||||||
"versionRequirement": ">=0.5.0", |
|
||||||
"artifacts": { |
|
||||||
"DSTest": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "test.sol/DSTest.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"lib/forge-std/src/Script.sol": { |
|
||||||
"lastModificationDate": 1661541842048, |
|
||||||
"contentHash": "b313d0193442f5a12848be9c422a0064", |
|
||||||
"sourceName": "lib/forge-std/src/Script.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [ |
|
||||||
"lib/forge-std/src/Vm.sol", |
|
||||||
"lib/forge-std/src/console.sol", |
|
||||||
"lib/forge-std/src/console2.sol" |
|
||||||
], |
|
||||||
"versionRequirement": ">=0.6.0, <0.9.0", |
|
||||||
"artifacts": { |
|
||||||
"Script": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Script.sol/Script.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"lib/forge-std/src/Test.sol": { |
|
||||||
"lastModificationDate": 1661541842048, |
|
||||||
"contentHash": "8e1ae731c7bb8023f36077d86d18693f", |
|
||||||
"sourceName": "lib/forge-std/src/Test.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [ |
|
||||||
"lib/forge-std/lib/ds-test/src/test.sol", |
|
||||||
"lib/forge-std/src/Script.sol", |
|
||||||
"lib/forge-std/src/Vm.sol", |
|
||||||
"lib/forge-std/src/console.sol", |
|
||||||
"lib/forge-std/src/console2.sol" |
|
||||||
], |
|
||||||
"versionRequirement": ">=0.6.0, <0.9.0", |
|
||||||
"artifacts": { |
|
||||||
"Test": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Test.sol/Test.json" |
|
||||||
}, |
|
||||||
"stdError": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Test.sol/stdError.json" |
|
||||||
}, |
|
||||||
"stdMath": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Test.sol/stdMath.json" |
|
||||||
}, |
|
||||||
"stdStorage": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Test.sol/stdStorage.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"lib/forge-std/src/Vm.sol": { |
|
||||||
"lastModificationDate": 1661541842048, |
|
||||||
"contentHash": "225040109969e43ff90255e34aaecc99", |
|
||||||
"sourceName": "lib/forge-std/src/Vm.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [], |
|
||||||
"versionRequirement": ">=0.6.0, <0.9.0", |
|
||||||
"artifacts": { |
|
||||||
"Vm": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Vm.sol/Vm.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"lib/forge-std/src/console.sol": { |
|
||||||
"lastModificationDate": 1663196945880, |
|
||||||
"contentHash": "100b8a33b917da1147740d7ab8b0ded3", |
|
||||||
"sourceName": "lib/forge-std/src/console.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [], |
|
||||||
"versionRequirement": ">=0.4.22, <0.9.0", |
|
||||||
"artifacts": { |
|
||||||
"console": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "console.sol/console.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"lib/forge-std/src/console2.sol": { |
|
||||||
"lastModificationDate": 1661541842052, |
|
||||||
"contentHash": "5df91f8e93efbfcccf68973dc1b74a70", |
|
||||||
"sourceName": "lib/forge-std/src/console2.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [], |
|
||||||
"versionRequirement": ">=0.4.22, <0.9.0", |
|
||||||
"artifacts": { |
|
||||||
"console2": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "console2.sol/console2.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"script/Counter.s.sol": { |
|
||||||
"lastModificationDate": 1661541840908, |
|
||||||
"contentHash": "0705c52104730a78aef4aa6694175c81", |
|
||||||
"sourceName": "script/Counter.s.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [ |
|
||||||
"lib/forge-std/src/Script.sol", |
|
||||||
"lib/forge-std/src/Vm.sol", |
|
||||||
"lib/forge-std/src/console.sol", |
|
||||||
"lib/forge-std/src/console2.sol" |
|
||||||
], |
|
||||||
"versionRequirement": "^0.8.13", |
|
||||||
"artifacts": { |
|
||||||
"CounterScript": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Counter.s.sol/CounterScript.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"src/Counter.sol": { |
|
||||||
"lastModificationDate": 1664875932853, |
|
||||||
"contentHash": "ae6c800a2b4c57768024d6e9423d39e8", |
|
||||||
"sourceName": "src/Counter.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [], |
|
||||||
"versionRequirement": "^0.8.13", |
|
||||||
"artifacts": { |
|
||||||
"Counter": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Counter.sol/Counter.json" |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"test/Counter.t.sol": { |
|
||||||
"lastModificationDate": 1661541840908, |
|
||||||
"contentHash": "5122f4f87ee8fbf9a2468a4c9c780b6a", |
|
||||||
"sourceName": "test/Counter.t.sol", |
|
||||||
"solcConfig": { |
|
||||||
"settings": { |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"outputSelection": { |
|
||||||
"*": { |
|
||||||
"": [ |
|
||||||
"ast" |
|
||||||
], |
|
||||||
"*": [ |
|
||||||
"abi", |
|
||||||
"evm.bytecode", |
|
||||||
"evm.deployedBytecode", |
|
||||||
"evm.methodIdentifiers", |
|
||||||
"metadata" |
|
||||||
] |
|
||||||
} |
|
||||||
}, |
|
||||||
"evmVersion": "london", |
|
||||||
"libraries": {} |
|
||||||
} |
|
||||||
}, |
|
||||||
"imports": [ |
|
||||||
"lib/forge-std/lib/ds-test/src/test.sol", |
|
||||||
"lib/forge-std/src/Script.sol", |
|
||||||
"lib/forge-std/src/Test.sol", |
|
||||||
"lib/forge-std/src/Vm.sol", |
|
||||||
"lib/forge-std/src/console.sol", |
|
||||||
"lib/forge-std/src/console2.sol", |
|
||||||
"src/Counter.sol" |
|
||||||
], |
|
||||||
"versionRequirement": "^0.8.13", |
|
||||||
"artifacts": { |
|
||||||
"CounterTest": { |
|
||||||
"0.8.16+commit.07a7930e.Linux.gcc": "Counter.t.sol/CounterTest.json" |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,6 +0,0 @@ |
|||||||
[profile.default] |
|
||||||
src = 'src' |
|
||||||
out = 'out' |
|
||||||
libs = ['lib'] |
|
||||||
|
|
||||||
# See more config options https://github.com/foundry-rs/foundry/tree/master/config |
|
@ -1,385 +0,0 @@ |
|||||||
{ |
|
||||||
"abi": [ |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "IS_SCRIPT", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "bool", |
|
||||||
"name": "", |
|
||||||
"type": "bool" |
|
||||||
} |
|
||||||
], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "run", |
|
||||||
"outputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "setUp", |
|
||||||
"outputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "vm", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "contract Vm", |
|
||||||
"name": "", |
|
||||||
"type": "address" |
|
||||||
} |
|
||||||
], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function" |
|
||||||
} |
|
||||||
], |
|
||||||
"bytecode": { |
|
||||||
"object": "0x60806040526000805460ff1916600117905534801561001d57600080fd5b5061014c8061002d6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630a9254e4146100515780633a76846314610053578063c04062261461008b578063f8ccbf4714610093575b600080fd5b005b61006e737109709ecfa91a80626ff3989d68f67f5b1dd12d81565b6040516001600160a01b0390911681526020015b60405180910390f35b6100516100b0565b6000546100a09060ff1681565b6040519015158152602001610082565b604080516302bf260160e61b81529051737109709ecfa91a80626ff3989d68f67f5b1dd12d9163afc9804091600480830192600092919082900301818387803b1580156100fc57600080fd5b505af1158015610110573d6000803e3d6000fd5b5050505056fea26469706673582212203a39488c6d5e73072e1dd0c6593caff56e39d0849abc1557f1c6e25cf7dedc2e64736f6c63430008100033", |
|
||||||
"sourceMap": "97:126:6:-:0;;;165:28:1;;;-1:-1:-1;;165:28:1;189:4;165:28;;;97:126:6;;;;;;;;;;;;;;;;", |
|
||||||
"linkReferences": {} |
|
||||||
}, |
|
||||||
"deployedBytecode": { |
|
||||||
"object": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630a9254e4146100515780633a76846314610053578063c04062261461008b578063f8ccbf4714610093575b600080fd5b005b61006e737109709ecfa91a80626ff3989d68f67f5b1dd12d81565b6040516001600160a01b0390911681526020015b60405180910390f35b6100516100b0565b6000546100a09060ff1681565b6040519015158152602001610082565b604080516302bf260160e61b81529051737109709ecfa91a80626ff3989d68f67f5b1dd12d9163afc9804091600480830192600092919082900301818387803b1580156100fc57600080fd5b505af1158015610110573d6000803e3d6000fd5b5050505056fea26469706673582212203a39488c6d5e73072e1dd0c6593caff56e39d0849abc1557f1c6e25cf7dedc2e64736f6c63430008100033", |
|
||||||
"sourceMap": "97:126:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;136:26;;316:38:1;;245:64;316:38;;;;;-1:-1:-1;;;;;189:32:9;;;171:51;;159:2;144:18;316:38:1;;;;;;;;168:53:6;;;:::i;165:28:1:-;;;;;;;;;;;;398:14:9;;391:22;373:41;;361:2;346:18;165:28:1;233:187:9;168:53:6;200:14;;;-1:-1:-1;;;200:14:6;;;;245:64:1;;200:12:6;;:14;;;;;269:37:1;;200:14:6;;;;;;;269:37:1;245:64;200:14:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;168:53::o", |
|
||||||
"linkReferences": {} |
|
||||||
}, |
|
||||||
"methodIdentifiers": { |
|
||||||
"IS_SCRIPT()": "f8ccbf47", |
|
||||||
"run()": "c0406226", |
|
||||||
"setUp()": "0a9254e4", |
|
||||||
"vm()": "3a768463" |
|
||||||
}, |
|
||||||
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.16+commit.07a7930e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"IS_SCRIPT\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"run\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"setUp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vm\",\"outputs\":[{\"internalType\":\"contract Vm\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"script/Counter.s.sol\":\"CounterScript\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\"]},\"sources\":{\"lib/forge-std/src/Script.sol\":{\"keccak256\":\"0x4424dbcb8f5b741475445726f87408fcd89951fad973bec2ca442ee157f910e7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5b0b9f6dfb69245d8f888558ae82bf1d2cdeace46201444fe4b2e6a5283f944a\",\"dweb:/ipfs/QmWFSKeFEZngNcwNn7A84EF7pASo5qe6r5oK24r9Kwca7Z\"]},\"lib/forge-std/src/Vm.sol\":{\"keccak256\":\"0xa0ede8e0d3dc3246912530aed6cacbc4703e4430c4b4acd91963ccea709755ea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a28e7d00aab57ad5159247b0f0f268eda4c6980b29eee7f903578254a2be677f\",\"dweb:/ipfs/QmZrM8gY5BpW8o1QckmPNCYbBP5Q7k5DkcHdaVULKVntxp\"]},\"lib/forge-std/src/console.sol\":{\"keccak256\":\"0x91d5413c2434ca58fd278b6e1e79fd98d10c83931cc2596a6038eee4daeb34ba\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://91ccea707361e48b9b7a161fe81f496b9932bc471e9c4e4e1e9c283f2453cc70\",\"dweb:/ipfs/QmcB66sZhQ6Kz7MUHcLE78YXRUZxoZnnxZjN6yATsbB2ec\"]},\"lib/forge-std/src/console2.sol\":{\"keccak256\":\"0xbeb823fcdb356244a83aaccdf828ad019ecc1ffaa3dff18e624fc6d5714ea671\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4cbe9400340e5f9ec55e2aff3bad1c15fa3afbbe37e80800e6f3fed2ad26854f\",\"dweb:/ipfs/QmdJBABsuXkvWxVzEyGXsTE3vyfBPXDdw5xvvtUz3JeoYW\"]},\"script/Counter.s.sol\":{\"keccak256\":\"0x01edaa1835b1a5bd3f4f66f73451488b8441d30642d3bf1f5fa2c5bf7c005bee\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://3c6a0f19216ceeebf4ec16f8f2662a3bebbe18d4037d1399adf2e3e4ccbb57a2\",\"dweb:/ipfs/Qmc8NknjPkSgbXLg6zZQ8uKT6kAWBvBXz5JrDvZfa88UNT\"]}},\"version\":1}", |
|
||||||
"metadata": { |
|
||||||
"compiler": { |
|
||||||
"version": "0.8.16+commit.07a7930e" |
|
||||||
}, |
|
||||||
"language": "Solidity", |
|
||||||
"output": { |
|
||||||
"abi": [ |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function", |
|
||||||
"name": "IS_SCRIPT", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "bool", |
|
||||||
"name": "", |
|
||||||
"type": "bool" |
|
||||||
} |
|
||||||
] |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function", |
|
||||||
"name": "run" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function", |
|
||||||
"name": "setUp" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function", |
|
||||||
"name": "vm", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "contract Vm", |
|
||||||
"name": "", |
|
||||||
"type": "address" |
|
||||||
} |
|
||||||
] |
|
||||||
} |
|
||||||
], |
|
||||||
"devdoc": { |
|
||||||
"kind": "dev", |
|
||||||
"methods": {}, |
|
||||||
"version": 1 |
|
||||||
}, |
|
||||||
"userdoc": { |
|
||||||
"kind": "user", |
|
||||||
"methods": {}, |
|
||||||
"version": 1 |
|
||||||
} |
|
||||||
}, |
|
||||||
"settings": { |
|
||||||
"remappings": [ |
|
||||||
":ds-test/=lib/forge-std/lib/ds-test/src/", |
|
||||||
":forge-std/=lib/forge-std/src/" |
|
||||||
], |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"compilationTarget": { |
|
||||||
"script/Counter.s.sol": "CounterScript" |
|
||||||
}, |
|
||||||
"libraries": {} |
|
||||||
}, |
|
||||||
"sources": { |
|
||||||
"lib/forge-std/src/Script.sol": { |
|
||||||
"keccak256": "0x4424dbcb8f5b741475445726f87408fcd89951fad973bec2ca442ee157f910e7", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://5b0b9f6dfb69245d8f888558ae82bf1d2cdeace46201444fe4b2e6a5283f944a", |
|
||||||
"dweb:/ipfs/QmWFSKeFEZngNcwNn7A84EF7pASo5qe6r5oK24r9Kwca7Z" |
|
||||||
], |
|
||||||
"license": "MIT" |
|
||||||
}, |
|
||||||
"lib/forge-std/src/Vm.sol": { |
|
||||||
"keccak256": "0xa0ede8e0d3dc3246912530aed6cacbc4703e4430c4b4acd91963ccea709755ea", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://a28e7d00aab57ad5159247b0f0f268eda4c6980b29eee7f903578254a2be677f", |
|
||||||
"dweb:/ipfs/QmZrM8gY5BpW8o1QckmPNCYbBP5Q7k5DkcHdaVULKVntxp" |
|
||||||
], |
|
||||||
"license": "MIT" |
|
||||||
}, |
|
||||||
"lib/forge-std/src/console.sol": { |
|
||||||
"keccak256": "0x91d5413c2434ca58fd278b6e1e79fd98d10c83931cc2596a6038eee4daeb34ba", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://91ccea707361e48b9b7a161fe81f496b9932bc471e9c4e4e1e9c283f2453cc70", |
|
||||||
"dweb:/ipfs/QmcB66sZhQ6Kz7MUHcLE78YXRUZxoZnnxZjN6yATsbB2ec" |
|
||||||
], |
|
||||||
"license": "MIT" |
|
||||||
}, |
|
||||||
"lib/forge-std/src/console2.sol": { |
|
||||||
"keccak256": "0xbeb823fcdb356244a83aaccdf828ad019ecc1ffaa3dff18e624fc6d5714ea671", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://4cbe9400340e5f9ec55e2aff3bad1c15fa3afbbe37e80800e6f3fed2ad26854f", |
|
||||||
"dweb:/ipfs/QmdJBABsuXkvWxVzEyGXsTE3vyfBPXDdw5xvvtUz3JeoYW" |
|
||||||
], |
|
||||||
"license": "MIT" |
|
||||||
}, |
|
||||||
"script/Counter.s.sol": { |
|
||||||
"keccak256": "0x01edaa1835b1a5bd3f4f66f73451488b8441d30642d3bf1f5fa2c5bf7c005bee", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://3c6a0f19216ceeebf4ec16f8f2662a3bebbe18d4037d1399adf2e3e4ccbb57a2", |
|
||||||
"dweb:/ipfs/Qmc8NknjPkSgbXLg6zZQ8uKT6kAWBvBXz5JrDvZfa88UNT" |
|
||||||
], |
|
||||||
"license": "UNLICENSED" |
|
||||||
} |
|
||||||
}, |
|
||||||
"version": 1 |
|
||||||
}, |
|
||||||
"ast": { |
|
||||||
"absolutePath": "script/Counter.s.sol", |
|
||||||
"id": 21582, |
|
||||||
"exportedSymbols": { |
|
||||||
"CounterScript": [ |
|
||||||
21581 |
|
||||||
], |
|
||||||
"Script": [ |
|
||||||
2022 |
|
||||||
], |
|
||||||
"Vm": [ |
|
||||||
5434 |
|
||||||
], |
|
||||||
"console": [ |
|
||||||
13498 |
|
||||||
], |
|
||||||
"console2": [ |
|
||||||
21562 |
|
||||||
] |
|
||||||
}, |
|
||||||
"nodeType": "SourceUnit", |
|
||||||
"src": "39:185:6", |
|
||||||
"nodes": [ |
|
||||||
{ |
|
||||||
"id": 21564, |
|
||||||
"nodeType": "PragmaDirective", |
|
||||||
"src": "39:24:6", |
|
||||||
"literals": [ |
|
||||||
"solidity", |
|
||||||
"^", |
|
||||||
"0.8", |
|
||||||
".13" |
|
||||||
] |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21565, |
|
||||||
"nodeType": "ImportDirective", |
|
||||||
"src": "65:30:6", |
|
||||||
"absolutePath": "lib/forge-std/src/Script.sol", |
|
||||||
"file": "forge-std/Script.sol", |
|
||||||
"nameLocation": "-1:-1:-1", |
|
||||||
"scope": 21582, |
|
||||||
"sourceUnit": 2023, |
|
||||||
"symbolAliases": [], |
|
||||||
"unitAlias": "" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21581, |
|
||||||
"nodeType": "ContractDefinition", |
|
||||||
"src": "97:126:6", |
|
||||||
"nodes": [ |
|
||||||
{ |
|
||||||
"id": 21571, |
|
||||||
"nodeType": "FunctionDefinition", |
|
||||||
"src": "136:26:6", |
|
||||||
"body": { |
|
||||||
"id": 21570, |
|
||||||
"nodeType": "Block", |
|
||||||
"src": "160:2:6", |
|
||||||
"statements": [] |
|
||||||
}, |
|
||||||
"functionSelector": "0a9254e4", |
|
||||||
"implemented": true, |
|
||||||
"kind": "function", |
|
||||||
"modifiers": [], |
|
||||||
"name": "setUp", |
|
||||||
"nameLocation": "145:5:6", |
|
||||||
"parameters": { |
|
||||||
"id": 21568, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "150:2:6" |
|
||||||
}, |
|
||||||
"returnParameters": { |
|
||||||
"id": 21569, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "160:0:6" |
|
||||||
}, |
|
||||||
"scope": 21581, |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"virtual": false, |
|
||||||
"visibility": "public" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21580, |
|
||||||
"nodeType": "FunctionDefinition", |
|
||||||
"src": "168:53:6", |
|
||||||
"body": { |
|
||||||
"id": 21579, |
|
||||||
"nodeType": "Block", |
|
||||||
"src": "190:31:6", |
|
||||||
"statements": [ |
|
||||||
{ |
|
||||||
"expression": { |
|
||||||
"arguments": [], |
|
||||||
"expression": { |
|
||||||
"argumentTypes": [], |
|
||||||
"expression": { |
|
||||||
"id": 21574, |
|
||||||
"name": "vm", |
|
||||||
"nodeType": "Identifier", |
|
||||||
"overloadedDeclarations": [], |
|
||||||
"referencedDeclaration": 1817, |
|
||||||
"src": "200:2:6", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_contract$_Vm_$5434", |
|
||||||
"typeString": "contract Vm" |
|
||||||
} |
|
||||||
}, |
|
||||||
"id": 21576, |
|
||||||
"isConstant": false, |
|
||||||
"isLValue": false, |
|
||||||
"isPure": false, |
|
||||||
"lValueRequested": false, |
|
||||||
"memberLocation": "203:9:6", |
|
||||||
"memberName": "broadcast", |
|
||||||
"nodeType": "MemberAccess", |
|
||||||
"referencedDeclaration": 5173, |
|
||||||
"src": "200:12:6", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_function_external_nonpayable$__$returns$__$", |
|
||||||
"typeString": "function () external" |
|
||||||
} |
|
||||||
}, |
|
||||||
"id": 21577, |
|
||||||
"isConstant": false, |
|
||||||
"isLValue": false, |
|
||||||
"isPure": false, |
|
||||||
"kind": "functionCall", |
|
||||||
"lValueRequested": false, |
|
||||||
"nameLocations": [], |
|
||||||
"names": [], |
|
||||||
"nodeType": "FunctionCall", |
|
||||||
"src": "200:14:6", |
|
||||||
"tryCall": false, |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_tuple$__$", |
|
||||||
"typeString": "tuple()" |
|
||||||
} |
|
||||||
}, |
|
||||||
"id": 21578, |
|
||||||
"nodeType": "ExpressionStatement", |
|
||||||
"src": "200:14:6" |
|
||||||
} |
|
||||||
] |
|
||||||
}, |
|
||||||
"functionSelector": "c0406226", |
|
||||||
"implemented": true, |
|
||||||
"kind": "function", |
|
||||||
"modifiers": [], |
|
||||||
"name": "run", |
|
||||||
"nameLocation": "177:3:6", |
|
||||||
"parameters": { |
|
||||||
"id": 21572, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "180:2:6" |
|
||||||
}, |
|
||||||
"returnParameters": { |
|
||||||
"id": 21573, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "190:0:6" |
|
||||||
}, |
|
||||||
"scope": 21581, |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"virtual": false, |
|
||||||
"visibility": "public" |
|
||||||
} |
|
||||||
], |
|
||||||
"abstract": false, |
|
||||||
"baseContracts": [ |
|
||||||
{ |
|
||||||
"baseName": { |
|
||||||
"id": 21566, |
|
||||||
"name": "Script", |
|
||||||
"nameLocations": [ |
|
||||||
"123:6:6" |
|
||||||
], |
|
||||||
"nodeType": "IdentifierPath", |
|
||||||
"referencedDeclaration": 2022, |
|
||||||
"src": "123:6:6" |
|
||||||
}, |
|
||||||
"id": 21567, |
|
||||||
"nodeType": "InheritanceSpecifier", |
|
||||||
"src": "123:6:6" |
|
||||||
} |
|
||||||
], |
|
||||||
"canonicalName": "CounterScript", |
|
||||||
"contractDependencies": [], |
|
||||||
"contractKind": "contract", |
|
||||||
"fullyImplemented": true, |
|
||||||
"linearizedBaseContracts": [ |
|
||||||
21581, |
|
||||||
2022 |
|
||||||
], |
|
||||||
"name": "CounterScript", |
|
||||||
"nameLocation": "106:13:6", |
|
||||||
"scope": 21582, |
|
||||||
"usedErrors": [] |
|
||||||
} |
|
||||||
], |
|
||||||
"license": "UNLICENSED" |
|
||||||
}, |
|
||||||
"id": 6 |
|
||||||
} |
|
@ -1,377 +0,0 @@ |
|||||||
{ |
|
||||||
"abi": [ |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "increment", |
|
||||||
"outputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"name": "number", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "uint256", |
|
||||||
"name": "", |
|
||||||
"type": "uint256" |
|
||||||
} |
|
||||||
], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [ |
|
||||||
{ |
|
||||||
"internalType": "uint256", |
|
||||||
"name": "newNumber", |
|
||||||
"type": "uint256" |
|
||||||
} |
|
||||||
], |
|
||||||
"name": "setNumber", |
|
||||||
"outputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function" |
|
||||||
} |
|
||||||
], |
|
||||||
"bytecode": { |
|
||||||
"object": "0x608060405234801561001057600080fd5b5060f78061001f6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c80633fb5c1cb1460415780638381f58a146053578063d09de08a14606d575b600080fd5b6051604c3660046083565b600055565b005b605b60005481565b60405190815260200160405180910390f35b6051600080549080607c83609b565b9190505550565b600060208284031215609457600080fd5b5035919050565b60006001820160ba57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220f4a9b22e7a2d64c24355b4e7a6f8c62115ca728f26fc2a1e98e364ee91f794fa64736f6c63430008100033", |
|
||||||
"sourceMap": "65:192:7:-:0;;;;;;;;;;;;;;;;;;;", |
|
||||||
"linkReferences": {} |
|
||||||
}, |
|
||||||
"deployedBytecode": { |
|
||||||
"object": "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c80633fb5c1cb1460415780638381f58a146053578063d09de08a14606d575b600080fd5b6051604c3660046083565b600055565b005b605b60005481565b60405190815260200160405180910390f35b6051600080549080607c83609b565b9190505550565b600060208284031215609457600080fd5b5035919050565b60006001820160ba57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220f4a9b22e7a2d64c24355b4e7a6f8c62115ca728f26fc2a1e98e364ee91f794fa64736f6c63430008100033", |
|
||||||
"sourceMap": "65:192:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116:80;;;;;;:::i;:::-;171:6;:18;116:80;;;88:21;;;;;;;;;345:25:9;;;333:2;318:18;88:21:7;;;;;;;202:53;;240:6;:8;;;:6;:8;;;:::i;:::-;;;;;;202:53::o;14:180:9:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:9;;14:180;-1:-1:-1;14:180:9:o;381:232::-;420:3;441:17;;;438:140;;500:10;495:3;491:20;488:1;481:31;535:4;532:1;525:15;563:4;560:1;553:15;438:140;-1:-1:-1;605:1:9;594:13;;381:232::o", |
|
||||||
"linkReferences": {} |
|
||||||
}, |
|
||||||
"methodIdentifiers": { |
|
||||||
"increment()": "d09de08a", |
|
||||||
"number()": "8381f58a", |
|
||||||
"setNumber(uint256)": "3fb5c1cb" |
|
||||||
}, |
|
||||||
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.16+commit.07a7930e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"increment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"number\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newNumber\",\"type\":\"uint256\"}],\"name\":\"setNumber\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/Counter.sol\":\"Counter\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\"]},\"sources\":{\"src/Counter.sol\":{\"keccak256\":\"0x09277f949d59a9521708c870dc39c2c434ad8f86a5472efda6a732ef728c0053\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://94cd5258357da018bf911aeda60ed9f5b130dce27445669ee200313cd3389200\",\"dweb:/ipfs/QmNbEfWAqXCtfQpk6u7TpGa8sTHXFLpUz7uebz2FVbchSC\"]}},\"version\":1}", |
|
||||||
"metadata": { |
|
||||||
"compiler": { |
|
||||||
"version": "0.8.16+commit.07a7930e" |
|
||||||
}, |
|
||||||
"language": "Solidity", |
|
||||||
"output": { |
|
||||||
"abi": [ |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function", |
|
||||||
"name": "increment" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [], |
|
||||||
"stateMutability": "view", |
|
||||||
"type": "function", |
|
||||||
"name": "number", |
|
||||||
"outputs": [ |
|
||||||
{ |
|
||||||
"internalType": "uint256", |
|
||||||
"name": "", |
|
||||||
"type": "uint256" |
|
||||||
} |
|
||||||
] |
|
||||||
}, |
|
||||||
{ |
|
||||||
"inputs": [ |
|
||||||
{ |
|
||||||
"internalType": "uint256", |
|
||||||
"name": "newNumber", |
|
||||||
"type": "uint256" |
|
||||||
} |
|
||||||
], |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"type": "function", |
|
||||||
"name": "setNumber" |
|
||||||
} |
|
||||||
], |
|
||||||
"devdoc": { |
|
||||||
"kind": "dev", |
|
||||||
"methods": {}, |
|
||||||
"version": 1 |
|
||||||
}, |
|
||||||
"userdoc": { |
|
||||||
"kind": "user", |
|
||||||
"methods": {}, |
|
||||||
"version": 1 |
|
||||||
} |
|
||||||
}, |
|
||||||
"settings": { |
|
||||||
"remappings": [ |
|
||||||
":ds-test/=lib/forge-std/lib/ds-test/src/", |
|
||||||
":forge-std/=lib/forge-std/src/" |
|
||||||
], |
|
||||||
"optimizer": { |
|
||||||
"enabled": true, |
|
||||||
"runs": 200 |
|
||||||
}, |
|
||||||
"metadata": { |
|
||||||
"bytecodeHash": "ipfs" |
|
||||||
}, |
|
||||||
"compilationTarget": { |
|
||||||
"src/Counter.sol": "Counter" |
|
||||||
}, |
|
||||||
"libraries": {} |
|
||||||
}, |
|
||||||
"sources": { |
|
||||||
"src/Counter.sol": { |
|
||||||
"keccak256": "0x09277f949d59a9521708c870dc39c2c434ad8f86a5472efda6a732ef728c0053", |
|
||||||
"urls": [ |
|
||||||
"bzz-raw://94cd5258357da018bf911aeda60ed9f5b130dce27445669ee200313cd3389200", |
|
||||||
"dweb:/ipfs/QmNbEfWAqXCtfQpk6u7TpGa8sTHXFLpUz7uebz2FVbchSC" |
|
||||||
], |
|
||||||
"license": "UNLICENSED" |
|
||||||
} |
|
||||||
}, |
|
||||||
"version": 1 |
|
||||||
}, |
|
||||||
"ast": { |
|
||||||
"absolutePath": "src/Counter.sol", |
|
||||||
"id": 21604, |
|
||||||
"exportedSymbols": { |
|
||||||
"Counter": [ |
|
||||||
21603 |
|
||||||
] |
|
||||||
}, |
|
||||||
"nodeType": "SourceUnit", |
|
||||||
"src": "39:219:7", |
|
||||||
"nodes": [ |
|
||||||
{ |
|
||||||
"id": 21583, |
|
||||||
"nodeType": "PragmaDirective", |
|
||||||
"src": "39:24:7", |
|
||||||
"literals": [ |
|
||||||
"solidity", |
|
||||||
"^", |
|
||||||
"0.8", |
|
||||||
".13" |
|
||||||
] |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21603, |
|
||||||
"nodeType": "ContractDefinition", |
|
||||||
"src": "65:192:7", |
|
||||||
"nodes": [ |
|
||||||
{ |
|
||||||
"id": 21585, |
|
||||||
"nodeType": "VariableDeclaration", |
|
||||||
"src": "88:21:7", |
|
||||||
"constant": false, |
|
||||||
"functionSelector": "8381f58a", |
|
||||||
"mutability": "mutable", |
|
||||||
"name": "number", |
|
||||||
"nameLocation": "103:6:7", |
|
||||||
"scope": 21603, |
|
||||||
"stateVariable": true, |
|
||||||
"storageLocation": "default", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
}, |
|
||||||
"typeName": { |
|
||||||
"id": 21584, |
|
||||||
"name": "uint256", |
|
||||||
"nodeType": "ElementaryTypeName", |
|
||||||
"src": "88:7:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"visibility": "public" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21595, |
|
||||||
"nodeType": "FunctionDefinition", |
|
||||||
"src": "116:80:7", |
|
||||||
"body": { |
|
||||||
"id": 21594, |
|
||||||
"nodeType": "Block", |
|
||||||
"src": "161:35:7", |
|
||||||
"statements": [ |
|
||||||
{ |
|
||||||
"expression": { |
|
||||||
"id": 21592, |
|
||||||
"isConstant": false, |
|
||||||
"isLValue": false, |
|
||||||
"isPure": false, |
|
||||||
"lValueRequested": false, |
|
||||||
"leftHandSide": { |
|
||||||
"id": 21590, |
|
||||||
"name": "number", |
|
||||||
"nodeType": "Identifier", |
|
||||||
"overloadedDeclarations": [], |
|
||||||
"referencedDeclaration": 21585, |
|
||||||
"src": "171:6:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"nodeType": "Assignment", |
|
||||||
"operator": "=", |
|
||||||
"rightHandSide": { |
|
||||||
"id": 21591, |
|
||||||
"name": "newNumber", |
|
||||||
"nodeType": "Identifier", |
|
||||||
"overloadedDeclarations": [], |
|
||||||
"referencedDeclaration": 21587, |
|
||||||
"src": "180:9:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"src": "171:18:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"id": 21593, |
|
||||||
"nodeType": "ExpressionStatement", |
|
||||||
"src": "171:18:7" |
|
||||||
} |
|
||||||
] |
|
||||||
}, |
|
||||||
"functionSelector": "3fb5c1cb", |
|
||||||
"implemented": true, |
|
||||||
"kind": "function", |
|
||||||
"modifiers": [], |
|
||||||
"name": "setNumber", |
|
||||||
"nameLocation": "125:9:7", |
|
||||||
"parameters": { |
|
||||||
"id": 21588, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [ |
|
||||||
{ |
|
||||||
"constant": false, |
|
||||||
"id": 21587, |
|
||||||
"mutability": "mutable", |
|
||||||
"name": "newNumber", |
|
||||||
"nameLocation": "143:9:7", |
|
||||||
"nodeType": "VariableDeclaration", |
|
||||||
"scope": 21595, |
|
||||||
"src": "135:17:7", |
|
||||||
"stateVariable": false, |
|
||||||
"storageLocation": "default", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
}, |
|
||||||
"typeName": { |
|
||||||
"id": 21586, |
|
||||||
"name": "uint256", |
|
||||||
"nodeType": "ElementaryTypeName", |
|
||||||
"src": "135:7:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"visibility": "internal" |
|
||||||
} |
|
||||||
], |
|
||||||
"src": "134:19:7" |
|
||||||
}, |
|
||||||
"returnParameters": { |
|
||||||
"id": 21589, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "161:0:7" |
|
||||||
}, |
|
||||||
"scope": 21603, |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"virtual": false, |
|
||||||
"visibility": "public" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"id": 21602, |
|
||||||
"nodeType": "FunctionDefinition", |
|
||||||
"src": "202:53:7", |
|
||||||
"body": { |
|
||||||
"id": 21601, |
|
||||||
"nodeType": "Block", |
|
||||||
"src": "230:25:7", |
|
||||||
"statements": [ |
|
||||||
{ |
|
||||||
"expression": { |
|
||||||
"id": 21599, |
|
||||||
"isConstant": false, |
|
||||||
"isLValue": false, |
|
||||||
"isPure": false, |
|
||||||
"lValueRequested": false, |
|
||||||
"nodeType": "UnaryOperation", |
|
||||||
"operator": "++", |
|
||||||
"prefix": false, |
|
||||||
"src": "240:8:7", |
|
||||||
"subExpression": { |
|
||||||
"id": 21598, |
|
||||||
"name": "number", |
|
||||||
"nodeType": "Identifier", |
|
||||||
"overloadedDeclarations": [], |
|
||||||
"referencedDeclaration": 21585, |
|
||||||
"src": "240:6:7", |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"typeDescriptions": { |
|
||||||
"typeIdentifier": "t_uint256", |
|
||||||
"typeString": "uint256" |
|
||||||
} |
|
||||||
}, |
|
||||||
"id": 21600, |
|
||||||
"nodeType": "ExpressionStatement", |
|
||||||
"src": "240:8:7" |
|
||||||
} |
|
||||||
] |
|
||||||
}, |
|
||||||
"functionSelector": "d09de08a", |
|
||||||
"implemented": true, |
|
||||||
"kind": "function", |
|
||||||
"modifiers": [], |
|
||||||
"name": "increment", |
|
||||||
"nameLocation": "211:9:7", |
|
||||||
"parameters": { |
|
||||||
"id": 21596, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "220:2:7" |
|
||||||
}, |
|
||||||
"returnParameters": { |
|
||||||
"id": 21597, |
|
||||||
"nodeType": "ParameterList", |
|
||||||
"parameters": [], |
|
||||||
"src": "230:0:7" |
|
||||||
}, |
|
||||||
"scope": 21603, |
|
||||||
"stateMutability": "nonpayable", |
|
||||||
"virtual": false, |
|
||||||
"visibility": "public" |
|
||||||
} |
|
||||||
], |
|
||||||
"abstract": false, |
|
||||||
"baseContracts": [], |
|
||||||
"canonicalName": "Counter", |
|
||||||
"contractDependencies": [], |
|
||||||
"contractKind": "contract", |
|
||||||
"fullyImplemented": true, |
|
||||||
"linearizedBaseContracts": [ |
|
||||||
21603 |
|
||||||
], |
|
||||||
"name": "Counter", |
|
||||||
"nameLocation": "74:7:7", |
|
||||||
"scope": 21604, |
|
||||||
"usedErrors": [] |
|
||||||
} |
|
||||||
], |
|
||||||
"license": "UNLICENSED" |
|
||||||
}, |
|
||||||
"id": 7 |
|
||||||
} |
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@ |
|||||||
// SPDX-License-Identifier: UNLICENSED |
|
||||||
pragma solidity ^0.8.13; |
|
||||||
|
|
||||||
contract Counter { |
|
||||||
uint256 public number; |
|
||||||
|
|
||||||
function setNumber(uint256 newNumber) public { |
|
||||||
number = newNumber; |
|
||||||
} |
|
||||||
|
|
||||||
function increment() public { |
|
||||||
number++; |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,105 @@ |
|||||||
|
import React from 'react' |
||||||
|
import { EventEmitter } from 'events' |
||||||
|
import { Plugin } from '@remixproject/engine' |
||||||
|
import packageJson from '../../../../../package.json' |
||||||
|
import { PluginViewWrapper } from '@remix-ui/helper' |
||||||
|
import { PluginProfile, StatusBarInterface } from '../../types' |
||||||
|
import { RemixUIStatusBar } from '@remix-ui/statusbar' |
||||||
|
import { FilePanelType } from '@remix-ui/workspace' |
||||||
|
import { VerticalIcons } from './vertical-icons' |
||||||
|
|
||||||
|
const statusBarProfile: PluginProfile = { |
||||||
|
name: 'statusBar', |
||||||
|
displayName: 'Status Bar', |
||||||
|
description: 'Remix IDE status bar panel', |
||||||
|
methods: ['isAIActive'], |
||||||
|
version: packageJson.version, |
||||||
|
} |
||||||
|
|
||||||
|
export class StatusBar extends Plugin implements StatusBarInterface { |
||||||
|
htmlElement: HTMLDivElement |
||||||
|
events: EventEmitter |
||||||
|
filePanelPlugin: FilePanelType |
||||||
|
verticalIcons: VerticalIcons |
||||||
|
dispatch: React.Dispatch<any> = () => {} |
||||||
|
currentWorkspaceName: string = '' |
||||||
|
isGitRepo: boolean = false |
||||||
|
isAiActive: boolean = false |
||||||
|
constructor(filePanel: FilePanelType, veritcalIcons: VerticalIcons) { |
||||||
|
super(statusBarProfile) |
||||||
|
this.filePanelPlugin = filePanel |
||||||
|
this.verticalIcons = veritcalIcons |
||||||
|
this.events = new EventEmitter() |
||||||
|
this.htmlElement = document.createElement('div') |
||||||
|
this.htmlElement.setAttribute('id', 'status-bar') |
||||||
|
this.filePanelPlugin |
||||||
|
} |
||||||
|
|
||||||
|
async isWorkspaceAGitRepo() { |
||||||
|
const isGit = await this.call('fileManager', 'isGitRepo') |
||||||
|
if (!isGit) return |
||||||
|
this.isGitRepo = true |
||||||
|
this.renderComponent() |
||||||
|
} |
||||||
|
|
||||||
|
async setCurrentGitWorkspaceName() { |
||||||
|
if (!this.isGitRepo) return |
||||||
|
const workspaceName = localStorage.getItem('currentWorkspace') |
||||||
|
workspaceName && workspaceName.length > 0 ? this.currentWorkspaceName = workspaceName : this.currentWorkspaceName = 'unknown' |
||||||
|
this.renderComponent() |
||||||
|
} |
||||||
|
|
||||||
|
async isAIActive() { |
||||||
|
let aiActive |
||||||
|
this.on('settings', 'copilotChoiceUpdated', async (isChecked) => { |
||||||
|
aiActive = isChecked |
||||||
|
this.isAiActive = isChecked |
||||||
|
}) |
||||||
|
this.renderComponent() |
||||||
|
return aiActive |
||||||
|
} |
||||||
|
|
||||||
|
onActivation(): void { |
||||||
|
this.on('filePanel', 'workspaceInitializationCompleted', async () => { |
||||||
|
const isGit = await this.call('fileManager', 'isGitRepo') |
||||||
|
if (!isGit) return |
||||||
|
const workspaceName = localStorage.getItem('currentWorkspace') |
||||||
|
workspaceName && workspaceName.length > 0 ? this.currentWorkspaceName = workspaceName : this.currentWorkspaceName = '' |
||||||
|
}) |
||||||
|
this.on('filePanel', 'switchToWorkspace', async (workspace: string) => { |
||||||
|
await this.isWorkspaceAGitRepo() |
||||||
|
if (!this.isGitRepo) { |
||||||
|
this.currentWorkspaceName = 'Not a git repo' |
||||||
|
return |
||||||
|
} |
||||||
|
const workspaceName = localStorage.getItem('currentWorkspace') |
||||||
|
workspaceName && workspaceName.length > 0 ? this.currentWorkspaceName = workspaceName : this.currentWorkspaceName = 'error' |
||||||
|
}) |
||||||
|
this.on('settings', 'copilotChoiceChanged', (isAiActive) => { |
||||||
|
this.isAiActive = isAiActive |
||||||
|
}) |
||||||
|
this.renderComponent() |
||||||
|
} |
||||||
|
|
||||||
|
setDispatch(dispatch: React.Dispatch<any>) { |
||||||
|
this.dispatch = dispatch |
||||||
|
} |
||||||
|
|
||||||
|
renderComponent() { |
||||||
|
this.dispatch({ |
||||||
|
plugins: this, |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
updateComponent(state: any) { |
||||||
|
return <RemixUIStatusBar statusBarPlugin={state.plugins} /> |
||||||
|
} |
||||||
|
|
||||||
|
render() { |
||||||
|
return ( |
||||||
|
<div data-id="status-bar-container"> |
||||||
|
<PluginViewWrapper plugin={this} /> |
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,47 @@ |
|||||||
|
{ |
||||||
|
"logo": "/assets/img/YouTubeLogo.webp", |
||||||
|
"title": "Remix Guide", |
||||||
|
"description": "Streamlined access to categorized video tutorials for mastering Remix IDE. From fundamentals to advanced techniques, level up your development skills with ease.", |
||||||
|
"sections": [ |
||||||
|
{ |
||||||
|
"title": "Basics", |
||||||
|
"hScrollable": "true", |
||||||
|
"cells": [ |
||||||
|
{ |
||||||
|
"title": "first item", |
||||||
|
"tagList": [ |
||||||
|
"L2", |
||||||
|
"AI" |
||||||
|
], |
||||||
|
"authorURL": "EatTheBlocks", |
||||||
|
"expandViewElement": { |
||||||
|
"videoID": "vH8T3In6ZkE", |
||||||
|
"logo": "https://yt3.ggpht.com/9NFZbC9mkA152sSWJJgNBls6GlBdknsF-9gi6ZVk_xsHjmc82j3q1Pd5a--GCnOKUrP-YtNbHls=s48-c-k-c0x00ffffff-no-rj" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"title": "second item", |
||||||
|
"tagList": [ |
||||||
|
"solidity", |
||||||
|
"AI" |
||||||
|
], |
||||||
|
"expandViewElement": { |
||||||
|
"videoID": "vH8T3In6ZkE", |
||||||
|
"logo": "https://yt3.ggpht.com/9NFZbC9mkA152sSWJJgNBls6GlBdknsF-9gi6ZVk_xsHjmc82j3q1Pd5a--GCnOKUrP-YtNbHls=s48-c-k-c0x00ffffff-no-rj" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"title": "third item", |
||||||
|
"tagList": [ |
||||||
|
"vyper", |
||||||
|
"AI" |
||||||
|
], |
||||||
|
"expandViewElement": { |
||||||
|
"videoID": "vH8T3In6ZkE", |
||||||
|
"logo": "https://yt3.ggpht.com/9NFZbC9mkA152sSWJJgNBls6GlBdknsF-9gi6ZVk_xsHjmc82j3q1Pd5a--GCnOKUrP-YtNbHls=s48-c-k-c0x00ffffff-no-rj" |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
] |
||||||
|
} |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 18 KiB |
@ -0,0 +1,19 @@ |
|||||||
|
export interface PluginProfile { |
||||||
|
name: string |
||||||
|
displayName: string |
||||||
|
description: string |
||||||
|
keywords?: string[] |
||||||
|
icon?: string |
||||||
|
url?: string |
||||||
|
methods?: string[] |
||||||
|
events?: string[] |
||||||
|
version?: string |
||||||
|
} |
||||||
|
|
||||||
|
export interface StatusBarInterface { |
||||||
|
htmlElement: HTMLDivElement |
||||||
|
events: EventEmitter |
||||||
|
filePanelPlugin: FilePanelType |
||||||
|
dispatch: React.Dispatch<any> |
||||||
|
setDispatch(dispatch: React.Dispatch<any>): void |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
/* eslint-disable no-control-regex */ |
||||||
|
import { EditorUIProps, monacoTypes } from '@remix-ui/editor'; |
||||||
|
|
||||||
|
export class RemixSolidityDocumentationProvider implements monacoTypes.languages.InlineCompletionsProvider{ |
||||||
|
props:EditorUIProps |
||||||
|
monaco:any |
||||||
|
completion:string |
||||||
|
|
||||||
|
constructor(completion: any){ |
||||||
|
this.completion = completion |
||||||
|
} |
||||||
|
|
||||||
|
async provideInlineCompletions(model: monacoTypes.editor.ITextModel, position: monacoTypes.Position, context: monacoTypes.languages.InlineCompletionContext, token: monacoTypes.CancellationToken): Promise<monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>> { |
||||||
|
const item: monacoTypes.languages.InlineCompletion = { |
||||||
|
insertText: this.completion |
||||||
|
}; |
||||||
|
return { |
||||||
|
items: [item], |
||||||
|
enableForwardStability: true |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
handleItemDidShow?(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>, item: monacoTypes.languages.InlineCompletion, updatedInsertText: string): void { |
||||||
|
|
||||||
|
} |
||||||
|
handlePartialAccept?(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>, item: monacoTypes.languages.InlineCompletion, acceptedCharacters: number): void { |
||||||
|
|
||||||
|
} |
||||||
|
freeInlineCompletions(completions: monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>): void { |
||||||
|
|
||||||
|
} |
||||||
|
groupId?: string; |
||||||
|
yieldsToGroupIds?: string[]; |
||||||
|
toString?(): string { |
||||||
|
throw new Error('Method not implemented.'); |
||||||
|
} |
||||||
|
} |
@ -1,4 +1,4 @@ |
|||||||
export { default as RemixPluginPanel } from './lib/plugins/remix-ui-panel' |
export { default as RemixPluginPanel } from './lib/plugins/remix-ui-panel' |
||||||
export { default as RemixUIMainPanel } from './lib/main/main-panel' |
export { default as RemixUIMainPanel } from './lib/main/main-panel' |
||||||
export { PluginRecord } from './lib/types' |
export { PluginRecord } from './lib/types' |
||||||
export { default as RemixUIPanelHeader } from './lib/plugins/panel-header' |
export { default as RemixUIPanelHeader } from './lib/plugins/panel-header' |
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue