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

@lifi/types

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifi/types - npm Package Compare versions

Comparing version 2.1.1 to 2.2.1

17

CHANGELOG.md

@@ -5,2 +5,19 @@ # Changelog

### [2.2.1](https://github.com/lifinance/types/compare/v2.2.0...v2.2.1) (2023-03-02)
## [2.2.0](https://github.com/lifinance/types/compare/v2.1.1...v2.2.0) (2023-03-02)
### Features
* add gas suggestion and status types, lifuel icon ([#137](https://github.com/lifinance/types/issues/137)) ([94ae5f2](https://github.com/lifinance/types/commit/94ae5f2a5358e08e2096dddfe79cbad23c94eaff))
* add protocol icons ([97cf747](https://github.com/lifinance/types/commit/97cf747d3cf8c4704e15dc23ecfd019cd0ed7bd2))
* deprecate the possibilities endpoint ([#136](https://github.com/lifinance/types/issues/136)) ([53fa193](https://github.com/lifinance/types/commit/53fa193334fc0f929325c3e8f9b3f2c07a52edb7))
### Bug Fixes
* rename gasUp to getGas ([b2dfda9](https://github.com/lifinance/types/commit/b2dfda984e923c74275c99498e6d5818b7447a91))
* typo ([62981c6](https://github.com/lifinance/types/commit/62981c60254cbe4342129fad88029e5870d30321))
### [2.1.1](https://github.com/lifinance/types/compare/v2.1.0...v2.1.1) (2023-02-17)

@@ -7,0 +24,0 @@

@@ -77,2 +77,6 @@ import { TransactionRequest } from '@ethersproject/providers';

export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
/**
* We don't want to support this endpoint anymore in the future. /chains, /tools, /connections, and /tokens should be used instead
* @deprecated
*/
export interface PossibilitiesRequest {

@@ -84,2 +88,6 @@ chains?: number[];

}
/**
* Should not be accessed via the types package anymore
* @deprecated
*/
export interface PossibilitiesResponse {

@@ -255,2 +263,34 @@ chains?: Chain[];

}
declare const _LIFuelState: readonly ["PENDING", "DONE", "NOT_FOUND"];
type LIFuelState = (typeof _LIFuelState)[number];
export type LIFuelStatusResponse = {
status: LIFuelState;
sending?: TransactionInfo;
receiving?: TransactionInfo;
};
export type GasRecommendationRequest = {
chainId: ChainId;
fromChain?: ChainId;
fromToken?: string;
};
export type RefetchSourceLIFuelRequest = {
txHash: string;
chainId: ChainId;
};
export type LIFuelStatusRequest = {
txHash: string;
};
export type RefetchLIFuelRequest = {
txHash: string;
chainId: ChainId;
};
export type GasRecommendationResponse = {
available: boolean;
recommended?: TokenBalance;
limit?: TokenBalance;
serviceFee?: TokenBalance;
fromToken?: Token;
fromAmount?: string;
message?: string;
};
export {};

1

dist/api.js

@@ -42,1 +42,2 @@ export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];

export const isSubstatusDone = (substatus) => _SubstatusDone.includes(substatus);
const _LIFuelState = ['PENDING', 'DONE', 'NOT_FOUND'];

@@ -201,2 +201,6 @@ import { BridgeTool } from './bridges';

}
/**
* Should not be accessed via the types package anymore
* @deprecated
*/
export interface BridgeDefinition {

@@ -203,0 +207,0 @@ tool: BridgeTool;

2

dist/chains/index.d.ts
export * from './Chain';
export * from './chain.utils';
export * from './EVMChain';
export * from './SolanaChain';
export * from './supported.chains';
export * from './chain.utils';
export * from './Chain';
export * from './chain.utils';
export * from './EVMChain';
export * from './SolanaChain';
export * from './supported.chains';
export * from './chain.utils';

@@ -1201,3 +1201,3 @@ /*

mainnet: false,
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_skevm_test.png',
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_zkevm_test.png',
// multicallAddress: multicallAddresses[ChainId.CZKT], // Not deployed yet

@@ -1204,0 +1204,0 @@ faucetUrls: ['https://goerli.zkevm.consensys.net/'],

@@ -77,2 +77,6 @@ import { TransactionRequest } from '@ethersproject/providers';

export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
/**
* We don't want to support this endpoint anymore in the future. /chains, /tools, /connections, and /tokens should be used instead
* @deprecated
*/
export interface PossibilitiesRequest {

@@ -84,2 +88,6 @@ chains?: number[];

}
/**
* Should not be accessed via the types package anymore
* @deprecated
*/
export interface PossibilitiesResponse {

@@ -255,2 +263,34 @@ chains?: Chain[];

}
declare const _LIFuelState: readonly ["PENDING", "DONE", "NOT_FOUND"];
type LIFuelState = (typeof _LIFuelState)[number];
export type LIFuelStatusResponse = {
status: LIFuelState;
sending?: TransactionInfo;
receiving?: TransactionInfo;
};
export type GasRecommendationRequest = {
chainId: ChainId;
fromChain?: ChainId;
fromToken?: string;
};
export type RefetchSourceLIFuelRequest = {
txHash: string;
chainId: ChainId;
};
export type LIFuelStatusRequest = {
txHash: string;
};
export type RefetchLIFuelRequest = {
txHash: string;
chainId: ChainId;
};
export type GasRecommendationResponse = {
available: boolean;
recommended?: TokenBalance;
limit?: TokenBalance;
serviceFee?: TokenBalance;
fromToken?: Token;
fromAmount?: string;
message?: string;
};
export {};

@@ -47,1 +47,2 @@ "use strict";

exports.isSubstatusDone = isSubstatusDone;
const _LIFuelState = ['PENDING', 'DONE', 'NOT_FOUND'];

@@ -201,2 +201,6 @@ import { BridgeTool } from './bridges';

}
/**
* Should not be accessed via the types package anymore
* @deprecated
*/
export interface BridgeDefinition {

@@ -203,0 +207,0 @@ tool: BridgeTool;

export * from './Chain';
export * from './chain.utils';
export * from './EVMChain';
export * from './SolanaChain';
export * from './supported.chains';
export * from './chain.utils';

@@ -18,5 +18,5 @@ "use strict";

__exportStar(require("./Chain"), exports);
__exportStar(require("./chain.utils"), exports);
__exportStar(require("./EVMChain"), exports);
__exportStar(require("./SolanaChain"), exports);
__exportStar(require("./supported.chains"), exports);
__exportStar(require("./chain.utils"), exports);

@@ -1204,3 +1204,3 @@ "use strict";

mainnet: false,
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_skevm_test.png',
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_zkevm_test.png',
// multicallAddress: multicallAddresses[ChainId.CZKT], // Not deployed yet

@@ -1207,0 +1207,0 @@ faucetUrls: ['https://goerli.zkevm.consensys.net/'],

{
"name": "@lifi/types",
"version": "2.1.1",
"version": "2.2.1",
"description": "Types for the LI.FI stack",

@@ -76,22 +76,19 @@ "main": "./dist/cjs/index.js",

"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@types/jest": "^29.2.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": ">=13.0.3",
"husky": "^8.0.3",
"jest": "^29.4.3",
"lint-staged": "^13.1.2",
"npm-run-all": "^4.1.5",
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"prettier": "^2.8.4",
"standard-version": "^9.5.0",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0"
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
},

@@ -98,0 +95,0 @@ "directories": {

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