This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
v0.24.0
What's Changed
- docs: add deployment explanation by @ra0x3 in #1449
- docs: reference docker compose in quickstart by @ra0x3 in #1454
- chore: upgrade to fuels v0.50 by @ra0x3 in #1458
- chore: add --network to fuel-indexer by @ra0x3 in #1457
- chore: add executor metrics by @ra0x3 in #1456
- docs: add forc index status to quickstart by @ra0x3 in #1459
- fix: add instantiating indexer status, and display error if instantiation fails by @lostman in #1460
- enhancement: implement find on entity by @lostman in #1446
- enhancement: add find_many by @lostman in #1469
- chore: and schema support and documentation for
U16
by @ra0x3 in #1481 - bugfix: fix bytes encoding in entity::find by @lostman in #1482
- v0.24.0 by @lostman in #1483
New functionality 🎉
Connect to beta networks more easily
fuel-indexer run --run-migrations --network beta-4
New ORM functionality
Including support for find()
, find_many()
, order_by()
, and limit()
extern crate alloc;
use fuel_indexer_utils::prelude::*;
mod indexer_mod {
fn handle_data(order: Order) {
// Find a single item and order results
let found_order = Order::find(
Order::amount()
.gt(order.amount)
.and(Order::address().eq(0x001))
.order_by(Order::time().asc()),
);
if let Some(o) = found_order {
info!("I find the order! {order:#?}");
}
// Find multiple orders and limit the result set
let found_orders = Order::find_many(
Order::amount()
.gt(order.amount)
.limit(10)
.order_by(Order::time().asc()),
);
info!("Found {} orders matching the query", found_orders.len());
assert!(found_orders.len() <= 10);
}
}
Full Changelog: v0.23.0...v0.24.0