feat: fetchTokenInfo() support wrap token address #51
Annotations
10 errors and 4 warnings
build:
src/helpers/SponsorTxHelper.ts#L14
Replace `·Promise<{·status:·'ok'·|·string,·perRouteFee:·bigint·}>` with `⏎··|·Promise<{·status:·'ok'·|·string;·perRouteFee:·bigint·}>⏎·`
|
build:
src/helpers/SponsorTxHelper.ts#L16
Replace `·status:·'ok'·|·string,·perRouteFee:·bigint·` with `⏎··status:·'ok'·|·string;⏎··perRouteFee:·bigint;⏎`
|
build:
src/helpers/SponsorTxHelper.ts#L21
Replace `.then(res·=>·res.json()).then(data·=>·({·status:·data.status,·perRouteFee:·BigInt(data.per_route_fee)` with `⏎······.then((res)·=>·res.json())⏎······.then((data)·=>·({⏎········status:·data.status,⏎········perRouteFee:·BigInt(data.per_route_fee),⏎·····`
|
build:
src/helpers/SponsorTxHelper.ts#L32
Replace `data·=>·data.perRouteFee·*·BigInt(1e8)·/·BigInt(1e6)` with `⏎····(data)·=>·(data.perRouteFee·*·BigInt(1e8))·/·BigInt(1e6)⏎··`
|
build:
src/types.ts#L2
Replace `"./utils/arrayHelper"` with `'./utils/arrayHelper'`
|
build:
src/utils/ammRouteResolver.ts#L16
Insert `⏎·······`
|
build:
src/utils/ammRouteResolver.ts#L17
Insert `⏎·······`
|
build:
src/utils/ammRouteResolver.ts#L74
Replace `currentPath.some((route)·=>·route.from·===·segment.neighbour·||·route.neighbour·===·segment.neighbour)` with `⏎········currentPath.some(⏎··········(route)·=>⏎············route.from·===·segment.neighbour·||⏎············route.neighbour·===·segment.neighbour⏎········)⏎······`
|
build:
src/utils/fetchData.ts#L21
Insert `⏎····`
|
build:
src/utils/fetchData.ts#L22
Insert `··`
|
build:
src/helpers/SwapHelper.ts#L4
'FungiblePostCondition' is defined but never used
|
build:
src/helpers/SwapHelper.ts#L6
'StxPostCondition' is defined but never used
|
build:
src/utils/postConditions.ts#L6
'FungiblePostCondition' is defined but never used
|
build:
src/utils/postConditions.ts#L8
'StxPostCondition' is defined but never used
|