Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"ReClammPoolFactory": {
"address": "0x5939ab16fDf1991B0EF603c639B6b501A7841fAB",
"startBlock": "22676210"
},
"ReClammPoolV2Factory": {
"address": "0xDaa273AeEc06e9CCb7428a77E2abb1E4659B16D2",
"startBlock": "22832233"
}
},
"gnosis": {
Expand Down Expand Up @@ -93,6 +97,10 @@
"ReClammPoolFactory": {
"address": "0x1780e8185199DAc45284039Bb3E3B64060D943AB",
"startBlock": "40516797"
},
"ReClammPoolV2Factory": {
"address": "0xc86eF81E57492BE65BFCa9b0Ed53dCBAfDBe6100",
"startBlock": "40884126"
}
},
"sepolia": {
Expand Down Expand Up @@ -143,6 +151,10 @@
"ReClammPoolFactory": {
"address": "0x2A4054779DaDf4Cf3F4849f1AC307845F182cfE5",
"startBlock": "8520198"
},
"ReClammPoolV2Factory": {
"address": "0xf58A574530Ea5cEB727095e6039170c1e8068fcA",
"startBlock": "8676768"
}
},
"arbitrum-one": {
Expand Down Expand Up @@ -193,6 +205,10 @@
"ReClammPoolFactory": {
"address": "0xa1D0791a41318c775707C56eAe247AF81a05322C",
"startBlock": "345984008"
},
"ReClammPoolV2Factory": {
"address": "0x355bD33F0033066BB3DE396a6d069be57353AD95",
"startBlock": "353502388"
}
},
"base": {
Expand Down Expand Up @@ -243,6 +259,10 @@
"ReClammPoolFactory": {
"address": "0x3BEb058DE1A25dd24223fd9e1796df8589429AcE",
"startBlock": "31396631"
},
"ReClammPoolV2Factory": {
"address": "0x201efd508c8DfE9DE1a13c2452863A78CB2a86Cc",
"startBlock": "32339174"
}
},
"sonic": {
Expand Down Expand Up @@ -323,6 +343,10 @@
"ReClammPoolFactory": {
"address": "0x1CD776897ef4f647bf8241Ec69549e4A9cb1D608",
"startBlock": "63645408"
},
"ReClammPoolV2Factory": {
"address": "0x309abcAeFa19CA6d34f0D8ff4a4103317c138657",
"startBlock": "64832650"
}
},
"optimism": {
Expand Down Expand Up @@ -361,6 +385,10 @@
"ReClammPoolFactory": {
"address": "0x0b11209B8c5E821b18dED147583b8978c3E63911",
"startBlock": "136991947"
},
"ReClammPoolV2Factory": {
"address": "0x891EC9B34829276a9a8ef2F8A9cEAF2486017e0d",
"startBlock": "137934460"
}
}
}
13 changes: 13 additions & 0 deletions subgraphs/v3-pools/src/mappings/reclamm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ export function handleReClammPoolCreated(event: PoolCreated): void {
ReClammPoolTemplate.create(event.params.pool);
}

export function handleReClammPoolV2Created(event: PoolCreated): void {
handlePoolCreated(
event.params.pool,
event.address, // Factory
PoolType.ReClamm,
2,
handleReClammPoolParams,
"reClammParams"
);

ReClammPoolTemplate.create(event.params.pool);
}

export function handleReClammCenterednessMarginUpdated(
event: CenterednessMarginUpdated
): void {
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.arbitrum-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: arbitrum-one
source:
abi: BasePoolFactory
address: "0x355bD33F0033066BB3DE396a6d069be57353AD95"
startBlock: 353502388
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.avalanche.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: avalanche
source:
abi: BasePoolFactory
address: "0x309abcAeFa19CA6d34f0D8ff4a4103317c138657"
startBlock: 64832650
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: base
source:
abi: BasePoolFactory
address: "0x201efd508c8DfE9DE1a13c2452863A78CB2a86Cc"
startBlock: 32339174
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.gnosis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: gnosis
source:
abi: BasePoolFactory
address: "0xc86eF81E57492BE65BFCa9b0Ed53dCBAfDBe6100"
startBlock: 40884126
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.optimism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: optimism
source:
abi: BasePoolFactory
address: "0x891EC9B34829276a9a8ef2F8A9cEAF2486017e0d"
startBlock: 137934460
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.sepolia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: sepolia
source:
abi: BasePoolFactory
address: "0xf58A574530Ea5cEB727095e6039170c1e8068fcA"
startBlock: 8676768
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
23 changes: 23 additions & 0 deletions subgraphs/v3-pools/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,29 @@ dataSources:
- event: PoolCreated(indexed address)
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
- kind: ethereum
name: ReClammPoolV2Factory
network: mainnet
source:
abi: BasePoolFactory
address: "0xDaa273AeEc06e9CCb7428a77E2abb1E4659B16D2"
startBlock: 22832233
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
templates:
- kind: ethereum/contract
name: ReClammPool
Expand Down
25 changes: 25 additions & 0 deletions subgraphs/v3-pools/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,31 @@ dataSources:
handler: handleReClammPoolCreated
file: ./src/mappings/reclamm.ts
{{/if}}
{{#if ReClammPoolV2Factory}}
- kind: ethereum
name: ReClammPoolV2Factory
network: {{ network }}
source:
abi: BasePoolFactory
address: "{{ ReClammPoolV2Factory.address }}"
startBlock: {{ ReClammPoolV2Factory.startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Pool
abis:
- name: ReClammPool
file: ./abis/ReClammPool.json
- name: BasePoolFactory
file: ./abis/BasePoolFactory.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleReClammPoolV2Created
file: ./src/mappings/reclamm.ts
{{/if}}
{{#if ReClammPoolFactory}}
templates:
- kind: ethereum/contract
Expand Down