first pass at substreams
This commit is contained in:
@@ -105,7 +105,6 @@ fn store_protocol_components(
|
|||||||
// Assumes that the component id is a hex encoded contract address
|
// Assumes that the component id is a hex encoded contract address
|
||||||
let key = pc.id.clone();
|
let key = pc.id.clone();
|
||||||
// we store the components tokens
|
// we store the components tokens
|
||||||
// TODO: proper error handling
|
|
||||||
let val = serde_sibor::to_bytes(&pc.tokens).unwrap();
|
let val = serde_sibor::to_bytes(&pc.tokens).unwrap();
|
||||||
store.set(0, key, &val);
|
store.set(0, key, &val);
|
||||||
})
|
})
|
||||||
@@ -261,14 +260,6 @@ fn map_protocol_changes(
|
|||||||
.iter()
|
.iter()
|
||||||
.for_each(|component| {
|
.for_each(|component| {
|
||||||
builder.add_protocol_component(component);
|
builder.add_protocol_component(component);
|
||||||
// TODO: In case you require to add any dynamic attributes to the
|
|
||||||
// component you can do so here:
|
|
||||||
/*
|
|
||||||
builder.add_entity_change(&EntityChanges {
|
|
||||||
component_id: component.id.clone(),
|
|
||||||
attributes: default_attributes.clone(),
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user