Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Releases: graphprotocol/graph-ts

v0.4.0

02 Nov 11:52
Compare
Choose a tag to compare

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 and u8...u24 are now mapped to i32.
    These values can be represented via the Int type in entities / GraphQL.
  • The Ethereum types u32...u256, i40...i256 are now mapped to a new BigInt type.
    These values can be represented via the BigInt type in entities / GraphQL.
  • Types like U128, I256, U256 and similar have been removed in favor of BigInt.
  • bigInt.toString() now returns the number as a decimal string.

v0.0.1

02 Oct 09:06
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

Initial release.