Tako Protocol
  • What is Tako?
  • Social Abstract Account
  • Social Legos
    • On-Chain Reputation
    • Farcaster
  • Monetization
    • Profile as an asset
      • Introduction
      • API Overview
      • For Farcaster dApp
        • Deployed Contract Address
        • Contract Specification
          • ProfileMarketV1
          • FarcasterKey
        • APIs
          • GetBuyPrice
          • GetBuyPriceAfterFee
          • GetSellPrice
          • GetSellPriceAfterFee
          • Discover
          • Explore
          • GetCommentsOnFarcaster
          • GetCommentsOnLens
          • GetHolders
          • GetAssets
          • GetProfileAndKey
          • GetActivated
          • GetHoldersByAddress
          • GetHoldingByAddress
          • GetKeyInfo
          • GetTrending
          • GetTrendingVolume
          • GetTradesLatest
          • GetTradesList
          • GetClaimable
    • Open Curation
      • Introduction
      • API Overview
      • For Lens dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetWhitelistInfo
          • CheckOnchainTX
          • getOpenCurationCuratorAccepted
          • getOpenCurationBidsCreated
          • getOpenCurationBidsConfirmingCreated
          • getOpenCurationBidsPassed
          • getOpenCurationRecentActiveCurators
          • GetBidsFeed
          • verifyOpenCurationBid
          • getOpenCurationBidsCreatedStats
          • getOpenCurationCuratorLastBidPrice
          • registerOpenCuration
          • getOpenCurationIdIndexPairs
        • SDK
          • Installing the SDK
          • allBids
          • takoHubInfo()
          • generateBidAbiData()
          • generateBidBatchAbiData()
          • estimateGas()
          • generateTransaction()
          • register()
          • verifyBid()
          • generateClaimRewardAbiData()
          • curatorStatus()
    • Peer-to-Peer Curation
      • Introduction
      • API Overview
      • For Lens dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetToken
          • RefreshToken
          • GetWhitelistInfo
          • SearchProfile
          • CheckOnchainTX
          • GetRecentActiveCurators
          • ActiveStatistics
          • GetLensCuratorAccepted
          • GetLensBidsCreated
          • GetLensBidsReceived
          • GetLensBidsConfirmingCreated
          • GetLensBidsConfirmingReceived
          • VerifyLensBid
          • IgnoreLensBid
          • GetLensBidsIgnored
          • GetLensBidsCreatedStats
          • GetLensBidsReceivedStats
          • GetLensCuratorLastBidPrice
          • GetLensPubIndexPairs
          • GetLensPubIds
      • For Farcaster dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetToken
          • RefreshToken
          • GetWhitelistInfo
          • SearchProfile
          • CheckOnchainTX
          • GetRecentActiveCurators
          • ActiveStatistics
          • GetFarcasterCuratorAccepted
          • GetFarcasterBidsCreated
          • GetFarcasterBidsReceived
          • GetFarcasterBidsConfirmingReceived
          • VerifyFarcasterBid
          • IgnoreFarcasterBid
          • GetFarcasterBidsIgnored
          • GetFarcasterBidsCreatedStats
          • GetFarcasterBidsReceivedStats
          • GetFarcasterCuratorLastBidPrice
          • GetFarcasterEngagement
          • GetFarcasterPubIndexPairs
  • Links
    • Github
    • Twitter
    • Brand kit
Powered by GitBook
On this page
  • setLensContracts
  • setMerkleRoot
  • whitelistBidToken
  • whitelistRelayer
  • setToCuratorLimit
  • setMaxDuration
  1. Monetization
  2. Peer-to-Peer Curation
  3. For Lens dApp
  4. Contract Specification

Governance Functions

PreviousOwner FunctionsNextBid Functions

Last updated 1 year ago

setLensContracts

Set LensHub address and collectModule address. Read the Lens docs for more details.

function setLensContracts( address hub, address collectModule ) external onlyGov

Name
Type
Description

hub

address

The contract address of LensHub

collectModule

address

The contract address of CollectMudule

setMerkleRoot

Set up a Merkle Root Hash to verify the usage privilege of the address used for accessing Tako

function setMerkleRoot(bytes32 newMerkleRoot) external onlyGov

Name
Type
Description

newMerkleRoot

bytes32

A new merkle root

whitelistBidToken

Set a whitelist of token types that can be used in transactions

function whitelistBidToken(address token, bool whitelist) external onlyGov

Name
Type
Description

token

address

The contract address of token

whitelist

bool

"true" represents adding to the whitelist, while "false" represents removing from the whitelist.

whitelistRelayer

function whitelistRelayer(address relayer, bool whitelist) external onlyGov

Name
Type
Description

relayer

address

The address of relayer

whitelist

bool

"true" represents adding to the whitelist "false" represents removing from the whitelist.

setToCuratorLimit

The bid can be sent to multiple curators at one time, and this function can limit the number of curators.

function setToCuratorLimit(uint8 counter) external onlyGov

Name
Type
Description

counter

uint8

Maximum number of target curators

setMaxDuration

Bids can be set with a valid duration, and this method can restrict the maximum valid time

function setMaxDuration(uint256 max) external onlyGov

Name
Type
Description

max

uint256

Maximum valid duration for a bid

https://docs.lens.xyz/docs/deployed-contract-addresses