Record and Data Collection role workflows

Use the CLI to vote as a Record holder, approve as a Manager, and build and publish as a Curator.

The holder votes on one Record. The Manager acts within that Record’s current mandate. The Curator selects Records and publishes a version, and XnY Cloud builds and retains its package. Ownership units govern a Record and receive its share of income. A Collection version uses those Records and has its own usage licence. Holding Record units gives no data access. The issuing App and Producer determine production and initial allocation before the Record activates. See the Record preparation guide for issuance.

持有人对单条 Record 投票,Manager 按该 Record 的当前委托行事。Curator 选择 Records 并发布版本,由 XnY Cloud 打包和存储。Record 份额用于治理和分配收益, Collection 版本则有独立的使用许可。持有份额不会获得数据访问权。App 和 Producer 在 Record 生效前确定生产流程和初始份额。发行步骤见准备并发行 Record。

Before starting · 开始前

Use a CLI build that includes proposal inspect, manager mandate, collection publish and collection publish-terms. Exchange the chain ID, deployment addresses, public identifiers and reviewed request files before signing. Use personal Cloud credentials for storage and builds. Public chain readbacks below only need XNY_RPC_URL. Submit a prepared call from the named controller or holder using their external wallet.

先确认 CLI 支持以上四条命令,再核对链 ID、代理合约地址、公开标识和经确认的请求 文件。存储及打包使用个人 Cloud 会话。下面的公开链上查询只需要配置 XNY_RPC_URL。预览返回的交易由指定的控制账户或持有人钱包发送。

Holder · 持有人

Use the Record’s current policy to propose an appointment, replacement, revocation or policy change. Use proposal prepare-manager --request proposal.json for a mandate change and proposal prepare-policy --request policy.json for a policy change. The effect applies to that Record. Affirmative votes must reach 51% of all eligible units at the proposal snapshot. Abstentions and uncast units count toward that total. Each eligible wallet casts one final ballot. Retain the ballot transaction hash so receipt confirmation can be retried.

根据 Record 当前投票规则发起任命、更换、撤销 Manager 或调整投票规则的提案。 委托变更使用 proposal prepare-manager --request proposal.json,投票规则变更使用 proposal prepare-policy --request policy.json。 赞成票须达到提案快照全部有效份额的 51%,弃权和未投票份额计入分母。每个符合资格的钱包 只能投一次,提交后票不能改。保留投票交易哈希以便重新核验回执。

In vote.json, supply chainId, governance, proposalId, recordId, holder, choice, nonce and deadline. Use decimal strings for numbers and choose FOR, AGAINST or ABSTAIN. 数字字段使用十进制字符串, 投票选项为 FOR、AGAINST 或 ABSTAIN。

xny proposal inspect --chain-id "$CHAIN_ID" --governance "$GOVERNANCE" \
  --proposal-id "$PROPOSAL_ID" --output json
xny proposal prepare-vote --request vote.json --check --output json
xny proposal confirm-vote --request vote.json --tx-hash "$VOTE_TX" --output json
xny proposal finalize --chain-id "$CHAIN_ID" --governance "$GOVERNANCE" \
  --proposal-id "$PROPOSAL_ID" --output json

After voting closes, send the returned finalization call and use the same command with --tx-hash to confirm the receipt. A passed decision becomes executable when its notice period ends. An appointment or replacement also requires the incoming Manager’s exact consent. Once both conditions are met, prepare the execution, send that call and read back effectiveNow and the new binding. execution.json binds the chain, governance proxy, proposal, Record and action hash. For an appointment or replacement, include the reviewed managerAcceptance. Add managerSignature when consent was signed off chain.

投票结束后,发送定案交易,用同一命令加 --tx-hash 验证回执。通过的提案要等 公示期结束才可执行。任命或更换还需要候任 Manager 对同一项委托的同意。条件齐备后 准备执行、发送交易,再查询 effectiveNow 和新委托。execution.json 绑定链、 治理代理合约、提案、Record 和操作哈希。任命或更换须附上已核对的 managerAcceptance。使用链下同意时还须附上 managerSignature。

xny proposal prepare-execution --request execution.json --output json
xny proposal execution-status --request execution.json --output json

Manager · 经营者

Before signing appointment consent, verify the Record, mandate sequence, commercial terms hash, nonce, deadline and controller account. Use --include-typed-data for an external signature, or --include-record-call to register consent on chain and verify it with acceptance-confirm. The holder workflow executes the appointment separately. Use manager mandate to verify the effective binding.

签署任命同意前核对 Record、委托序号、经营条款哈希、nonce、截止时间和控制账户。 链下签名使用 --include-typed-data,链上登记使用 --include-record-call, 再用 acceptance-confirm 核对登记。任命仍需走单独的执行步骤。用 manager mandate 查回生效的绑定。

xny manager acceptance-preview --request acceptance.json --output json
xny manager acceptance-confirm --request acceptance.json --output json
xny manager mandate --chain-id "$CHAIN_ID" --mandates "$MANDATES" \
  --record-id "$RECORD_ID" --output json

Assembly permission covers the sealed version’s selected Records for building the package. Final publication requires a separate approval for the exact agreement, with each Manager signing the scope of their Records and current mandate sequences. Use the reviewed publication.json from the Curator and compare its agreement hash with the one supplied to every required Manager.

打包授权覆盖封存版本中该 Manager 负责的 Records。正式发布需要对同一份最终协议 另行批准,每位 Manager 核对自己负责的 Record 范围和当前委托序号。向 Curator 取得已核对的 publication.json,再确认所有 Manager 收到的是同一协议哈希。

xny collection prepare-publication-approval --request publication.json \
  --approval approval.json --output json

Curator · 策展者

Start with the exact sealed version and current Manager assembly approvals. Arrange consent from the Curator’s prepaid service account for the selected version. Use collection-storage-consent prepare with the sealed version and its three manifest hashes, then collection-storage-consent admit with the payer’s signature. Keep the returned evidenceRef in the build request’s storageEvidenceRef. The account pays for the verified package and its manifest. The original Record storage remains on its existing production service account. Use Cloud’s ready build status to verify the package and manifest, then request its package receipt through the authenticated build operation.

先拿到确切的封存版本和仍然有效的 Manager 打包授权。用 Curator 的预付费服务账户 为该版本提供付款授权。用 collection-storage-consent prepare 核对版本和三个 清单哈希,付款方签名后用 collection-storage-consent admit 登记授权。返回的 evidenceRef 填入打包请求的 storageEvidenceRef。打包文件和清单由该账户承担。 源 Record 的存储仍由其原生产服务账户承担。用 Cloud 返回的 ready 状态校验包和清单,再通过该打包操作申请回执。

xny collection build --request build-request.json --state build-state.json --output json
xny collection inspect --operation-id "$OPERATION_ID" --output json
xny collection publication-preview --request publication.json --output json
xny collection publish --request publication.json --output json

The preview binds the package receipt, version commitments and initial terms. publish shows each Record’s final approval and prepares the Curator call once all required approvals are current. After the transaction finalizes, check PUBLISHED and the current listing. The member list and distribution policy remain bound to that version. Only the same Curator can link another version to the series. Each paid entitlement remains bound to the purchased version.

预览把打包回执、版本承诺和初始条款绑定在一起。publish 逐条展示 Record 的最终 批准,所有批准都有效时才准备 Curator 发布交易。交易最终确认后核对 PUBLISHED 及当前上架信息。成员和分成规则固定在该版本内。同一 Curator 可发布关联的新版本, 已购买的使用权继续对应原购买版本。

xny collection publish-terms --request revision.json --output json
xny collection export --chain-id "$CHAIN_ID" --publication "$PUBLICATION" \
  --version-id "$VERSION_ID" --output json

For a price-only revision at or above the original floor, the Curator can publish directly. A price below the floor requires fresh Manager approval and an exact holder authorization for each Record whose Manager lacks delegated pricing authority. A licence change also requires fresh Manager approvals. After a price vote passes and its notice ends, establishPriceAuthority creates the Record’s single-use permission. Publication consumes the permission. Check the new termsRevisionId and the original version’s unchanged distribution before reconciling the revision. Named Manager commissions run from original version publication until their agreed expiry. A purchase at or after expiry routes that entry to its agreed Record fallback. Repricing keeps the original clock.

只改价格且新价达到原约定底价时,Curator 可以直接发布。低于底价须取得当前 Manager 的新批准,对超出 Manager 定价委托范围的每条 Record 还要取得持有人的 确切授权。更改许可同样需要新的 Manager 批准。降价提案通过且公示结束后,调用 establishPriceAuthority 建立单次授权,发布时消费。核对新的 termsRevisionId 及原版本分成承诺。指定 Manager 的佣金从该版本初次发布起算,到期后该份额按约定 分配给对应 Record 的持有人。调价沿用原起算时间。

Recovery · 中断恢复

What you see · 状态Resume · 恢复方式
AWAITING_CLOSE or NOTICERetry the read after the deadline and block finality. 等投票或公示截止且区块最终确认后重查。
Stale mandate, policy or controller epochRead current authority and review a fresh request before signing. 查回当前委托、规则或控制账户,核对新请求再签署。
Build response lost or a build failedResume with the original --state. Use --retry only after resolving a known failure. A ready build can use --replay to check the same operation and charge. 沿用原 --state。已知失败原因解决后再用 --retry。对已就绪的包可用 --replay 核对同一操作和扣费。
Publication or revision transaction sentKeep the original wallet hash and request. Rerun publish or publish-terms after finality. PUBLISHED reports the existing result. 保留请求和交易哈希,等最终确认后重查。PUBLISHED 表示原请求已生效。

Base Sepolia readback · 测试网复验

The original Record received a Manager through separate opening, ballot, finalization and execution transactions. The price proposal later authorized the original single-Record version’s move to 0.999999 test USDC. Both versions can be checked on the public chain. These commands query finalized state.

原 Record 的 Manager 任命有独立的提案、投票、定案和执行交易。之后的降价提案 将单 Record 版本调整到 0.999999 测试 USDC。下面的命令读取最终确认后的链上状态。

export XNY_RPC_URL=https://sepolia.base.org
governance=0x5fe6da43d0a90617f45a86a4a04b5edb79d8fd08
mandates=0xc51c6571e0e193256aa14613b4c330319710d815
record=0xfb1369180b2ac36fa05250c3b7a1105189092a003e98b51b3903325c3bb3b5b9
price_proposal=0xb15df6988dff13694093f24d0819ea9c904421f3ffe347afe372a88c87e40c26
publish_proxy=0x111a8452ee2447d2852c60c3c5212aef3bad18da
single=0x0bf9de5e7927a9e2f2edbda585830509a3d47963358de72b6f3645586fec4a9e
dual=0x027a429f55141e19f09da7ed306c1b3573a2c3bb5cc38299076dbf18d09e5a64
 
xny manager mandate --chain-id 84532 --mandates "$mandates" \
  --record-id "$record" --output json
xny proposal inspect --chain-id 84532 --governance "$governance" \
  --proposal-id "$price_proposal" --output json
xny collection export --chain-id 84532 --publication "$publish_proxy" \
  --version-id "$single" --output json
xny collection export --chain-id 84532 --publication "$publish_proxy" \
  --version-id "$dual" --output json

At finalized block 66929885 the listing prices were 999999 and 1000000 in USDC base units. The Manager appointment and the price change have separate receipts. 在最终确认区块 66929885,两版价格分别为 999999 和 1000000 个 USDC 最小单位。Manager 任命和调价分别有各自的回执。

Manager appointment opening · Ballot · Finalization · Execution

Price vote finalization · Holder authorization · Curator publication

Last updated

On this page