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

Commit

Permalink
manifest cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ra0x3 committed Oct 12, 2023
1 parent dd45bd0 commit d68abcc
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 33 deletions.
19 changes: 13 additions & 6 deletions examples/fuel-explorer/fuel-explorer/fuel_explorer.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
# as an organization identifier
namespace: fuellabs

# Unique identifier for this indexer.
# The identifier field is used to identify the given index.
identifier: explorer


# Indexer contract configuration.
contracts:

# File paths to the contract JSON ABIs that are generated when you build your Sway contracts.
abis: ~

# Specifies which particular contracts you would like your indexer to subscribe to.
subscriptions: ~

# The particular start block after which you'd like your indexer to start indexing events.
Expand All @@ -22,10 +26,8 @@ end_block: ~
# with the `--indexer_net_config` option.
fuel_client: ~

# Specifies which particular contract(s) you would like your indexer to subscribe to.
contract_subscriptions: ~

# A file path that points to the GraphQL schema for the given indexer.
# The graphql_schema field contains the file path that points to the GraphQL schema for the
# given index.
graphql_schema: examples/fuel-explorer/fuel-explorer/schema/fuel_explorer.schema.graphql

# The module field contains a file path that points to code that will be run as an executor inside
Expand All @@ -38,6 +40,11 @@ module:
# with the latest block if it has fallen out of sync.
resumable: true

# Indexer predicate configuration.
predicates:

# File paths to the predicate JSON ABI that is generated when you build your Sway predicates.
abis: ~

# Template commitments (hashes) of the bytecode of predicates used by this indexer.
templates: ~
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ namespace: fuellabs
# The identifier field is used to identify the given index.
identifier: greetings_native

# The abi option is used to provide a link to the Sway JSON ABI that is generated when you
# build your project.
contract_abi: examples/hello-world/contracts/greeting/out/debug/greeting-abi.json

# Indexer contract configuration.
contracts:

# File paths to the contract JSON ABIs that are generated when you build your Sway contracts.
abis:
- examples/hello-world/contracts/greeting/out/debug/greeting-abi.json
- examples/greetings/contracts/greeting/out/debug/greeting-abi.json

# Specifies which particular contracts you would like your indexer to subscribe to.
subscriptions:
- fuel18hchrf7f4hnpkl84sqf8k0sk8gcauzeemzwgweea8dgr7eachv4s86r9t9

Expand Down Expand Up @@ -40,6 +41,11 @@ module: native
# with the latest block if it has fallen out of sync.
resumable: true

# Indexer predicate configuration.
predicates:

# File paths to the predicate JSON ABI that is generated when you build your Sway predicates.
abis: ~

# Template commitments (hashes) of the bytecode of predicates used by this indexer.
templates: ~
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ namespace: fuellabs
# The identifier field is used to identify the given index.
identifier: greetings

# The abi option is used to provide a link to the Sway JSON ABI that is generated when you
# build your project.
abi: examples/greetings/contracts/greeting/out/debug/greeting-abi.json
# Indexer contract configuration.
contracts:

# File paths to the contract JSON ABIs that are generated when you build your Sway contracts.
abis:
- examples/greetings/contracts/greeting/out/debug/greeting-abi.json

# Specifies which particular contracts you would like your indexer to subscribe to.
subscriptions:
- fuel1q6sj2srt0u40jdqg2lvvnspyuhse9rs2s2fv9nmv0hqjcrdc7sqsfpwv9x

# The particular start block after which you'd like your indexer to start indexing events.
start_block: ~
Expand All @@ -21,9 +28,6 @@ end_block: ~
# with the `--indexer_net_config` option.
fuel_client: ~

# The contract_id specifies which particular contract you would like your index to subscribe to.
contract_id: fuel1q6sj2srt0u40jdqg2lvvnspyuhse9rs2s2fv9nmv0hqjcrdc7sqsfpwv9x

# The graphql_schema field contains the file path that points to the GraphQL schema for the
# given index.
graphql_schema: examples/greetings/greetings-indexer/schema/greetings_indexer.schema.graphql
Expand All @@ -36,4 +40,13 @@ module:

# The resumable field contains a boolean that specifies whether or not the indexer should, synchronise
# with the latest block if it has fallen out of sync.
resumable: true
resumable: true

# Indexer predicate configuration.
predicates:

# File paths to the predicate JSON ABI that is generated when you build your Sway predicates.
abis: ~

# Template commitments (hashes) of the bytecode of predicates used by this indexer.
templates: ~
31 changes: 17 additions & 14 deletions examples/hello-world/hello-world/hello_world.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
# as an organization identifier
namespace: fuellabs

# Unique identifier for this indexer.
identifier: hello_indexer
# The identifier field is used to identify the given index.
identifier: hello_world

# Indexer contract configuration.
contracts:
abis:
- examples/hello-world/contracts/greeting/out/debug/greeting-abi.json
subscriptions:
- fuel18hchrf7f4hnpkl84sqf8k0sk8gcauzeemzwgweea8dgr7eachv4s86r9t9

# File paths to the contract JSON ABIs that are generated when you build your Sway contracts.
abis: ~

# Specifies which particular contracts you would like your indexer to subscribe to.
subscriptions: ~

# The particular start block after which you'd like your indexer to start indexing events.
start_block: ~
Expand All @@ -23,12 +26,9 @@ end_block: ~
# with the `--indexer_net_config` option.
fuel_client: ~

# Specifies which particular contract(s) you would like your indexer to subscribe to.
contract_subscriptions:
- fuel18hchrf7f4hnpkl84sqf8k0sk8gcauzeemzwgweea8dgr7eachv4s86r9t9

# A file path that points to the GraphQL schema for the given indexer.
graphql_schema: examples/hello-world/hello-indexer/schema/hello_indexer.schema.graphql
# The graphql_schema field contains the file path that points to the GraphQL schema for the
# given index.
graphql_schema: examples/hello-world/hello-world/schema/hello_world.schema.graphql

# The module field contains a file path that points to code that will be run as an executor inside
# of the indexer.
Expand All @@ -40,8 +40,11 @@ module:
# with the latest block if it has fallen out of sync.
resumable: true

# Indexer predicate configuration.
predicates:
abis: ~
templates: ~

# File paths to the predicate JSON ABI that is generated when you build your Sway predicates.
abis: ~

# Template commitments (hashes) of the bytecode of predicates used by this indexer.
templates: ~
1 change: 0 additions & 1 deletion packages/fuel-indexer-lib/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,3 @@ impl TryFrom<&Vec<u8>> for Manifest {
Ok(manifest)
}
}

0 comments on commit d68abcc

Please sign in to comment.