開放內容協議 (OCP) 是一個基於 Sui 區塊鏈的去中心化內容平台。它旨在為內容提供者和個人創作者提供一個去中心化、抗審查的內容價值網絡。
graph TB;
%% 在圖形中直接定義樣式
style Platform fill:#ffffff,stroke:#000000,stroke-width:2px;
style CreatorObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style PostKeyObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style ContentCreator fill:#ffffff,stroke:#000000,stroke-width:2px;
style PostObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style PaidObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style MemberObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style SubscriberObj fill:#ffffff,stroke:#000000,stroke-width:2px;
style MemberDetails fill:#ffffff,stroke:#000000,stroke-width:2px;
style SubscriberDetails fill:#ffffff,stroke:#000000,stroke-width:2px;
subgraph PlatformManagement["平台管理"]
Platform["平台"]
CreatorObj["創作者對象"]
PostKeyObj["文章密鑰對象"]
end
subgraph ContentCreation["內容創作"]
ContentCreator["內容創作者"]
PostObj["文章對象"]
PaidObj["付費(Kiosk)對象"]
end
subgraph UserRoles["用戶角色"]
MemberObj["會員對象"]
SubscriberObj["訂閱者對象"]
MemberDetails["詳細信息(網址、描述、到期時間)"]
SubscriberDetails["詳細信息(網址、描述、無到期時間)"]
end
Platform -->|管理| CreatorObj
Platform -->|管理| PostKeyObj
PostKeyObj -->|解鎖| PostObj
CreatorObj -->|創建內容| ContentCreator
ContentCreator -->|發佈| PostObj
ContentCreator -->|創建付費內容| PaidObj
PaidObj -->|付費| MemberObj
MemberObj -->|詳細信息| MemberDetails
SubscriberObj -->|詳細信息| SubscriberDetails
PostObj -.->|訪問| MemberObj
PostObj -.->|訪問| SubscriberObj
sui client call --package <package_id> --module ocp_creator --function mint_creator --args <url> <description> <avatar> <member_prices> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_creator --function update_creator --args <creator_id> <url> <description> <avatar> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_creator --function mint_post --args <creator_id> <url> <description> <access_level> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_creator --function update_post --args <post_id> <url> <description> <access_level> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_creator --function mint_post_key --args <post_id> <access_level> <owner> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_paid --function mint_paid --args <creator_id> <url> <description> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_paid --function request_custom_paid --args <creator> <description> <payment> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_paid --function fulfill_custom_request --args <kiosk_id> <request_id> <url> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_member --function mint_member --args <creator> <url> <description> <avatar> <clock_id> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_member --function renew_member --args <member_id> <creator_id> <price_index> <payment> <clock_id> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_subscriber --function mint_subscriber --args <creator> <url> <description> <avatar> --gas-budget <gas_budget>
sui client call --package <package_id> --module ocp_subscriber --function update_subscriber --args <subscriber_id> <url> <description> <avatar> --gas-budget <gas_budget>
開放內容協議 (OCP) 採用 Apache License 2.0 版本發布。有關更多詳細信息,請參閱 LICENSE 文件。