New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rainbow-swap-sdk

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainbow-swap-sdk - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

2

dist/utils/rainbow-wallet.utils.d.ts
import { CalculatedSwapRoute } from '../types/calculated-swap-route.type';
export declare const getIsRainbowWalletActive: (ownerAddress: string) => Promise<boolean>;
export declare const getIsActivationRequired: (senderAddress: string, bestRoute: CalculatedSwapRoute[]) => Promise<boolean>;
export declare const getIsActivationRequired: (bestRoute: CalculatedSwapRoute[], isRainbowWalletActive: boolean) => Promise<boolean>;

@@ -18,12 +18,6 @@ "use strict";

exports.getIsRainbowWalletActive = getIsRainbowWalletActive;
const getIsActivationRequired = async (senderAddress, bestRoute) => {
const getIsActivationRequired = async (bestRoute, isRainbowWalletActive) => {
const isRainbowContractCalled = bestRoute.some(swapRoute => swapRoute.type === swap_route_type_enum_1.SwapRouteType.Rainbow);
if (isRainbowContractCalled) {
const isRainbowWalletActive = await (0, exports.getIsRainbowWalletActive)(senderAddress);
return !isRainbowWalletActive;
}
else {
return false;
}
return isRainbowContractCalled && !isRainbowWalletActive;
};
exports.getIsActivationRequired = getIsActivationRequired;
{
"name": "rainbow-swap-sdk",
"version": "1.1.11",
"version": "1.1.12",
"description": "An SDK for building applications on top of Rainbow Swap",

@@ -5,0 +5,0 @@ "repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc