Skip to content

Instantly share code, notes, and snippets.

{
"_format": "hh-sol-artifact-1",
"contractName": "WithConst",
"sourceName": "contracts/WithConst.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "initialValue",
{
"_format": "hh-sol-artifact-1",
"contractName": "WithImmAddr",
"sourceName": "contracts/WithImmAddr.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "initialValue",
{
"id": "691396ad53d045b6e57dad2961f33377",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithImmAddr.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract WithImmAddr {\n uint256 public immutable value;\n address public immutable deployer;\n\n constructor(uint256 initialValue, address initialDeployer) {\n value = initialValue;\n deployer = initialDeployer;\n }\n\n function greet() public returns(uint256) {\n return value;\n }\n}\n"
{
"id": "6e528676131d75bd50ad7a6ea7219590",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithLib.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nlibrary Greeter {\n function greet() public pure returns(string memory) {\n return \"Salutations!\";\n }\n}\n\ncontract WithLib {\n uint256 public value;\n constructor(uint256 initialValue) {\n value = initialValue;\n }\n\n function greet() public pure returns(string memory) {\n return Greeter.greet();\n }\n}\n"
{
"id": "c0a5b134cb541060e191d89568ee7726",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithImm.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract WithImm {\n uint256 public immutable value;\n constructor(uint256 initialValue) {\n value = initialValue;\n }\n\n function greet() public returns(uint256) {\n return value;\n }\n}\n"
{
"id": "f46b40d4bd8359107c27982f890faa9b",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithRevert.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract WithRevert {\n uint256 public value;\n constructor(uint256 initialValue) {\n require(initialValue > 0, \"initial value must be positive\");\n value = initialValue;\n }\n\n function greet() public returns(uint256) {\n return value;\n }\n}\n"
{
"id": "e512b6d18e1b98f6f130bcc3710b3a41",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithVarArgs.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract WithVarArgs {\n string __firstName;\n string __lastName;\n constructor(string memory _firstName, string memory _lastName) {\n __firstName = _firstName;\n __lastName = _lastName;\n }\n\n function firstName() public returns(string memory) {\n return __firstName;\n }\n\n function lastName() public returns(string memory) {\n return __lastName;\n }\n}\n"
{
"id": "92cee3a25070d1793d4697a3252d7dc4",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/WithConst.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract WithConst {\n uint256 public value;\n constructor(uint256 initialValue) {\n value = initialValue;\n }\n\n function greet() public returns(uint256) {\n return value;\n }\n}\n"
This file has been truncated, but you can view the full file.
{
"id": "d152393456c388db1a14d8a833bc35a9",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/VaultUUPS.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./Proxiable.sol\";\nimport \"./Vault.sol\";\n\ncontract VaultProxiable is Vault, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}\n\ncontract VaultProxiableV2 is VaultV2, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}\n\ncontract VaultProxiableV3 is VaultV3, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}"
@mverzilli
mverzilli / compile-artifact.json
Created August 19, 2022 09:16
compile-artifact
This file has been truncated, but you can view the full file.
{
"id": "1c0394f32c0868f623d0d7a071078ffb",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/Proxiable.sol": {
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary StorageSlot {\n struct AddressSlot { address value; }\n struct BooleanSlot { bool value; }\n struct Bytes32Slot { bytes32 value; }\n struct Uint256Slot { uint256 value; }\n\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } }\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } }\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } }\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } }\n\n // TODO: ad