@talismn/balances 0.0.0-pr472-20230201082459 → 0.0.0-pr472-20230202021521
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/CHANGELOG.md +6 -6
- package/dist/declarations/src/plugins.d.ts +1 -4
- package/dist/declarations/src/types/balancetypes.d.ts +2 -5
- package/dist/talismn-balances.cjs.dev.js +1 -3
- package/dist/talismn-balances.cjs.prod.js +1 -3
- package/dist/talismn-balances.esm.js +1 -3
- package/package.json +8 -8
- package/plugins/package.json +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# @talismn/balances
|
2
2
|
|
3
|
-
## 0.0.0-pr472-
|
3
|
+
## 0.0.0-pr472-20230202021521
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
7
|
- c0da9a1: feat: switched build tool to preconstruct
|
8
8
|
- Updated dependencies [c0da9a1]
|
9
|
-
- @talismn/chain-connector-evm@0.0.0-pr472-
|
10
|
-
- @talismn/chaindata-provider@0.0.0-pr472-
|
11
|
-
- @talismn/chain-connector@0.0.0-pr472-
|
12
|
-
- @talismn/token-rates@0.0.0-pr472-
|
13
|
-
- @talismn/util@0.0.0-pr472-
|
9
|
+
- @talismn/chain-connector-evm@0.0.0-pr472-20230202021521
|
10
|
+
- @talismn/chaindata-provider@0.0.0-pr472-20230202021521
|
11
|
+
- @talismn/chain-connector@0.0.0-pr472-20230202021521
|
12
|
+
- @talismn/token-rates@0.0.0-pr472-20230202021521
|
13
|
+
- @talismn/util@0.0.0-pr472-20230202021521
|
14
14
|
|
15
15
|
## 0.3.0
|
16
16
|
|
@@ -13,8 +13,5 @@
|
|
13
13
|
* As a result, consumers of this api will have type information for the `BalanceJson` type
|
14
14
|
* based on the selection of plugins they are using in their app.
|
15
15
|
*/
|
16
|
-
export {
|
17
|
-
declare global {
|
18
|
-
export interface TalismanPluginBalanceTypes {
|
19
|
-
}
|
16
|
+
export interface PluginBalanceTypes {
|
20
17
|
}
|
@@ -1,16 +1,13 @@
|
|
1
|
+
import { PluginBalanceTypes } from "@talismn/balances/plugins";
|
1
2
|
import { ChainId, EvmNetworkId, MultiChainId, TokenId } from "@talismn/chaindata-provider";
|
2
3
|
import { Address } from "./addresses";
|
3
|
-
declare global {
|
4
|
-
export interface TalismanPluginBalanceTypes {
|
5
|
-
}
|
6
|
-
}
|
7
4
|
/**
|
8
5
|
* `BalanceTypes` is an automatically determined sub-selection of `PluginBalanceTypes`.
|
9
6
|
*
|
10
7
|
* It is the same list, but with any invalid `BalanceType` definitions filtered out.
|
11
8
|
*/
|
12
9
|
export type BalanceTypes = {
|
13
|
-
[BalanceType in keyof
|
10
|
+
[BalanceType in keyof PluginBalanceTypes]: PluginBalanceTypes[BalanceType] extends IBalance ? PluginBalanceTypes[BalanceType] : never;
|
14
11
|
};
|
15
12
|
/**
|
16
13
|
* The `BalanceJson` sum type, which is a union of all of the possible `BalanceTypes`.
|
@@ -71,7 +71,7 @@ const db = new TalismanBalancesDatabase();
|
|
71
71
|
|
72
72
|
var packageJson = {
|
73
73
|
name: "@talismn/balances",
|
74
|
-
version: "0.0.0-pr472-
|
74
|
+
version: "0.0.0-pr472-20230202021521",
|
75
75
|
author: "Talisman",
|
76
76
|
homepage: "https://talisman.xyz",
|
77
77
|
license: "UNLICENSED",
|
@@ -254,8 +254,6 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
254
254
|
return desc;
|
255
255
|
}
|
256
256
|
|
257
|
-
// import { PluginBalanceTypes } from "../plugins"
|
258
|
-
|
259
257
|
function excludeFromTransferableAmount(locks) {
|
260
258
|
if (typeof locks === "string") return BigInt(locks);
|
261
259
|
if (!Array.isArray(locks)) locks = [locks];
|
@@ -71,7 +71,7 @@ const db = new TalismanBalancesDatabase();
|
|
71
71
|
|
72
72
|
var packageJson = {
|
73
73
|
name: "@talismn/balances",
|
74
|
-
version: "0.0.0-pr472-
|
74
|
+
version: "0.0.0-pr472-20230202021521",
|
75
75
|
author: "Talisman",
|
76
76
|
homepage: "https://talisman.xyz",
|
77
77
|
license: "UNLICENSED",
|
@@ -254,8 +254,6 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
254
254
|
return desc;
|
255
255
|
}
|
256
256
|
|
257
|
-
// import { PluginBalanceTypes } from "../plugins"
|
258
|
-
|
259
257
|
function excludeFromTransferableAmount(locks) {
|
260
258
|
if (typeof locks === "string") return BigInt(locks);
|
261
259
|
if (!Array.isArray(locks)) locks = [locks];
|
@@ -62,7 +62,7 @@ const db = new TalismanBalancesDatabase();
|
|
62
62
|
|
63
63
|
var packageJson = {
|
64
64
|
name: "@talismn/balances",
|
65
|
-
version: "0.0.0-pr472-
|
65
|
+
version: "0.0.0-pr472-20230202021521",
|
66
66
|
author: "Talisman",
|
67
67
|
homepage: "https://talisman.xyz",
|
68
68
|
license: "UNLICENSED",
|
@@ -245,8 +245,6 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
245
245
|
return desc;
|
246
246
|
}
|
247
247
|
|
248
|
-
// import { PluginBalanceTypes } from "../plugins"
|
249
|
-
|
250
248
|
function excludeFromTransferableAmount(locks) {
|
251
249
|
if (typeof locks === "string") return BigInt(locks);
|
252
250
|
if (!Array.isArray(locks)) locks = [locks];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@talismn/balances",
|
3
|
-
"version": "0.0.0-pr472-
|
3
|
+
"version": "0.0.0-pr472-20230202021521",
|
4
4
|
"author": "Talisman",
|
5
5
|
"homepage": "https://talisman.xyz",
|
6
6
|
"license": "UNLICENSED",
|
@@ -28,19 +28,19 @@
|
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
30
|
"@polkadot/types": "9.10.5",
|
31
|
-
"@talismn/chain-connector": "^0.0.0-pr472-
|
32
|
-
"@talismn/chain-connector-evm": "^0.0.0-pr472-
|
33
|
-
"@talismn/chaindata-provider": "^0.0.0-pr472-
|
34
|
-
"@talismn/token-rates": "^0.0.0-pr472-
|
35
|
-
"@talismn/util": "^0.0.0-pr472-
|
31
|
+
"@talismn/chain-connector": "^0.0.0-pr472-20230202021521",
|
32
|
+
"@talismn/chain-connector-evm": "^0.0.0-pr472-20230202021521",
|
33
|
+
"@talismn/chaindata-provider": "^0.0.0-pr472-20230202021521",
|
34
|
+
"@talismn/token-rates": "^0.0.0-pr472-20230202021521",
|
35
|
+
"@talismn/util": "^0.0.0-pr472-20230202021521",
|
36
36
|
"anylogger": "^1.0.11",
|
37
37
|
"dexie": "^3.2.2",
|
38
38
|
"lodash": "^4.17.21",
|
39
39
|
"typescript-memoize": "^1.1.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@talismn/eslint-config": "^0.0.0-pr472-
|
43
|
-
"@talismn/tsconfig": "^0.0.0-pr472-
|
42
|
+
"@talismn/eslint-config": "^0.0.0-pr472-20230202021521",
|
43
|
+
"@talismn/tsconfig": "^0.0.0-pr472-20230202021521",
|
44
44
|
"@types/jest": "^27.5.1",
|
45
45
|
"eslint": "^8.4.0",
|
46
46
|
"jest": "^28.1.0",
|