@bitgo-beta/statics 7.0.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/.mocharc.js +10 -0
- package/.prettierignore +2 -0
- package/CHANGELOG.md +251 -0
- package/LICENSE +191 -0
- package/README.md +124 -0
- package/dist/resources/aca/index.d.ts +3 -0
- package/dist/resources/aca/index.d.ts.map +1 -0
- package/dist/resources/aca/index.js +15 -0
- package/dist/resources/aca/mainnet.d.ts +2 -0
- package/dist/resources/aca/mainnet.d.ts.map +1 -0
- package/dist/resources/aca/mainnet.js +5 -0
- package/dist/resources/aca/mandala.d.ts +2 -0
- package/dist/resources/aca/mandala.d.ts.map +1 -0
- package/dist/resources/aca/mandala.js +5 -0
- package/dist/resources/dot/index.d.ts +3 -0
- package/dist/resources/dot/index.d.ts.map +1 -0
- package/dist/resources/dot/index.js +15 -0
- package/dist/resources/dot/mainnet.d.ts +2 -0
- package/dist/resources/dot/mainnet.d.ts.map +1 -0
- package/dist/resources/dot/mainnet.js +5 -0
- package/dist/resources/dot/westend.d.ts +2 -0
- package/dist/resources/dot/westend.d.ts.map +1 -0
- package/dist/resources/dot/westend.js +5 -0
- package/dist/src/account.d.ts +676 -0
- package/dist/src/account.d.ts.map +1 -0
- package/dist/src/account.js +1055 -0
- package/dist/src/ada.d.ts +33 -0
- package/dist/src/ada.d.ts.map +1 -0
- package/dist/src/ada.js +55 -0
- package/dist/src/avaxp.d.ts +38 -0
- package/dist/src/avaxp.d.ts.map +1 -0
- package/dist/src/avaxp.js +51 -0
- package/dist/src/base.d.ts +851 -0
- package/dist/src/base.d.ts.map +1 -0
- package/dist/src/base.js +928 -0
- package/dist/src/coins.d.ts +3 -0
- package/dist/src/coins.d.ts.map +1 -0
- package/dist/src/coins.js +978 -0
- package/dist/src/errors.d.ts +31 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +60 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +36 -0
- package/dist/src/map.d.ts +21 -0
- package/dist/src/map.d.ts.map +1 -0
- package/dist/src/map.js +75 -0
- package/dist/src/networks.d.ts +668 -0
- package/dist/src/networks.d.ts.map +1 -0
- package/dist/src/networks.js +838 -0
- package/dist/src/ofc.d.ts +93 -0
- package/dist/src/ofc.d.ts.map +1 -0
- package/dist/src/ofc.js +161 -0
- package/dist/src/tokenConfig.d.ts +129 -0
- package/dist/src/tokenConfig.d.ts.map +1 -0
- package/dist/src/tokenConfig.js +295 -0
- package/dist/src/utxo.d.ts +38 -0
- package/dist/src/utxo.d.ts.map +1 -0
- package/dist/src/utxo.js +55 -0
- package/dist/tsconfig.tsbuildinfo +2021 -0
- package/package.json +41 -0
- package/resources/dot/index.ts +2 -0
- package/resources/dot/mainnet.ts +2 -0
- package/resources/dot/westend.ts +2 -0
package/.mocharc.js
ADDED
package/.prettierignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [7.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@7.0.0-rc.4...@bitgo/statics@7.0.0) (2022-07-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
9
|
+
|
|
10
|
+
# [7.0.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@7.0.0-rc.2...@bitgo/statics@7.0.0-rc.4) (2022-07-19)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **statics:** add toekn MWT ([1bd223d](https://github.com/BitGo/BitGoJS/commit/1bd223d4e0bf24544c57b8f7023a46135f46a632))
|
|
15
|
+
- **statics:** remove 'kind' parameter from FIAT factory and FiatCoin class ([ace31ac](https://github.com/BitGo/BitGoJS/commit/ace31acbb43e1e1f04798f398af28ca8e8aadfc6))
|
|
16
|
+
|
|
17
|
+
# [7.0.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@7.0.0-rc.2...@bitgo/statics@7.0.0-rc.3) (2022-07-18)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
- **statics:** add toekn MWT ([1bd223d](https://github.com/BitGo/BitGoJS/commit/1bd223d4e0bf24544c57b8f7023a46135f46a632))
|
|
22
|
+
|
|
23
|
+
# [7.0.0-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@7.0.0-rc.0...@bitgo/statics@7.0.0-rc.2) (2022-07-15)
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
- **statics:** update avaxp network to use string instead of bigint ([f6505b7](https://github.com/BitGo/BitGoJS/commit/f6505b711e81de7d4ab0c3ee74f33ec7ab07c671))
|
|
28
|
+
|
|
29
|
+
### Reverts
|
|
30
|
+
|
|
31
|
+
- Revert "feat(statics): update terra a classic" ([ddfa942](https://github.com/BitGo/BitGoJS/commit/ddfa942ee1559e430d6ee3775724b20869a8b1ba))
|
|
32
|
+
|
|
33
|
+
### BREAKING CHANGES
|
|
34
|
+
|
|
35
|
+
- **statics:** This change could break calling code as it changes the type.
|
|
36
|
+
|
|
37
|
+
Ticket: STLX-17918
|
|
38
|
+
|
|
39
|
+
# [7.0.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@7.0.0-rc.0...@bitgo/statics@7.0.0-rc.1) (2022-07-14)
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
- **statics:** update avaxp network to use string instead of bigint ([f6505b7](https://github.com/BitGo/BitGoJS/commit/f6505b711e81de7d4ab0c3ee74f33ec7ab07c671))
|
|
44
|
+
|
|
45
|
+
### BREAKING CHANGES
|
|
46
|
+
|
|
47
|
+
- **statics:** This change could break calling code as it changes the type.
|
|
48
|
+
|
|
49
|
+
Ticket: STLX-17918
|
|
50
|
+
|
|
51
|
+
# [7.0.0-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.24...@bitgo/statics@7.0.0-rc.0) (2022-07-11)
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- **bitgo:** create skeleton for hbar tokens ([d156a51](https://github.com/BitGo/BitGoJS/commit/d156a5188fa4923142964284276431fe8a0d4267))
|
|
56
|
+
- **statics:** update terra a classic ([d28bf44](https://github.com/BitGo/BitGoJS/commit/d28bf4498a14be960330cc4fd531ba3acbfd1b3d))
|
|
57
|
+
|
|
58
|
+
### BREAKING CHANGES
|
|
59
|
+
|
|
60
|
+
- **statics:** We are replacing the symbol of ust to usdtc same contract
|
|
61
|
+
|
|
62
|
+
BG-51357
|
|
63
|
+
|
|
64
|
+
# [6.18.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.23...@bitgo/statics@6.18.0-rc.24) (2022-07-07)
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
- **account-lib:** token associate transaction builder for hedera accounts ([417c720](https://github.com/BitGo/BitGoJS/commit/417c7201b55c1fc546d52d5fd4daaf9390a3c480))
|
|
69
|
+
- **statics:** add euroc test token ([ad64797](https://github.com/BitGo/BitGoJS/commit/ad64797757fdbda2d9816bb43fe97398476b3f53))
|
|
70
|
+
- **statics:** add polygon testnet contract address ([61edfa8](https://github.com/BitGo/BitGoJS/commit/61edfa8de1b883be805c4d9686716d97480c8aa2))
|
|
71
|
+
- **statics:** add tokens iceth and wlxt ([d2ed8dc](https://github.com/BitGo/BitGoJS/commit/d2ed8dc9ff6ba9fa14fc77132e5f887fe7006b16))
|
|
72
|
+
- **statics:** update prime trading tokens ([eca20c1](https://github.com/BitGo/BitGoJS/commit/eca20c119529c48620438014071d52638e5724ea))
|
|
73
|
+
|
|
74
|
+
# [6.18.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.22...@bitgo/statics@6.18.0-rc.23) (2022-07-05)
|
|
75
|
+
|
|
76
|
+
### Reverts
|
|
77
|
+
|
|
78
|
+
- Revert "Revert "feat(bitgo): change the names from algo tokens"" ([ea9a761](https://github.com/BitGo/BitGoJS/commit/ea9a7619ef71de008c99fa22bab14ec7aa358db6))
|
|
79
|
+
|
|
80
|
+
# [6.18.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.21...@bitgo/statics@6.18.0-rc.22) (2022-07-01)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
- **statics:** add cardano ada statics ([12c7785](https://github.com/BitGo/BitGoJS/commit/12c7785ff0986edecd4055f8ed277f3fc9d1186e))
|
|
85
|
+
|
|
86
|
+
# [6.18.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.20...@bitgo/statics@6.18.0-rc.21) (2022-06-30)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
89
|
+
|
|
90
|
+
# [6.18.0-rc.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.18...@bitgo/statics@6.18.0-rc.20) (2022-06-29)
|
|
91
|
+
|
|
92
|
+
### Reverts
|
|
93
|
+
|
|
94
|
+
- Revert "feat(bitgo): change the names from algo tokens" ([81e794b](https://github.com/BitGo/BitGoJS/commit/81e794bba02f050055452481e0b87b58e68928de))
|
|
95
|
+
|
|
96
|
+
# [6.18.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.18...@bitgo/statics@6.18.0-rc.19) (2022-06-29)
|
|
97
|
+
|
|
98
|
+
### Reverts
|
|
99
|
+
|
|
100
|
+
- Revert "feat(bitgo): change the names from algo tokens" ([81e794b](https://github.com/BitGo/BitGoJS/commit/81e794bba02f050055452481e0b87b58e68928de))
|
|
101
|
+
|
|
102
|
+
# [6.18.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.17...@bitgo/statics@6.18.0-rc.18) (2022-06-27)
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
- **statics:** tokens june pt2 ([e98a176](https://github.com/BitGo/BitGoJS/commit/e98a176b8081ac512d27530e8cf4c0200b5884d2))
|
|
107
|
+
|
|
108
|
+
# [6.18.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.16...@bitgo/statics@6.18.0-rc.17) (2022-06-23)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
111
|
+
|
|
112
|
+
# [6.18.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.15...@bitgo/statics@6.18.0-rc.16) (2022-06-22)
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
- **bitgo:** change the names from algo tokens ([8925d4e](https://github.com/BitGo/BitGoJS/commit/8925d4e15cd973e86bc3f78ade3fa863adfde656))
|
|
117
|
+
- onboard solana GMT token ([e0d0e56](https://github.com/BitGo/BitGoJS/commit/e0d0e563246e7b3c339ee3121aa58f09d07750b6))
|
|
118
|
+
|
|
119
|
+
# [6.18.0-rc.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.14...@bitgo/statics@6.18.0-rc.15) (2022-06-21)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
122
|
+
|
|
123
|
+
# [6.18.0-rc.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.13...@bitgo/statics@6.18.0-rc.14) (2022-06-14)
|
|
124
|
+
|
|
125
|
+
### Features
|
|
126
|
+
|
|
127
|
+
- **sdk-coin-avaxp:** implemented builder for AddValidatorTx ([7cb8b2f](https://github.com/BitGo/BitGoJS/commit/7cb8b2fcaa31ff0dc165abcddd1f8383a7ecef5a))
|
|
128
|
+
|
|
129
|
+
# [6.18.0-rc.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.12...@bitgo/statics@6.18.0-rc.13) (2022-06-13)
|
|
130
|
+
|
|
131
|
+
### Features
|
|
132
|
+
|
|
133
|
+
- **statics:** add hbar token support + added hedera usdc token ([c844536](https://github.com/BitGo/BitGoJS/commit/c84453683cdfa9c412f3825ec104e406db502b63))
|
|
134
|
+
|
|
135
|
+
# [6.18.0-rc.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.11...@bitgo/statics@6.18.0-rc.12) (2022-06-10)
|
|
136
|
+
|
|
137
|
+
### Features
|
|
138
|
+
|
|
139
|
+
- **statics:** add TSS as a coin feature ([f8a274b](https://github.com/BitGo/BitGoJS/commit/f8a274b453da826ce37d0d02fd1ad3d656164d10))
|
|
140
|
+
- **statics:** tokens begin june ([3fda3e3](https://github.com/BitGo/BitGoJS/commit/3fda3e3dabccbe78b29ab92aa9f0288854c99983))
|
|
141
|
+
|
|
142
|
+
# [6.18.0-rc.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.10...@bitgo/statics@6.18.0-rc.11) (2022-06-07)
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
- **statics:** fix tsol token decimal ([3b66d7e](https://github.com/BitGo/BitGoJS/commit/3b66d7e5fa5277d63eb810b1c7b70607ce9ce663))
|
|
147
|
+
|
|
148
|
+
# [6.18.0-rc.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.9...@bitgo/statics@6.18.0-rc.10) (2022-06-07)
|
|
149
|
+
|
|
150
|
+
### Features
|
|
151
|
+
|
|
152
|
+
- implement polygon util method, core skeleton ([562855a](https://github.com/BitGo/BitGoJS/commit/562855afea41458f9569c90914619a6d515b92c0))
|
|
153
|
+
|
|
154
|
+
# [6.18.0-rc.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.8...@bitgo/statics@6.18.0-rc.9) (2022-06-01)
|
|
155
|
+
|
|
156
|
+
### Features
|
|
157
|
+
|
|
158
|
+
- **statics:** add tokens of end of may ([21d895d](https://github.com/BitGo/BitGoJS/commit/21d895de437600e9cdfcbc45e1f920e0065f83cb))
|
|
159
|
+
|
|
160
|
+
# [6.18.0-rc.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.7...@bitgo/statics@6.18.0-rc.8) (2022-05-23)
|
|
161
|
+
|
|
162
|
+
### Features
|
|
163
|
+
|
|
164
|
+
- **statics:** update new wxrp ([ba6ff5d](https://github.com/BitGo/BitGoJS/commit/ba6ff5dd310f1b3738e303c58f122621481f5fb0))
|
|
165
|
+
|
|
166
|
+
# [6.18.0-rc.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.6...@bitgo/statics@6.18.0-rc.7) (2022-05-17)
|
|
167
|
+
|
|
168
|
+
### Bug Fixes
|
|
169
|
+
|
|
170
|
+
- **statics:** remove bn.js dependency ([d473aa1](https://github.com/BitGo/BitGoJS/commit/d473aa1958ee405c35d4e86ed520082fd5cb64b1))
|
|
171
|
+
|
|
172
|
+
### Features
|
|
173
|
+
|
|
174
|
+
- **statics:** add fly coin ([4ee0b05](https://github.com/BitGo/BitGoJS/commit/4ee0b0556a3358999fe5f9986882ca3e2389038c))
|
|
175
|
+
- **statics:** add polygon coin config ([fc7f9b3](https://github.com/BitGo/BitGoJS/commit/fc7f9b3ee22849cf615ca49dc32ac2fcac687ec7))
|
|
176
|
+
|
|
177
|
+
# [6.18.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.5...@bitgo/statics@6.18.0-rc.6) (2022-05-16)
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
- **statics:** add fiatusd and tfiatusd coins ([1750a43](https://github.com/BitGo/BitGoJS/commit/1750a4319298a839fc7dd3f418420f26b2cdb5a0))
|
|
182
|
+
|
|
183
|
+
# [6.18.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.4...@bitgo/statics@6.18.0-rc.5) (2022-05-13)
|
|
184
|
+
|
|
185
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
186
|
+
|
|
187
|
+
# [6.18.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.3...@bitgo/statics@6.18.0-rc.4) (2022-05-13)
|
|
188
|
+
|
|
189
|
+
### Features
|
|
190
|
+
|
|
191
|
+
- **statics:** create statics for dogecoin ([66e8862](https://github.com/BitGo/BitGoJS/commit/66e88626e09cf886748c2db2ce866b9a7f26cab3))
|
|
192
|
+
|
|
193
|
+
# [6.18.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.2...@bitgo/statics@6.18.0-rc.3) (2022-05-12)
|
|
194
|
+
|
|
195
|
+
### Bug Fixes
|
|
196
|
+
|
|
197
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([e88d8b9](https://github.com/BitGo/BitGoJS/commit/e88d8b93cf24617094f8f0a892083f2e15a35019))
|
|
198
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([c2f90b7](https://github.com/BitGo/BitGoJS/commit/c2f90b7e7522bd245b9f20b8fe6755b50f087815))
|
|
199
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([44dcff6](https://github.com/BitGo/BitGoJS/commit/44dcff68c2b03a70094e2e744039c3cc9c7fe505))
|
|
200
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([438c7cc](https://github.com/BitGo/BitGoJS/commit/438c7ccb48375ae081f39225810094b4283acb3e))
|
|
201
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([64bde49](https://github.com/BitGo/BitGoJS/commit/64bde499a6ed71a015cf3baa51c2e07d3d7fbaf7))
|
|
202
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([fce2d8e](https://github.com/BitGo/BitGoJS/commit/fce2d8e70bef87096fe185ebcfb4df3e391ac1d4))
|
|
203
|
+
- **statics:** change the display of BitGo DAI to SAI to reduce entry errors ([7b39d92](https://github.com/BitGo/BitGoJS/commit/7b39d9298a937ce1bc1bc2606bf5c87883269398))
|
|
204
|
+
|
|
205
|
+
### Features
|
|
206
|
+
|
|
207
|
+
- **statics:** cFX token deletion from bitgo wallet ([e7e32d6](https://github.com/BitGo/BitGoJS/commit/e7e32d6051aa2f2316dcd796d12b44b957f96d08))
|
|
208
|
+
|
|
209
|
+
# [6.18.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.18.0-rc.0...@bitgo/statics@6.18.0-rc.1) (2022-05-06)
|
|
210
|
+
|
|
211
|
+
### Features
|
|
212
|
+
|
|
213
|
+
- **statics:** create statics for avaxp ([34776cd](https://github.com/BitGo/BitGoJS/commit/34776cd649f424a05b33481b4a582ea4cf844325))
|
|
214
|
+
|
|
215
|
+
# [6.17.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0...@bitgo/statics@6.17.0-rc.24) (2022-05-04)
|
|
216
|
+
|
|
217
|
+
### Features
|
|
218
|
+
|
|
219
|
+
- **statics:** add new tokens for may BOBA, OKB and PYR ([07d9ed2](https://github.com/BitGo/BitGoJS/commit/07d9ed2bbc82cd946cd5dd7c28d7713d16f01d05))
|
|
220
|
+
|
|
221
|
+
# [6.17.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.21...@bitgo/statics@6.17.0-rc.22) (2022-04-19)
|
|
222
|
+
|
|
223
|
+
### Features
|
|
224
|
+
|
|
225
|
+
- **statics:** add april tokens ERC20 and algo token ([a0cb164](https://github.com/BitGo/BitGoJS/commit/a0cb164d01872abc47925df97ddf43c35b58c7f1))
|
|
226
|
+
|
|
227
|
+
# [6.17.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.20...@bitgo/statics@6.17.0-rc.21) (2022-04-19)
|
|
228
|
+
|
|
229
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
230
|
+
|
|
231
|
+
# [6.17.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.18...@bitgo/statics@6.17.0-rc.19) (2022-04-12)
|
|
232
|
+
|
|
233
|
+
**Note:** Version bump only for package @bitgo/statics
|
|
234
|
+
|
|
235
|
+
# [6.17.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.15...@bitgo/statics@6.17.0-rc.18) (2022-04-08)
|
|
236
|
+
|
|
237
|
+
### Features
|
|
238
|
+
|
|
239
|
+
- **statics:** update contract nym erc20 token ([84cd360](https://github.com/BitGo/BitGoJS/commit/84cd3609a9c5533635082d22bd42eb96ff1642fc))
|
|
240
|
+
|
|
241
|
+
# [6.17.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.15...@bitgo/statics@6.17.0-rc.17) (2022-04-06)
|
|
242
|
+
|
|
243
|
+
### Features
|
|
244
|
+
|
|
245
|
+
- **statics:** update contract nym erc20 token ([84cd360](https://github.com/BitGo/BitGoJS/commit/84cd3609a9c5533635082d22bd42eb96ff1642fc))
|
|
246
|
+
|
|
247
|
+
# [6.17.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/statics@6.17.0-rc.15...@bitgo/statics@6.17.0-rc.16) (2022-04-05)
|
|
248
|
+
|
|
249
|
+
### Features
|
|
250
|
+
|
|
251
|
+
- **statics:** update contract nym erc20 token ([84cd360](https://github.com/BitGo/BitGoJS/commit/84cd3609a9c5533635082d22bd42eb96ff1642fc))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2022 BitGo
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<h1 style="text-align: center;">
|
|
2
|
+
<pre>@bitgo/statics</pre>
|
|
3
|
+
</h1>
|
|
4
|
+
<h3 style="text-align: center;">
|
|
5
|
+
Static config for the BitGo platform
|
|
6
|
+
</h3>
|
|
7
|
+
|
|
8
|
+
## Goals
|
|
9
|
+
|
|
10
|
+
- Provide an "encyclopedia" of all relevant constants which are sprinkled throughout the BitGo stack.
|
|
11
|
+
- Separate _static_ config data from _dynamic_ config data
|
|
12
|
+
- Strong typing for static config properties, with full type information for configuration items
|
|
13
|
+
- Ability to export static configuration as JSON for consumption by non-javascript projects
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
### Get the number of decimal places in a Bitcoin
|
|
18
|
+
|
|
19
|
+
#### JavaScript
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
const { coins } = require('@bitgo/statics');
|
|
23
|
+
|
|
24
|
+
const btc = coins.get('btc');
|
|
25
|
+
console.log(btc.decimalPlaces);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### TypeScript
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { coins } from '@bitgo/statics';
|
|
32
|
+
|
|
33
|
+
const btc = coins.get('btc');
|
|
34
|
+
console.log(btc.decimalPlaces);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Get the contract address for the OmiseGo ERC20 Token
|
|
38
|
+
|
|
39
|
+
#### JavaScript
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
const { coins } = require('@bitgo/statics');
|
|
43
|
+
|
|
44
|
+
const omg = coins.get('omg');
|
|
45
|
+
console.log(omg.contractAddress);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### TypeScript
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { coins, Erc20Coin } from '@bitgo/statics';
|
|
52
|
+
|
|
53
|
+
const omg = coins.get('omg');
|
|
54
|
+
if (omg instanceof Erc20Coin) {
|
|
55
|
+
console.log(omg.contractAddress);
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### List full names of all defined coins
|
|
60
|
+
|
|
61
|
+
#### JavaScript
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
const { coins } = require('@bitgo/statics');
|
|
65
|
+
|
|
66
|
+
coins.forEach((coin) => {
|
|
67
|
+
console.log(coin.fullName);
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### TypeScript
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import { coins } from '@bitgo/statics';
|
|
75
|
+
|
|
76
|
+
coins.forEach((coin) => {
|
|
77
|
+
console.log(coin.fullName);
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Repo Status
|
|
82
|
+
|
|
83
|
+
- UTXO and account base types are defined
|
|
84
|
+
- Documentation is mostly source code comments and README examples
|
|
85
|
+
- This library can be depended on, but expect some changes going forward
|
|
86
|
+
|
|
87
|
+
## Project Structure
|
|
88
|
+
|
|
89
|
+
- `src/base.ts`: Interfaces and enums used by coin implementation classes.
|
|
90
|
+
- `src/coins.ts`: Coin definitions.
|
|
91
|
+
- `src/networks.ts`: Network interfaces and implementation classes.
|
|
92
|
+
- `src/utxo.ts`: Unspent Transaction Output (UTXO) based coin classes and factory function.
|
|
93
|
+
- `src/account.ts`: Account-based coin classes and factory methods. Includes ERC20 factory functions.
|
|
94
|
+
- `src/errors.ts`: Custom Error classes.
|
|
95
|
+
|
|
96
|
+
## Installation + Building
|
|
97
|
+
|
|
98
|
+
To install the project locally, run the following steps:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
$ # clone the project locally
|
|
102
|
+
$ git clone git@github.com:BitGo/statics.git
|
|
103
|
+
|
|
104
|
+
$ # npm install dependencies (optionally use node >8.6.0)
|
|
105
|
+
$ # (optionally) nvm install 8.6.0 -- required to run the linter which is executed pre-commit
|
|
106
|
+
$ # (optionally) nvm use 8.6.0
|
|
107
|
+
$ npm install
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
To build the project (from TypeScript to JavaScript):
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
$ npm run build
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This builds the JavaScript and adds it to `dist/src/`. You will receive compilation errors if you have invalid syntax.
|
|
117
|
+
|
|
118
|
+
## Tests
|
|
119
|
+
|
|
120
|
+
To run tests:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
$ npm run test
|
|
124
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/aca/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./mainnet"), exports);
|
|
14
|
+
__exportStar(require("./mandala"), exports);
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9yZXNvdXJjZXMvYWNhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLDRDQUEwQjtBQUMxQiw0Q0FBMEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21haW5uZXQnO1xuZXhwb3J0ICogZnJvbSAnLi9tYW5kYWxhJztcbiJdfQ==
|