@riocrypto/common 1.0.1036 → 1.0.1038
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/build/classes/CountryAsset.d.ts +4 -3
- package/build/classes/CountryAsset.js +197 -197
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/country-of-origin.d.ts +59 -0
- package/build/types/country-of-origin.js +63 -0
- package/build/types/country.d.ts +1 -54
- package/build/types/country.js +0 -53
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Country } from "../types/country";
|
|
2
|
+
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
2
3
|
import { Asset } from "./Asset";
|
|
3
|
-
export declare class
|
|
4
|
-
symbol: Country;
|
|
5
|
-
constructor(symbol: Country);
|
|
4
|
+
export declare class CountryOfOriginAsset extends Asset {
|
|
5
|
+
symbol: Country | CountryOfOrigin;
|
|
6
|
+
constructor(symbol: Country | CountryOfOrigin);
|
|
6
7
|
getName(): string;
|
|
7
8
|
getImageUri(): string;
|
|
8
9
|
}
|
|
@@ -1,403 +1,403 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.CountryOfOriginAsset = void 0;
|
|
4
|
+
const country_of_origin_1 = require("../types/country-of-origin");
|
|
5
5
|
const Asset_1 = require("./Asset");
|
|
6
|
-
class
|
|
6
|
+
class CountryOfOriginAsset extends Asset_1.Asset {
|
|
7
7
|
constructor(symbol) {
|
|
8
8
|
super(symbol);
|
|
9
9
|
this.symbol = symbol;
|
|
10
10
|
}
|
|
11
11
|
getName() {
|
|
12
12
|
switch (this.symbol) {
|
|
13
|
-
case
|
|
13
|
+
case country_of_origin_1.CountryOfOrigin.Mexico:
|
|
14
14
|
return "Mexico";
|
|
15
|
-
case
|
|
15
|
+
case country_of_origin_1.CountryOfOrigin.France:
|
|
16
16
|
return "France";
|
|
17
|
-
case
|
|
17
|
+
case country_of_origin_1.CountryOfOrigin.Portugal:
|
|
18
18
|
return "Portugal";
|
|
19
|
-
case
|
|
19
|
+
case country_of_origin_1.CountryOfOrigin.Spain:
|
|
20
20
|
return "Spain";
|
|
21
|
-
case
|
|
21
|
+
case country_of_origin_1.CountryOfOrigin.Germany:
|
|
22
22
|
return "Germany";
|
|
23
|
-
case
|
|
23
|
+
case country_of_origin_1.CountryOfOrigin.Italy:
|
|
24
24
|
return "Italy";
|
|
25
|
-
case
|
|
25
|
+
case country_of_origin_1.CountryOfOrigin.Japan:
|
|
26
26
|
return "Japan";
|
|
27
|
-
case
|
|
27
|
+
case country_of_origin_1.CountryOfOrigin.Panama:
|
|
28
28
|
return "Panama";
|
|
29
|
-
// case
|
|
29
|
+
// case CountryOfOrigin.RussianFederation:
|
|
30
30
|
// return "Russia";
|
|
31
|
-
// case
|
|
31
|
+
// case CountryOfOrigin.China:
|
|
32
32
|
// return "China";
|
|
33
|
-
case
|
|
33
|
+
case country_of_origin_1.CountryOfOrigin.Brazil:
|
|
34
34
|
return "Brazil";
|
|
35
|
-
case
|
|
35
|
+
case country_of_origin_1.CountryOfOrigin.Australia:
|
|
36
36
|
return "Australia";
|
|
37
|
-
case
|
|
37
|
+
case country_of_origin_1.CountryOfOrigin.Canada:
|
|
38
38
|
return "Canada";
|
|
39
|
-
case
|
|
39
|
+
case country_of_origin_1.CountryOfOrigin.Korea:
|
|
40
40
|
return "South Korea";
|
|
41
|
-
case
|
|
41
|
+
case country_of_origin_1.CountryOfOrigin.India:
|
|
42
42
|
return "India";
|
|
43
|
-
case
|
|
43
|
+
case country_of_origin_1.CountryOfOrigin.Indonesia:
|
|
44
44
|
return "Indonesia";
|
|
45
|
-
case
|
|
45
|
+
case country_of_origin_1.CountryOfOrigin.Philippines:
|
|
46
46
|
return "Philippines";
|
|
47
|
-
case
|
|
47
|
+
case country_of_origin_1.CountryOfOrigin.Turkey:
|
|
48
48
|
return "Turkey";
|
|
49
|
-
// case
|
|
49
|
+
// case CountryOfOrigin.SaudiArabia:
|
|
50
50
|
// return "Saudi Arabia";
|
|
51
|
-
// case
|
|
51
|
+
// case CountryOfOrigin.Iran:
|
|
52
52
|
// return "Iran";
|
|
53
|
-
case
|
|
53
|
+
case country_of_origin_1.CountryOfOrigin.SouthAfrica:
|
|
54
54
|
return "South Africa";
|
|
55
|
-
// case
|
|
55
|
+
// case CountryOfOrigin.Nigeria:
|
|
56
56
|
// return "Nigeria";
|
|
57
|
-
// case
|
|
57
|
+
// case CountryOfOrigin.Kenya:
|
|
58
58
|
// return "Kenya";
|
|
59
|
-
// case
|
|
59
|
+
// case CountryOfOrigin.Ghana:
|
|
60
60
|
// return "Ghana";
|
|
61
|
-
// case
|
|
61
|
+
// case CountryOfOrigin.Cameroon:
|
|
62
62
|
// return "Cameroon";
|
|
63
|
-
case
|
|
63
|
+
case country_of_origin_1.CountryOfOrigin.Netherlands:
|
|
64
64
|
return "Netherlands";
|
|
65
|
-
case
|
|
65
|
+
case country_of_origin_1.CountryOfOrigin.Belgium:
|
|
66
66
|
return "Belgium";
|
|
67
|
-
case
|
|
67
|
+
case country_of_origin_1.CountryOfOrigin.Austria:
|
|
68
68
|
return "Austria";
|
|
69
|
-
case
|
|
69
|
+
case country_of_origin_1.CountryOfOrigin.Switzerland:
|
|
70
70
|
return "Switzerland";
|
|
71
|
-
// case
|
|
71
|
+
// case CountryOfOrigin.Finland:
|
|
72
72
|
// return "Finland";
|
|
73
|
-
case
|
|
73
|
+
case country_of_origin_1.CountryOfOrigin.Norway:
|
|
74
74
|
return "Norway";
|
|
75
|
-
case
|
|
75
|
+
case country_of_origin_1.CountryOfOrigin.Sweden:
|
|
76
76
|
return "Sweden";
|
|
77
|
-
case
|
|
77
|
+
case country_of_origin_1.CountryOfOrigin.Poland:
|
|
78
78
|
return "Poland";
|
|
79
|
-
// case
|
|
79
|
+
// case CountryOfOrigin.Romania:
|
|
80
80
|
// return "Romania";
|
|
81
|
-
// case
|
|
81
|
+
// case CountryOfOrigin.Hungary:
|
|
82
82
|
// return "Hungary";
|
|
83
|
-
case
|
|
83
|
+
case country_of_origin_1.CountryOfOrigin.Greece:
|
|
84
84
|
return "Greece";
|
|
85
|
-
case
|
|
85
|
+
case country_of_origin_1.CountryOfOrigin.Ireland:
|
|
86
86
|
return "Ireland";
|
|
87
|
-
case
|
|
87
|
+
case country_of_origin_1.CountryOfOrigin.Iceland:
|
|
88
88
|
return "Iceland";
|
|
89
|
-
// case
|
|
89
|
+
// case CountryOfOrigin.Afghanistan:
|
|
90
90
|
// return "Afghanistan";
|
|
91
|
-
// case
|
|
91
|
+
// case CountryOfOrigin.Albania:
|
|
92
92
|
// return "Albania";
|
|
93
|
-
case
|
|
93
|
+
case country_of_origin_1.CountryOfOrigin.Algeria:
|
|
94
94
|
return "Algeria";
|
|
95
|
-
// case
|
|
95
|
+
// case CountryOfOrigin.AmericanSamoa:
|
|
96
96
|
// return "American Samoa";
|
|
97
|
-
// case
|
|
97
|
+
// case CountryOfOrigin.Andorra:
|
|
98
98
|
// return "Andorra";
|
|
99
|
-
// case
|
|
99
|
+
// case CountryOfOrigin.Angola:
|
|
100
100
|
// return "Angola";
|
|
101
|
-
// case
|
|
101
|
+
// case CountryOfOrigin.Anguilla:
|
|
102
102
|
// return "Anguilla";
|
|
103
|
-
// case
|
|
103
|
+
// case CountryOfOrigin.AntiguaAndBarbuda:
|
|
104
104
|
// return "Antigua and Barbuda";
|
|
105
|
-
case
|
|
105
|
+
case country_of_origin_1.CountryOfOrigin.Argentina:
|
|
106
106
|
return "Argentina";
|
|
107
|
-
// case
|
|
107
|
+
// case CountryOfOrigin.Armenia:
|
|
108
108
|
// return "Armenia";
|
|
109
|
-
// case
|
|
109
|
+
// case CountryOfOrigin.Aruba:
|
|
110
110
|
// return "Aruba";
|
|
111
|
-
case
|
|
111
|
+
case country_of_origin_1.CountryOfOrigin.Australia:
|
|
112
112
|
return "Australia";
|
|
113
|
-
case
|
|
113
|
+
case country_of_origin_1.CountryOfOrigin.Austria:
|
|
114
114
|
return "Austria";
|
|
115
|
-
// case
|
|
115
|
+
// case CountryOfOrigin.Azerbaijan:
|
|
116
116
|
// return "Azerbaijan";
|
|
117
|
-
// case
|
|
117
|
+
// case CountryOfOrigin.Bahamas:
|
|
118
118
|
// return "Bahamas";
|
|
119
|
-
// case
|
|
119
|
+
// case CountryOfOrigin.Bahrain:
|
|
120
120
|
// return "Bahrain";
|
|
121
|
-
// case
|
|
121
|
+
// case CountryOfOrigin.Bangladesh:
|
|
122
122
|
// return "Bangladesh";
|
|
123
|
-
// case
|
|
123
|
+
// case CountryOfOrigin.Barbados:
|
|
124
124
|
// return "Barbados";
|
|
125
|
-
// case
|
|
125
|
+
// case CountryOfOrigin.Belarus:
|
|
126
126
|
// return "Belarus";
|
|
127
|
-
// case
|
|
127
|
+
// case CountryOfOrigin.Belize:
|
|
128
128
|
// return "Belize";
|
|
129
|
-
// case
|
|
129
|
+
// case CountryOfOrigin.Benin:
|
|
130
130
|
// return "Benin";
|
|
131
|
-
// case
|
|
131
|
+
// case CountryOfOrigin.Bermuda:
|
|
132
132
|
// return "Bermuda";
|
|
133
|
-
// case
|
|
133
|
+
// case CountryOfOrigin.Bhutan:
|
|
134
134
|
// return "Bhutan";
|
|
135
|
-
case
|
|
135
|
+
case country_of_origin_1.CountryOfOrigin.Bolivia:
|
|
136
136
|
return "Bolivia";
|
|
137
|
-
// case
|
|
137
|
+
// case CountryOfOrigin.BosniaAndHerzegovina:
|
|
138
138
|
// return "Bosnia and Herzegovina";
|
|
139
|
-
// case
|
|
139
|
+
// case CountryOfOrigin.Botswana:
|
|
140
140
|
// return "Botswana";
|
|
141
|
-
case
|
|
141
|
+
case country_of_origin_1.CountryOfOrigin.Brazil:
|
|
142
142
|
return "Brazil";
|
|
143
|
-
// case
|
|
143
|
+
// case CountryOfOrigin.VirginIslandsBritish:
|
|
144
144
|
// return "British Virgin Islands";
|
|
145
|
-
// case
|
|
145
|
+
// case CountryOfOrigin.BruneiDarussalam:
|
|
146
146
|
// return "Brunei";
|
|
147
|
-
// case
|
|
147
|
+
// case CountryOfOrigin.Bulgaria:
|
|
148
148
|
// return "Bulgaria";
|
|
149
|
-
// case
|
|
149
|
+
// case CountryOfOrigin.BurkinaFaso:
|
|
150
150
|
// return "Burkina Faso";
|
|
151
|
-
// case
|
|
151
|
+
// case CountryOfOrigin.Burundi:
|
|
152
152
|
// return "Burundi";
|
|
153
|
-
// case
|
|
153
|
+
// case CountryOfOrigin.Cambodia:
|
|
154
154
|
// return "Cambodia";
|
|
155
|
-
// case
|
|
155
|
+
// case CountryOfOrigin.Cameroon:
|
|
156
156
|
// return "Cameroon";
|
|
157
|
-
case
|
|
157
|
+
case country_of_origin_1.CountryOfOrigin.Canada:
|
|
158
158
|
return "Canada";
|
|
159
|
-
// case
|
|
159
|
+
// case CountryOfOrigin.CapeVerde:
|
|
160
160
|
// return "Cape Verde";
|
|
161
|
-
// case
|
|
161
|
+
// case CountryOfOrigin.CaymanIslands:
|
|
162
162
|
// return "Cayman Islands";
|
|
163
|
-
// case
|
|
163
|
+
// case CountryOfOrigin.CentralAfricanRepublic:
|
|
164
164
|
// return "Central African Republic";
|
|
165
|
-
// case
|
|
165
|
+
// case CountryOfOrigin.Chad:
|
|
166
166
|
// return "Chad";
|
|
167
|
-
case
|
|
167
|
+
case country_of_origin_1.CountryOfOrigin.Chile:
|
|
168
168
|
return "Chile";
|
|
169
|
-
// case
|
|
169
|
+
// case CountryOfOrigin.China:
|
|
170
170
|
// return "China";
|
|
171
|
-
case
|
|
171
|
+
case country_of_origin_1.CountryOfOrigin.Colombia:
|
|
172
172
|
return "Colombia";
|
|
173
|
-
// case
|
|
173
|
+
// case CountryOfOrigin.Comoros:
|
|
174
174
|
// return "Comoros";
|
|
175
|
-
// case
|
|
175
|
+
// case CountryOfOrigin.Congo:
|
|
176
176
|
// return "Congo";
|
|
177
|
-
// case
|
|
177
|
+
// case CountryOfOrigin.CookIslands:
|
|
178
178
|
// return "Cook Islands";
|
|
179
|
-
case
|
|
179
|
+
case country_of_origin_1.CountryOfOrigin.CostaRica:
|
|
180
180
|
return "Costa Rica";
|
|
181
|
-
// case
|
|
181
|
+
// case CountryOfOrigin.CoteDIvoire:
|
|
182
182
|
// return "Cote D'ivoire";
|
|
183
|
-
// case
|
|
183
|
+
// case CountryOfOrigin.Croatia:
|
|
184
184
|
// return "Croatia";
|
|
185
|
-
// case
|
|
185
|
+
// case CountryOfOrigin.Cuba:
|
|
186
186
|
// return "Cuba";
|
|
187
|
-
// case
|
|
187
|
+
// case CountryOfOrigin.Curaçao:
|
|
188
188
|
// return "Curaçao";
|
|
189
|
-
case
|
|
189
|
+
case country_of_origin_1.CountryOfOrigin.Cyprus:
|
|
190
190
|
return "Cyprus";
|
|
191
|
-
case
|
|
191
|
+
case country_of_origin_1.CountryOfOrigin.CzechRepublic:
|
|
192
192
|
return "Czech Republic";
|
|
193
|
-
// case
|
|
193
|
+
// case CountryOfOrigin.CongoDemocraticRepublic:
|
|
194
194
|
// return "Democratic Republic of the Congo";
|
|
195
|
-
case
|
|
195
|
+
case country_of_origin_1.CountryOfOrigin.Denmark:
|
|
196
196
|
return "Denmark";
|
|
197
|
-
// case
|
|
197
|
+
// case CountryOfOrigin.Djibouti:
|
|
198
198
|
// return "Djibouti";
|
|
199
|
-
// case
|
|
199
|
+
// case CountryOfOrigin.Dominica:
|
|
200
200
|
// return "Dominica";
|
|
201
|
-
case
|
|
201
|
+
case country_of_origin_1.CountryOfOrigin.DominicanRepublic:
|
|
202
202
|
return "Dominican Republic";
|
|
203
|
-
// case
|
|
203
|
+
// case CountryOfOrigin.Ecuador:
|
|
204
204
|
// return "Ecuador";
|
|
205
|
-
// case
|
|
205
|
+
// case CountryOfOrigin.Egypt:
|
|
206
206
|
// return "Egypt";
|
|
207
|
-
// case
|
|
207
|
+
// case CountryOfOrigin.ElSalvador:
|
|
208
208
|
// return "El Salvador";
|
|
209
|
-
// case
|
|
209
|
+
// case CountryOfOrigin.EquatorialGuinea:
|
|
210
210
|
// return "Equatorial Guinea";
|
|
211
|
-
// case
|
|
211
|
+
// case CountryOfOrigin.Eritrea:
|
|
212
212
|
// return "Eritrea";
|
|
213
|
-
case
|
|
213
|
+
case country_of_origin_1.CountryOfOrigin.Estonia:
|
|
214
214
|
return "Estonia";
|
|
215
|
-
// case
|
|
215
|
+
// case CountryOfOrigin.Ethiopia:
|
|
216
216
|
// return "Ethiopia";
|
|
217
|
-
// case
|
|
217
|
+
// case CountryOfOrigin.FalklandIslands:
|
|
218
218
|
// return "Falkland Islands";
|
|
219
|
-
// case
|
|
219
|
+
// case CountryOfOrigin.FaroeIslands:
|
|
220
220
|
// return "Faroe Islands";
|
|
221
|
-
case
|
|
221
|
+
case country_of_origin_1.CountryOfOrigin.Fiji:
|
|
222
222
|
return "Fiji";
|
|
223
|
-
// case
|
|
223
|
+
// case CountryOfOrigin.Finland:
|
|
224
224
|
// return "Finland";
|
|
225
|
-
case
|
|
225
|
+
case country_of_origin_1.CountryOfOrigin.France:
|
|
226
226
|
return "France";
|
|
227
|
-
// case
|
|
227
|
+
// case CountryOfOrigin.FrenchGuiana:
|
|
228
228
|
// return "French Guiana";
|
|
229
|
-
// case
|
|
229
|
+
// case CountryOfOrigin.FrenchPolynesia:
|
|
230
230
|
// return "French Polynesia";
|
|
231
|
-
// case
|
|
231
|
+
// case CountryOfOrigin.Gabon:
|
|
232
232
|
// return "Gabon";
|
|
233
|
-
// case
|
|
233
|
+
// case CountryOfOrigin.Gambia:
|
|
234
234
|
// return "Gambia";
|
|
235
|
-
// case
|
|
235
|
+
// case CountryOfOrigin.Georgia:
|
|
236
236
|
// return "Georgia";
|
|
237
|
-
case
|
|
237
|
+
case country_of_origin_1.CountryOfOrigin.Germany:
|
|
238
238
|
return "Germany";
|
|
239
|
-
// case
|
|
239
|
+
// case CountryOfOrigin.Ghana:
|
|
240
240
|
// return "Ghana";
|
|
241
|
-
// case
|
|
241
|
+
// case CountryOfOrigin.Gibraltar:
|
|
242
242
|
// return "Gibraltar";
|
|
243
|
-
case
|
|
243
|
+
case country_of_origin_1.CountryOfOrigin.Greece:
|
|
244
244
|
return "Greece";
|
|
245
|
-
// case
|
|
245
|
+
// case CountryOfOrigin.Greenland:
|
|
246
246
|
// return "Greenland";
|
|
247
|
-
// case
|
|
247
|
+
// case CountryOfOrigin.Grenada:
|
|
248
248
|
// return "Grenada";
|
|
249
|
-
// case
|
|
249
|
+
// case CountryOfOrigin.Guadeloupe:
|
|
250
250
|
// return "Guadeloupe";
|
|
251
|
-
// case
|
|
251
|
+
// case CountryOfOrigin.Guam:
|
|
252
252
|
// return "Guam";
|
|
253
|
-
// case
|
|
253
|
+
// case CountryOfOrigin.Guatemala:
|
|
254
254
|
// return "Guatemala";
|
|
255
|
-
// case
|
|
255
|
+
// case CountryOfOrigin.Guernsey:
|
|
256
256
|
// return "Guernsey";
|
|
257
|
-
// case
|
|
257
|
+
// case CountryOfOrigin.Guinea:
|
|
258
258
|
// return "Guinea";
|
|
259
|
-
// case
|
|
259
|
+
// case CountryOfOrigin.GuineaBissau:
|
|
260
260
|
// return "Guinea-Bissau";
|
|
261
|
-
// case
|
|
261
|
+
// case CountryOfOrigin.Guyana:
|
|
262
262
|
// return "Guyana";
|
|
263
|
-
// case
|
|
263
|
+
// case CountryOfOrigin.Haiti:
|
|
264
264
|
// return "Haiti";
|
|
265
|
-
// case
|
|
265
|
+
// case CountryOfOrigin.Honduras:
|
|
266
266
|
// return "Honduras";
|
|
267
|
-
case
|
|
267
|
+
case country_of_origin_1.CountryOfOrigin.HongKong:
|
|
268
268
|
return "Hong Kong";
|
|
269
|
-
// case
|
|
269
|
+
// case CountryOfOrigin.Hungary:
|
|
270
270
|
// return "Hungary";
|
|
271
|
-
case
|
|
271
|
+
case country_of_origin_1.CountryOfOrigin.Iceland:
|
|
272
272
|
return "Iceland";
|
|
273
|
-
case
|
|
273
|
+
case country_of_origin_1.CountryOfOrigin.India:
|
|
274
274
|
return "India";
|
|
275
|
-
case
|
|
275
|
+
case country_of_origin_1.CountryOfOrigin.Indonesia:
|
|
276
276
|
return "Indonesia";
|
|
277
|
-
// case
|
|
277
|
+
// case CountryOfOrigin.Iran:
|
|
278
278
|
// return "Iran";
|
|
279
|
-
// case
|
|
279
|
+
// case CountryOfOrigin.Iraq:
|
|
280
280
|
// return "Iraq";
|
|
281
|
-
case
|
|
281
|
+
case country_of_origin_1.CountryOfOrigin.Ireland:
|
|
282
282
|
return "Ireland";
|
|
283
|
-
// case
|
|
283
|
+
// case CountryOfOrigin.IsleOfMan:
|
|
284
284
|
// return "Isle of Man";
|
|
285
|
-
// case
|
|
285
|
+
// case CountryOfOrigin.AlandIslands:
|
|
286
286
|
// return "Aland Islands";
|
|
287
|
-
// case
|
|
287
|
+
// case CountryOfOrigin.Antarctica:
|
|
288
288
|
// return "Antartica";
|
|
289
|
-
// case
|
|
289
|
+
// case CountryOfOrigin.BonaireSintEustatiusSaba:
|
|
290
290
|
// return "Caribbean Netherlands";
|
|
291
|
-
// case
|
|
291
|
+
// case CountryOfOrigin.BouvetIsland:
|
|
292
292
|
// return "Bouvet Island";
|
|
293
|
-
// case
|
|
293
|
+
// case CountryOfOrigin.ChristmasIsland:
|
|
294
294
|
// return "Christmans Islands";
|
|
295
|
-
// case
|
|
295
|
+
// case CountryOfOrigin.FrenchSouthernTerritories:
|
|
296
296
|
// return "French Southern and Antarctic Territories";
|
|
297
|
-
// case
|
|
297
|
+
// case CountryOfOrigin.HeardIslandMcdonaldIslands:
|
|
298
298
|
// return "Heard Island and McDonald Islands";
|
|
299
|
-
// case
|
|
299
|
+
// case CountryOfOrigin.ElSalvador:
|
|
300
300
|
// return "El Salvador";
|
|
301
|
-
case
|
|
301
|
+
case country_of_origin_1.CountryOfOrigin.Israel:
|
|
302
302
|
return "Israel";
|
|
303
|
-
case
|
|
303
|
+
case country_of_origin_1.CountryOfOrigin.Israel:
|
|
304
304
|
return "Israel";
|
|
305
|
-
// case
|
|
305
|
+
// case CountryOfOrigin.Jersey:
|
|
306
306
|
// return "Jersey";
|
|
307
|
-
// case
|
|
307
|
+
// case CountryOfOrigin.Jordan:
|
|
308
308
|
// return "Jordan";
|
|
309
|
-
// case
|
|
309
|
+
// case CountryOfOrigin.Kazakhstan:
|
|
310
310
|
// return "Kazakhstan";
|
|
311
|
-
// case
|
|
311
|
+
// case CountryOfOrigin.Zimbabwe:
|
|
312
312
|
// return "Zimbabwe";
|
|
313
|
-
// case
|
|
313
|
+
// case CountryOfOrigin.VirginIslandsUS:
|
|
314
314
|
// return "US Virgin Islands";
|
|
315
|
-
// case
|
|
315
|
+
// case CountryOfOrigin.LaoPeoplesDemocraticRepublic:
|
|
316
316
|
// return "Laos";
|
|
317
|
-
// case
|
|
317
|
+
// case CountryOfOrigin.SouthGeorgiaAndSandwichIsl:
|
|
318
318
|
// return "South Georgia and the South Sandwich Islands";
|
|
319
|
-
// case
|
|
319
|
+
// case CountryOfOrigin.HolySeeVaticanCityState:
|
|
320
320
|
// return "Vatican City";
|
|
321
|
-
// case
|
|
321
|
+
// case CountryOfOrigin.KoreaDemocraticPeoplesRepublic:
|
|
322
322
|
// return "North Korea";
|
|
323
|
-
// case
|
|
323
|
+
// case CountryOfOrigin.LibyanArabJamahiriya:
|
|
324
324
|
// return "Libya";
|
|
325
|
-
// case
|
|
325
|
+
// case CountryOfOrigin.PalestinianTerritory:
|
|
326
326
|
// return "Palestine";
|
|
327
|
-
// case
|
|
327
|
+
// case CountryOfOrigin.PapuaNewGuinea:
|
|
328
328
|
// return "Papua New Guinea";
|
|
329
|
-
// case
|
|
329
|
+
// case CountryOfOrigin.PuertoRico:
|
|
330
330
|
// return "Puerto Rico";
|
|
331
|
-
// case
|
|
331
|
+
// case CountryOfOrigin.SaintKittsAndNevis:
|
|
332
332
|
// return "Saint Kitts and Nevis";
|
|
333
|
-
// case
|
|
333
|
+
// case CountryOfOrigin.SaintPierreAndMiquelon:
|
|
334
334
|
// return "Saint Pierre and Miquelon";
|
|
335
|
-
// case
|
|
335
|
+
// case CountryOfOrigin.SaintVincentAndGrenadines:
|
|
336
336
|
// return "Saint Vincent and the Grenadines";
|
|
337
|
-
// case
|
|
337
|
+
// case CountryOfOrigin.SaoTomeAndPrincipe:
|
|
338
338
|
// return "São Tomé and Príncipe";
|
|
339
|
-
// case
|
|
339
|
+
// case CountryOfOrigin.SierraLeone:
|
|
340
340
|
// return "Sierra Leone";
|
|
341
|
-
// case
|
|
341
|
+
// case CountryOfOrigin.SintMaarten:
|
|
342
342
|
// return "Sint Maarten";
|
|
343
|
-
// case
|
|
343
|
+
// case CountryOfOrigin.SolomonIslands:
|
|
344
344
|
// return "Solomon Islands";
|
|
345
|
-
// case
|
|
345
|
+
// case CountryOfOrigin.SouthSudan:
|
|
346
346
|
// return "South Sudan";
|
|
347
|
-
// case
|
|
347
|
+
// case CountryOfOrigin.SriLanka:
|
|
348
348
|
// return "Sri Lanka";
|
|
349
|
-
// case
|
|
349
|
+
// case CountryOfOrigin.SvalbardAndJanMayen:
|
|
350
350
|
// return "Svalbard and Jan Mayen";
|
|
351
|
-
// case
|
|
351
|
+
// case CountryOfOrigin.SyrianArabRepublic:
|
|
352
352
|
// return "Syria";
|
|
353
|
-
// case
|
|
353
|
+
// case CountryOfOrigin.TimorLeste:
|
|
354
354
|
// return "Timor-Leste";
|
|
355
|
-
// case
|
|
355
|
+
// case CountryOfOrigin.TrinidadAndTobago:
|
|
356
356
|
// return "Trinidad and Tobago";
|
|
357
|
-
// case
|
|
357
|
+
// case CountryOfOrigin.TurksAndCaicosIslands:
|
|
358
358
|
// return "Turks and Caicos Islands";
|
|
359
|
-
// case
|
|
359
|
+
// case CountryOfOrigin.UnitedArabEmirates:
|
|
360
360
|
// return "United Arab Emirates";
|
|
361
|
-
case
|
|
361
|
+
case country_of_origin_1.CountryOfOrigin.UnitedKingdom:
|
|
362
362
|
return "United Kingdom";
|
|
363
|
-
case
|
|
363
|
+
case country_of_origin_1.CountryOfOrigin.UnitedStates:
|
|
364
364
|
return "United States";
|
|
365
|
-
// case
|
|
365
|
+
// case CountryOfOrigin.UnitedStatesOutlyingIslands:
|
|
366
366
|
// return "United States Outlying Islands";
|
|
367
|
-
// case
|
|
367
|
+
// case CountryOfOrigin.WallisAndFutuna:
|
|
368
368
|
// return "Wallis and Futuna";
|
|
369
|
-
// case
|
|
369
|
+
// case CountryOfOrigin.WesternSahara:
|
|
370
370
|
// return "Wested Sahara";
|
|
371
|
-
// case
|
|
371
|
+
// case CountryOfOrigin.SanMarino:
|
|
372
372
|
// return "San Marino";
|
|
373
|
-
// case
|
|
373
|
+
// case CountryOfOrigin.SaintLucia:
|
|
374
374
|
// return "Saint Lucia";
|
|
375
|
-
// case
|
|
375
|
+
// case CountryOfOrigin.SaintMartin:
|
|
376
376
|
// return "Saint Martin";
|
|
377
|
-
// case
|
|
377
|
+
// case CountryOfOrigin.SaintHelena:
|
|
378
378
|
// return "Saint Helena";
|
|
379
|
-
// case
|
|
379
|
+
// case CountryOfOrigin.SaintBarthelemy:
|
|
380
380
|
// return "Saint Barthelemy";
|
|
381
|
-
// case
|
|
381
|
+
// case CountryOfOrigin.NorthernMarianaIslands:
|
|
382
382
|
// return "Northern Mariana Islands";
|
|
383
|
-
case
|
|
383
|
+
case country_of_origin_1.CountryOfOrigin.NewZealand:
|
|
384
384
|
return "New Zealand";
|
|
385
|
-
// case
|
|
385
|
+
// case CountryOfOrigin.NewCaledonia:
|
|
386
386
|
// return "New Caledonia";
|
|
387
|
-
// case
|
|
387
|
+
// case CountryOfOrigin.NewCaledonia:
|
|
388
388
|
// return "New Caledonia";
|
|
389
|
-
// case
|
|
389
|
+
// case CountryOfOrigin.CocosKeelingIslands:
|
|
390
390
|
// return "Cocos (Keeling) Islands";
|
|
391
|
-
// case
|
|
391
|
+
// case CountryOfOrigin.BritishIndianOceanTerritory:
|
|
392
392
|
// return "Birdt Indian Ocean Territory";
|
|
393
393
|
default:
|
|
394
|
-
const indexOfSymbol = Object.values(
|
|
395
|
-
const key = Object.keys(
|
|
394
|
+
const indexOfSymbol = Object.values(country_of_origin_1.CountryOfOrigin).indexOf(this.symbol);
|
|
395
|
+
const key = Object.keys(country_of_origin_1.CountryOfOrigin)[indexOfSymbol];
|
|
396
396
|
return key;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
getImageUri() {
|
|
400
|
-
return `https://purecatamphetamine.github.io/
|
|
400
|
+
return `https://purecatamphetamine.github.io/CountryOfOrigin-flag-icons/3x2/${this.symbol}.svg`;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
exports.
|
|
403
|
+
exports.CountryOfOriginAsset = CountryOfOriginAsset;
|
package/build/index.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export * from "./events/sender-address-created-event";
|
|
|
106
106
|
export * from "./types/crypto";
|
|
107
107
|
export * from "./types/us-state";
|
|
108
108
|
export * from "./types/country";
|
|
109
|
+
export * from "./types/country-of-origin";
|
|
109
110
|
export * from "./types/fiat";
|
|
110
111
|
export * from "./types/language";
|
|
111
112
|
export * from "./types/liquidity-provider";
|
package/build/index.js
CHANGED
|
@@ -122,6 +122,7 @@ __exportStar(require("./events/sender-address-created-event"), exports);
|
|
|
122
122
|
__exportStar(require("./types/crypto"), exports);
|
|
123
123
|
__exportStar(require("./types/us-state"), exports);
|
|
124
124
|
__exportStar(require("./types/country"), exports);
|
|
125
|
+
__exportStar(require("./types/country-of-origin"), exports);
|
|
125
126
|
__exportStar(require("./types/fiat"), exports);
|
|
126
127
|
__exportStar(require("./types/language"), exports);
|
|
127
128
|
__exportStar(require("./types/liquidity-provider"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare enum CountryOfOrigin {
|
|
2
|
+
Algeria = "DZ",
|
|
3
|
+
Argentina = "AR",
|
|
4
|
+
Australia = "AU",
|
|
5
|
+
Austria = "AT",
|
|
6
|
+
Belgium = "BE",
|
|
7
|
+
Bolivia = "BO",
|
|
8
|
+
Brazil = "BR",
|
|
9
|
+
Canada = "CA",
|
|
10
|
+
Chile = "CL",
|
|
11
|
+
Colombia = "CO",
|
|
12
|
+
CostaRica = "CR",
|
|
13
|
+
Cyprus = "CY",
|
|
14
|
+
CzechRepublic = "CZ",
|
|
15
|
+
Denmark = "DK",
|
|
16
|
+
DominicanRepublic = "DO",
|
|
17
|
+
Estonia = "EE",
|
|
18
|
+
Fiji = "FJ",
|
|
19
|
+
France = "FR",
|
|
20
|
+
Germany = "DE",
|
|
21
|
+
Greece = "GR",
|
|
22
|
+
HongKong = "HK",
|
|
23
|
+
Iceland = "IS",
|
|
24
|
+
India = "IN",
|
|
25
|
+
Indonesia = "ID",
|
|
26
|
+
Ireland = "IE",
|
|
27
|
+
Israel = "IL",
|
|
28
|
+
Italy = "IT",
|
|
29
|
+
Japan = "JP",
|
|
30
|
+
Korea = "KR",
|
|
31
|
+
Latvia = "LV",
|
|
32
|
+
Lithuania = "LT",
|
|
33
|
+
Luxembourg = "LU",
|
|
34
|
+
Malaysia = "MY",
|
|
35
|
+
Mexico = "MX",
|
|
36
|
+
Nepal = "NP",
|
|
37
|
+
Netherlands = "NL",
|
|
38
|
+
NewZealand = "NZ",
|
|
39
|
+
Norway = "NO",
|
|
40
|
+
Paraguay = "PY",
|
|
41
|
+
Peru = "PE",
|
|
42
|
+
Philippines = "PH",
|
|
43
|
+
Poland = "PL",
|
|
44
|
+
Portugal = "PT",
|
|
45
|
+
Singapore = "SG",
|
|
46
|
+
Slovakia = "SK",
|
|
47
|
+
Slovenia = "SI",
|
|
48
|
+
SouthAfrica = "ZA",
|
|
49
|
+
Panama = "PA",
|
|
50
|
+
Spain = "ES",
|
|
51
|
+
Sweden = "SE",
|
|
52
|
+
Switzerland = "CH",
|
|
53
|
+
Tanzania = "TZ",
|
|
54
|
+
Thailand = "TH",
|
|
55
|
+
Turkey = "TR",
|
|
56
|
+
UnitedKingdom = "GB",
|
|
57
|
+
UnitedStates = "US",
|
|
58
|
+
Vietnam = "VN"
|
|
59
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountryOfOrigin = void 0;
|
|
4
|
+
var CountryOfOrigin;
|
|
5
|
+
(function (CountryOfOrigin) {
|
|
6
|
+
CountryOfOrigin["Algeria"] = "DZ";
|
|
7
|
+
CountryOfOrigin["Argentina"] = "AR";
|
|
8
|
+
CountryOfOrigin["Australia"] = "AU";
|
|
9
|
+
CountryOfOrigin["Austria"] = "AT";
|
|
10
|
+
CountryOfOrigin["Belgium"] = "BE";
|
|
11
|
+
CountryOfOrigin["Bolivia"] = "BO";
|
|
12
|
+
CountryOfOrigin["Brazil"] = "BR";
|
|
13
|
+
CountryOfOrigin["Canada"] = "CA";
|
|
14
|
+
CountryOfOrigin["Chile"] = "CL";
|
|
15
|
+
CountryOfOrigin["Colombia"] = "CO";
|
|
16
|
+
CountryOfOrigin["CostaRica"] = "CR";
|
|
17
|
+
CountryOfOrigin["Cyprus"] = "CY";
|
|
18
|
+
CountryOfOrigin["CzechRepublic"] = "CZ";
|
|
19
|
+
CountryOfOrigin["Denmark"] = "DK";
|
|
20
|
+
CountryOfOrigin["DominicanRepublic"] = "DO";
|
|
21
|
+
CountryOfOrigin["Estonia"] = "EE";
|
|
22
|
+
CountryOfOrigin["Fiji"] = "FJ";
|
|
23
|
+
CountryOfOrigin["France"] = "FR";
|
|
24
|
+
CountryOfOrigin["Germany"] = "DE";
|
|
25
|
+
CountryOfOrigin["Greece"] = "GR";
|
|
26
|
+
CountryOfOrigin["HongKong"] = "HK";
|
|
27
|
+
CountryOfOrigin["Iceland"] = "IS";
|
|
28
|
+
CountryOfOrigin["India"] = "IN";
|
|
29
|
+
CountryOfOrigin["Indonesia"] = "ID";
|
|
30
|
+
CountryOfOrigin["Ireland"] = "IE";
|
|
31
|
+
CountryOfOrigin["Israel"] = "IL";
|
|
32
|
+
CountryOfOrigin["Italy"] = "IT";
|
|
33
|
+
CountryOfOrigin["Japan"] = "JP";
|
|
34
|
+
CountryOfOrigin["Korea"] = "KR";
|
|
35
|
+
CountryOfOrigin["Latvia"] = "LV";
|
|
36
|
+
CountryOfOrigin["Lithuania"] = "LT";
|
|
37
|
+
CountryOfOrigin["Luxembourg"] = "LU";
|
|
38
|
+
CountryOfOrigin["Malaysia"] = "MY";
|
|
39
|
+
CountryOfOrigin["Mexico"] = "MX";
|
|
40
|
+
CountryOfOrigin["Nepal"] = "NP";
|
|
41
|
+
CountryOfOrigin["Netherlands"] = "NL";
|
|
42
|
+
CountryOfOrigin["NewZealand"] = "NZ";
|
|
43
|
+
CountryOfOrigin["Norway"] = "NO";
|
|
44
|
+
CountryOfOrigin["Paraguay"] = "PY";
|
|
45
|
+
CountryOfOrigin["Peru"] = "PE";
|
|
46
|
+
CountryOfOrigin["Philippines"] = "PH";
|
|
47
|
+
CountryOfOrigin["Poland"] = "PL";
|
|
48
|
+
CountryOfOrigin["Portugal"] = "PT";
|
|
49
|
+
CountryOfOrigin["Singapore"] = "SG";
|
|
50
|
+
CountryOfOrigin["Slovakia"] = "SK";
|
|
51
|
+
CountryOfOrigin["Slovenia"] = "SI";
|
|
52
|
+
CountryOfOrigin["SouthAfrica"] = "ZA";
|
|
53
|
+
CountryOfOrigin["Panama"] = "PA";
|
|
54
|
+
CountryOfOrigin["Spain"] = "ES";
|
|
55
|
+
CountryOfOrigin["Sweden"] = "SE";
|
|
56
|
+
CountryOfOrigin["Switzerland"] = "CH";
|
|
57
|
+
CountryOfOrigin["Tanzania"] = "TZ";
|
|
58
|
+
CountryOfOrigin["Thailand"] = "TH";
|
|
59
|
+
CountryOfOrigin["Turkey"] = "TR";
|
|
60
|
+
CountryOfOrigin["UnitedKingdom"] = "GB";
|
|
61
|
+
CountryOfOrigin["UnitedStates"] = "US";
|
|
62
|
+
CountryOfOrigin["Vietnam"] = "VN";
|
|
63
|
+
})(CountryOfOrigin = exports.CountryOfOrigin || (exports.CountryOfOrigin = {}));
|
package/build/types/country.d.ts
CHANGED
|
@@ -1,59 +1,6 @@
|
|
|
1
1
|
export declare enum Country {
|
|
2
|
-
Algeria = "DZ",
|
|
3
|
-
Argentina = "AR",
|
|
4
|
-
Australia = "AU",
|
|
5
|
-
Austria = "AT",
|
|
6
|
-
Belgium = "BE",
|
|
7
|
-
Bolivia = "BO",
|
|
8
2
|
Brazil = "BR",
|
|
9
|
-
Canada = "CA",
|
|
10
|
-
Chile = "CL",
|
|
11
|
-
Colombia = "CO",
|
|
12
|
-
CostaRica = "CR",
|
|
13
|
-
Cyprus = "CY",
|
|
14
|
-
CzechRepublic = "CZ",
|
|
15
|
-
Denmark = "DK",
|
|
16
|
-
DominicanRepublic = "DO",
|
|
17
|
-
Estonia = "EE",
|
|
18
|
-
Fiji = "FJ",
|
|
19
|
-
France = "FR",
|
|
20
|
-
Germany = "DE",
|
|
21
|
-
Greece = "GR",
|
|
22
|
-
HongKong = "HK",
|
|
23
|
-
Iceland = "IS",
|
|
24
|
-
India = "IN",
|
|
25
|
-
Indonesia = "ID",
|
|
26
|
-
Ireland = "IE",
|
|
27
|
-
Israel = "IL",
|
|
28
|
-
Italy = "IT",
|
|
29
|
-
Japan = "JP",
|
|
30
|
-
Korea = "KR",
|
|
31
|
-
Latvia = "LV",
|
|
32
|
-
Lithuania = "LT",
|
|
33
|
-
Luxembourg = "LU",
|
|
34
|
-
Malaysia = "MY",
|
|
35
3
|
Mexico = "MX",
|
|
36
|
-
Nepal = "NP",
|
|
37
|
-
Netherlands = "NL",
|
|
38
|
-
NewZealand = "NZ",
|
|
39
|
-
Norway = "NO",
|
|
40
|
-
Paraguay = "PY",
|
|
41
4
|
Peru = "PE",
|
|
42
|
-
|
|
43
|
-
Poland = "PL",
|
|
44
|
-
Portugal = "PT",
|
|
45
|
-
Singapore = "SG",
|
|
46
|
-
Slovakia = "SK",
|
|
47
|
-
Slovenia = "SI",
|
|
48
|
-
SouthAfrica = "ZA",
|
|
49
|
-
Panama = "PA",
|
|
50
|
-
Spain = "ES",
|
|
51
|
-
Sweden = "SE",
|
|
52
|
-
Switzerland = "CH",
|
|
53
|
-
Tanzania = "TZ",
|
|
54
|
-
Thailand = "TH",
|
|
55
|
-
Turkey = "TR",
|
|
56
|
-
UnitedKingdom = "GB",
|
|
57
|
-
UnitedStates = "US",
|
|
58
|
-
Vietnam = "VN"
|
|
5
|
+
UnitedStates = "US"
|
|
59
6
|
}
|
package/build/types/country.js
CHANGED
|
@@ -3,61 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Country = void 0;
|
|
4
4
|
var Country;
|
|
5
5
|
(function (Country) {
|
|
6
|
-
Country["Algeria"] = "DZ";
|
|
7
|
-
Country["Argentina"] = "AR";
|
|
8
|
-
Country["Australia"] = "AU";
|
|
9
|
-
Country["Austria"] = "AT";
|
|
10
|
-
Country["Belgium"] = "BE";
|
|
11
|
-
Country["Bolivia"] = "BO";
|
|
12
6
|
Country["Brazil"] = "BR";
|
|
13
|
-
Country["Canada"] = "CA";
|
|
14
|
-
Country["Chile"] = "CL";
|
|
15
|
-
Country["Colombia"] = "CO";
|
|
16
|
-
Country["CostaRica"] = "CR";
|
|
17
|
-
Country["Cyprus"] = "CY";
|
|
18
|
-
Country["CzechRepublic"] = "CZ";
|
|
19
|
-
Country["Denmark"] = "DK";
|
|
20
|
-
Country["DominicanRepublic"] = "DO";
|
|
21
|
-
Country["Estonia"] = "EE";
|
|
22
|
-
Country["Fiji"] = "FJ";
|
|
23
|
-
Country["France"] = "FR";
|
|
24
|
-
Country["Germany"] = "DE";
|
|
25
|
-
Country["Greece"] = "GR";
|
|
26
|
-
Country["HongKong"] = "HK";
|
|
27
|
-
Country["Iceland"] = "IS";
|
|
28
|
-
Country["India"] = "IN";
|
|
29
|
-
Country["Indonesia"] = "ID";
|
|
30
|
-
Country["Ireland"] = "IE";
|
|
31
|
-
Country["Israel"] = "IL";
|
|
32
|
-
Country["Italy"] = "IT";
|
|
33
|
-
Country["Japan"] = "JP";
|
|
34
|
-
Country["Korea"] = "KR";
|
|
35
|
-
Country["Latvia"] = "LV";
|
|
36
|
-
Country["Lithuania"] = "LT";
|
|
37
|
-
Country["Luxembourg"] = "LU";
|
|
38
|
-
Country["Malaysia"] = "MY";
|
|
39
7
|
Country["Mexico"] = "MX";
|
|
40
|
-
Country["Nepal"] = "NP";
|
|
41
|
-
Country["Netherlands"] = "NL";
|
|
42
|
-
Country["NewZealand"] = "NZ";
|
|
43
|
-
Country["Norway"] = "NO";
|
|
44
|
-
Country["Paraguay"] = "PY";
|
|
45
8
|
Country["Peru"] = "PE";
|
|
46
|
-
Country["Philippines"] = "PH";
|
|
47
|
-
Country["Poland"] = "PL";
|
|
48
|
-
Country["Portugal"] = "PT";
|
|
49
|
-
Country["Singapore"] = "SG";
|
|
50
|
-
Country["Slovakia"] = "SK";
|
|
51
|
-
Country["Slovenia"] = "SI";
|
|
52
|
-
Country["SouthAfrica"] = "ZA";
|
|
53
|
-
Country["Panama"] = "PA";
|
|
54
|
-
Country["Spain"] = "ES";
|
|
55
|
-
Country["Sweden"] = "SE";
|
|
56
|
-
Country["Switzerland"] = "CH";
|
|
57
|
-
Country["Tanzania"] = "TZ";
|
|
58
|
-
Country["Thailand"] = "TH";
|
|
59
|
-
Country["Turkey"] = "TR";
|
|
60
|
-
Country["UnitedKingdom"] = "GB";
|
|
61
9
|
Country["UnitedStates"] = "US";
|
|
62
|
-
Country["Vietnam"] = "VN";
|
|
63
10
|
})(Country = exports.Country || (exports.Country = {}));
|