graphprotocol / graphprotocol/graph-node

Fix/remove _padding fields in NEAR Rust/ASc conversion types

Open
#3,011 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

chains/near Stale
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Currently we have a memory alignment issue in the runtime ABI implementation for AssemblyScript that didn't happen until we integrated with NEAR.

That's because the size and alignment of Ethereum types never revealed this weak point.

  • Create tests for the current padding issues
  • Solve the problem

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the runtime ABI implementation for AssemblyScript and the conversion types containing _padding fields. Reproduce the current memory-alignment problems with tests, then verify that the padding issue is resolved by running those tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.