Skip to content

Latest commit

 

History

History
218 lines (179 loc) · 5.3 KB

Storage.md

File metadata and controls

218 lines (179 loc) · 5.3 KB

Storage.sol

View Source: contracts/TestContracts/UpgradableProxyTester.sol

↗ Extends: Storage ↘ Derived Contracts: ProxiableContract, ProxiableContract2, Storage, Storage2

Storage

Contract Members

Constants & Variables

uint256 internal someVar;
uint256 internal anotherVar;

Functions


getSomeVar

function getSomeVar() public view
returns(uint256)
Source Code
function getSomeVar() public view returns (uint) {
        return someVar;
    }

setSomeVar

function setSomeVar(uint256 value) public nonpayable

Arguments

Name Type Description
value uint256
Source Code
function setSomeVar(uint value) public {
        someVar = value;
    }

getAnotherVar

function getAnotherVar() public view
returns(uint256)
Source Code
function getAnotherVar() public view returns (uint) {
        return anotherVar;
    }

setAnotherVar

function setAnotherVar(uint256 value) public nonpayable

Arguments

Name Type Description
value uint256
Source Code
function setAnotherVar(uint value) public {
        anotherVar = value;
    }

mulVars

function mulVars() public view
returns(uint256)
Source Code
function mulVars() public view returns (uint) {
        return someVar * anotherVar;
    }

Contracts