@talismn/connection-meta 0.1.1 → 0.2.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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ChainId } from "@talismn/chaindata-provider";
|
|
2
2
|
import { Dexie } from "dexie";
|
|
3
|
-
type
|
|
3
|
+
type ChainPriorityRpcs = {
|
|
4
4
|
id: ChainId;
|
|
5
|
-
|
|
5
|
+
urls: string[];
|
|
6
6
|
};
|
|
7
7
|
type ChainBackoffInterval = {
|
|
8
8
|
id: ChainId;
|
|
9
9
|
interval: number;
|
|
10
10
|
};
|
|
11
11
|
export declare class TalismanConnectionMetaDatabase extends Dexie {
|
|
12
|
-
|
|
12
|
+
chainPriorityRpcs: Dexie.Table<ChainPriorityRpcs, ChainId>;
|
|
13
13
|
chainBackoffInterval: Dexie.Table<ChainBackoffInterval, ChainId>;
|
|
14
14
|
constructor();
|
|
15
15
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var dexie = require('dexie');
|
|
6
4
|
|
|
7
5
|
class TalismanConnectionMetaDatabase extends dexie.Dexie {
|
|
@@ -9,14 +7,16 @@ class TalismanConnectionMetaDatabase extends dexie.Dexie {
|
|
|
9
7
|
super("TalismanConnectionMeta");
|
|
10
8
|
|
|
11
9
|
// https://dexie.org/docs/Tutorial/Design#database-versioning
|
|
12
|
-
this.version(
|
|
10
|
+
this.version(2).stores({
|
|
13
11
|
// You only need to specify properties that you wish to index.
|
|
14
12
|
// The object store will allow any properties on your stored objects but you can only query them by indexed properties
|
|
15
13
|
// https://dexie.org/docs/API-Reference#declare-database
|
|
16
14
|
//
|
|
17
15
|
// Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
|
|
18
16
|
// https://dexie.org/docs/Version/Version.stores()#warning
|
|
19
|
-
chainPriorityRpc:
|
|
17
|
+
chainPriorityRpc: null,
|
|
18
|
+
// delete legacy table
|
|
19
|
+
chainPriorityRpcs: "id",
|
|
20
20
|
chainBackoffInterval: "id"
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var dexie = require('dexie');
|
|
6
4
|
|
|
7
5
|
class TalismanConnectionMetaDatabase extends dexie.Dexie {
|
|
@@ -9,14 +7,16 @@ class TalismanConnectionMetaDatabase extends dexie.Dexie {
|
|
|
9
7
|
super("TalismanConnectionMeta");
|
|
10
8
|
|
|
11
9
|
// https://dexie.org/docs/Tutorial/Design#database-versioning
|
|
12
|
-
this.version(
|
|
10
|
+
this.version(2).stores({
|
|
13
11
|
// You only need to specify properties that you wish to index.
|
|
14
12
|
// The object store will allow any properties on your stored objects but you can only query them by indexed properties
|
|
15
13
|
// https://dexie.org/docs/API-Reference#declare-database
|
|
16
14
|
//
|
|
17
15
|
// Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
|
|
18
16
|
// https://dexie.org/docs/Version/Version.stores()#warning
|
|
19
|
-
chainPriorityRpc:
|
|
17
|
+
chainPriorityRpc: null,
|
|
18
|
+
// delete legacy table
|
|
19
|
+
chainPriorityRpcs: "id",
|
|
20
20
|
chainBackoffInterval: "id"
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -5,14 +5,16 @@ class TalismanConnectionMetaDatabase extends Dexie {
|
|
|
5
5
|
super("TalismanConnectionMeta");
|
|
6
6
|
|
|
7
7
|
// https://dexie.org/docs/Tutorial/Design#database-versioning
|
|
8
|
-
this.version(
|
|
8
|
+
this.version(2).stores({
|
|
9
9
|
// You only need to specify properties that you wish to index.
|
|
10
10
|
// The object store will allow any properties on your stored objects but you can only query them by indexed properties
|
|
11
11
|
// https://dexie.org/docs/API-Reference#declare-database
|
|
12
12
|
//
|
|
13
13
|
// Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
|
|
14
14
|
// https://dexie.org/docs/Version/Version.stores()#warning
|
|
15
|
-
chainPriorityRpc:
|
|
15
|
+
chainPriorityRpc: null,
|
|
16
|
+
// delete legacy table
|
|
17
|
+
chainPriorityRpcs: "id",
|
|
16
18
|
chainBackoffInterval: "id"
|
|
17
19
|
});
|
|
18
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/connection-meta",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -20,28 +20,28 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=14"
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"test": "jest",
|
|
25
|
-
"lint": "eslint src --max-warnings 0",
|
|
26
|
-
"clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
|
|
27
|
-
},
|
|
28
23
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
24
|
+
"dexie": "^4.0.9",
|
|
25
|
+
"@talismn/chaindata-provider": "0.8.0"
|
|
31
26
|
},
|
|
32
27
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"@types/jest": "^27.5.1",
|
|
36
|
-
"eslint": "^8.52.0",
|
|
28
|
+
"@types/jest": "^29.5.14",
|
|
29
|
+
"eslint": "^8.57.1",
|
|
37
30
|
"jest": "^29.7.0",
|
|
38
|
-
"ts-jest": "^29.
|
|
39
|
-
"typescript": "^5.
|
|
31
|
+
"ts-jest": "^29.2.5",
|
|
32
|
+
"typescript": "^5.6.3",
|
|
33
|
+
"@talismn/eslint-config": "0.0.3",
|
|
34
|
+
"@talismn/tsconfig": "0.0.2"
|
|
40
35
|
},
|
|
41
36
|
"eslintConfig": {
|
|
42
37
|
"root": true,
|
|
43
38
|
"extends": [
|
|
44
39
|
"@talismn/eslint-config/base"
|
|
45
40
|
]
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"test": "jest",
|
|
44
|
+
"lint": "eslint src --max-warnings 0",
|
|
45
|
+
"clean": "rm -rf dist .turbo node_modules"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# @talismn/connection-meta
|
|
2
|
-
|
|
3
|
-
## 0.1.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- c4d5967: bump typescript version
|
|
8
|
-
- 620b7eb: Dependency updates
|
|
9
|
-
- Updated dependencies [03939d5]
|
|
10
|
-
- Updated dependencies [ade2908]
|
|
11
|
-
- Updated dependencies [c4d5967]
|
|
12
|
-
- Updated dependencies [620b7eb]
|
|
13
|
-
- Updated dependencies [5aadf99]
|
|
14
|
-
- Updated dependencies [4cace80]
|
|
15
|
-
- @talismn/chaindata-provider@0.8.0
|
|
16
|
-
|
|
17
|
-
## 0.1.0
|
|
18
|
-
|
|
19
|
-
### Minor Changes
|
|
20
|
-
|
|
21
|
-
- b920ab98: Added GPL licence
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 3c1a8b10: Dependency updates
|
|
26
|
-
- Updated dependencies [3c1a8b10]
|
|
27
|
-
- Updated dependencies [b920ab98]
|
|
28
|
-
- @talismn/chaindata-provider@0.7.0
|
|
29
|
-
|
|
30
|
-
## 0.0.5
|
|
31
|
-
|
|
32
|
-
### Patch Changes
|
|
33
|
-
|
|
34
|
-
- @talismn/chaindata-provider@0.6.0
|
|
35
|
-
|
|
36
|
-
## 0.0.4
|
|
37
|
-
|
|
38
|
-
### Patch Changes
|
|
39
|
-
|
|
40
|
-
- Updated dependencies [1a2fdc73]
|
|
41
|
-
- @talismn/chaindata-provider@0.5.0
|
|
42
|
-
|
|
43
|
-
## 0.0.3
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- f7aca48b: eslint rules
|
|
48
|
-
- 01bf239b: fix: packages publishing with incorrect interdependency versions
|
|
49
|
-
- Updated dependencies [f7aca48b]
|
|
50
|
-
- Updated dependencies [48f0222e]
|
|
51
|
-
- Updated dependencies [01bf239b]
|
|
52
|
-
- @talismn/chaindata-provider@0.4.4
|
|
53
|
-
|
|
54
|
-
## 0.0.2
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- 3068bd60: feat: stale balances and exponential rpc backoff
|
|
59
|
-
- Updated dependencies [79f6ccf6]
|
|
60
|
-
- Updated dependencies [c24dc1fb]
|
|
61
|
-
- @talismn/chaindata-provider@0.4.3
|