DummyContract.sol
Methods
changeNum(uint256)
Solidity
function changeNum(uint256 newNum) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| newNum | uint256 | undefined |
gasInTransaction(uint256)
Solidity
function gasInTransaction(uint256) external view returns (uint256)
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
gasVault()
Solidity
function gasVault() external view returns (contract IGasVault)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | contract IGasVault | undefined |
initialize(address,address,address,bytes)
Solidity
function initialize(address, address _steer, address, bytes) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
| _steer | address | undefined |
| _2 | address | undefined |
| _3 | bytes | undefined |
num()
Solidity
function num() external view returns (uint256)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
owner()
Solidity
function owner() external view returns (address)
Details
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
recordGas()
Solidity
function recordGas() external nonpayable
renounceOwnership()
Solidity
function renounceOwnership() external nonpayable
Details
Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
setNumTo50()
Solidity
function setNumTo50() external nonpayable
setNumToMultiple(uint256,uint256)
Solidity
function setNumToMultiple(uint256 firstNum, uint256 secondNum) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| firstNum | uint256 | undefined |
| secondNum | uint256 | undefined |
transferOwnership(address)
Solidity
function transferOwnership(address newOwner) external nonpayable
Details
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | undefined |
upgradeTo(address)
Solidity
function upgradeTo(address newImplementation) external nonpayable
Details
Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
upgradeToAndCall(address,bytes)
Solidity
function upgradeToAndCall(address newImplementation, bytes data) external payable
Details
Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | undefined |
| data | bytes | undefined |
Events
AdminChanged
Solidity
event AdminChanged(address previousAdmin, address newAdmin)
Parameters
| Name | Type | Description |
|---|---|---|
| previousAdmin | address | undefined |
| newAdmin | address | undefined |
BeaconUpgraded
Solidity
event BeaconUpgraded(address indexed beacon)
Parameters
| Name | Type | Description |
|---|---|---|
beacon indexed | address | undefined |
OwnershipTransferred
Solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Upgraded
Solidity
event Upgraded(address indexed implementation)
Parameters
| Name | Type | Description |
|---|---|---|
implementation indexed | address | undefined |