You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
mints.pop();
~~~~~
in mappings/core.ts(140,7)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
burns[burns.length - 1] = burn.id;
~~~~~
in mappings/core.ts(149,7)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
burns[burns.length - 1] = burn.id;
~~~~~
in mappings/core.ts(149,13)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
burns.push(burn.id);
~~~~~
in mappings/core.ts(155,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(166,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(167,27)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
~~~~~~~
in mappings/core.ts(171,31)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
~~~~
in mappings/core.ts(171,63)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
in mappings/core.ts(171,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalLiquidity = token0.totalLiquidity.minus(pair.reserve0);
~~~~~~
in mappings/core.ts(174,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
token0.totalLiquidity = token0.totalLiquidity.minus(pair.reserve0);
~~~~
in mappings/core.ts(174,55)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalLiquidity = token0.totalLiquidity.minus(pair.reserve0);
~~~~~~
in mappings/core.ts(174,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalLiquidity = token1.totalLiquidity.minus(pair.reserve1);
~~~~~~
in mappings/core.ts(175,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
token1.totalLiquidity = token1.totalLiquidity.minus(pair.reserve1);
~~~~
in mappings/core.ts(175,55)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalLiquidity = token1.totalLiquidity.minus(pair.reserve1);
~~~~~~
in mappings/core.ts(175,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
pair.reserve0 = convertTokenToDecimal(event.params.reserve0, token0.decimals);
~~~~~~
in mappings/core.ts(177,64)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserve0 = convertTokenToDecimal(event.params.reserve0, token0.decimals);
~~~~
in mappings/core.ts(177,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
pair.reserve1 = convertTokenToDecimal(event.params.reserve1, token1.decimals);
~~~~~~
in mappings/core.ts(178,64)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserve1 = convertTokenToDecimal(event.params.reserve1, token1.decimals);
~~~~
in mappings/core.ts(178,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve1.notEqual(ZERO_BD)) pair.token0Price = pair.reserve0.div(pair.reserve1);
~~~~
in mappings/core.ts(180,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve1.notEqual(ZERO_BD)) pair.token0Price = pair.reserve0.div(pair.reserve1);
~~~~
in mappings/core.ts(180,59)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve1.notEqual(ZERO_BD)) pair.token0Price = pair.reserve0.div(pair.reserve1);
~~~~
in mappings/core.ts(180,77)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve1.notEqual(ZERO_BD)) pair.token0Price = pair.reserve0.div(pair.reserve1);
~~~~
in mappings/core.ts(180,40)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
else pair.token0Price = ZERO_BD;
~~~~
in mappings/core.ts(181,8)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve0.notEqual(ZERO_BD)) pair.token1Price = pair.reserve1.div(pair.reserve0);
~~~~
in mappings/core.ts(182,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve0.notEqual(ZERO_BD)) pair.token1Price = pair.reserve1.div(pair.reserve0);
~~~~
in mappings/core.ts(182,59)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve0.notEqual(ZERO_BD)) pair.token1Price = pair.reserve1.div(pair.reserve0);
~~~~
in mappings/core.ts(182,77)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.reserve0.notEqual(ZERO_BD)) pair.token1Price = pair.reserve1.div(pair.reserve0);
~~~~
in mappings/core.ts(182,40)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
else pair.token1Price = ZERO_BD;
~~~~
in mappings/core.ts(183,8)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
bundle.bnbPrice = getBnbPriceInUSD();
~~~~~~
in mappings/core.ts(186,3)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
bundle.save();
~~~~~~
in mappings/core.ts(187,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.token0 == token.id && pair.reserveBNB.gt(MINIMUM_LIQUIDITY_THRESHOLD_BNB)) {
~~~~
in mappings/pricing.ts(60,11)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.token0 == token.id && pair.reserveBNB.gt(MINIMUM_LIQUIDITY_THRESHOLD_BNB)) {
~~~~
in mappings/pricing.ts(60,38)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/pricing.ts(61,33)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
return pair.token1Price.times(token1.derivedBNB as BigDecimal); // return token1 per our token * BNB per token 1
~~~~
in mappings/pricing.ts(62,16)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
return pair.token1Price.times(token1.derivedBNB as BigDecimal); // return token1 per our token * BNB per token 1
~~~~~~
in mappings/pricing.ts(62,39)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.token1 == token.id && pair.reserveBNB.gt(MINIMUM_LIQUIDITY_THRESHOLD_BNB)) {
~~~~
in mappings/pricing.ts(64,11)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (pair.token1 == token.id && pair.reserveBNB.gt(MINIMUM_LIQUIDITY_THRESHOLD_BNB)) {
~~~~
in mappings/pricing.ts(64,38)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/pricing.ts(65,33)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
return pair.token0Price.times(token0.derivedBNB as BigDecimal); // return token0 per our token * BNB per token 0
~~~~
in mappings/pricing.ts(66,16)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
return pair.token0Price.times(token0.derivedBNB as BigDecimal); // return token0 per our token * BNB per token 0
~~~~~~
in mappings/pricing.ts(66,39)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.derivedBNB = t0DerivedBNB;
~~~~~~
in mappings/core.ts(190,3)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
token0.derivedUSD = t0DerivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(191,42)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.derivedUSD = t0DerivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(191,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
~~~~~~
in mappings/core.ts(192,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.derivedBNB = t1DerivedBNB;
~~~~~~
in mappings/core.ts(195,3)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
token1.derivedUSD = t1DerivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(196,42)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.derivedUSD = t1DerivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(196,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.save();
~~~~~~
in mappings/core.ts(197,3)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
if (bundle.bnbPrice.notEqual(ZERO_BD)) {
~~~~~~
in mappings/core.ts(201,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserve0,
~~~~
in mappings/core.ts(204,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserve1,
~~~~
in mappings/core.ts(206,7)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let price0 = token0.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~~
in mappings/pricing.ts(121,16)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let price1 = token1.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~~
in mappings/pricing.ts(122,16)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
).div(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(208,11)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.trackedReserveBNB = trackedLiquidityBNB;
~~~~
in mappings/core.ts(214,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserveBNB = pair.reserve0
~~~~
in mappings/core.ts(215,21)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
.times(token0.derivedBNB as BigDecimal)
~~~~~~
in mappings/core.ts(216,12)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
.plus(pair.reserve1.times(token1.derivedBNB as BigDecimal));
~~~~
in mappings/core.ts(217,11)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
.plus(pair.reserve1.times(token1.derivedBNB as BigDecimal));
~~~~~~
in mappings/core.ts(217,31)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserveBNB = pair.reserve0
~~~~
in mappings/core.ts(215,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserveUSD = pair.reserveBNB.times(bundle.bnbPrice);
~~~~
in mappings/core.ts(218,21)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
pair.reserveUSD = pair.reserveBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(218,43)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.reserveUSD = pair.reserveBNB.times(bundle.bnbPrice);
~~~~
in mappings/core.ts(218,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.plus(trackedLiquidityBNB);
~~~~~~~
in mappings/core.ts(221,31)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.plus(trackedLiquidityBNB);
in mappings/core.ts(221,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityUSD = pancake.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~~
in mappings/core.ts(222,31)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
pancake.totalLiquidityUSD = pancake.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(222,63)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
in mappings/core.ts(222,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalLiquidity = token0.totalLiquidity.plus(pair.reserve0);
~~~~~~
in mappings/core.ts(225,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
token0.totalLiquidity = token0.totalLiquidity.plus(pair.reserve0);
~~~~
in mappings/core.ts(225,54)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalLiquidity = token0.totalLiquidity.plus(pair.reserve0);
~~~~~~
in mappings/core.ts(225,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalLiquidity = token1.totalLiquidity.plus(pair.reserve1);
~~~~~~
in mappings/core.ts(226,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
token1.totalLiquidity = token1.totalLiquidity.plus(pair.reserve1);
~~~~
in mappings/core.ts(226,54)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalLiquidity = token1.totalLiquidity.plus(pair.reserve1);
~~~~~~
in mappings/core.ts(226,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
~~~~
in mappings/core.ts(229,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.save();
in mappings/core.ts(230,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
in mappings/core.ts(231,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.save();
in mappings/core.ts(232,3)
ERROR TS2322: Type 'generated/schema/Transaction | null' is not assignable to type 'generated/schema/Transaction'.
let mints = transaction.mints;
~~~~~~~~~~~
in mappings/core.ts(237,15)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let mint = MintEvent.load(mints[mints.length - 1]);
~~~~~
in mappings/core.ts(238,29)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let mint = MintEvent.load(mints[mints.length - 1]);
~~~~~
in mappings/core.ts(238,35)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(243,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(244,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token0Amount = convertTokenToDecimal(event.params.amount0, token0.decimals);
~~~~~~
in mappings/core.ts(247,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token1Amount = convertTokenToDecimal(event.params.amount1, token1.decimals);
~~~~~~
in mappings/core.ts(248,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(251,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(251,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(252,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
in mappings/core.ts(252,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amountTotalUSD = token1.derivedBNB
~~~~~~
in mappings/core.ts(256,24)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let amountTotalUSD = token1.derivedBNB
~~~~~~~~~~~~~~~~~
in mappings/core.ts(256,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
in mappings/core.ts(262,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
~~~~~~~
in mappings/core.ts(263,31)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
in mappings/core.ts(263,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
in mappings/core.ts(266,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.save();
in mappings/core.ts(267,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
in mappings/core.ts(268,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.save();
in mappings/core.ts(269,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.sender = event.params.sender;
in mappings/core.ts(271,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.amount0 = token0Amount as BigDecimal;
in mappings/core.ts(272,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.amount1 = token1Amount as BigDecimal;
in mappings/core.ts(273,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.logIndex = event.logIndex;
in mappings/core.ts(274,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.amountUSD = amountTotalUSD as BigDecimal;
in mappings/core.ts(275,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.save();
in mappings/core.ts(276,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.token0 = pair.token0;
~~~~
in mappings/dayUpdates.ts(41,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.token1 = pair.token1;
~~~~
in mappings/dayUpdates.ts(42,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.totalSupply = pair.totalSupply;
~~~~
in mappings/dayUpdates.ts(49,29)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserve0 = pair.reserve0;
~~~~
in mappings/dayUpdates.ts(50,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserve1 = pair.reserve1;
~~~~
in mappings/dayUpdates.ts(51,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserveUSD = pair.reserveUSD;
~~~~
in mappings/dayUpdates.ts(52,28)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.totalSupply = pair.totalSupply;
~~~~
in mappings/dayUpdates.ts(75,30)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserve0 = pair.reserve0;
~~~~
in mappings/dayUpdates.ts(76,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserve1 = pair.reserve1;
~~~~
in mappings/dayUpdates.ts(77,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserveUSD = pair.reserveUSD;
~~~~
in mappings/dayUpdates.ts(78,29)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalLiquidityUSD = pancake.totalLiquidityUSD;
~~~~~~~
in mappings/dayUpdates.ts(23,38)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalLiquidityBNB = pancake.totalLiquidityBNB;
~~~~~~~
in mappings/dayUpdates.ts(24,38)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalTransactions = pancake.totalTransactions;
~~~~~~~
in mappings/dayUpdates.ts(25,38)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
tokenDayData.priceUSD = token.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~
in mappings/dayUpdates.ts(104,27)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
tokenDayData.priceUSD = token.derivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/dayUpdates.ts(104,50)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
tokenDayData.totalLiquidityUSD = tokenDayData.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/dayUpdates.ts(107,73)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let burn = BurnEvent.load(burns[burns.length - 1]);
~~~~~
in mappings/core.ts(292,29)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let burn = BurnEvent.load(burns[burns.length - 1]);
~~~~~
in mappings/core.ts(292,35)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(298,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(299,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token0Amount = convertTokenToDecimal(event.params.amount0, token0.decimals);
~~~~~~
in mappings/core.ts(300,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token1Amount = convertTokenToDecimal(event.params.amount1, token1.decimals);
~~~~~~
in mappings/core.ts(301,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(304,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(304,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(305,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
in mappings/core.ts(305,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amountTotalUSD = token1.derivedBNB
~~~~~~
in mappings/core.ts(309,24)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let amountTotalUSD = token1.derivedBNB
~~~~~~~~~~~~~~~~~
in mappings/core.ts(309,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
in mappings/core.ts(315,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
~~~~
in mappings/core.ts(316,28)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
~~~~
in mappings/core.ts(316,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
~~~~~~
in mappings/core.ts(319,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.save();
~~~~~~
in mappings/core.ts(320,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
~~~~
in mappings/core.ts(321,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.save();
in mappings/core.ts(322,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.amount0 = token0Amount as BigDecimal;
in mappings/core.ts(326,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.amount1 = token1Amount as BigDecimal;
in mappings/core.ts(327,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.logIndex = event.logIndex;
in mappings/core.ts(329,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.amountUSD = amountTotalUSD as BigDecimal;
in mappings/core.ts(330,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.save();
in mappings/core.ts(331,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(342,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(343,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amount0In = convertTokenToDecimal(event.params.amount0In, token0.decimals);
~~~~~~
in mappings/core.ts(344,65)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amount1In = convertTokenToDecimal(event.params.amount1In, token1.decimals);
~~~~~~
in mappings/core.ts(345,65)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amount0Out = convertTokenToDecimal(event.params.amount0Out, token0.decimals);
~~~~~~
in mappings/core.ts(346,67)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amount1Out = convertTokenToDecimal(event.params.amount1Out, token1.decimals);
~~~~~~
in mappings/core.ts(347,67)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let derivedAmountBNB = token1.derivedBNB
~~~~~~
in mappings/core.ts(357,26)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let derivedAmountBNB = token1.derivedBNB
~~~~~~~~~~~~~~~~~
in mappings/core.ts(357,26)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
.plus(token0.derivedBNB.times(amount0Total))
~~~~~~
in mappings/core.ts(359,11)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
.plus(token0.derivedBNB.times(amount0Total))
~~~~~~~~~~~~~~~~~
in mappings/core.ts(359,11)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
let derivedAmountUSD = derivedAmountBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(361,49)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let price0 = token0.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~~
in mappings/pricing.ts(86,16)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let price1 = token1.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~~
in mappings/pricing.ts(87,16)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
if (bundle.bnbPrice.equals(ZERO_BD)) {
~~~~~~
in mappings/core.ts(373,7)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
trackedAmountBNB = trackedAmountUSD.div(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(376,45)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.tradeVolume = token0.tradeVolume.plus(amount0In.plus(amount0Out));
~~~~~~
in mappings/core.ts(380,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.tradeVolume = token0.tradeVolume.plus(amount0In.plus(amount0Out));
in mappings/core.ts(380,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.tradeVolumeUSD = token0.tradeVolumeUSD.plus(trackedAmountUSD);
~~~~~~
in mappings/core.ts(381,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(381,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.untrackedVolumeUSD = token0.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~~~
in mappings/core.ts(382,31)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.untrackedVolumeUSD = token0.untrackedVolumeUSD.plus(derivedAmountUSD);
in mappings/core.ts(382,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.tradeVolume = token1.tradeVolume.plus(amount1In.plus(amount1Out));
~~~~~~
in mappings/core.ts(385,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(385,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.tradeVolumeUSD = token1.tradeVolumeUSD.plus(trackedAmountUSD);
~~~~~~
in mappings/core.ts(386,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.tradeVolumeUSD = token1.tradeVolumeUSD.plus(trackedAmountUSD);
in mappings/core.ts(386,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.untrackedVolumeUSD = token1.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~~~
in mappings/core.ts(387,31)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(387,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(390,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
in mappings/core.ts(390,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(391,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(391,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeUSD = pair.volumeUSD.plus(trackedAmountUSD);
~~~~
in mappings/core.ts(394,20)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeUSD = pair.volumeUSD.plus(trackedAmountUSD);
~~~~
in mappings/core.ts(394,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeToken0 = pair.volumeToken0.plus(amount0Total);
~~~~
in mappings/core.ts(395,23)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeToken0 = pair.volumeToken0.plus(amount0Total);
~~~~
in mappings/core.ts(395,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeToken1 = pair.volumeToken1.plus(amount1Total);
~~~~
in mappings/core.ts(396,23)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.volumeToken1 = pair.volumeToken1.plus(amount1Total);
~~~~
in mappings/core.ts(396,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.untrackedVolumeUSD = pair.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~
in mappings/core.ts(397,29)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.untrackedVolumeUSD = pair.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~
in mappings/core.ts(397,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
~~~~
in mappings/core.ts(398,28)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
~~~~
in mappings/core.ts(398,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
~~~~
in mappings/core.ts(399,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalVolumeUSD = pancake.totalVolumeUSD.plus(trackedAmountUSD);
~~~~~~~
in mappings/core.ts(403,28)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalVolumeUSD = pancake.totalVolumeUSD.plus(trackedAmountUSD);
in mappings/core.ts(403,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalVolumeBNB = pancake.totalVolumeBNB.plus(trackedAmountBNB);
~~~~~~~
in mappings/core.ts(404,28)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
in mappings/core.ts(404,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.untrackedVolumeUSD = pancake.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~~~~
in mappings/core.ts(405,32)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.untrackedVolumeUSD = pancake.untrackedVolumeUSD.plus(derivedAmountUSD);
in mappings/core.ts(405,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
~~~~~~~
in mappings/core.ts(406,31)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
in mappings/core.ts(406,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
~~~~
in mappings/core.ts(409,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
~~~~~~
in mappings/core.ts(410,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.save();
~~~~~~
in mappings/core.ts(411,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.save();
in mappings/core.ts(412,3)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let swap = new SwapEvent(event.transaction.hash.toHex().concat("-").concat(BigInt.fromI32(swaps.length).toString()));
~~~~~
in mappings/core.ts(424,93)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
swap.pair = pair.id;
~~~~
in mappings/core.ts(428,15)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
swaps.push(swap.id);
in mappings/core.ts(447,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0DayData.dailyVolumeBNB = token0DayData.dailyVolumeBNB.plus(amount0Total.times(token0.derivedBNB as BigDecimal));
~~~~~~
in mappings/core.ts(478,87)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
amount0Total.times(token0.derivedBNB as BigDecimal).times(bundle.bnbPrice)
~~~~~~
in mappings/core.ts(480,24)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
amount0Total.times(token0.derivedBNB as BigDecimal).times(bundle.bnbPrice)
~~~~~~
in mappings/core.ts(480,63)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1DayData.dailyVolumeBNB = token1DayData.dailyVolumeBNB.plus(amount1Total.times(token1.derivedBNB as BigDecimal));
~~~~~~
in mappings/core.ts(486,87)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
amount1Total.times(token1.derivedBNB as BigDecimal).times(bundle.bnbPrice)
~~~~~~
in mappings/core.ts(488,24)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
amount1Total.times(token1.derivedBNB as BigDecimal).times(bundle.bnbPrice)
~~~~~~
in mappings/core.ts(488,63)
× Failed to compile subgraph: Failed to compile data source template: 253 compile error(s)
Error: Failed to compile data source template: 253 compile error(s)
at Compiler._compileTemplateMapping (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\src\compiler\index.js:374:13)
at C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\src\compiler\index.js:231:24
at updateInDeepMap (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:1971:22)
at updateInDeepMap (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:1980:23)
at updateInDeepMap (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:1980:23)
at Map.updateIn (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:1278:26)
at C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\src\compiler\index.js:230:26
at C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:3016:46
at List.__iterate (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:2206:13)
at IndexedIterable.mappedSequence.__iterateUncached (C:\Users\US\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\immutable\dist\immutable.js:3015:23)
UNCAUGHT EXCEPTION: Error: The AssemblyScript compiler crashed when compiling this file: 'mappings\core.ts'
Suggestion: try to comment the whole file and uncomment it little by little while re-running the graph-cli until you isolate the line where the problem happens.
Also, please contact us so we can make the CLI better by handling errors like this. You can reach out in any of these links:
- Discord channel: https://discord.gg/eM8CA6WA9r
- Github issues: https://github.com/graphprotocol/graph-cli/issues
The text was updated successfully, but these errors were encountered:
Environment (Windows 10)
Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
Apply migrations
Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2
Apply migrations
√ Apply migrations
Load subgraph from subgraph.yaml
√ Load subgraph from subgraph.yaml
Compile subgraph
Compile data source: Factory => build\Factory\Factory.wasm
Compile subgraph
WARNING AS226: Expression resolves to unusual type 'usize'.
let decimalValue = null;
~~~~
in mappings/utils/index.ts(78,22)
Compile data source template: Pair => build\templates\Pair\Pair.wasm
Compile subgraph
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalSupply = pair.totalSupply.plus(value);
~~~~
in mappings/core.ts(49,24)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(49,5)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(50,5)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(53,9)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(53,46)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(53,52)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
return MintEvent.load(mintId).sender !== null; // sufficient checks
~~~~~~~~~~~~~~~~~~~~~~
in mappings/core.ts(19,10)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(55,74)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(58,19)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(66,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (event.params.to.toHex() == pair.id) {
~~~~
in mappings/core.ts(74,34)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(77,72)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(80,17)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(91,5)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
if (event.params.to.toHex() == ADDRESS_ZERO && event.params.from.toHex() == pair.id) {
~~~~
in mappings/core.ts(97,79)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(98,24)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(98,5)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(99,5)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(104,9)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(105,40)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(105,46)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
in mappings/core.ts(106,11)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(110,76)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(114,21)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(120,93)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/core.ts(123,19)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(130,9)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(130,47)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(130,53)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(131,33)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(131,39)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
in mappings/core.ts(132,20)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
in mappings/core.ts(133,27)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(135,28)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(135,34)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(140,7)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(149,7)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(149,13)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
in mappings/core.ts(155,7)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(166,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(167,27)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
~~~~~~~
in mappings/core.ts(171,31)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
~~~~
in mappings/core.ts(171,63)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityBNB = pancake.totalLiquidityBNB.minus(pair.trackedReserveBNB as BigDecimal);
in mappings/core.ts(221,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityUSD = pancake.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~~
in mappings/core.ts(222,31)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
pancake.totalLiquidityUSD = pancake.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/core.ts(222,63)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalLiquidityUSD = pancake.totalLiquidityBNB.times(bundle.bnbPrice);
in mappings/core.ts(230,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
in mappings/core.ts(232,3)
ERROR TS2322: Type 'generated/schema/Transaction | null' is not assignable to type 'generated/schema/Transaction'.
let mints = transaction.mints;
~~~~~~~~~~~
in mappings/core.ts(237,15)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let mint = MintEvent.load(mints[mints.length - 1]);
~~~~~
in mappings/core.ts(238,29)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let mint = MintEvent.load(mints[mints.length - 1]);
~~~~~
in mappings/core.ts(238,35)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(243,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(244,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token0Amount = convertTokenToDecimal(event.params.amount0, token0.decimals);
~~~~~~
in mappings/core.ts(247,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token1Amount = convertTokenToDecimal(event.params.amount1, token1.decimals);
~~~~~~
in mappings/core.ts(248,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(251,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
in mappings/core.ts(252,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amountTotalUSD = token1.derivedBNB
~~~~~~
in mappings/core.ts(256,24)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let amountTotalUSD = token1.derivedBNB
~~~~~~~~~~~~~~~~~
in mappings/core.ts(256,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(258,11)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
in mappings/core.ts(258,11)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
in mappings/core.ts(259,12)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
~~~~
in mappings/core.ts(262,28)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.totalTransactions = pair.totalTransactions.plus(ONE_BI);
in mappings/core.ts(263,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.save();
in mappings/core.ts(267,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pair.save();
in mappings/core.ts(269,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.sender = event.params.sender;
in mappings/core.ts(272,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.amount1 = token1Amount as BigDecimal;
in mappings/core.ts(274,3)
ERROR TS2322: Type 'generated/schema/Mint | null' is not assignable to type 'generated/schema/Mint'.
mint.amountUSD = amountTotalUSD as BigDecimal;
in mappings/core.ts(276,3)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/dayUpdates.ts(41,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
in mappings/dayUpdates.ts(42,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.totalSupply = pair.totalSupply;
~~~~
in mappings/dayUpdates.ts(49,29)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserve0 = pair.reserve0;
~~~~
in mappings/dayUpdates.ts(50,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserve1 = pair.reserve1;
~~~~
in mappings/dayUpdates.ts(51,26)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairDayData.reserveUSD = pair.reserveUSD;
~~~~
in mappings/dayUpdates.ts(52,28)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.totalSupply = pair.totalSupply;
~~~~
in mappings/dayUpdates.ts(75,30)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserve0 = pair.reserve0;
~~~~
in mappings/dayUpdates.ts(76,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserve1 = pair.reserve1;
~~~~
in mappings/dayUpdates.ts(77,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
pairHourData.reserveUSD = pair.reserveUSD;
~~~~
in mappings/dayUpdates.ts(78,29)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalLiquidityUSD = pancake.totalLiquidityUSD;
~~~~~~~
in mappings/dayUpdates.ts(23,38)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalLiquidityBNB = pancake.totalLiquidityBNB;
~~~~~~~
in mappings/dayUpdates.ts(24,38)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancakeDayData.totalTransactions = pancake.totalTransactions;
~~~~~~~
in mappings/dayUpdates.ts(25,38)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
in mappings/dayUpdates.ts(97,29)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
in mappings/dayUpdates.ts(97,52)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
tokenDayData.priceUSD = token.derivedBNB.times(bundle.bnbPrice);
~~~~~~~~~~~~~~~~
in mappings/dayUpdates.ts(104,27)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
tokenDayData.priceUSD = token.derivedBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/dayUpdates.ts(104,50)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
tokenDayData.totalLiquidityUSD = tokenDayData.totalLiquidityBNB.times(bundle.bnbPrice);
~~~~~~
in mappings/dayUpdates.ts(107,73)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let burn = BurnEvent.load(burns[burns.length - 1]);
~~~~~
in mappings/core.ts(292,29)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let burn = BurnEvent.load(burns[burns.length - 1]);
~~~~~
in mappings/core.ts(292,35)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token0 = Token.load(pair.token0);
~~~~
in mappings/core.ts(298,27)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
let token1 = Token.load(pair.token1);
~~~~
in mappings/core.ts(299,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token0Amount = convertTokenToDecimal(event.params.amount0, token0.decimals);
~~~~~~
in mappings/core.ts(300,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let token1Amount = convertTokenToDecimal(event.params.amount1, token1.decimals);
~~~~~~
in mappings/core.ts(301,66)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(304,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.totalTransactions = token0.totalTransactions.plus(ONE_BI);
in mappings/core.ts(305,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
let amountTotalUSD = token1.derivedBNB
~~~~~~
in mappings/core.ts(309,24)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
let amountTotalUSD = token1.derivedBNB
~~~~~~~~~~~~~~~~~
in mappings/core.ts(309,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
in mappings/core.ts(311,11)
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal'.
in mappings/core.ts(311,11)
ERROR TS2322: Type 'generated/schema/Bundle | null' is not assignable to type 'generated/schema/Bundle'.
in mappings/core.ts(312,12)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
~~~~~~~
in mappings/core.ts(315,31)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
in mappings/core.ts(322,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.amount0 = token0Amount as BigDecimal;
in mappings/core.ts(327,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.logIndex = event.logIndex;
in mappings/core.ts(330,3)
ERROR TS2322: Type 'generated/schema/Burn | null' is not assignable to type 'generated/schema/Burn'.
burn.save();
in mappings/core.ts(380,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.tradeVolumeUSD = token0.tradeVolumeUSD.plus(trackedAmountUSD);
~~~~~~
in mappings/core.ts(381,27)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token0.tradeVolumeUSD = token0.tradeVolumeUSD.plus(trackedAmountUSD);
in mappings/core.ts(382,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.tradeVolume = token1.tradeVolume.plus(amount1In.plus(amount1Out));
~~~~~~
in mappings/core.ts(385,24)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.tradeVolume = token1.tradeVolume.plus(amount1In.plus(amount1Out));
in mappings/core.ts(386,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.untrackedVolumeUSD = token1.untrackedVolumeUSD.plus(derivedAmountUSD);
~~~~~~
in mappings/core.ts(387,31)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.untrackedVolumeUSD = token1.untrackedVolumeUSD.plus(derivedAmountUSD);
in mappings/core.ts(390,3)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
~~~~~~
in mappings/core.ts(391,30)
ERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.
token1.totalTransactions = token1.totalTransactions.plus(ONE_BI);
in mappings/core.ts(403,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalVolumeBNB = pancake.totalVolumeBNB.plus(trackedAmountBNB);
~~~~~~~
in mappings/core.ts(404,28)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalVolumeBNB = pancake.totalVolumeBNB.plus(trackedAmountBNB);
in mappings/core.ts(405,3)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
~~~~~~~
in mappings/core.ts(406,31)
ERROR TS2322: Type 'generated/schema/PancakeFactory | null' is not assignable to type 'generated/schema/PancakeFactory'.
pancake.totalTransactions = pancake.totalTransactions.plus(ONE_BI);
in mappings/core.ts(412,3)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
let swap = new SwapEvent(event.transaction.hash.toHex().concat("-").concat(BigInt.fromI32(swaps.length).toString()));
~~~~~
in mappings/core.ts(424,93)
ERROR TS2322: Type 'generated/schema/Pair | null' is not assignable to type 'generated/schema/Pair'.
swap.pair = pair.id;
~~~~
in mappings/core.ts(428,15)
ERROR TS2322: Type '~lib/array/Array<~lib/string/String> | null' is not assignable to type '~lib/array/Array<~lib/string/String>'.
swaps.push(swap.id);
The text was updated successfully, but these errors were encountered: