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
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: