Skip to content

Create @noosphere/payload package with Core Types #1

@nolnol3

Description

@nolnol3

Description:
Create a new shared package for URI scheme-based payload handling.

This package provides types and utilities for encoding/decoding PayloadRef, a 65-byte compact structure that replaces variable-size on-chain data with fixed-size references to off-chain storage.

Scope:
This is the foundation for gas optimization across the Noosphere protocol. Both Agent and Client DApp will depend on this package.

Acceptance Criteria:

  • packages/payload directory created with package.json and tsconfig.json
  • PayloadRef interface defined (schemeType, contentHash, locationData)
  • PayloadScheme enum defined (DATA_INLINE, IPFS, ARWEAVE, HTTPS, CHAIN)
  • IPayloadStorage interface defined with upload/download methods
  • Package exports configured in index.ts
  • Package builds without TypeScript errors

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions