This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
v0.2.0
✨ Enhancements
tuple
Support
- The Sway
tuple
type is now supported in the contract ABI, meaning that you can now index upon things like(a, 123)
from your Sway contract. Please note while you can now extract information from tuples emitted from a contract, they cannot be used to persist data to a database as GraphQL does not support tuple types at this time.
Optional Entity Fields
- Support for optional fields in GraphQL schemas has been added, which means that you are not required to provide a value for each field of an entity. For example, in the following entity, the first two fields are required while the last two fields are optional.
type ExampleEntity {
id: ID!
a: UInt8!
b: UInt8
c: Address
}
- In your index code, values for optional fields act just like
Option
types. If the value is present, wrap it withSome()
; if not, assign the field toNone
.
API Middlewares
- We've added support for CORS and tracing customization to the API server. We'll continue to flesh this out in the coming versions. 👌🏽
Documentation
- We've been working to make our documentation easier to understand for first-time users. We'll continue to improve the initial indexer experience while also fleshing out our reference guide.
🐛 Bug Fixes
- Asset upload functionality for SQLite was broken; we've fixed the error and added some additional tests to monitor for potential regressions.
- Spawned futures weren't being retired correctly when using native execution; we made sure that tasks are retired correctly so that resources aren't wasted.
👛 What's Changed
- enhancement: add cors + tracing middleware in #475
- enhancement (fuel-indexer-tests): Add tests for start block in #476
- docs: update contrib doc in #477
- bug: Fix asset upload when using SQLite in #478
- chore: add hash to explorer-index in #479
- enhancement: Support optional fields in GraphQL schema in #485
- docs: update quickstart in #486
- fix: refactor service to retire futs in #487
- chore: move indexer creation to executors in #500
- docs: update readme in #491
- chore: cleanup test index in #505
- enhancement: add tuple support in #506
- chore: version bump to v0.2.0 in #508
Full Changelog: v0.1.13...v0.2.0