@swapkit/helpers
Advanced tools
Comparing version 1.0.0-rc.107 to 1.0.0-rc.108
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454021
7576