@lifi/types 8.2.0 → 9.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/base.d.ts CHANGED
@@ -195,8 +195,8 @@ export interface Token extends StaticToken {
195
195
  priceUSD: string;
196
196
  }
197
197
  export interface TokenAmount extends Token {
198
- amount: string;
199
- blockNumber?: number;
198
+ amount?: bigint;
199
+ blockNumber?: bigint;
200
200
  }
201
201
  export interface Coin {
202
202
  key: CoinKey;
@@ -195,8 +195,8 @@ export interface Token extends StaticToken {
195
195
  priceUSD: string;
196
196
  }
197
197
  export interface TokenAmount extends Token {
198
- amount: string;
199
- blockNumber?: number;
198
+ amount?: bigint;
199
+ blockNumber?: bigint;
200
200
  }
201
201
  export interface Coin {
202
202
  key: CoinKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "8.2.0",
3
+ "version": "9.0.0-alpha.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
@@ -10,23 +10,25 @@
10
10
  "import": "./dist/index.js"
11
11
  },
12
12
  "scripts": {
13
- "watch": "tsc -w -p ./tsconfig.json",
13
+ "addscope": "node tools/packagejson name @lifi/types",
14
14
  "build": "node tools/cleanup types && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json",
15
15
  "clean": "node tools/cleanup",
16
+ "lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
16
17
  "package": "npm run build && npm pack",
17
- "test": "jest --no-cache --runInBand",
18
- "test:cov": "jest --coverage --no-cache --runInBand",
19
- "addscope": "node tools/packagejson name @lifi/types",
18
+ "postpublish": "npm run use:gitReadme && pinst --enable",
20
19
  "pre-commit": "lint-staged",
21
20
  "pre-push": "yarn build && yarn test",
22
- "lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
21
+ "prepare": "husky install",
22
+ "prepublishOnly": "run-s build use:npmReadme && pinst --enable",
23
23
  "prettier:fix": "prettier --write ./src/.",
24
- "use:npmReadme": "mv 'README.md' 'git.README.md' && mv 'npm.README.md' 'README.md'",
24
+ "release": "standard-version -a",
25
+ "release:alpha": "standard-version -a --prerelease alpha --skip.changelog",
26
+ "release:beta": "standard-version -a --prerelease beta --skip.changelog",
27
+ "test": "jest --no-cache --runInBand",
28
+ "test:cov": "jest --coverage --no-cache --runInBand",
25
29
  "use:gitReadme": "mv 'README.md' 'npm.README.md' && mv 'git.README.md' 'README.md'",
26
- "prepublishOnly": "run-s build use:npmReadme && pinst --enable",
27
- "postpublish": "npm run use:gitReadme && pinst --enable",
28
- "prepare": "husky install",
29
- "release": "standard-version"
30
+ "use:npmReadme": "mv 'README.md' 'git.README.md' && mv 'npm.README.md' 'README.md'",
31
+ "watch": "tsc -w -p ./tsconfig.json"
30
32
  },
31
33
  "lint-staged": {
32
34
  "src/**/*.{ts,tsx}": [