Enums and Structs
enum EIP712Signature
Please read https://eips.ethereum.org/EIPS/eip-712
Enum | Description |
---|---|
v | - |
r | - |
s | - |
deadline | - |
enum AuditStatus
Enum | Description |
---|---|
Pending | The bid is awaiting curator review |
Refuse | The bid has been refused. |
Pass | The curator accepted the bid. The transaction is succeed. |
Cancel | The bid has been canceled. |
enum BidType
Enum | Description |
---|---|
Post | After accepting the bid, the curator should post a new publication on Lens. |
Comment | After accepting the bid, the curator should comment on the creator's publication on Lens. |
Mirror | After accepting the bid, the curator should mirror the creator's publication on Lens. |
enum Platform
Enum | Description |
---|---|
Polygon | The architecture based on Polygon |
Momoka | The architecture based on Momoka |
struct MerkleVerifyData
Enum | Description |
---|---|
index | The index of data |
merkleProof | The merkle proof |
struct BidData
Parameter | Type | Description |
---|---|---|
contentURI | string | The URI for the publication used for bidding |
profileIdPointed | uint256 | Only for comment and mirror bid. The profile id to point the comment/mirror to |
pubIdPointed | uint256 | Only for comment and mirror bid. The publication ID to point the comment/mirror to |
bidToken | address | The address of token. Default to 0x0000000000000000000000000000000000000000 , namely Matic |
bidAmount | uint256 | The amount of bidToken |
duration | uint256 | The valid duration of the bid, a UNIX timestamp |
toCurators | uint256[] | The target curator’s Lens profile ids |
struct Content
Parameter | Type | Description |
---|---|---|
contentURI | string | Only for post, comment, and mirror bids. Because these bids will create new publications on Lens, the publications should be sent to storage such as Bundlr. Then you will get the content URI. |
profileIdPointed | uint256 | Only for comment and mirror bid. The profile id to point the comment/mirror to |
pubIdPointed | uint256 | Only for comment and mirror bid. The publication ID to point the comment/mirror to |
bidToken | address | The address of token. Default to 0x0000000000000000000000000000000000000000 , namely Matic |
bidAmount | uint256 | The amount of bidToken |
bidAddress | address | The bid creator’s EVM-compatible address |
bidExpires | uint256 | The valid duration of the bid, a UNIX timestamp |
toCurators | uint256[] | The target curator’s Lens profile ids |
curatorId | uint256 | The bid accepter(curator)’s Lens profile id |
curatorContentId | uint256 | The id of curated publication. |
status | AuditState | The state of the bid. “Pending”, “Refuse”, “Pass”, “Cancel” |
bidType | bidType | The type of bid. “Post”, “Comment”, “Mirror” |
struct MomokaBidData
Parameter | Type | Description |
---|---|---|
contentURI | string | Only for post, comment, and mirror bids. Because these bids will create new publications on Lens, the publications should be sent to storage such as Bundlr. Then you will get the content URI. |
mirror | string | The ID of the publication that will be mirrored |
commentOn | string | The ID of the publication that will be commented |
bidToken | address | The address of token. Default to 0x0000000000000000000000000000000000000000 , namely Matic |
bidAmount | uint256 | The amount of bidToken |
duration | uint256 | The valid duration of the bid, a UNIX timestamp |
toCurators | uint256[] | The target curator’s Lens profile ids |
struct MomokaContent
Parameter | Type | Description |
---|---|---|
contentURI | string | Only for post, comment, and mirror bids. Because these bids will create new publications on Lens, the publications should be sent to storage such as Bundlr. Then you will get the content URI. |
mirror | string | The ID of the publication that will be mirrored |
commentOn | string | The ID of the publication that will be commented |
bidToken | address | The address of token. Default to 0x0000000000000000000000000000000000000000 , namely Matic |
bidAmount | uint256 | The amount of bidToken |
bidAddress | address | The bid creator’s EVM-compatible address |
bidExpires | uint256 | The valid duration of the bid, a UNIX timestamp |
toCurators | uint256[] | The target curator’s Lens profile ids |
curatorId | uint256 | The bid accepter(curator)’s Lens profile id |
curatorContentId | string | The id of curated publication. |
status | AuditStatus | The state of the bid. “Pending”, “Refuse”, “Pass”, “Cancel” |
bidType | BidType | The type of bid. “Post”, “Comment”, “Mirror” |
Last updated