Skip to content

Instantly share code, notes, and snippets.

View KiselevMaxim's full-sized avatar
🏠
Working from home

Maksim Kiselev KiselevMaxim

🏠
Working from home
  • Russia
View GitHub Profile
@KiselevMaxim
KiselevMaxim / .deps...npm...@chainlink...contracts...src...v0.8...ConfirmedOwner.sol
Created March 13, 2023 20:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
@KiselevMaxim
KiselevMaxim / contracts...artifacts...TransparentUpgradeableProxy_metadata.json
Created June 21, 2022 15:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=true&runs=1000&gist=
{
"compiler": {
"version": "0.8.4+commit.c7e474f2"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
@KiselevMaxim
KiselevMaxim / contracts...artifacts...build-info...8571978b7443a60dde55e91eac47dd0d.json
Created June 21, 2022 15:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=true&runs=1000&gist=
This file has been truncated, but you can view the full file.
{
"id": "8571978b7443a60dde55e91eac47dd0d",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/TransparentUpgradeableProxy.full.sol": {
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```\n * contract ERC1967 {\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n * function _getImplementation() internal view ret
@KiselevMaxim
KiselevMaxim / contracts...artifacts...TransparentUpgradeableProxy_metadata.json
Created June 21, 2022 15:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.2+commit.661d1103.js&optimize=true&runs=1000&gist=
{
"compiler": {
"version": "0.8.2+commit.661d1103"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
@KiselevMaxim
KiselevMaxim / contracts...artifacts...build-info...5b96292cae262f85cc5f1d399861f9ae.json
Created June 21, 2022 15:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.2+commit.661d1103.js&optimize=true&runs=1000&gist=
This file has been truncated, but you can view the full file.
{
"id": "5b96292cae262f85cc5f1d399861f9ae",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.2",
"solcLongVersion": "0.8.2+commit.661d1103",
"input": {
"language": "Solidity",
"sources": {
"contracts/TransparentUpgradeableProxy.full.sol": {
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```\n * contract ERC1967 {\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n * function _getImplementation() internal view ret
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
/**
* @title IF ELSE approach or IF IF approach
* @dev return value with different approaches
* @dev compiled solidity 0.8.10 optimization 200
*/
contract IF_ELSE {