-
Notifications
You must be signed in to change notification settings - Fork 67
Add support for multiple contract ABIs #1491
Comments
|
I'm not familiar with how the JSON ABI is used by the indexer, except for the part where
The SDK avoids type collisions by namespacing the generated types. Each Contract/Script or Predicate gets its own
I don't know the inner workings. The idea of assigning a
Also not familiar with how predicates in the indexer would work. |
|
Do you have an example of what the manifest would look like with multiple ABIs? Coming from The Graph, it's always a bit confusing that the manifest doesn't have a list of contracts. Would this change add that? |
@dmihal Definitely. So with the merge of #886 the new manifest format will be
And if we were to include multiple contract ABIs, it would simply be updated to:
|
So is Is there a reason we don't have a |
@dmihal By "similar to the predicates section" I think you're meaning tucked in as a - key1: value1
key2: value2
key3: value3
contract:
abis:
- packages/fuel-indexer-tests/sway/test-contract1/out/debug/test-contract1-abi.json
- packages/fuel-indexer-tests/sway/test-contract1/out/debug/test-contract2-abi.json
- packages/fuel-indexer-tests/sway/test-contract1/out/debug/test-contract3-abi.json
subscriptions:
- fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23K4k
- fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23Z4k
- fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23M4k
|
AbigenTarget
name the actual name of the contract (and not the name of the indexer)The text was updated successfully, but these errors were encountered: