This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
Releases: graphprotocol/graph-ts
Releases · graphprotocol/graph-ts
v0.4.0
Changes
- Breaking change: Simplify conversions between type systems.
- Fix the path to AssemblyScript's
tsconfig.json
. - Setup Travis and add a test for compiling
graph-ts
.
Type Changes
The biggest change in this release is a rework of the types being used in mappings, and the conversions from and to Ethereum and entity attribute values that we provide for them. This rework mostly affects code generated from smart contract ABIs and the GraphQL schema (coming up!). However, some of the changes affect mappings directly:
- The Ethereum types
i8..i32
andu8...u24
are now mapped toi32
.
These values can be represented via theInt
type in entities / GraphQL. - The Ethereum types
u32...u256
,i40...i256
are now mapped to a newBigInt
type.
These values can be represented via theBigInt
type in entities / GraphQL. - Types like
U128
,I256
,U256
and similar have been removed in favor ofBigInt
. bigInt.toString()
now returns the number as a decimal string.