@lifi/types 1.0.0 → 1.1.1
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 +26 -0
- package/LICENSE.md +201 -0
- package/dist/chains/supported.chains.js +1 -1
- package/dist/coins.js +112 -30
- package/package.json +2 -2
- package/LICENSE +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.1](https://github.com/lifinance/types/compare/v1.1.0...v1.1.1) (2022-07-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove .DS_Store files ([ccd0112](https://github.com/lifinance/types/commit/ccd01122f15f099e17eb3253a87c008f65c991ba))
|
|
11
|
+
|
|
12
|
+
## [1.1.0](https://github.com/lifinance/types/compare/v1.0.1...v1.1.0) (2022-07-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **evmos:** add wrapped and native gas token on Evmos ([#86](https://github.com/lifinance/types/issues/86)) ([0f7eff8](https://github.com/lifinance/types/commit/0f7eff874e7dce1446bfb0b4dacb18b91cb9475f))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* publishing script ([d5e85eb](https://github.com/lifinance/types/commit/d5e85ebfd4de7695082736049bbc0b76a4ed02a2))
|
|
23
|
+
|
|
24
|
+
### [1.0.1](https://github.com/lifinance/types/compare/v1.0.0...v1.0.1) (2022-07-12)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* github package scope ([1c05268](https://github.com/lifinance/types/commit/1c05268218595bfc91b2440a10bb1c8a78f23f23))
|
|
30
|
+
|
|
5
31
|
## [1.0.0](https://github.com/lifinance/types/compare/v0.14.20...v1.0.0) (2022-07-12)
|
|
6
32
|
|
|
7
33
|
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/coins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.findTokenByChainIdAndAddress = exports.findWrappedGasOnChain = exports.findDefaultToken = exports.findDefaultCoin = exports.wrappedTokens = exports.defaultCoins = void 0;
|
|
5
5
|
var base_1 = require("./base");
|
|
@@ -281,6 +281,12 @@ var basicCoins = [
|
|
|
281
281
|
symbol: 'DAI',
|
|
282
282
|
name: 'Dai Stablecoin',
|
|
283
283
|
},
|
|
284
|
+
_d[base_1.ChainId.EVM] = {
|
|
285
|
+
address: '0x461d52769884ca6235B685EF2040F47d30C94EB5',
|
|
286
|
+
decimals: 18,
|
|
287
|
+
symbol: 'DAI',
|
|
288
|
+
name: 'Dai Stablecoin',
|
|
289
|
+
},
|
|
284
290
|
// Testnets
|
|
285
291
|
_d[base_1.ChainId.ROP] = {
|
|
286
292
|
address: '0x31f42841c2db5173425b5223809cf3a38fede360',
|
|
@@ -487,6 +493,14 @@ var basicCoins = [
|
|
|
487
493
|
address: '0x5de1677344d3cb0d7d465c10b72a8f60699c062d',
|
|
488
494
|
decimals: 6,
|
|
489
495
|
},
|
|
496
|
+
_m[base_1.ChainId.EVM] = {
|
|
497
|
+
address: '0x7FF4a56B32ee13D7D4D405887E0eA37d61Ed919e',
|
|
498
|
+
decimals: 6,
|
|
499
|
+
},
|
|
500
|
+
_m[base_1.ChainId.AUR] = {
|
|
501
|
+
address: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
|
|
502
|
+
decimals: 6,
|
|
503
|
+
},
|
|
490
504
|
// Testnets
|
|
491
505
|
_m[base_1.ChainId.ROP] = {
|
|
492
506
|
address: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83',
|
|
@@ -579,6 +593,14 @@ var basicCoins = [
|
|
|
579
593
|
address: '0x66a2a913e447d6b4bf33efbec43aaef87890fbbc',
|
|
580
594
|
decimals: 6,
|
|
581
595
|
},
|
|
596
|
+
_o[base_1.ChainId.EVM] = {
|
|
597
|
+
address: '0x51e44FfaD5C2B122C8b635671FCC8139dc636E82',
|
|
598
|
+
decimals: 6,
|
|
599
|
+
},
|
|
600
|
+
_o[base_1.ChainId.AUR] = {
|
|
601
|
+
address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
|
|
602
|
+
decimals: 6,
|
|
603
|
+
},
|
|
582
604
|
// Testnets
|
|
583
605
|
_o[base_1.ChainId.ROP] = {
|
|
584
606
|
address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f',
|
|
@@ -702,6 +724,14 @@ var basicCoins = [
|
|
|
702
724
|
address: '0xdc0486f8bf31df57a952bcd3c1d3e166e3d9ec8b',
|
|
703
725
|
decimals: 8,
|
|
704
726
|
},
|
|
727
|
+
_q[base_1.ChainId.EVM] = {
|
|
728
|
+
address: '0xF80699Dc594e00aE7bA200c7533a07C1604A106D',
|
|
729
|
+
decimals: 8,
|
|
730
|
+
},
|
|
731
|
+
_q[base_1.ChainId.AUR] = {
|
|
732
|
+
address: '0xF4eB217Ba2454613b15dBdea6e5f22276410e89e',
|
|
733
|
+
decimals: 8,
|
|
734
|
+
},
|
|
705
735
|
_q),
|
|
706
736
|
},
|
|
707
737
|
// > WETH
|
|
@@ -777,6 +807,14 @@ var basicCoins = [
|
|
|
777
807
|
address: '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',
|
|
778
808
|
decimals: 18,
|
|
779
809
|
},
|
|
810
|
+
_r[base_1.ChainId.EVM] = {
|
|
811
|
+
address: '0x5842C5532b61aCF3227679a8b1BD0242a41752f2',
|
|
812
|
+
decimals: 18,
|
|
813
|
+
},
|
|
814
|
+
_r[base_1.ChainId.AUR] = {
|
|
815
|
+
address: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
|
|
816
|
+
decimals: 18,
|
|
817
|
+
},
|
|
780
818
|
// Testnets
|
|
781
819
|
_r[base_1.ChainId.ROP] = {
|
|
782
820
|
address: '0xc778417e063141139fce010982780140aa0cd5ab',
|
|
@@ -1010,6 +1048,32 @@ var basicCoins = [
|
|
|
1010
1048
|
},
|
|
1011
1049
|
_1),
|
|
1012
1050
|
},
|
|
1051
|
+
// > EVM
|
|
1052
|
+
{
|
|
1053
|
+
key: base_1.CoinKey.EVM,
|
|
1054
|
+
name: 'Evmos',
|
|
1055
|
+
logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
|
|
1056
|
+
verified: true,
|
|
1057
|
+
chains: (_2 = {},
|
|
1058
|
+
_2[base_1.ChainId.EVM] = {
|
|
1059
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1060
|
+
decimals: 18,
|
|
1061
|
+
},
|
|
1062
|
+
_2),
|
|
1063
|
+
},
|
|
1064
|
+
// > AURORA
|
|
1065
|
+
{
|
|
1066
|
+
key: base_1.CoinKey.ETH,
|
|
1067
|
+
name: 'AETH',
|
|
1068
|
+
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1069
|
+
verified: true,
|
|
1070
|
+
chains: (_3 = {},
|
|
1071
|
+
_3[base_1.ChainId.AUR] = {
|
|
1072
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1073
|
+
decimals: 18,
|
|
1074
|
+
},
|
|
1075
|
+
_3),
|
|
1076
|
+
},
|
|
1013
1077
|
];
|
|
1014
1078
|
exports.defaultCoins = basicCoins.map(function (coin) {
|
|
1015
1079
|
var _a, _b;
|
|
@@ -1035,8 +1099,8 @@ exports.defaultCoins = basicCoins.map(function (coin) {
|
|
|
1035
1099
|
return defaultCoin;
|
|
1036
1100
|
});
|
|
1037
1101
|
// Wrapped version of gas on chain
|
|
1038
|
-
exports.wrappedTokens = (
|
|
1039
|
-
|
|
1102
|
+
exports.wrappedTokens = (_4 = {},
|
|
1103
|
+
_4[base_1.ChainId.ETH] = {
|
|
1040
1104
|
// https://ww7.etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
|
|
1041
1105
|
address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
1042
1106
|
symbol: 'WETH',
|
|
@@ -1046,7 +1110,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1046
1110
|
name: 'WETH',
|
|
1047
1111
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1048
1112
|
},
|
|
1049
|
-
|
|
1113
|
+
_4[base_1.ChainId.BSC] = {
|
|
1050
1114
|
// https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
|
|
1051
1115
|
address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',
|
|
1052
1116
|
symbol: 'WBNB',
|
|
@@ -1056,7 +1120,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1056
1120
|
name: 'WBNB',
|
|
1057
1121
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1058
1122
|
},
|
|
1059
|
-
|
|
1123
|
+
_4[base_1.ChainId.POL] = {
|
|
1060
1124
|
// https://polygonscan.com/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
|
|
1061
1125
|
address: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
1062
1126
|
symbol: 'WMATIC',
|
|
@@ -1066,7 +1130,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1066
1130
|
name: 'WMATIC',
|
|
1067
1131
|
logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
|
|
1068
1132
|
},
|
|
1069
|
-
|
|
1133
|
+
_4[base_1.ChainId.DAI] = {
|
|
1070
1134
|
// https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d
|
|
1071
1135
|
address: '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',
|
|
1072
1136
|
symbol: 'WXDAI',
|
|
@@ -1076,7 +1140,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1076
1140
|
name: 'WXDAI',
|
|
1077
1141
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x6b175474e89094c44da98b954eedeac495271d0f.png',
|
|
1078
1142
|
},
|
|
1079
|
-
|
|
1143
|
+
_4[base_1.ChainId.OPT] = {
|
|
1080
1144
|
// https://optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
|
|
1081
1145
|
address: '0x4200000000000000000000000000000000000006',
|
|
1082
1146
|
symbol: 'WETH',
|
|
@@ -1086,7 +1150,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1086
1150
|
name: 'Wrapped ETH',
|
|
1087
1151
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1088
1152
|
},
|
|
1089
|
-
|
|
1153
|
+
_4[base_1.ChainId.FTM] = {
|
|
1090
1154
|
//
|
|
1091
1155
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
|
1092
1156
|
symbol: 'wFTM',
|
|
@@ -1096,7 +1160,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1096
1160
|
name: 'wFTM',
|
|
1097
1161
|
logoURI: 'https://assets.spookyswap.finance/coins/0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83.png',
|
|
1098
1162
|
},
|
|
1099
|
-
|
|
1163
|
+
_4[base_1.ChainId.ONE] = {
|
|
1100
1164
|
address: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
|
|
1101
1165
|
symbol: 'WONE',
|
|
1102
1166
|
decimals: 18,
|
|
@@ -1105,7 +1169,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1105
1169
|
name: 'WRAPPED ONE',
|
|
1106
1170
|
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
|
|
1107
1171
|
},
|
|
1108
|
-
|
|
1172
|
+
_4[base_1.ChainId.AVA] = {
|
|
1109
1173
|
address: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
|
|
1110
1174
|
symbol: 'WAVAX',
|
|
1111
1175
|
decimals: 18,
|
|
@@ -1114,7 +1178,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1114
1178
|
name: 'Wrapped AVAX',
|
|
1115
1179
|
logoURI: '',
|
|
1116
1180
|
},
|
|
1117
|
-
|
|
1181
|
+
_4[base_1.ChainId.ARB] = {
|
|
1118
1182
|
address: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
|
|
1119
1183
|
symbol: 'WETH',
|
|
1120
1184
|
decimals: 18,
|
|
@@ -1123,7 +1187,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1123
1187
|
name: 'WETH',
|
|
1124
1188
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1125
1189
|
},
|
|
1126
|
-
|
|
1190
|
+
_4[base_1.ChainId.MOR] = {
|
|
1127
1191
|
address: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
|
|
1128
1192
|
symbol: 'WMOVR',
|
|
1129
1193
|
decimals: 18,
|
|
@@ -1132,7 +1196,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1132
1196
|
name: 'WMOVR',
|
|
1133
1197
|
logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
|
|
1134
1198
|
},
|
|
1135
|
-
|
|
1199
|
+
_4[base_1.ChainId.OKT] = {
|
|
1136
1200
|
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
1137
1201
|
symbol: 'wOKT',
|
|
1138
1202
|
decimals: 18,
|
|
@@ -1141,7 +1205,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1141
1205
|
name: 'wOKT',
|
|
1142
1206
|
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
1143
1207
|
},
|
|
1144
|
-
|
|
1208
|
+
_4[base_1.ChainId.HEC] = {
|
|
1145
1209
|
address: '0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f',
|
|
1146
1210
|
symbol: 'wHT',
|
|
1147
1211
|
decimals: 18,
|
|
@@ -1150,7 +1214,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1150
1214
|
name: 'wHT',
|
|
1151
1215
|
logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png',
|
|
1152
1216
|
},
|
|
1153
|
-
|
|
1217
|
+
_4[base_1.ChainId.CRO] = {
|
|
1154
1218
|
address: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
|
|
1155
1219
|
symbol: 'WCRO',
|
|
1156
1220
|
decimals: 18,
|
|
@@ -1159,7 +1223,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1159
1223
|
name: 'WCRO',
|
|
1160
1224
|
logoURI: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23/logo.png',
|
|
1161
1225
|
},
|
|
1162
|
-
|
|
1226
|
+
_4[base_1.ChainId.FUS] = {
|
|
1163
1227
|
address: '0x0be9e53fd7edac9f859882afdda116645287c629',
|
|
1164
1228
|
symbol: 'WFUSE',
|
|
1165
1229
|
decimals: 18,
|
|
@@ -1168,7 +1232,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1168
1232
|
name: 'Wrapped Fuse',
|
|
1169
1233
|
logoURI: 'https://fuselogo.s3.eu-central-1.amazonaws.com/wfuse.png',
|
|
1170
1234
|
},
|
|
1171
|
-
|
|
1235
|
+
_4[base_1.ChainId.MOO] = {
|
|
1172
1236
|
address: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
1173
1237
|
symbol: 'WGLMR',
|
|
1174
1238
|
decimals: 18,
|
|
@@ -1177,7 +1241,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1177
1241
|
name: 'Wrapped GLMR',
|
|
1178
1242
|
logoURI: 'https://static.debank.com/image/mobm_token/logo_url/0xacc15dc74880c9944775448304b263d191c6077f/a8442077d76b258297181c3e6eb8c9cc.png',
|
|
1179
1243
|
},
|
|
1180
|
-
|
|
1244
|
+
_4[base_1.ChainId.MAM] = {
|
|
1181
1245
|
address: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481',
|
|
1182
1246
|
symbol: 'WMETIS',
|
|
1183
1247
|
decimals: 18,
|
|
@@ -1186,7 +1250,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1186
1250
|
name: 'Wrapped Metis',
|
|
1187
1251
|
logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/9640.png',
|
|
1188
1252
|
},
|
|
1189
|
-
|
|
1253
|
+
_4[base_1.ChainId.BOB] = {
|
|
1190
1254
|
address: '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',
|
|
1191
1255
|
symbol: 'WETH',
|
|
1192
1256
|
decimals: 18,
|
|
@@ -1195,7 +1259,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1195
1259
|
name: 'Wrapped ETH',
|
|
1196
1260
|
logoURI: 'https://static.debank.com/image/boba_token/logo_url/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/b1947b38a90e559eb950453965714be4.png',
|
|
1197
1261
|
},
|
|
1198
|
-
|
|
1262
|
+
_4[base_1.ChainId.CEL] = {
|
|
1199
1263
|
address: '0x471ece3750da237f93b8e339c536989b8978a438',
|
|
1200
1264
|
symbol: 'CELO',
|
|
1201
1265
|
decimals: 18,
|
|
@@ -1204,8 +1268,26 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1204
1268
|
name: 'Celo native asset',
|
|
1205
1269
|
logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5567.png',
|
|
1206
1270
|
},
|
|
1271
|
+
_4[base_1.ChainId.EVM] = {
|
|
1272
|
+
address: '0xd4949664cd82660aae99bedc034a0dea8a0bd517',
|
|
1273
|
+
symbol: 'WEVMOS',
|
|
1274
|
+
decimals: 18,
|
|
1275
|
+
chainId: base_1.ChainId.EVM,
|
|
1276
|
+
coinKey: 'WEVMOS',
|
|
1277
|
+
name: 'Wrapped Evmos',
|
|
1278
|
+
logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
|
|
1279
|
+
},
|
|
1280
|
+
_4[base_1.ChainId.AUR] = {
|
|
1281
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1282
|
+
symbol: 'AETH',
|
|
1283
|
+
decimals: 18,
|
|
1284
|
+
chainId: base_1.ChainId.AUR,
|
|
1285
|
+
coinKey: 'AETH',
|
|
1286
|
+
name: 'AETH',
|
|
1287
|
+
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1288
|
+
},
|
|
1207
1289
|
// Testnets
|
|
1208
|
-
|
|
1290
|
+
_4[base_1.ChainId.ROP] = {
|
|
1209
1291
|
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
|
1210
1292
|
address: '0xc778417e063141139fce010982780140aa0cd5ab',
|
|
1211
1293
|
symbol: 'WETH',
|
|
@@ -1215,7 +1297,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1215
1297
|
name: 'WETH',
|
|
1216
1298
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1217
1299
|
},
|
|
1218
|
-
|
|
1300
|
+
_4[base_1.ChainId.RIN] = {
|
|
1219
1301
|
// https://rinkeby.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
|
1220
1302
|
address: '0xc778417e063141139fce010982780140aa0cd5ab',
|
|
1221
1303
|
symbol: 'WETH',
|
|
@@ -1225,7 +1307,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1225
1307
|
name: 'WETH',
|
|
1226
1308
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1227
1309
|
},
|
|
1228
|
-
|
|
1310
|
+
_4[base_1.ChainId.GOR] = {
|
|
1229
1311
|
// https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
|
|
1230
1312
|
address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
|
|
1231
1313
|
symbol: 'WETH',
|
|
@@ -1235,7 +1317,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1235
1317
|
name: 'WETH',
|
|
1236
1318
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1237
1319
|
},
|
|
1238
|
-
|
|
1320
|
+
_4[base_1.ChainId.KOV] = {
|
|
1239
1321
|
// https://kovan.etherscan.io/address/0xd0a1e359811322d97991e03f863a0c30c2cf029c
|
|
1240
1322
|
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
|
|
1241
1323
|
symbol: 'WETH',
|
|
@@ -1245,7 +1327,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1245
1327
|
name: 'WETH',
|
|
1246
1328
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1247
1329
|
},
|
|
1248
|
-
|
|
1330
|
+
_4[base_1.ChainId.MUM] = {
|
|
1249
1331
|
// https://mumbai.polygonscan.com/token/0x9c3c9283d3e44854697cd22d3faa240cfb032889
|
|
1250
1332
|
address: '0x9c3c9283d3e44854697cd22d3faa240cfb032889',
|
|
1251
1333
|
symbol: 'WMATIC',
|
|
@@ -1255,7 +1337,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1255
1337
|
name: 'WMATIC',
|
|
1256
1338
|
logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
|
|
1257
1339
|
},
|
|
1258
|
-
|
|
1340
|
+
_4[base_1.ChainId.ONET] = {
|
|
1259
1341
|
address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
|
|
1260
1342
|
symbol: 'WONE',
|
|
1261
1343
|
decimals: 18,
|
|
@@ -1264,7 +1346,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1264
1346
|
name: 'WRAPPED ONE',
|
|
1265
1347
|
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
|
|
1266
1348
|
},
|
|
1267
|
-
|
|
1349
|
+
_4[base_1.ChainId.ARBT] = {
|
|
1268
1350
|
// https://testnet.arbiscan.io/token/0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681
|
|
1269
1351
|
address: '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681',
|
|
1270
1352
|
symbol: 'WETH',
|
|
@@ -1274,7 +1356,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1274
1356
|
name: 'WETH',
|
|
1275
1357
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1276
1358
|
},
|
|
1277
|
-
|
|
1359
|
+
_4[base_1.ChainId.OPTT] = {
|
|
1278
1360
|
// https://kovan-optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
|
|
1279
1361
|
address: '0x4200000000000000000000000000000000000006',
|
|
1280
1362
|
symbol: 'WETH',
|
|
@@ -1284,7 +1366,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1284
1366
|
name: 'WETH',
|
|
1285
1367
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1286
1368
|
},
|
|
1287
|
-
|
|
1369
|
+
_4[base_1.ChainId.BSCT] = {
|
|
1288
1370
|
// https://testnet.bscscan.com/token/0xae13d989dac2f0debff460ac112a837c89baa7cd
|
|
1289
1371
|
address: '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd',
|
|
1290
1372
|
symbol: 'WBNB',
|
|
@@ -1294,7 +1376,7 @@ exports.wrappedTokens = (_2 = {},
|
|
|
1294
1376
|
name: 'WBNB',
|
|
1295
1377
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1296
1378
|
},
|
|
1297
|
-
|
|
1379
|
+
_4);
|
|
1298
1380
|
var findDefaultCoin = function (coinKey) {
|
|
1299
1381
|
var coin = exports.defaultCoins.find(function (coin) { return coin.key === coinKey; });
|
|
1300
1382
|
if (!coin) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Types for the LI.FI stack",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"author": "LI.FI <github@li.finanace>",
|
|
40
|
-
"license": "
|
|
40
|
+
"license": "Apache-2.0",
|
|
41
41
|
"homepage": "https://github.com/lifinance/types",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Tom Chen (tomchen.org)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|