Rigoblock Documentation
  • Welcome
  • Introduction to RigoBlock
  • Contracts
    • Protocol
      • RigoblockPoolExtended
      • Core
        • constants
        • immutables
        • storage
        • actions
        • owner actions
        • abstract
        • fallback
        • initializer
        • state
        • storage accessible
      • Deps
        • Authority
          • authority docs
        • PoolRegistry
          • pool registry docs
      • Extensions
        • AGovernance
          • Solidity API
        • AMulticall
          • aMulticall docs
        • AStaking
          • aStaking docs
        • AUniswap
          • aUniswap docs
        • EUpgrade
          • eUpgrade docs
        • EWhitelist
          • eWhitelist docs
      • Proxies
        • proxy
          • proxy docs
        • proxy factory
          • proxyFactory docs
    • GRG Token
      • RigoToken
        • rigoToken docs
      • Inflation
        • inflation docs
      • ProofOfPerformance
        • pop docs
    • GRG Staking
      • GrgVault
        • grgVault docs
      • StakingProxy
        • stakingProxy docs
      • Staking
        • staking docs
    • Governance
      • Solidity API
  • Deployments
    • deployed contracts - V4
    • deployed contracts
    • v1.5.0
    • v1.4.2
    • v1.4.1
    • v1.3.0
    • v1.1.1
    • v1.1.0
  • Governance
    • Rigoblock Governance
    • Supported Applications
    • Token Whitelists
    • Supported Methods
      • Selectors - V4
      • Selectors - V3
  • Bug Bounty
    • Known Issues
  • Oracles and Price Feeds
Powered by GitBook
On this page
  • AMulticall
  • checkDeadline
  • checkPreviousBlockhash
  • multicall
  • multicall
  • multicall
  • _blockTimestamp
  1. Contracts
  2. Protocol
  3. Extensions
  4. AMulticall

aMulticall docs

AMulticall

As per https://github.com/Uniswap/swap-router-contracts/blob/main/contracts/base/MulticallExtended.sol

checkDeadline

modifier checkDeadline(uint256 deadline)

checkPreviousBlockhash

modifier checkPreviousBlockhash(bytes32 previousBlockhash)

multicall

function multicall(bytes[] data) public returns (bytes[] results)

Enables calling multiple methods in a single call to the contract

Parameters

Name
Type
Description

data

bytes[]

Array of encoded calls.

Return Values

Name
Type
Description

results

bytes[]

Array of call responses.

multicall

function multicall(uint256 deadline, bytes[] data) external payable returns (bytes[])

Call multiple functions in the current contract and return the data from all of them if they all succeed

The msg.value should not be trusted for any method callable from multicall.

Parameters

Name
Type
Description

deadline

uint256

The time by which this function must be called before failing

data

bytes[]

The encoded function data for each of the calls to make to this contract

Return Values

Name
Type
Description

[0]

bytes[]

multicall

function multicall(bytes32 previousBlockhash, bytes[] data) external payable returns (bytes[])

Call multiple functions in the current contract and return the data from all of them if they all succeed

The msg.value should not be trusted for any method callable from multicall.

Parameters

Name
Type
Description

previousBlockhash

bytes32

The expected parent blockHash

data

bytes[]

The encoded function data for each of the calls to make to this contract

Return Values

Name
Type
Description

[0]

bytes[]

_blockTimestamp

function _blockTimestamp() internal view virtual returns (uint256)

Method that exists purely to be overridden for tests

Return Values

Name
Type
Description

[0]

uint256

The current block timestamp

PreviousAMulticallNextAStaking

Last updated 2 years ago