@sonarwatch/portfolio-core 0.8.46 → 0.8.48
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 +159 -146
- package/package.json +2 -9
- package/src/Network.d.ts +2 -1
- package/src/Network.js +1 -0
- package/src/Network.js.map +1 -1
- package/src/constants/addresses.d.ts +2 -0
- package/src/constants/addresses.js +3 -1
- package/src/constants/addresses.js.map +1 -1
- package/src/constants/networks.d.ts +1 -0
- package/src/constants/networks.js +23 -1
- package/src/constants/networks.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,159 +2,172 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.8.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [0.8.45](https://github.com/sonarwatch/portfolio/compare/core-0.8.44...core-0.8.45) (2023-10-23)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## [0.8.44](https://github.com/sonarwatch/portfolio/compare/core-0.8.43...core-0.8.44) (2023-10-23)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [0.8.43](https://github.com/sonarwatch/portfolio/compare/core-0.8.42...core-0.8.43) (2023-10-23)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## [0.8.42](https://github.com/sonarwatch/portfolio/compare/core-0.8.41...core-0.8.42) (2023-10-23)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [0.8.41](https://github.com/sonarwatch/portfolio/compare/core-0.8.40...core-0.8.41) (2023-10-23)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## [0.8.40](https://github.com/sonarwatch/portfolio/compare/core-0.8.39...core-0.8.40) (2023-10-23)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [0.8.39](https://github.com/sonarwatch/portfolio/compare/core-0.8.38...core-0.8.39) (2023-10-23)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## [0.8.38](https://github.com/sonarwatch/portfolio/compare/core-0.8.37...core-0.8.38) (2023-10-21)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [0.8.37](https://github.com/sonarwatch/portfolio/compare/core-0.8.36...core-0.8.37) (2023-10-21)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/core-0.8.35...core-0.8.36) (2023-10-21)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/core-0.8.34...core-0.8.35) (2023-10-21)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## [0.8.34](https://github.com/sonarwatch/portfolio/compare/core-0.8.33...core-0.8.34) (2023-10-20)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [0.8.33](https://github.com/sonarwatch/portfolio/compare/core-0.8.32...core-0.8.33) (2023-10-18)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## [0.8.32](https://github.com/sonarwatch/portfolio/compare/core-0.8.31...core-0.8.32) (2023-10-18)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [0.8.31](https://github.com/sonarwatch/portfolio/compare/core-0.8.30...core-0.8.31) (2023-10-18)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
## [0.8.30](https://github.com/sonarwatch/portfolio/compare/core-0.8.29...core-0.8.30) (2023-10-18)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## [0.8.29](https://github.com/sonarwatch/portfolio/compare/core-0.8.28...core-0.8.29) (2023-10-17)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## [0.8.28](https://github.com/sonarwatch/portfolio/compare/core-0.8.27...core-0.8.28) (2023-10-17)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [0.8.27](https://github.com/sonarwatch/portfolio/compare/core-0.8.26...core-0.8.27) (2023-10-16)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## [0.8.26](https://github.com/sonarwatch/portfolio/compare/core-0.8.25...core-0.8.26) (2023-10-16)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
## [0.8.25](https://github.com/sonarwatch/portfolio/compare/core-0.8.24...core-0.8.25) (2023-10-16)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
## [0.8.24](https://github.com/sonarwatch/portfolio/compare/core-0.8.23...core-0.8.24) (2023-10-14)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## [0.8.23](https://github.com/sonarwatch/portfolio/compare/core-0.8.22...core-0.8.23) (2023-10-14)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## [0.8.22](https://github.com/sonarwatch/portfolio/compare/core-0.8.21...core-0.8.22) (2023-10-14)
|
|
5
|
+
## [0.8.48](https://github.com/sonarwatch/portfolio/compare/core-0.8.47...core-0.8.48) (2023-10-26)
|
|
102
6
|
|
|
103
7
|
|
|
104
8
|
### Reverts
|
|
105
9
|
|
|
106
|
-
* Revert "
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
## [0.8.21](https://github.com/sonarwatch/portfolio/compare/core-0.8.20...core-0.8.21) (2023-10-13)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## [0.8.20](https://github.com/sonarwatch/portfolio/compare/core-0.8.19...core-0.8.20) (2023-10-13)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## [0.8.19](https://github.com/sonarwatch/portfolio/compare/core-0.8.18...core-0.8.19) (2023-10-13)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## [0.8.18](https://github.com/sonarwatch/portfolio/compare/core-0.8.17...core-0.8.18) (2023-10-13)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
## [0.8.17](https://github.com/sonarwatch/portfolio/compare/core-0.8.16...core-0.8.17) (2023-10-13)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [0.8.16](https://github.com/sonarwatch/portfolio/compare/core-0.8.15...core-0.8.16) (2023-10-13)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
## [0.8.15](https://github.com/sonarwatch/portfolio/compare/core-0.8.14...core-0.8.15) (2023-10-13)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
## [0.8.14](https://github.com/sonarwatch/portfolio/compare/core-0.8.13...core-0.8.14) (2023-10-13)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
## [0.8.13](https://github.com/sonarwatch/portfolio/compare/core-0.8.12...core-0.8.13) (2023-10-13)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
## [0.8.12](https://github.com/sonarwatch/portfolio/compare/core-0.8.11...core-0.8.12) (2023-10-13)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/core-0.8.10...core-0.8.11) (2023-10-13)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/core-0.8.9...core-0.8.10) (2023-10-12)
|
|
10
|
+
* Revert "upgrade nx" ([62550ba](https://github.com/sonarwatch/portfolio/commit/62550bab2e60d40b8616465843dad4d3ad612bbd))
|
|
155
11
|
|
|
156
12
|
|
|
157
13
|
|
|
14
|
+
## [0.8.47](https://github.com/sonarwatch/portfolio/compare/core-0.8.46...core-0.8.47) (2023-10-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.8.46](https://github.com/sonarwatch/portfolio/compare/core-0.8.45...core-0.8.46) (2023-10-24)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.8.45](https://github.com/sonarwatch/portfolio/compare/core-0.8.44...core-0.8.45) (2023-10-23)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [0.8.44](https://github.com/sonarwatch/portfolio/compare/core-0.8.43...core-0.8.44) (2023-10-23)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.8.43](https://github.com/sonarwatch/portfolio/compare/core-0.8.42...core-0.8.43) (2023-10-23)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [0.8.42](https://github.com/sonarwatch/portfolio/compare/core-0.8.41...core-0.8.42) (2023-10-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [0.8.41](https://github.com/sonarwatch/portfolio/compare/core-0.8.40...core-0.8.41) (2023-10-23)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [0.8.40](https://github.com/sonarwatch/portfolio/compare/core-0.8.39...core-0.8.40) (2023-10-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [0.8.39](https://github.com/sonarwatch/portfolio/compare/core-0.8.38...core-0.8.39) (2023-10-23)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## [0.8.38](https://github.com/sonarwatch/portfolio/compare/core-0.8.37...core-0.8.38) (2023-10-21)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [0.8.37](https://github.com/sonarwatch/portfolio/compare/core-0.8.36...core-0.8.37) (2023-10-21)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/core-0.8.35...core-0.8.36) (2023-10-21)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/core-0.8.34...core-0.8.35) (2023-10-21)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## [0.8.34](https://github.com/sonarwatch/portfolio/compare/core-0.8.33...core-0.8.34) (2023-10-20)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [0.8.33](https://github.com/sonarwatch/portfolio/compare/core-0.8.32...core-0.8.33) (2023-10-18)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [0.8.32](https://github.com/sonarwatch/portfolio/compare/core-0.8.31...core-0.8.32) (2023-10-18)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [0.8.31](https://github.com/sonarwatch/portfolio/compare/core-0.8.30...core-0.8.31) (2023-10-18)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## [0.8.30](https://github.com/sonarwatch/portfolio/compare/core-0.8.29...core-0.8.30) (2023-10-18)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [0.8.29](https://github.com/sonarwatch/portfolio/compare/core-0.8.28...core-0.8.29) (2023-10-17)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [0.8.28](https://github.com/sonarwatch/portfolio/compare/core-0.8.27...core-0.8.28) (2023-10-17)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [0.8.27](https://github.com/sonarwatch/portfolio/compare/core-0.8.26...core-0.8.27) (2023-10-16)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## [0.8.26](https://github.com/sonarwatch/portfolio/compare/core-0.8.25...core-0.8.26) (2023-10-16)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## [0.8.25](https://github.com/sonarwatch/portfolio/compare/core-0.8.24...core-0.8.25) (2023-10-16)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## [0.8.24](https://github.com/sonarwatch/portfolio/compare/core-0.8.23...core-0.8.24) (2023-10-14)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## [0.8.23](https://github.com/sonarwatch/portfolio/compare/core-0.8.22...core-0.8.23) (2023-10-14)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [0.8.22](https://github.com/sonarwatch/portfolio/compare/core-0.8.21...core-0.8.22) (2023-10-14)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Reverts
|
|
118
|
+
|
|
119
|
+
* Revert "rename" ([ffcf477](https://github.com/sonarwatch/portfolio/commit/ffcf47783e7dcb924c7685a4c7784a2385b526c2))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## [0.8.21](https://github.com/sonarwatch/portfolio/compare/core-0.8.20...core-0.8.21) (2023-10-13)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [0.8.20](https://github.com/sonarwatch/portfolio/compare/core-0.8.19...core-0.8.20) (2023-10-13)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
## [0.8.19](https://github.com/sonarwatch/portfolio/compare/core-0.8.18...core-0.8.19) (2023-10-13)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [0.8.18](https://github.com/sonarwatch/portfolio/compare/core-0.8.17...core-0.8.18) (2023-10-13)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## [0.8.17](https://github.com/sonarwatch/portfolio/compare/core-0.8.16...core-0.8.17) (2023-10-13)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## [0.8.16](https://github.com/sonarwatch/portfolio/compare/core-0.8.15...core-0.8.16) (2023-10-13)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## [0.8.15](https://github.com/sonarwatch/portfolio/compare/core-0.8.14...core-0.8.15) (2023-10-13)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [0.8.14](https://github.com/sonarwatch/portfolio/compare/core-0.8.13...core-0.8.14) (2023-10-13)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## [0.8.13](https://github.com/sonarwatch/portfolio/compare/core-0.8.12...core-0.8.13) (2023-10-13)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## [0.8.12](https://github.com/sonarwatch/portfolio/compare/core-0.8.11...core-0.8.12) (2023-10-13)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/core-0.8.10...core-0.8.11) (2023-10-13)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/core-0.8.9...core-0.8.10) (2023-10-12)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
158
171
|
## [0.8.9](https://github.com/sonarwatch/portfolio/compare/core-0.8.8...core-0.8.9) (2023-10-12)
|
|
159
172
|
|
|
160
173
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonarwatch/portfolio-core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.48",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"
|
|
6
|
-
"@ethersproject/address": "^5.7.0",
|
|
7
|
-
"@ethersproject/bytes": "^5.7.0",
|
|
8
|
-
"@metaplex-foundation/umi-serializers-encodings": "^0.8.9",
|
|
9
|
-
"bitcoin-address-validation": "^2.2.1"
|
|
10
|
-
},
|
|
11
|
-
"main": "./src/index.js",
|
|
12
|
-
"types": "./src/index.d.ts"
|
|
5
|
+
"main": "./src/index.js"
|
|
13
6
|
}
|
package/src/Network.d.ts
CHANGED
|
@@ -8,10 +8,11 @@ export declare const NetworkId: {
|
|
|
8
8
|
readonly aptos: "aptos";
|
|
9
9
|
readonly sui: "sui";
|
|
10
10
|
readonly sei: "sei";
|
|
11
|
+
readonly bnb: "bnb";
|
|
11
12
|
};
|
|
12
13
|
export type NetworkIdType = (typeof NetworkId)[keyof typeof NetworkId];
|
|
13
14
|
export type MoveNetworkIdType = typeof NetworkId.aptos | typeof NetworkId.sui;
|
|
14
|
-
export type EvmNetworkIdType = typeof NetworkId.ethereum | typeof NetworkId.avalanche | typeof NetworkId.polygon;
|
|
15
|
+
export type EvmNetworkIdType = typeof NetworkId.ethereum | typeof NetworkId.avalanche | typeof NetworkId.polygon | typeof NetworkId.bnb;
|
|
15
16
|
export type CosmosNetworkIdType = typeof NetworkId.sei;
|
|
16
17
|
export type Network = {
|
|
17
18
|
id: NetworkIdType;
|
package/src/Network.js
CHANGED
package/src/Network.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../packages/core/src/Network.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../packages/core/src/Network.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC"}
|
|
@@ -8,8 +8,10 @@ export declare const ethereumNativeAddress = "0x00000000000000000000000000000000
|
|
|
8
8
|
export declare const polygonNativeAddress = "0x0000000000000000000000000000000000001010";
|
|
9
9
|
export declare const avalancheNativeAddress = "0x0000000000000000000000000000000000000000";
|
|
10
10
|
export declare const optimismNativeAddress = "0x0000000000000000000000000000000000000000";
|
|
11
|
+
export declare const bnbNativeAddress = "0x0000000000000000000000000000000000000000";
|
|
11
12
|
export declare const solanaNativeWrappedAddress = "So11111111111111111111111111111111111111112";
|
|
12
13
|
export declare const ethereumNativeWrappedAddress = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
13
14
|
export declare const polygonNativeWrappedAddress = "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270";
|
|
15
|
+
export declare const bnbNativeWrappedAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
14
16
|
export declare const avalancheNativeWrappedAddress = "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7";
|
|
15
17
|
export declare const optimismNativeWrappedAddress = "0x4200000000000000000000000000000000000006";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.optimismNativeWrappedAddress = exports.avalancheNativeWrappedAddress = exports.polygonNativeWrappedAddress = exports.ethereumNativeWrappedAddress = exports.solanaNativeWrappedAddress = exports.optimismNativeAddress = exports.avalancheNativeAddress = exports.polygonNativeAddress = exports.ethereumNativeAddress = exports.zeroAddressEvm = exports.seiNativeAddress = exports.suiNativeAddress = exports.aptosNativeAddress = exports.solanaNativeAddress = exports.bitcoinNativeAddress = void 0;
|
|
3
|
+
exports.optimismNativeWrappedAddress = exports.avalancheNativeWrappedAddress = exports.bnbNativeWrappedAddress = exports.polygonNativeWrappedAddress = exports.ethereumNativeWrappedAddress = exports.solanaNativeWrappedAddress = exports.bnbNativeAddress = exports.optimismNativeAddress = exports.avalancheNativeAddress = exports.polygonNativeAddress = exports.ethereumNativeAddress = exports.zeroAddressEvm = exports.seiNativeAddress = exports.suiNativeAddress = exports.aptosNativeAddress = exports.solanaNativeAddress = exports.bitcoinNativeAddress = void 0;
|
|
4
4
|
exports.bitcoinNativeAddress = 'bitcoin';
|
|
5
5
|
exports.solanaNativeAddress = '11111111111111111111111111111111';
|
|
6
6
|
exports.aptosNativeAddress = '0x1::aptos_coin::AptosCoin';
|
|
@@ -11,9 +11,11 @@ exports.ethereumNativeAddress = '0x0000000000000000000000000000000000000000';
|
|
|
11
11
|
exports.polygonNativeAddress = '0x0000000000000000000000000000000000001010';
|
|
12
12
|
exports.avalancheNativeAddress = exports.ethereumNativeAddress;
|
|
13
13
|
exports.optimismNativeAddress = exports.ethereumNativeAddress;
|
|
14
|
+
exports.bnbNativeAddress = exports.ethereumNativeAddress;
|
|
14
15
|
exports.solanaNativeWrappedAddress = 'So11111111111111111111111111111111111111112';
|
|
15
16
|
exports.ethereumNativeWrappedAddress = '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2';
|
|
16
17
|
exports.polygonNativeWrappedAddress = '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270';
|
|
18
|
+
exports.bnbNativeWrappedAddress = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c';
|
|
17
19
|
exports.avalancheNativeWrappedAddress = '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7';
|
|
18
20
|
exports.optimismNativeWrappedAddress = '0x4200000000000000000000000000000000000006';
|
|
19
21
|
//# sourceMappingURL=addresses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/addresses.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,mBAAmB,GAAG,kCAAkC,CAAC;AACzD,QAAA,kBAAkB,GAAG,4BAA4B,CAAC;AAClD,QAAA,gBAAgB,GAC3B,8EAA8E,CAAC;AACpE,QAAA,gBAAgB,GAAG,MAAM,CAAC;AAC1B,QAAA,cAAc,GAAG,4CAA4C,CAAC;AAC9D,QAAA,qBAAqB,GAChC,4CAA4C,CAAC;AAClC,QAAA,oBAAoB,GAC/B,4CAA4C,CAAC;AAClC,QAAA,sBAAsB,GAAG,6BAAqB,CAAC;AAC/C,QAAA,qBAAqB,GAAG,6BAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/addresses.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,mBAAmB,GAAG,kCAAkC,CAAC;AACzD,QAAA,kBAAkB,GAAG,4BAA4B,CAAC;AAClD,QAAA,gBAAgB,GAC3B,8EAA8E,CAAC;AACpE,QAAA,gBAAgB,GAAG,MAAM,CAAC;AAC1B,QAAA,cAAc,GAAG,4CAA4C,CAAC;AAC9D,QAAA,qBAAqB,GAChC,4CAA4C,CAAC;AAClC,QAAA,oBAAoB,GAC/B,4CAA4C,CAAC;AAClC,QAAA,sBAAsB,GAAG,6BAAqB,CAAC;AAC/C,QAAA,qBAAqB,GAAG,6BAAqB,CAAC;AAC9C,QAAA,gBAAgB,GAAG,6BAAqB,CAAC;AAEzC,QAAA,0BAA0B,GACrC,6CAA6C,CAAC;AACnC,QAAA,4BAA4B,GACvC,4CAA4C,CAAC;AAClC,QAAA,2BAA2B,GACtC,4CAA4C,CAAC;AAClC,QAAA,uBAAuB,GAClC,4CAA4C,CAAC;AAClC,QAAA,6BAA6B,GACxC,4CAA4C,CAAC;AAClC,QAAA,4BAA4B,GACvC,4CAA4C,CAAC"}
|
|
@@ -7,6 +7,7 @@ export declare const solanaNetwork: Network;
|
|
|
7
7
|
export declare const aptosNetwork: Network;
|
|
8
8
|
export declare const suiNetwork: Network;
|
|
9
9
|
export declare const seiNetwork: Network;
|
|
10
|
+
export declare const bnbNetwork: Network;
|
|
10
11
|
export declare const networks: Record<NetworkIdType, Network>;
|
|
11
12
|
export declare const networksAsArray: Network[];
|
|
12
13
|
export declare const evmNetworks: Network[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evmNetworks = exports.networksAsArray = exports.networks = exports.seiNetwork = exports.suiNetwork = exports.aptosNetwork = exports.solanaNetwork = exports.polygonNetwork = exports.avalancheNetwork = exports.ethereumNetwork = exports.bitcoinNetwork = void 0;
|
|
3
|
+
exports.evmNetworks = exports.networksAsArray = exports.networks = exports.bnbNetwork = exports.seiNetwork = exports.suiNetwork = exports.aptosNetwork = exports.solanaNetwork = exports.polygonNetwork = exports.avalancheNetwork = exports.ethereumNetwork = exports.bitcoinNetwork = void 0;
|
|
4
4
|
const Address_1 = require("../Address");
|
|
5
5
|
const Network_1 = require("../Network");
|
|
6
6
|
const addresses_1 = require("./addresses");
|
|
@@ -152,11 +152,33 @@ exports.seiNetwork = {
|
|
|
152
152
|
llamaId: 'Sei',
|
|
153
153
|
tokenListUrl: 'https://cdn.jsdelivr.net/npm/@sonarwatch/token-lists/build/sonarwatch.sei.tokenlist.json',
|
|
154
154
|
};
|
|
155
|
+
exports.bnbNetwork = {
|
|
156
|
+
id: Network_1.NetworkId.bnb,
|
|
157
|
+
name: 'bnb',
|
|
158
|
+
image: 'https://sonar.watch/img/networks/bnb.png',
|
|
159
|
+
addressSystem: Address_1.AddressSystem.evm,
|
|
160
|
+
chainId: 56,
|
|
161
|
+
native: {
|
|
162
|
+
address: addresses_1.bnbNativeAddress,
|
|
163
|
+
decimals: 18,
|
|
164
|
+
coingeckoId: 'binancecoin',
|
|
165
|
+
},
|
|
166
|
+
nativeWrapped: {
|
|
167
|
+
address: addresses_1.bnbNativeWrappedAddress,
|
|
168
|
+
decimals: 18,
|
|
169
|
+
coingeckoId: 'wbnb',
|
|
170
|
+
},
|
|
171
|
+
isLive: true,
|
|
172
|
+
geckoId: 'binance-smart-chain',
|
|
173
|
+
llamaId: 'BSC',
|
|
174
|
+
tokenListUrl: 'https://cdn.jsdelivr.net/npm/@sonarwatch/token-lists/build/sonarwatch.bnb.tokenlist.json',
|
|
175
|
+
};
|
|
155
176
|
exports.networks = {
|
|
156
177
|
[Network_1.NetworkId.aptos]: exports.aptosNetwork,
|
|
157
178
|
[Network_1.NetworkId.avalanche]: exports.avalancheNetwork,
|
|
158
179
|
[Network_1.NetworkId.polygon]: exports.polygonNetwork,
|
|
159
180
|
[Network_1.NetworkId.bitcoin]: exports.bitcoinNetwork,
|
|
181
|
+
[Network_1.NetworkId.bnb]: exports.bnbNetwork,
|
|
160
182
|
[Network_1.NetworkId.ethereum]: exports.ethereumNetwork,
|
|
161
183
|
[Network_1.NetworkId.solana]: exports.solanaNetwork,
|
|
162
184
|
[Network_1.NetworkId.sui]: exports.suiNetwork,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networks.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/networks.ts"],"names":[],"mappings":";;;AAAA,wCAA2C;AAC3C,wCAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"networks.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/networks.ts"],"names":[],"mappings":";;;AAAA,wCAA2C;AAC3C,wCAA+D;AAC/D,2CAcqB;AAER,QAAA,cAAc,GAAY;IACrC,EAAE,EAAE,mBAAS,CAAC,OAAO;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,8CAA8C;IACrD,aAAa,EAAE,uBAAa,CAAC,OAAO;IACpC,OAAO,EAAE,CAAC;IACV,MAAM,EAAE;QACN,OAAO,EAAE,gCAAoB;QAC7B,QAAQ,EAAE,CAAC;QACX,WAAW,EAAE,SAAS;KACvB;IACD,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SA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