> For the complete documentation index, see [llms.txt](https://docs.tako.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tako.so/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification.md).

# Contract Specification

> <mark style="color:red;">**P2P Curation is only compatible with Lens v1. We recommend using Open Curation instead**</mark>

## Contract File

TakoLensHub.sol

## Overview

Create and receive bids using publications submitted on Lens.

If you deployed the contract independently, you can use the Admin Functions to initialize the properties for bid.

Create Bid Steps (use Bid Functions):

1. Choose the publication that you want it to be curated.
2. Compose bid data that match the contract's specifications, such as the target publication, curator's profile id, bid price, etc.
3. Send your bid transaction.

Accept Bid Steps(use Curate Functions):

1. Get all the bids sent to you.
2. Compose the accepted data that match the contract's specifications, such as the target bid.
3. Send your accepted transaction.

Use the View Functions to view the data for bid.

Github: <https://github.com/takoprotocol/contracts>

## Specification

{% content-ref url="/pages/Ycsy7kgbEkizSbz2e3jT" %}
[Enums and Structs](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/enums-and-structs.md)
{% endcontent-ref %}

{% content-ref url="/pages/rYGUek1gytXzmU5yOQG3" %}
[Owner Functions](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/owner-functions.md)
{% endcontent-ref %}

{% content-ref url="/pages/bs83wVzeyu0sVUQovr8A" %}
[Governance Functions](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/governance-functions.md)
{% endcontent-ref %}

{% content-ref url="/pages/dilfzdATUA0sx1qLGx4v" %}
[Bid Functions](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/bid-functions.md)
{% endcontent-ref %}

{% content-ref url="/pages/thWooXiVxP5OY6YwDQVB" %}
[Curate Functions](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/curate-functions.md)
{% endcontent-ref %}

{% content-ref url="/pages/AFTdYNZSbCG2hs8Td4ba" %}
[View Functions](/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification/view-functions.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tako.so/monetization/peer-to-peer-curation/for-lens-dapp/contract-specification.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
