Socket
Socket
Sign inDemoInstall

@cedelabs/providers

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cedelabs/providers - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

48

dist/providers.d.ts

@@ -22,2 +22,3 @@ /// <reference types="node" />

exchangeId?: string;
callbackUrl?: string;
};

@@ -71,3 +72,3 @@

declare type CedeEvents = "connect" | "disconnect" | "accountsChanged" | "lock" | "unlock";
declare type CedeEvents = "connect" | "disconnect" | "accountsChanged" | "lock" | "unlock" | "exchangesStatusesUpdate";

@@ -131,2 +132,3 @@ export declare class CedeProvider {

silent?: boolean;
callbackUrl?: string;
};

@@ -157,3 +159,2 @@

network: InternalChainId;
networkLabel?: string;
};

@@ -235,3 +236,3 @@ transaction: {

logo: string;
status: ExchangeStatus | "unknown";
status: ExchangeStatus;
supportedWalletTypes: string[];

@@ -246,2 +247,8 @@ supportedFeatures: string[];

ipWhitelistAddresses: string[];
whitelistScopes?: ApiPermissions[];
featuresUnderMaintenance: {
send: boolean;
trade: boolean;
receive: boolean;
};
};

@@ -254,2 +261,3 @@

Maintenance = "maintenance",
Unknown = "unknown",
}

@@ -285,3 +293,3 @@

accountId: AccountId;
tokenSymbol: TokenSymbol;
tokenSymbol?: TokenSymbol;
opts: {

@@ -297,2 +305,8 @@ toDeposit?: boolean;

declare type GetWidgetBundleUrlMethod = (params: GetWidgetBundleUrlParams) => string;
declare type GetWidgetBundleUrlParams = {
name: string;
};
declare type GetWithdrawalByIdMethod = (params: GetWithdrawalByIdParams) => Promise<Transaction>;

@@ -351,2 +365,3 @@

}): Promise<void>;
protected onExchangesStatusesUpdate(exchangesStatuses: Record<string, ExchangeStatus>): Promise<void>;
protected _unlock(): void;

@@ -359,2 +374,3 @@ protected _lock(): void;

}) => Promise<void>;
exchangesStatusesUpdate: (exchangesStatuses: Record<string, ExchangeStatus>) => Promise<void>;
unlock: () => void;

@@ -396,2 +412,3 @@ lock: () => void;

prepareOrder: RequestVersion.V2;
getStandardizedNetworks: RequestVersion.V1;
getMarketPairs: RequestVersion.V2;

@@ -414,2 +431,4 @@ getMarketRate: RequestVersion.V2;

checkAddressIsWhitelisted: RequestVersion.V1;
searchTransaction: RequestVersion.V1;
getWidgetBundleUrl: RequestVersion.V1;
};

@@ -426,2 +445,3 @@

chainId?: number; // chain id in decimal format
iconUrl: string;
};

@@ -572,3 +592,3 @@

params: PrepareWithdrawalParams,
) => Promise<"success" | KrakenWithdrawalPrepareReturn>;
) => Promise<Result | KrakenWithdrawalPrepareReturn>;

@@ -580,2 +600,3 @@ declare type PrepareWithdrawalParams = {

address?: string;
network?: InternalChainId;
opts?: {

@@ -631,2 +652,16 @@ key?: string;

declare type SearchTransactionMethod = (params: SearchTransactionParams) => Promise<Transaction | null>;
/**
* @param timestamp Only for withdrawal transaction
* @param tokenOrPairSymbol For trade transaction, it's the pair symbol (ex: BTC/USDT) and for withdrawal transaction, it's the token symbol (ex: BTC)
*/
declare type SearchTransactionParams = {
accountId: string;
transactionId: string;
transactionType: "trade" | "withdrawal";
tokenOrPairSymbol: string;
timestamp?: number;
};
declare type SupportedExchangesMethod = () => Promise<ExchangeInfo[]>;

@@ -717,2 +752,4 @@

checkAddressIsWhitelisted: CheckAddressIsWhitelistedMethod;
searchTransaction: SearchTransactionMethod;
getWidgetBundleUrl: GetWidgetBundleUrlMethod;
}

@@ -772,2 +809,3 @@

accountId: AccountId;
network?: InternalChainId;
};

@@ -774,0 +812,0 @@

2

package.json
{
"name": "@cedelabs/providers",
"version": "1.5.1",
"version": "1.6.0",
"main": "dist/providers.mjs",

@@ -5,0 +5,0 @@ "module": "dist/providers.mjs",

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