Skip to content

Commit

Permalink
feat!: move to a new @Lifi scope (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 12, 2022
1 parent 9444bd9 commit ba1a3c1
Show file tree
Hide file tree
Showing 11 changed files with 839 additions and 744 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -25,11 +25,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: 14
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: npm install
Expand All @@ -40,11 +40,11 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: 14
registry-url: 'https://npm.pkg.github.com'
scope: '@lifinance'
scope: '@lifi'
- run: npm run addscope
- name: Publish to GitHub Packages
run: npm publish
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ Check out the [Changelog](./CHANGELOG.md) to see what changed in the last releas
Install dependencies with yarn:

```bash
yarn install
yarn add @lifi/types
```
npm install --save @lifinance/types

or

```bash
npm install --save @lifi/types
```

### Summary

This package contains type definitions for lifinance projects (https://github.com/lifinance).
This package contains type definitions for LI.FI projects (https://github.com/lifinance).
8 changes: 4 additions & 4 deletions git.README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Li.Finance - Types
Types for lifi projects
# LI.FI - Types
Types for LI.FI projects

### Summary
This package contains all common types for the [LiFi SDK](https://github.com/lifinance/sdk).
Learn more about LiFi on (https://li.finance).
This package contains all common types for the [LI.FI SDK](https://github.com/lifinance/sdk).
Learn more about LI.FI on (https://li.fi).


Check out the [Changelog](./CHANGELOG.md) to see what changed in the last releases.
Expand Down
4 changes: 2 additions & 2 deletions npm.README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### Installation

```
npm install --save @lifinance/types
npm install --save @lifi/types
```

### Summary

This package contains type definitions for lifinance projects (https://github.com/lifinance).
This package contains type definitions for LI.FI projects (https://github.com/lifinance).
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lifinance/types",
"name": "@lifi/types",
"version": "0.14.20",
"description": "Types for the LI.FI stack",
"main": "./dist/index.js",
Expand All @@ -12,7 +12,7 @@
"package": "npm run build && npm pack",
"test": "jest --no-cache --runInBand",
"test:cov": "jest --coverage --no-cache --runInBand",
"addscope": "node tools/packagejson name @lifinance/types",
"addscope": "node tools/packagejson name @lifi/types",
"pre-commit": "lint-staged",
"pre-push": "yarn build && yarn test",
"lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
Expand Down Expand Up @@ -47,29 +47,29 @@
"url": "https://github.com/lifinance/types"
},
"dependencies": {
"ethers": "^5.6.6"
"ethers": "^5.6.9"
},
"devDependencies": {
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@types/jest": "^28.1.4",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": ">=12.4.1",
"jest": "^28.1.2",
"lint-staged": ">=13.0.3",
"npm-run-all": "^4.1.5",
"pinst": "^3.0.0",
"prettier": "^2.6.2",
"standard-version": "^9.3.2",
"ts-jest": "^28.0.2",
"ts-loader": "^9.3.0",
"typescript": "^4.6.4",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
"prettier": "^2.7.1",
"standard-version": "^9.5.0",
"ts-jest": "^28.0.5",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"directories": {
"test": "test"
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface RouteOptions {
slippage?: number // (default : 0.03)
infiniteApproval?: boolean // (default : false)
allowSwitchChain?: boolean // (default : false) // eg. on mobile wallets and not metamask wallets we can't automatically change chains
integrator?: string // custom string developer who integrate LiFi can set
integrator?: string // custom string developer who integrate LI.FI can set
referrer?: string // integrators can set a wallet address as referrer to track them
bridges?: AllowDenyPrefer
exchanges?: AllowDenyPrefer
Expand Down
4 changes: 2 additions & 2 deletions src/assets/tokens/stellaswap.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"keywords": ["audited", "verified", "special tokens"],
"tags": {
"type": {
"name": "Li.Fi",
"description": "Li.Fi stellaswap token list"
"name": "LI.FI",
"description": "LF.FI stellaswap token list"
}
},
"timestamp": "2022-04-28T00:00:00+00:00",
Expand Down
12 changes: 6 additions & 6 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export enum ChainId {
MOO = 1284,
MAM = 1088,
AUR = 1313161554,
SOL = 1151111081099710, // this id is made up by the LiFi team!
TER = 1161011141099710, // this id is made up by the LiFi team!
OAS = 111971151099710, // this id is made up by the LiFi team!
SOL = 1151111081099710, // this id is made up by the LI.FI team!
TER = 1161011141099710, // this id is made up by the LI.FI team!
OAS = 111971151099710, // this id is made up by the LI.FI team!
EVM = 9001,

// Testnets
Expand All @@ -168,9 +168,9 @@ export enum ChainId {
FUST = 123,
TLOT = 41,
RSKT = 31,
SOLT = 1151111081161011, // this id is made up by the LiFi team!
TERT = 1161011141161011, // this id is made up by the LiFi team!
OAST = 1119711511610111, // this id is made up by the LiFi team!
SOLT = 1151111081161011, // this id is made up by the LI.FI team!
TERT = 1161011141161011, // this id is made up by the LI.FI team!
OAST = 1119711511610111, // this id is made up by the LI.FI team!
AVAT = 43113,
EVMT = 9000,
MORT = 1287,
Expand Down
4 changes: 2 additions & 2 deletions src/bridges.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export enum BridgeTool {
connext = 'connext',
Expand Down Expand Up @@ -31,7 +31,7 @@ export interface Bridge {

/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export const supportedBridges: Array<Bridge> = [
{
Expand Down
8 changes: 4 additions & 4 deletions src/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export enum ExchangeTool {
oneinch = '1inch',
Expand All @@ -20,7 +20,7 @@ export enum ExchangeTool {

/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export type ExchangeTools = ExchangeTool | string

Expand All @@ -33,7 +33,7 @@ export interface ExchangeAggregator {

/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export const supportedExchangeAggregators: Array<ExchangeAggregator> = [
{
Expand Down Expand Up @@ -89,7 +89,7 @@ export interface Exchange {

/**
* @deprecated
* These values are now obtainable from the LiFi API
* These values are now obtainable from the LI.FI API
*/
export const supportedExchanges: Array<Exchange> = [
// 1 - Ethereum
Expand Down

0 comments on commit ba1a3c1

Please sign in to comment.