Skip to content

Decide canonical serialization format for near-gas-rs #15

Description

@r-near

Context

There's a serialization discrepancy:

  • nearcore: Serializes gas (u64) as JSON numbers
  • near-gas-rs: Serializes gas as JSON strings
  • Both can deserialize from either format

Action

  • Decide on the canonical format going forward
  • Document the decision
  • Plan migration path if enforcement is desired
  • Determine if perpetual dual-format support is acceptable technical debt

Considerations

  • Breaking change implications for existing consumers
  • JSON number precision limits (u64 exceeds JS safe integer range)
  • Consistency with other NEAR type serialization patterns

Reference

Priority: Medium

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions