AlchemyDAO
1.0.0
1.0.0
  • Introduction
  • Protocol
    • How It Works
    • Create an AlchemyDAO for your NFT
    • Earn Staking Rewards
    • Token Distribution
    • Deployments
    • Dapps
  • Smart Contracts
    • AlchemyFactory
    • GovernorAlphaFactory
    • TimelockFactory
    • AlchemyRouter
    • ALCH
    • StakingRewards
    • IAlchemyFactory
    • IStakingRewards
    • DutchAuctionFactory
    • DutchAuction
Powered by GitBook
On this page
  • setDelay
  • acceptAdmin
  • setPendingAdmin
  • queueTransaction
  • cancelTranaction
  • executeTransaction
  • getBlockTimestamp
  • TimelockMint

Was this helpful?

  1. Smart Contracts

TimelockFactory

This contract lets the Alchemy Contract set up its own Time Lock instance to execute proposals proposed through the GovernorAlpha contract instance.

setDelay

function setDelay(uint delay_) public

This function is used to set a new delay when executing the contract calls.

acceptAdmin

function acceptAdmin() public

A function used to accept a new admin for the timelock.

setPendingAdmin

function setPendingAdmin(address pendingAdmin_) public

A function to set a new pending admin for the timelock contract.

queueTransaction

function queueTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public

This function is used to queue a new transaction from the governor contract.

cancelTranaction

function cancelTransaction(address target, uint value, string memory signature, bytes memory data, uint eta)

This function is used to cancel a transaction.

executeTransaction

function executeTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public

This function is used to execute a transaction.

getBlockTimestamp

function getBlockTimestamp() internal

A function used to get the current Block Timestamp.

TimelockMint

function TimelockMint(
    address admin_,
    uint delay_
) external

The minting which mints a new Timelock contract instance.

PreviousGovernorAlphaFactoryNextAlchemyRouter

Last updated 4 years ago

Was this helpful?