Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
cargo sort
Browse files Browse the repository at this point in the history
  • Loading branch information
ra0x3 committed Nov 14, 2023
1 parent 7b5fecb commit c2277cf
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 23 deletions.
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
resolver = "2"

members = [
# "examples/fuel-explorer/fuel-explorer",
"examples/fuel-explorer/fuel-explorer",
"examples/greetings/greetings-data",
"examples/greetings/greetings-fuel-client",
# "examples/greetings/greetings-indexer",
# "examples/hello-world/hello-world",
"examples/greetings/greetings-indexer",
"examples/hello-world/hello-world",
"packages/fuel-indexer-api-server",
"packages/fuel-indexer-benchmarks",
"packages/fuel-indexer-database",
Expand All @@ -24,7 +24,7 @@ members = [
"packages/fuel-indexer-tests/components/fuel-node",
"packages/fuel-indexer-tests/components/web-api",
"packages/fuel-indexer-tests/indexers/fuel-indexer-test",
# "packages/fuel-indexer-tests/indexers/simple-wasm/simple-wasm",
"packages/fuel-indexer-tests/indexers/simple-wasm/simple-wasm",
"packages/fuel-indexer-types",
"packages/fuel-indexer-utils",
"packages/fuel-indexer",
Expand Down
29 changes: 11 additions & 18 deletions docs/src/indexing-fuel-types/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
## Definition

- Immutable and ephemeral.
- [Read more on predicates here](#).

- Predicates are one of the most important abstractions that Fuel makes availabe. A predicate effectively has two states: a _created_ state, and a _spent_ state. A predicate has a `created` state when the predicate is...created.

- A predicate becomes "created" when a given UTXO inclues certain parameters in its [witness data](./transactions.md).
Expand All @@ -16,28 +14,23 @@
/// Standardized `Witness` data format for predicates.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Predicate {
/// ID of predicate.
id: UID,
/// Commitment of the predicate template used.
template_commitment: Bytes32,
/// Hash of associated predicate bytecode
template_id: Bytes32,
/// Configurable constants in predicates.
configuration_schema: Vec<u8>,
}
configurables: Vec<u8>,
/// Representation of a `Predicate`.
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Predicate {
/// ID of predicate.
id: UID,
/// Relevant TX output indices of predicates that need to be watched.
output_index: u64,
/// Standardized witness data format
witness_data: Predicate,
/// UTXO held by predicate.
coin_output: CoinOutput,
coin_input: Option<InputCoin>,
/// ID of transaction in which predicate was created.
unspent_tx_id: Bytes32,
coin_output: CoinOutput,
/// ID of transaction in which predicate was spent.
spent_tx_id: Option<Bytes32>,
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-macros/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ fn process_fn_items(
let bech32_id = Bech32ContractId::new("fuel", id_bytes);

if !contract_ids.contains(&bech32_id) {
info!("Not subscribed to this contract. Will skip this receipt event. <('-'<)");
debug!("Not subscribed to this contract. Will skip this receipt event. <('-'<)");
continue;
}
}
Expand Down

0 comments on commit c2277cf

Please sign in to comment.