Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automated type generation for new chains (Rust <> AS types) #2985

@evaporei

Description

@evaporei

Currently for each chain we have to create all of the Asc (AssemblyScript) types in the graph-node runtime.

This not only requires defining the types and fields themselves, but also to implement a few traits/interfaces, such as ToAscObj and FromAscObj.

Those should be automated via macros so that we have:

  • Less code overall (remove all conversion code related to ToAscObj/FromAscObj)
  • Less code required for adding new types + fields on the runtime (reduce developer time necessary on those)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions