Bid Functions
bid
The creators hope more people can read their publications. So they need to boost their publications, and Tako provides the boost feature. The bidders(namely the creators) can send a bid to curators (such as a KOL in some fields), and there are three types of bids: Post, Comment, and Mirror. After accepting the Post bid, the curator should post a new publication on Lens. After accepting the Comment bid, the curator should comment on the creator's publication on Lens. After accepting the Mirror bid, the curator should mirror the creator's publication on Lens. Then more and more people will read your publication.
function bid( BidData calldata vars, BidType bidType, DataTypes.MerkleVerifyData calldata verifyData ) external payable nonReentrant onlyWhitelisted(verifyData)
vars
BidData
Go to the page “Enums and Functions” for more details
bidType
BidType
Go to the page “Enums and Functions” for more details
verifyData
MerkleVerifyData
Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details
bidBatch
Similar to bid, supports batch operations.
function bidBatch(BidData[] calldata vars, BidType[] calldata bidType, DataTypes.MerkleVerifyData calldata verifyData) external payable nonReentrant onlyWhitelisted(verifyData)
vars
BidData[]
Go to the page “Enums and Functions” for more details
bidType
BidType[]
Go to the page “Enums and Functions” for more details
verifyData
MerkleVerifyData
Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details
bidMomoka
Similar to bid
Momoka is now running for Lens. The user’s publications are possibly sent to the Momoka system or Polygon (the old mechanism). So part of the publications are from the Momoka, and the others are from the Polygon. The data on Momoka and Polygon is separate. So the users cannot comment or mirror using Polygon for the Momoka publications. Suppose the bidder wants the curator to comment on or mirror a Momoka publication. The comment or mirror result will be sent to Momoka after the curator accepts the bid. Because Lens does not allow users to comment or mirror Momoka publications using Polygon
So please choose the function bid or the function bidMomoka according to the actual situation.
function bidMomoka(MomokaBidData calldata vars, BidType bidType, DataTypes.MerkleVerifyData calldata verifyData) external payable nonReentrant onlyWhitelisted(verifyData)
vars
MomokaBidData
Go to the page “Enums and Functions” for more details
bidType
BidType
Go to the page “Enums and Functions” for more details
verifyData
MerkleVerifyData
Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details
bidMomokaBatch
Similar to bidMomoka, supports batch operations.
function bidMomokaBatch(MomokaBidData[] calldata vars, BidType[] calldata bidType, DataTypes.MerkleVerifyData calldata verifyData) external payable nonReentrant onlyWhitelisted(verifyData)
vars
MomokaBidData[]
Go to the page “Enums and Functions” for more details
bidType
BidType[]
Go to the page “Enums and Functions” for more details
verifyData
MerkleVerifyData
Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details
updateBid
Can only update duration and amount.
function updateBid(uint256 index, uint256 duration, uint256 amount) external payable nonReentrant
index
uint256
The index of bid
duration
uint256
The valid duration of the bid, a UNIX timestamp
amount
uint256
The amount of bid token
updateBidMomoka
Can only update duration and amount.
function updateBidMomoka(uint256 index, uint256 duration, uint256 amount) external payable nonReentrant
index
uint256
The index of bid
duration
uint256
The valid duration of the bid, a UNIX timestamp
amount
uint256
The amount of bid token
claimBackBid
Claim back the token after the bid expires
function claimBackBid(uint256 index) external nonReentrant
index
uint256
The index of bid
claimBackBidBatch
Similar to bid, supports batch operations
function claimBackBidBatch( uint256[] calldata indexArr ) external nonReentrant
indexArr
uint256[]
The indexes of bids
claimBackBidMomoka
Claim back the token after the bid expires
function claimBackBidMomoka(uint256 index) external nonReentrant
index
uint256
The index of bid
claimBackBidMomokaBatch
Similar to bid, supports batch operations
function claimBackBidMomokaBatch( uint256[] calldata indexArr ) external nonReentrant
indexArr
uint256[]
The indexes of bids
Last updated