{
  "contractName": "Gas",
  "abi": [],
  "metadata": "{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/utils/Gas.sol\":\"Gas\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"project:/contracts/utils/Gas.sol\":{\"keccak256\":\"0xd8b354e1169d7cd25f77ed7660cd79202a3ddda3e6e1c4adfc8309efeee53c3d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9b2968d2772d0cb58071f441f53bc26d571745781da43c8dabadb7619f0bcb4b\",\"dweb:/ipfs/Qmb7YHhbVk3XVsVnirvBPTNYCvT3AFyhDs8wRSxomDNeGi\"]}},\"version\":1}",
  "bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203f362863b1f0aa48e2185c65b64042b1c541ecba3ecbe2630905bcbaf828da4864736f6c634300060a0033",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203f362863b1f0aa48e2185c65b64042b1c541ecba3ecbe2630905bcbaf828da4864736f6c634300060a0033",
  "immutableReferences": {},
  "sourceMap": "58:349:32:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "58:349:32:-:0;;;;;;;;",
  "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.6.0;\n\n\nlibrary Gas\n{\n  function gasPrice(\n  ) internal view\n    returns (uint _gasPrice)\n  {\n    // solium-disable-next-line\n    assembly\n    {\n      _gasPrice := gasprice()\n    }\n  }\n\n  function gasRemaining(\n  ) internal view\n    returns (uint _gasRemaining)\n  {\n    // solium-disable-next-line\n    assembly\n    {\n      _gasRemaining := gas()\n    }\n  }\n}",
  "sourcePath": "/home/circleci/repo/contracts/utils/Gas.sol",
  "ast": {
    "absolutePath": "project:/contracts/utils/Gas.sol",
    "exportedSymbols": {
      "Gas": [
        4215
      ]
    },
    "id": 4216,
    "license": "MIT",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4200,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "32:23:32"
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 4215,
        "linearizedBaseContracts": [
          4215
        ],
        "name": "Gas",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 4206,
              "nodeType": "Block",
              "src": "142:92:32",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "193:37:32",
                    "statements": [
                      {
                        "nodeType": "YulAssignment",
                        "src": "201:23:32",
                        "value": {
                          "arguments": [],
                          "functionName": {
                            "name": "gasprice",
                            "nodeType": "YulIdentifier",
                            "src": "214:8:32"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "214:10:32"
                        },
                        "variableNames": [
                          {
                            "name": "_gasPrice",
                            "nodeType": "YulIdentifier",
                            "src": "201:9:32"
                          }
                        ]
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 4203,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "201:9:32",
                      "valueSize": 1
                    }
                  ],
                  "id": 4205,
                  "nodeType": "InlineAssembly",
                  "src": "180:50:32"
                }
              ]
            },
            "documentation": null,
            "id": 4207,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "gasPrice",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 4201,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "91:5:32"
            },
            "returnParameters": {
              "id": 4204,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4203,
                  "mutability": "mutable",
                  "name": "_gasPrice",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 4207,
                  "src": "124:14:32",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4202,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "124:4:32",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "123:16:32"
            },
            "scope": 4215,
            "src": "74:160:32",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 4213,
              "nodeType": "Block",
              "src": "314:91:32",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "365:36:32",
                    "statements": [
                      {
                        "nodeType": "YulAssignment",
                        "src": "373:22:32",
                        "value": {
                          "arguments": [],
                          "functionName": {
                            "name": "gas",
                            "nodeType": "YulIdentifier",
                            "src": "390:3:32"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "390:5:32"
                        },
                        "variableNames": [
                          {
                            "name": "_gasRemaining",
                            "nodeType": "YulIdentifier",
                            "src": "373:13:32"
                          }
                        ]
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 4210,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "373:13:32",
                      "valueSize": 1
                    }
                  ],
                  "id": 4212,
                  "nodeType": "InlineAssembly",
                  "src": "352:49:32"
                }
              ]
            },
            "documentation": null,
            "id": 4214,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "gasRemaining",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 4208,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "259:5:32"
            },
            "returnParameters": {
              "id": 4211,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4210,
                  "mutability": "mutable",
                  "name": "_gasRemaining",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 4214,
                  "src": "292:18:32",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4209,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "292:4:32",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "291:20:32"
            },
            "scope": 4215,
            "src": "238:167:32",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 4216,
        "src": "58:349:32"
      }
    ],
    "src": "32:375:32"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "project:/contracts/utils/Gas.sol",
      "exportedSymbols": {
        "Gas": [
          4215
        ]
      },
      "license": "MIT"
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "^",
            "0.6",
            ".0"
          ]
        },
        "id": 4200,
        "name": "PragmaDirective",
        "src": "32:23:32"
      },
      {
        "attributes": {
          "abstract": false,
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "library",
          "documentation": null,
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            4215
          ],
          "name": "Gas",
          "scope": 4216
        },
        "children": [
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "gasPrice",
              "overrides": null,
              "scope": 4215,
              "stateMutability": "view",
              "virtual": false,
              "visibility": "internal"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 4201,
                "name": "ParameterList",
                "src": "91:5:32"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "_gasPrice",
                      "overrides": null,
                      "scope": 4207,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint",
                          "type": "uint256"
                        },
                        "id": 4202,
                        "name": "ElementaryTypeName",
                        "src": "124:4:32"
                      }
                    ],
                    "id": 4203,
                    "name": "VariableDeclaration",
                    "src": "124:14:32"
                  }
                ],
                "id": 4204,
                "name": "ParameterList",
                "src": "123:16:32"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "evmVersion": "istanbul",
                      "externalReferences": [
                        {
                          "declaration": 4203,
                          "isOffset": false,
                          "isSlot": false,
                          "src": "201:9:32",
                          "valueSize": 1
                        }
                      ],
                      "operations": "{ _gasPrice := gasprice() }"
                    },
                    "children": [],
                    "id": 4205,
                    "name": "InlineAssembly",
                    "src": "180:50:32"
                  }
                ],
                "id": 4206,
                "name": "Block",
                "src": "142:92:32"
              }
            ],
            "id": 4207,
            "name": "FunctionDefinition",
            "src": "74:160:32"
          },
          {
            "attributes": {
              "documentation": null,
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "gasRemaining",
              "overrides": null,
              "scope": 4215,
              "stateMutability": "view",
              "virtual": false,
              "visibility": "internal"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 4208,
                "name": "ParameterList",
                "src": "259:5:32"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "_gasRemaining",
                      "overrides": null,
                      "scope": 4214,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint",
                          "type": "uint256"
                        },
                        "id": 4209,
                        "name": "ElementaryTypeName",
                        "src": "292:4:32"
                      }
                    ],
                    "id": 4210,
                    "name": "VariableDeclaration",
                    "src": "292:18:32"
                  }
                ],
                "id": 4211,
                "name": "ParameterList",
                "src": "291:20:32"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "evmVersion": "istanbul",
                      "externalReferences": [
                        {
                          "declaration": 4210,
                          "isOffset": false,
                          "isSlot": false,
                          "src": "373:13:32",
                          "valueSize": 1
                        }
                      ],
                      "operations": "{ _gasRemaining := gas() }"
                    },
                    "children": [],
                    "id": 4212,
                    "name": "InlineAssembly",
                    "src": "352:49:32"
                  }
                ],
                "id": 4213,
                "name": "Block",
                "src": "314:91:32"
              }
            ],
            "id": 4214,
            "name": "FunctionDefinition",
            "src": "238:167:32"
          }
        ],
        "id": 4215,
        "name": "ContractDefinition",
        "src": "58:349:32"
      }
    ],
    "id": 4216,
    "name": "SourceUnit",
    "src": "32:375:32"
  },
  "compiler": {
    "name": "solc",
    "version": "0.6.10+commit.00c0fcaf.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.1",
  "updatedAt": "2021-07-08T17:04:13.925Z",
  "devdoc": {
    "methods": {}
  },
  "userdoc": {
    "methods": {}
  }
}