Skip to content

Commit

Permalink
fix integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Oct 16, 2024
1 parent 802f483 commit e8c7f50
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/new-pool-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ To integrate new pool types into the Balancer subgraph, follow these steps below

## Setup

Navigate to the `subgraphs/v3-pools` directory before starting the integration process.
Navigate to the `subgraphs/v3-pools` directory and add your custom pool ABI to `abis` folder before starting the integration process.

## Updating the GraphQL Schema

Expand Down Expand Up @@ -49,7 +49,7 @@ Navigate to the `subgraphs/v3-pools` directory before starting the integration p
pnpm codegen
```

## Creating the Subgraph Manifest
## Updating the Subgraph Manifest

1. Update the `subgraph.sepolia.yaml` file to include your new pool factory:

Expand All @@ -60,25 +60,27 @@ Navigate to the `subgraphs/v3-pools` directory before starting the integration p
name: CustomPoolFactory
network: sepolia
source:
address: "0x..." # Your custom pool factory address
abi: BasePoolFactory
address: "0x..." # Your custom pool factory address
startBlock: 000000 # Your custom pool deployment block
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/custom.ts
entities:
- Pool
- CustomParams
abis:
- name: CustomPool
file: ./abis/CustomPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address,bytes32)
handler: handleCustomPoolCreated
```

## Implementing Pool Factory Mapping
## Writing Mappings for the Pool Factory

1. Update `src/mappings/common.ts` to include your new pool type:

Expand Down

0 comments on commit e8c7f50

Please sign in to comment.