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

chore(deps): bump nanoid from 3.3.6 to 3.3.8 #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 6 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.


Unchanged files with check annotations Beta

import { getYAmountFromXAmount } from './helpers/RateHelper';
import { fromEntries } from './utils/utils';
import type { AMMRoute } from './utils/ammRouteResolver';
import { broadcastSponsoredTx, requiredStxAmountForSponsorTx, runSponsoredSpotTx } from './helpers/SponsorTxHelper';

Check failure on line 14 in src/alexSDK.ts

GitHub Actions / build

Replace `·broadcastSponsoredTx,·requiredStxAmountForSponsorTx,·runSponsoredSpotTx·` with `⏎··broadcastSponsoredTx,⏎··requiredStxAmountForSponsorTx,⏎··runSponsoredSpotTx,⏎`
/**
* The AlexSDK class provides methods for interacting with a decentralized exchange (DEX) system,
}
/**
* Get the amount of destination currency that will be received when swapping from one currency to another

Check failure on line 168 in src/alexSDK.ts

GitHub Actions / build

Delete `·`
* in the context of sponsor tx.
*
* @param {Currency} from - The currency to swap from.
to: Currency,
customRoute?: AMMRoute
): Promise<bigint> {
const route = customRoute ?? await this.getRoute(from, to)

Check failure on line 183 in src/alexSDK.ts

GitHub Actions / build

Replace `await·this.getRoute(from,·to)` with `(await·this.getRoute(from,·to));`
const stxAmount = await requiredStxAmountForSponsorTx(

Check failure on line 184 in src/alexSDK.ts

GitHub Actions / build

Replace `⏎······from,⏎······to,⏎······route⏎····)` with `from,·to,·route);`
from,
to,
route
Currency.STX,
stxAmount,
from
)

Check failure on line 193 in src/alexSDK.ts

GitHub Actions / build

Insert `;`
return getYAmountFromXAmount(
from,
to,
minDy: bigint,
customRoute?: AMMRoute
): Promise<TxToBroadCast> {
const route = customRoute ?? await this.getRoute(currencyX, currencyY)

Check failure on line 255 in src/alexSDK.ts

GitHub Actions / build

Replace `await·this.getRoute(currencyX,·currencyY)` with `(await·this.getRoute(currencyX,·currencyY));`
const stxAmount = await requiredStxAmountForSponsorTx(
currencyX,
currencyY,
route
)

Check failure on line 260 in src/alexSDK.ts

GitHub Actions / build

Insert `;`
const sponsorFeeAmount = await this.getAmountTo(
Currency.STX,
stxAmount,
currencyX
)

Check failure on line 265 in src/alexSDK.ts

GitHub Actions / build

Insert `;`
return runSponsoredSpotTx(
stxAddress,
currencyX,
* @returns {Promise<string>} - A promise that resolves to the transaction ID.
*/
async broadcastSponsoredTx(tx: string): Promise<string> {
return broadcastSponsoredTx(tx)

Check failure on line 286 in src/alexSDK.ts

GitHub Actions / build

Insert `;`
}
/**
import { FungibleConditionCode } from "@stacks/transactions"

Check failure on line 1 in src/helpers/SponsorTxHelper.ts

GitHub Actions / build

Replace `"@stacks/transactions"` with `'@stacks/transactions';`
import { configs } from "../config"
import type { Currency } from "../currency"
import type { PoolData, TokenInfo } from "../types"