-
Notifications
You must be signed in to change notification settings - Fork 29
[NO MERGE] Substance labs feat/near intents 2 #654
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
Conversation
…rIntentsApi and NearIntentsBridgeProvider
…he corresponding test
…ridgeProvider.import within test
…LimitEstimationForHook and getSignedHook
…AIN_TO_NATIVE_WRAPPED_TOKEN_ADDRESS to support wrapped assets, changes an import and rm the sending of native tokens within getUnsignedBridgeCall
…tus and adds const/index.tsx
…ithin getSignedHook and implements getBridgingParams
…hin COW_TRADE_EVENT_INTERFACE
…ment and a remove a useless check within getBridgingParams
…thin getBridgingParams
…ithin getSignedHook, fixes getTokenByAddressAndChainId and getIntermediateTokens
…ridgeCallWithoutHooks within NearIntentsBridgeProvider
…ithin NearIntentsBridgeProvider
…m getUnsignedBridgeCall in favour of the balance of the sell token within the cowshed account at the swap time
…within NearIntentsBridgeProvider
…irect transfer to near deposit address within NearIntentsBridgeProvider
…ype to getTokenByAddressAndChainId
…arIntentsBridgeProvider
…col/one-click-sdk-typescript within dependencies
…TS_BLOCKCHAIN_TO_NATIVE_WRAPPED_TOKEN_ADDRESS into WRAPPED_NATIVE_CURRENCIES
* fix: flashloan fee calculation now matches aave's * fix: pr comments * fix: implement ceil rounding for flash loan fee calculations (#623) - Fixed calculateFlashLoanAmounts to use ceil rounding (round up on any remainder) - This ensures flash loan fees are never undercharged due to truncation - Removed incorrect 100x scaling that was using BASIS_POINTS_SCALE - Now using Aave's PERCENT_SCALE (10000) directly where 100% = 10000 bps - Added 7 comprehensive unit tests covering edge cases: - Very small amounts (1 wei) - Exact division with no remainder - Small remainders - Medium DeFi amounts (ETH scale) - Large amounts (100+ ETH) - Maximum uint256-like amounts - Fractional percentages with remainders - All 99 tests passing * add opt-out flag for quote adjustments in getOrderToSign (#624) * feat: add opt-out flag for quote adjustments in getOrderToSign * override order to sign from params (#626) * use applyQuote boolean instead of overriding orderToSign (#628) * fix: pr review --------- Co-authored-by: Martin Grabina <[email protected]> * fix: lint * fix: more pipeline fixes --------- Co-authored-by: Martin Grabina <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…bstance-labs-feat/near-intents # Conflicts: # .release-please-manifest.json # packages/flash-loans/CHANGELOG.md # packages/flash-loans/package.json
…ents-fixes fix: fix bridging providerId detection
…ents-fixes feat(bridging): use multiple providers for tokens and networks
…/cow-sdk into substance-labs-feat/near-intents
…bstance-labs-feat/near-intents-1
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 GitHub Packages PublishedLast updated: Nov 6, 2025, 02:21:52 PM UTC The following packages have been published to GitHub Packages with pre-release version
InstallationThese packages require authentication to install from GitHub Packages. First, create a # Create .npmrc file in your project root
echo "@cowprotocol:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> .npmrcTo get your GitHub token:
Then install any of the packages above, either by exact version (i.e. # Yarn
yarn add npm:@cowprotocol/cow-sdk@pr-654
# pnpm
pnpm install npm:@cowprotocol/cow-sdk@pr-654
# NPM
npm install npm:@cowprotocol/cow-sdk@pr-654Update to the latest version (only if you used the tag)Every commit will publish a new package. To upgrade to the latest version, run: # Yarn
yarn upgrade @cowprotocol/cow-sdk
# pnpm
pnpm update @cowprotocol/cow-sdk
# NPM
npm update @cowprotocol/cow-sdkView PackagesYou can view the published packages at: https://github.com/cowprotocol/cow-sdk/packages |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…bstance-labs-feat/near-intents-2 # Conflicts: # packages/contracts-ts/src/generated/packageVersion.ts
No description provided.