Curate Functions
loanWithSig
You should do extra work to verify whether the curate works are done. Go to the API doc VerifyBid for more details
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
Name | Type | Description |
---|---|---|
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 Farcaster in cast, reply, and recast bids while the curator accepts the bid. The contentId is the publication Id on Farcaster |
sig | EIP712Signature |
loanWithRelayer
The winning curator needs to manually claim the reward using loanWithSig
, but this function can help curators settle automatically.
The relayer will send the reward to the curator, eliminating the need for manual claiming. Curators only need to wait for the result after completing the curation. If they are ultimately winning, developers can call this function on your server, then they will receive the reward automatically.
function loanWithRelayer( uint256 index, uint256 curatorId, address to, string calldata contentId ) external nonReentrant
Name | Type | Description |
---|---|---|
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 Farcaster in cast, reply, and recast bids while the curator accepts the bid. The contentId is the publication Id on Farcaster |
loanBatchWithRelayer
Similar to loanWithRelayer, supports batch operations.
function loanWithRelayer( uint256 index, uint256 curatorId, address to, string calldata contentId ) external nonReentrant
Name | Type | Description |
---|---|---|
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 Farcaster in cast, reply, and recast bids while the curator accepts the bid. The contentId is the publication Id on Farcaster |
Last updated