Skip to content

Metadata for add and import #200

@rvagg

Description

@rvagg

Extend ImportOptions and AddOptions to include metadata?: Record<string, string> and extend the CLI to allow provision of this. I suggest --metadata key=value where you can provide as many --metadata arguments as you want (until the contract rejects it for putting too many). value can be an empty string.

This then needs to be plumbed through UploadFlowOptions passed to performUpload() which can then be passed in to executeUpload() which already accepts an optional metadata (we just don't currently use it there).

In addition, some CLI special case sugar we are considering for EIP 8004 to get consistent and well-formed metatadata (spit-balling here, feel free to propose better alternatives to getting this metadata in):

  • --8004-type=<registration|validationrequest|validationresponse|feedback>
  • --8004-agent=id

You would have to provide both, or neither.

They would map internally to --metadata 8004registration=agentId or --metadata 8004validationrequest=agentId, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    team/filecoin-pin"Filecoin Pin" project is a stakeholder for this work.team/fs-wgFOC working group is a stakeholder for this work, and thus wants to track it on their project board.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions