Skip to main content

Solidity API

Storage

Storage manages all storage variables and constants for the Atlas smart contract.

VERIFICATION

contract IAtlasVerification VERIFICATION

SIMULATOR

address SIMULATOR

L2_GAS_CALCULATOR

address L2_GAS_CALCULATOR

ESCROW_DURATION

uint256 ESCROW_DURATION

name

string name

symbol

string symbol

decimals

uint8 decimals

ATLAS_SURCHARGE_RATE

uint256 ATLAS_SURCHARGE_RATE

BUNDLER_SURCHARGE_RATE

uint256 BUNDLER_SURCHARGE_RATE

SCALE

uint256 SCALE

FIXED_GAS_OFFSET

uint256 FIXED_GAS_OFFSET

S_totalSupply

uint256 S_totalSupply

S_bondedTotalSupply

uint256 S_bondedTotalSupply

s_balanceOf

mapping(address => struct EscrowAccountBalance) s_balanceOf

S_accessData

mapping(address => struct EscrowAccountAccessData) S_accessData

S_solverOpHashes

mapping(bytes32 => bool) S_solverOpHashes

S_cumulativeSurcharge

uint256 S_cumulativeSurcharge

S_surchargeRecipient

address S_surchargeRecipient

S_pendingSurchargeRecipient

address S_pendingSurchargeRecipient

constructor

constructor(uint256 escrowDuration, address verification, address simulator, address initialSurchargeRecipient, address l2GasCalculator) public payable

totalSupply

function totalSupply() external view returns (uint256)

bondedTotalSupply

function bondedTotalSupply() external view returns (uint256)

accessData

function accessData(address account) external view returns (uint112 bonded, uint32 lastAccessedBlock, uint24 auctionWins, uint24 auctionFails, uint64 totalGasUsed)

solverOpHashes

function solverOpHashes(bytes32 opHash) external view returns (bool)

cumulativeSurcharge

function cumulativeSurcharge() external view returns (uint256)

surchargeRecipient

function surchargeRecipient() external view returns (address)

pendingSurchargeRecipient

function pendingSurchargeRecipient() external view returns (address)

lock

function lock() external view returns (address activeEnvironment, uint32 callConfig, uint8 phase)

isUnlocked

function isUnlocked() external view returns (bool)

Returns the current lock state of Atlas.

Return Values

NameTypeDescription
[0]boolBoolean indicating whether Atlas is in a locked state or not.

solverLockData

function solverLockData() external view returns (address currentSolver, bool calledBack, bool fulfilled)

Returns information about the current state of the solver lock.

Return Values

NameTypeDescription
currentSolveraddressAddress of the current solver.
calledBackboolBoolean indicating whether the solver has called back via reconcile.
fulfilledboolBoolean indicating whether the solver's outstanding debt has been repaid via reconcile.

claims

function claims() internal view returns (uint256)

fees

function fees() internal view returns (uint256)

writeoffs

function writeoffs() internal view returns (uint256)

withdrawals

function withdrawals() internal view returns (uint256)

deposits

function deposits() internal view returns (uint256)

_lock

function _lock() internal view returns (address activeEnvironment, uint32 callConfig, uint8 phase)

_activeEnvironment

function _activeEnvironment() internal view returns (address)

_activeCallConfig

function _activeCallConfig() internal view returns (uint32)

_phase

function _phase() internal view returns (uint8)

_solverLockData

function _solverLockData() internal view returns (address currentSolver, bool calledBack, bool fulfilled)

Returns information about the current state of the solver lock.

Return Values

NameTypeDescription
currentSolveraddressAddress of the current solver.
calledBackboolBoolean indicating whether the solver has called back via reconcile.
fulfilledboolBoolean indicating whether the solver's outstanding debt has been repaid via reconcile.

_solverTo

function _solverTo() internal view returns (address)

_isUnlocked

function _isUnlocked() internal view returns (bool)

_setLock

function _setLock(address activeEnvironment, uint32 callConfig, uint8 phase) internal

_releaseLock

function _releaseLock() internal

_setLockPhase

function _setLockPhase(uint8 newPhase) internal

_setSolverLock

function _setSolverLock(uint256 newSolverLock) internal

_setSolverTo

function _setSolverTo(address newSolverTo) internal

_setClaims

function _setClaims(uint256 newClaims) internal

_setFees

function _setFees(uint256 newFees) internal

_setWriteoffs

function _setWriteoffs(uint256 newWriteoffs) internal

_setWithdrawals

function _setWithdrawals(uint256 newWithdrawals) internal

_setDeposits

function _setDeposits(uint256 newDeposits) internal

_tstore

function _tstore(bytes32 slot, bytes32 value) internal

_tload

function _tload(bytes32 slot) internal view returns (bytes32 value)