Curate Functions

settings

Read the table below for more details

function settings(address token, uint256 min, bool[] calldata disableAuditTypes) external

NameTypeDescription

token

address

The accepted token address

min

uint256

The minimum accepted token amount

disableAuditTypes

bool[]

For the accepted BidType (including Post, Comment, Mirror), please fill in True or False in the order of Post, Comment, Mirror. For example, if Curator only accepts the Comment type of Bid, fill in [false, true, false]

setMinBid

Read the table below for more details

function setMinBid(address token, uint256 min) external

NameTypeDescription

token

address

The accepted token address

min

uint256

The minimum accepted token amount

setDisableAuditTypes

Read the table below for more details

function setDisableAuditTypes(bool[] calldata disableAuditTypes) external

NameTypeDescription

disableAuditTypes

bool[]

For the accepted BidType (including Post, Comment, Mirror), please fill in True or False in the order of Post, Comment, Mirror. For example, if Curator only accepts the Comment type of Bid, fill in [false, true, false]

auditBidPost

Accept the bid, the curator will collect the token from the bid, and Tako will automatically send a publication on Lens for the curator

function auditBidPost(uint256 index, uint256 curatorId, DataTypes.EIP712Signature calldata sig) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

curatorId

uint256

The curator’s Lens profile id

sig

EIP712Signagure

auditBidMirror

Accept the bid, the curator will collect the token from the bid, and Tako will automatically send a publication on Lens for the curator

function auditBidMirror(uint256 index, uint256 curatorId, DataTypes.EIP712Signature calldata sig) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

curatorId

uint256

The curator’s Lens profile id

sig

EIP712Signagure

auditBidComment

Accept the bid, the curator will collect the token from the bid, and Tako will automatically send a publication on Lens for the curator

function auditBidComment(uint256 index, uint256 curatorId, DataTypes.EIP712Signature calldata sig) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

curatorId

uint256

The curator’s Lens profile id

sig

EIP712Signagure

loanWithSig

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 booster 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.

Tako will do all the curate works for curators, such as comment, mirror, etc. It will be straightforward if Tako does all the work using Polygon because they all happen in Polygon.

But if Tako has to use Momoka, it won’t be easy because Momoka and Polygon are separate.

So it would be best to do extra work to verify whether the curate works are done. Go to the API doc VerifyBid for more detail.

The curator can claim his reward from the booster bid after verification.

This function is used to claim the reward.

Please use the API verifyOpenCurationBid to obtain the sig and relayer information.

function loanWithSig(uint256 index, uint256 curatorId, address relayer, string calldata contentId, DataTypes.EIP712Signature calldata sig) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

curatorId

uint256

The curator’s Lens profile id

relayer

address

An EVM-comptiable externally owned account, for signless feature

contentId

string

Tako will auto-submit a publication to Lens in post, comment, and mirror bids while the curator accepts the bid. The contentId is the publication Id on Lens

sig

EIP712Signature

Last updated