Socket
Socket
Sign inDemoInstall

@swapkit/helpers

Package Overview
Dependencies
Maintainers
2
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swapkit/helpers - npm Package Compare versions

Comparing version 1.0.0-rc.107 to 1.0.0-rc.108

2

package.json

@@ -41,3 +41,3 @@ {

"types": "./src/index.ts",
"version": "1.0.0-rc.107"
"version": "1.0.0-rc.108"
}
import { type ErrorKeys, SwapKitError } from "../modules/swapKitError";
import { Chain } from "../types";
import type { DerivationPathArray } from "../types/derivationPath";

@@ -38,1 +39,17 @@

}
export const getChainIdentifier = (chain: Chain) => {
switch (chain) {
case Chain.THORChain:
return `${chain}.RUNE`;
case Chain.Cosmos:
return `${chain}.ATOM`;
case Chain.BinanceSmartChain:
return `${chain}`;
default:
return `${chain}.${chain}`;
}
};

@@ -24,2 +24,4 @@ import { ExplorerUrl, RPCUrl } from "./network";

export type WalletChain = Exclude<Chain, Chain.Chainflip>;
export enum ChainId {

@@ -26,0 +28,0 @@ Arbitrum = "42161",

@@ -46,2 +46,6 @@ import type { AssetValue } from "../modules/assetValue.ts";

};
/**
* @optional for setting the chainflip broker url
*/
chainflipBrokerUrl?: string;
};

@@ -48,0 +52,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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