Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mapping errors and manifest #17

Open
wants to merge 3 commits into
base: fix-libs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/uniswapV2/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function createWeightedPool(
pool.gnoIsFirst = token0.equals(GNO_ADDRESS);
pool.totalSupply = ZERO_BI;
pool.gnoBalance = ZERO_BI;
pool.positions = [];
pool.save();
return pool;
}
1 change: 1 addition & 0 deletions src/uniswapV3/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function loadOrCreateConcentratedLiquidityPosition(
position.liquidity = ZERO_BI;
position.lowerTick = BigInt.fromI32(positionResult.value5);
position.upperTick = BigInt.fromI32(positionResult.value6);
position.gnoBalance = ZERO_BI;
position.save();

pair.positions = pair.positions.concat([tokenId.toString()]);
Expand Down
26 changes: 13 additions & 13 deletions subgraph-gnosis-chain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema:
dataSources:
- kind: ethereum
name: ds-gno
network: xdai
network: gnosis
source:
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb"
abi: ERC20
Expand All @@ -24,7 +24,7 @@ dataSources:
file: ./src/gno.ts
- kind: ethereum
name: ds-mgno
network: xdai
network: gnosis
source:
address: "0x722fc4DAABFEaff81b97894fC623f91814a1BF68"
abi: ERC20
Expand All @@ -44,7 +44,7 @@ dataSources:
file: ./src/mgno.ts
- kind: ethereum
name: ds-lgno
network: xdai
network: gnosis
source:
address: "0xd4Ca39f78Bf14BfaB75226AC833b1858dB16f9a1"
abi: ERC20
Expand All @@ -64,7 +64,7 @@ dataSources:
file: ./src/lgno.ts
- kind: ethereum
name: ds-deposit
network: xdai
network: gnosis
source:
address: "0x0B98057eA310F4d31F2a452B414647007d1645d9"
abi: SBCDepositContract
Expand All @@ -84,7 +84,7 @@ dataSources:
file: ./src/deposit.ts
- kind: ethereum
name: ds-sgno
network: xdai
network: gnosis
source:
address: "0xa4ef9da5ba71cc0d2e5e877a910a37ec43420445"
abi: ERC20
Expand All @@ -104,7 +104,7 @@ dataSources:
file: ./src/sgno.ts
- kind: ethereum/contract
name: ds-uniswap-v2-factory
network: xdai
network: gnosis
source:
# note this is actually the swapr factory, i.e., the biggest tvl uniswap-v2 clone on gnosis-chain
address: "0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179"
Expand All @@ -126,7 +126,7 @@ dataSources:
handler: handleNewPair
- kind: ethereum/contract
name: ds-honeyswap
network: xdai
network: gnosis
source:
address: "0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7"
abi: Factory
Expand All @@ -147,7 +147,7 @@ dataSources:
handler: handleNewPair
- kind: ethereum/contract
name: ds-sushi
network: xdai
network: gnosis
source:
address: "0xc35DADB65012eC5796536bD9864eD8773aBc74C4"
abi: Factory
Expand All @@ -168,7 +168,7 @@ dataSources:
handler: handleNewPair
- kind: ethereum/contract
name: ds-elk
network: xdai
network: gnosis
source:
address: "0xCB018587dA9590A18f49fFE2b85314c33aF3Ad3B"
abi: Factory
Expand All @@ -189,7 +189,7 @@ dataSources:
handler: handleNewPair
- kind: ethereum/contract
name: ds-baoswap
network: xdai
network: gnosis
source:
address: "0x45DE240fbE2077dd3e711299538A09854FAE9c9b"
abi: Factory
Expand All @@ -210,7 +210,7 @@ dataSources:
handler: handleNewPair
- kind: ethereum/contract
name: ds-balancer-v1-factory
network: xdai
network: gnosis
source:
# symmetric's factory address, a balancer-v1 clone
address: "0x9B4214FD41cD24347A25122AC7bb6B479BED72Ac"
Expand All @@ -235,7 +235,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: UniswapV2Pair
network: xdai
network: gnosis
source:
abi: Pair
mapping:
Expand All @@ -261,7 +261,7 @@ templates:
handler: handleSync
- kind: ethereum/contract
name: BalancerV1Pool
network: xdai
network: gnosis
source:
abi: Pool
mapping:
Expand Down