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: Casts, Reply, and Recasts. After accepting the Casts bid, the curator should cast a new publication on Farcaster. After accepting the Reply bid, the curator should reply to the creator's publication on Farcaster. After accepting the Recasts bid, the curator should recast the creator's publication on Farcaster. 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)

NameTypeDescription

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 in 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)

NameTypeDescription

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 in 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

NameTypeDescription

index

uint256

The index of bid

duration

uint256

The valid duration of the bid, a UNIX timestamp

amount

uint256

The amount of bid token

verifyData

MerkleVerifyData

Verify if the bid creator is in the whitelist Go to the page “Enums and Functions” for more details

claimBackBid

Claim back the token after the bid expires

function claimBackBid(uint256 index) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

claimBackBidBatch

Similar to bid, supports batch operations

function claimBackBidBatch( uint256[] calldata indexArr ) external nonReentrant

NameTypeDescription

indexArr

uint256[]

The indexes of bids

Last updated