├── .gitignore
├── .soliumignore
├── .soliumrc.json
├── LICENSE
├── README.md
├── contracts
├── ERC20Faucet.sol
├── ERC20Tokens
│ └── Trustcoin.sol
├── Migrations.sol
└── SafeMath.sol
├── migrations
├── 1_initial_migration.js
└── 2_deploy_trst_faucet.js
├── package-lock.json
├── package.json
├── scripts
└── getTokens.js
├── truffle-config.js
└── truffle.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # dirs
2 | /.idea/
3 | /build/
4 | /contracts/*Test.sol
5 | /node_modules/
6 |
7 | # files
8 | /.project
9 | /.env
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.soliumignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | contracts/ERC20Tokens
--------------------------------------------------------------------------------
/.soliumrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "solium:recommended",
3 | "plugins": [
4 | "security"
5 | ],
6 | "rules": {
7 | "indentation": [
8 | "error",
9 | 2
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
676 |
677 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # erc20faucet-contracts
2 | Smart contract that holds an ERC20 token and provides `getTokens` method to claim free tokens.
3 |
4 |
5 | ### Constructors
6 | 1. `_erc20ContractAddress`: The address of the ERC20 token the faucet holds.
7 |
8 | 2. `_maxAllowanceInclusive`: The maximum amount (inclusive) allowed to claim. This can be changed later via `setMaxAllowance`.
9 |
10 |
11 | ### Example
12 |
13 | ##### TRST faucet on Rinkeby used for TrustedLendingCircle
14 | - This smart contract is deployed on the Rinkeby network https://rinkeby.etherscan.io/address/0x9bc14c55139501643b62d49c9e8def17029ad418#code at commit https://github.com/WeTrustPlatform/erc20faucet-contracts/commit/1686ab46efd67dccf36427d65cc2ac4ca886e3ee
15 |
16 | ##### How to get free TRST on Rinkeby Network
17 | - Add TRST token address [0x87099add3bcc0821b5b151307c147215f839a110](https://rinkeby.etherscan.io/address/0x87099add3bcc0821b5b151307c147215f839a110) on Rinkeby to Metamask following this [handy guide](https://docs.google.com/document/d/1rnJPZBstpzyMUZ_DGDTFeXeI037eg1dpA31X7egq4Lo/edit#heading=h.nidysogysmaf).
18 | - To claim free TRST, copy and paste `./scripts/getTokens.js` raw content into Chrome's console that is connected to Metamask on Rinkeby. The default amount to claim in the script is 1 TRST. You can change the value of `amountToClaim` in the script to the amount you want to claim but the maximum amount allowed is `_maxAllowanceInclusive`.
19 | - Submit the transaction in the Metamask popup modal.
20 | - The amount of claimed TRST should be displayed on Metamask once the transaction is mined on Rinkeby.
21 |
22 |
23 | ### License
24 | [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html)
25 |
--------------------------------------------------------------------------------
/contracts/ERC20Faucet.sol:
--------------------------------------------------------------------------------
1 | // ERC20Faucet
2 | // Copyright (C) 2018 WeTrustPlatform
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 |
17 | pragma solidity ^0.4.19;
18 |
19 | import "./SafeMath.sol";
20 |
21 | contract ERC20TokenInterface {
22 | function totalSupply() constant public returns (uint256 supply);
23 | function balanceOf(address _owner) constant public returns (uint256 balance);
24 | function transfer(address _to, uint256 _value) public returns (bool success);
25 | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
26 | function approve(address _spender, uint256 _value) public returns (bool success);
27 | function allowance(address _owner, address _spender) constant public returns (uint256 remaining);
28 | event Transfer(address indexed from, address indexed to, uint256 value);
29 | event Approval(address indexed owner, address indexed spender, uint256 value);
30 | }
31 |
32 | contract ERC20Faucet {
33 | using SafeMath for uint256;
34 |
35 | uint256 public maxAllowanceInclusive;
36 | mapping (address => uint256) public claimedTokens;
37 | ERC20TokenInterface public erc20Contract;
38 | bool public isPaused = false;
39 |
40 | address private mOwner;
41 | bool private mReentrancyLock = false;
42 |
43 | event GetTokens(address requestor, uint256 amount);
44 | event ReclaimTokens(address owner, uint256 tokenAmount);
45 | event SetPause(address setter, bool newState, bool oldState);
46 | event SetMaxAllowance(address setter, uint256 newState, uint256 oldState);
47 |
48 | modifier notPaused() {
49 | require(!isPaused);
50 | _;
51 | }
52 |
53 | modifier onlyOwner() {
54 | require(msg.sender == mOwner);
55 | _;
56 | }
57 |
58 | modifier nonReentrant() {
59 | require(!mReentrancyLock);
60 | mReentrancyLock = true;
61 | _;
62 | mReentrancyLock = false;
63 | }
64 |
65 | function ERC20Faucet(ERC20TokenInterface _erc20ContractAddress, uint256 _maxAllowanceInclusive) public {
66 | mOwner = msg.sender;
67 | maxAllowanceInclusive = _maxAllowanceInclusive;
68 | erc20Contract = _erc20ContractAddress;
69 | }
70 |
71 | function getTokens(uint256 amount) notPaused nonReentrant public returns (bool) {
72 | require(claimedTokens[msg.sender].add(amount) <= maxAllowanceInclusive);
73 | require(erc20Contract.balanceOf(this) >= amount);
74 |
75 | claimedTokens[msg.sender] = claimedTokens[msg.sender].add(amount);
76 |
77 | if (!erc20Contract.transfer(msg.sender, amount)) {
78 | claimedTokens[msg.sender] = claimedTokens[msg.sender].sub(amount);
79 | return false;
80 | }
81 |
82 | GetTokens(msg.sender, amount);
83 | return true;
84 | }
85 |
86 | function setMaxAllowance(uint256 _maxAllowanceInclusive) onlyOwner nonReentrant public {
87 | SetMaxAllowance(msg.sender, _maxAllowanceInclusive, maxAllowanceInclusive);
88 | maxAllowanceInclusive = _maxAllowanceInclusive;
89 | }
90 |
91 | function reclaimTokens() onlyOwner nonReentrant public returns (bool) {
92 | uint256 tokenBalance = erc20Contract.balanceOf(this);
93 | if (!erc20Contract.transfer(msg.sender, tokenBalance)) {
94 | return false;
95 | }
96 |
97 | ReclaimTokens(msg.sender, tokenBalance);
98 | return true;
99 | }
100 |
101 | function setPause(bool _isPaused) onlyOwner nonReentrant public {
102 | SetPause(msg.sender, _isPaused, isPaused);
103 | isPaused = _isPaused;
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/contracts/ERC20Tokens/Trustcoin.sol:
--------------------------------------------------------------------------------
1 | /**
2 | * TRST Trustcoin contract, ERC20 compliant (see https://github.com/ethereum/EIPs/issues/20)
3 | *
4 | * Code is based on multiple sources:
5 | * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20.sol
6 | * https://github.com/ConsenSys/Tokens/blob/master/Token_Contracts/contracts/StandardToken.sol
7 | * https://github.com/ConsenSys/Tokens/blob/master/Token_Contracts/contracts/HumanStandardToken.sol
8 | */
9 |
10 | // Abstract contract for the full ERC 20 Token standard
11 | // https://github.com/ethereum/EIPs/issues/20
12 |
13 | // Based on https://github.com/ConsenSys/Tokens/blob/master/Token_Contracts/contracts/Token.sol
14 | pragma solidity ^0.4.19;
15 |
16 | contract ERC20TokenInterface {
17 |
18 | /// @return The total amount of tokens
19 | function totalSupply() constant returns (uint256 supply);
20 |
21 | /// @param _owner The address from which the balance will be retrieved
22 | /// @return The balance
23 | function balanceOf(address _owner) constant public returns (uint256 balance);
24 |
25 | /// @notice send `_value` token to `_to` from `msg.sender`
26 | /// @param _to The address of the recipient
27 | /// @param _value The amount of token to be transferred
28 | /// @return Whether the transfer was successful or not
29 | function transfer(address _to, uint256 _value) public returns (bool success);
30 |
31 | /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
32 | /// @param _from The address of the sender
33 | /// @param _to The address of the recipient
34 | /// @param _value The amount of token to be transferred
35 | /// @return Whether the transfer was successful or not
36 | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
37 |
38 | /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
39 | /// @param _spender The address of the account able to transfer the tokens
40 | /// @param _value The amount of tokens to be approved for transfer
41 | /// @return Whether the approval was successful or not
42 | function approve(address _spender, uint256 _value) public returns (bool success);
43 |
44 | /// @param _owner The address of the account owning tokens
45 | /// @param _spender The address of the account able to transfer the tokens
46 | /// @return Amount of remaining tokens allowed to spent
47 | function allowance(address _owner, address _spender) constant public returns (uint256 remaining);
48 |
49 | event Transfer(address indexed from, address indexed to, uint256 value);
50 | event Approval(address indexed owner, address indexed spender, uint256 value);
51 | }
52 |
53 | contract Trustcoin is ERC20TokenInterface {
54 |
55 | //// Constants ////
56 | string public constant name = 'Trustcoin';
57 | uint256 public constant decimals = 6;
58 | string public constant symbol = 'TRST';
59 | string public constant version = 'TRST1.0';
60 |
61 | // One hundred million coins, each divided to up to 10^decimals units.
62 | uint256 private constant totalTokens = 100000000 * (10 ** decimals);
63 |
64 | mapping (address => uint256) public balances; // (ERC20)
65 | // A mapping from an account owner to a map from approved spender to their allowances.
66 | // (see ERC20 for details about allowances).
67 | mapping (address => mapping (address => uint256)) public allowed; // (ERC20)
68 |
69 | //// Events ////
70 | event MigrationInfoSet(string newMigrationInfo);
71 |
72 | // This is to be used when migration to a new contract starts.
73 | // This string can be used for any authorative information re the migration
74 | // (e.g. address to use for migration, or URL to explain where to find more info)
75 | string public migrationInfo = "";
76 |
77 | // The only address that can set migrationContractAddress, a secure multisig.
78 | address public migrationInfoSetter;
79 |
80 | //// Modifiers ////
81 | modifier onlyFromMigrationInfoSetter {
82 | if (msg.sender != migrationInfoSetter) {
83 | throw;
84 | }
85 | _;
86 | }
87 |
88 | //// Public functions ////
89 | function Trustcoin(address _migrationInfoSetter) {
90 | if (_migrationInfoSetter == 0) throw;
91 | migrationInfoSetter = _migrationInfoSetter;
92 | // Upon creation, all tokens belong to the deployer.
93 | balances[msg.sender] = totalTokens;
94 | }
95 |
96 | // See ERC20
97 | function totalSupply() constant returns (uint256) {
98 | return totalTokens;
99 | }
100 |
101 | // See ERC20
102 | // WARNING: If you call this with the address of a contract, the contract will receive the
103 | // funds, but will have no idea where they came from. Furthermore, if the contract is
104 | // not aware of TRST, the tokens will remain locked away in the contract forever.
105 | // It is always recommended to call instead compareAndApprove() (or approve()) and have the
106 | // receiving contract withdraw the money using transferFrom().
107 | function transfer(address _to, uint256 _value) public returns (bool) {
108 | if (balances[msg.sender] >= _value) {
109 | balances[msg.sender] -= _value;
110 | balances[_to] += _value;
111 | Transfer(msg.sender, _to, _value);
112 | return true;
113 | }
114 | return false;
115 | }
116 |
117 | // See ERC20
118 | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
119 | if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value) {
120 | balances[_from] -= _value;
121 | allowed[_from][msg.sender] -= _value;
122 | balances[_to] += _value;
123 | Transfer(_from, _to, _value);
124 | return true;
125 | }
126 | return false;
127 | }
128 |
129 | // See ERC20
130 | function balanceOf(address _owner) constant public returns (uint256) {
131 | return balances[_owner];
132 | }
133 |
134 | // See ERC20
135 | // NOTE: this method is vulnerable and is placed here only to follow the ERC20 standard.
136 | // Before using, please take a look at the better compareAndApprove below.
137 | function approve(address _spender, uint256 _value) public returns (bool) {
138 | allowed[msg.sender][_spender] = _value;
139 | Approval(msg.sender, _spender, _value);
140 | return true;
141 | }
142 |
143 | // A vulernability of the approve method in the ERC20 standard was identified by
144 | // Mikhail Vladimirov and Dmitry Khovratovich here:
145 | // https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM
146 | // It's better to use this method which is not susceptible to over-withdrawing by the approvee.
147 | /// @param _spender The address to approve
148 | /// @param _currentValue The previous value approved, which can be retrieved with allowance(msg.sender, _spender)
149 | /// @param _newValue The new value to approve, this will replace the _currentValue
150 | /// @return bool Whether the approval was a success (see ERC20's `approve`)
151 | function compareAndApprove(address _spender, uint256 _currentValue, uint256 _newValue) public returns(bool) {
152 | if (allowed[msg.sender][_spender] != _currentValue) {
153 | return false;
154 | }
155 | return approve(_spender, _newValue);
156 | }
157 |
158 | // See ERC20
159 | function allowance(address _owner, address _spender) constant public returns (uint256 remaining) {
160 | return allowed[_owner][_spender];
161 | }
162 |
163 | // Allows setting a descriptive string, which will aid any users in migrating their token
164 | // to a newer version of the contract. This field provides a kind of 'double-layer' of
165 | // authentication for any migration announcement, as it can only be set by WeTrust.
166 | /// @param _migrationInfo The information string to be stored on the contract
167 | function setMigrationInfo(string _migrationInfo) onlyFromMigrationInfoSetter public {
168 | migrationInfo = _migrationInfo;
169 | MigrationInfoSet(_migrationInfo);
170 | }
171 |
172 | // To be used if the migrationInfoSetter wishes to transfer the migrationInfoSetter
173 | // permission to a new account, e.g. because of change in personnel, a concern that account
174 | // may have been compromised etc.
175 | /// @param _newMigrationInfoSetter The address of the new Migration Info Setter
176 | function changeMigrationInfoSetter(address _newMigrationInfoSetter) onlyFromMigrationInfoSetter public {
177 | migrationInfoSetter = _newMigrationInfoSetter;
178 | }
179 | }
--------------------------------------------------------------------------------
/contracts/Migrations.sol:
--------------------------------------------------------------------------------
1 | pragma solidity ^0.4.17;
2 |
3 | contract Migrations {
4 | address public owner;
5 | uint public last_completed_migration;
6 |
7 | modifier restricted() {
8 | if (msg.sender == owner) _;
9 | }
10 |
11 | function Migrations() public {
12 | owner = msg.sender;
13 | }
14 |
15 | function setCompleted(uint completed) public restricted {
16 | last_completed_migration = completed;
17 | }
18 |
19 | function upgrade(address new_address) public restricted {
20 | Migrations upgraded = Migrations(new_address);
21 | upgraded.setCompleted(last_completed_migration);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/contracts/SafeMath.sol:
--------------------------------------------------------------------------------
1 | pragma solidity ^0.4.19;
2 |
3 |
4 | /**
5 | * @title SafeMath
6 | * @dev Math operations with safety checks that throw on error
7 | */
8 | library SafeMath {
9 |
10 | /**
11 | * @dev Multiplies two numbers, throws on overflow.
12 | */
13 | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
14 | if (a == 0) {
15 | return 0;
16 | }
17 | uint256 c = a * b;
18 | assert(c / a == b);
19 | return c;
20 | }
21 |
22 | /**
23 | * @dev Integer division of two numbers, truncating the quotient.
24 | */
25 | function div(uint256 a, uint256 b) internal pure returns (uint256) {
26 | // assert(b > 0); // Solidity automatically throws when dividing by 0
27 | uint256 c = a / b;
28 | // assert(a == b * c + a % b); // There is no case in which this doesn't hold
29 | return c;
30 | }
31 |
32 | /**
33 | * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
34 | */
35 | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
36 | assert(b <= a);
37 | return a - b;
38 | }
39 |
40 | /**
41 | * @dev Adds two numbers, throws on overflow.
42 | */
43 | function add(uint256 a, uint256 b) internal pure returns (uint256) {
44 | uint256 c = a + b;
45 | assert(c >= a);
46 | return c;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/migrations/1_initial_migration.js:
--------------------------------------------------------------------------------
1 | var Migrations = artifacts.require("./Migrations.sol");
2 |
3 | module.exports = function(deployer) {
4 | deployer.deploy(Migrations);
5 | };
6 |
--------------------------------------------------------------------------------
/migrations/2_deploy_trst_faucet.js:
--------------------------------------------------------------------------------
1 | const Trustcoin = artifacts.require("./ERC20Tokens/Trustcoin.sol");
2 | const Faucet = artifacts.require('./ERC20Faucet.sol');
3 | const TrstRinkeby = '0x87099adD3bCC0821B5b151307c147215F839a110';
4 | const MaxAllowance = 1000000000;
5 |
6 | module.exports = function(deployer, network, accounts) {
7 | let deployerPromise;
8 |
9 | if (network === 'rinkeby') {
10 | console.log(`On Rinkeby, TRST address is ${TrstRinkeby}`);
11 | deployerPromise = deployer.then(() => {
12 | return Trustcoin.at(TrstRinkeby);
13 | })
14 | } else {
15 | console.log(accounts[0].balance);
16 | deployerPromise = deployer.deploy(Trustcoin, accounts[0]);
17 | }
18 |
19 | deployerPromise.then((trstInstance) => {
20 | return Faucet.new(trstInstance.address, MaxAllowance);
21 | }).then((faucetInstance) => {
22 | console.log(`Faucet deployed @ ${faucetInstance.address}`);
23 | });
24 | };
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "erc20faucet-contracts",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "ajv": {
8 | "version": "5.5.2",
9 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
10 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
11 | "dev": true,
12 | "requires": {
13 | "co": "^4.6.0",
14 | "fast-deep-equal": "^1.0.0",
15 | "fast-json-stable-stringify": "^2.0.0",
16 | "json-schema-traverse": "^0.3.0"
17 | }
18 | },
19 | "ansi-regex": {
20 | "version": "3.0.0",
21 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
22 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
23 | "dev": true
24 | },
25 | "any-promise": {
26 | "version": "1.3.0",
27 | "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
28 | "integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8=",
29 | "dev": true
30 | },
31 | "anymatch": {
32 | "version": "1.3.2",
33 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz",
34 | "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==",
35 | "dev": true,
36 | "requires": {
37 | "micromatch": "^2.1.5",
38 | "normalize-path": "^2.0.0"
39 | }
40 | },
41 | "arr-diff": {
42 | "version": "2.0.0",
43 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
44 | "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
45 | "dev": true,
46 | "requires": {
47 | "arr-flatten": "^1.0.1"
48 | }
49 | },
50 | "arr-flatten": {
51 | "version": "1.1.0",
52 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
53 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
54 | "dev": true
55 | },
56 | "arr-union": {
57 | "version": "3.1.0",
58 | "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
59 | "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=",
60 | "dev": true
61 | },
62 | "array-unique": {
63 | "version": "0.2.1",
64 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
65 | "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
66 | "dev": true
67 | },
68 | "assign-symbols": {
69 | "version": "1.0.0",
70 | "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
71 | "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
72 | "dev": true
73 | },
74 | "async-each": {
75 | "version": "1.0.3",
76 | "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz",
77 | "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==",
78 | "dev": true
79 | },
80 | "atob": {
81 | "version": "2.1.2",
82 | "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
83 | "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
84 | "dev": true
85 | },
86 | "balanced-match": {
87 | "version": "1.0.0",
88 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
89 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
90 | "dev": true
91 | },
92 | "base": {
93 | "version": "0.11.2",
94 | "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz",
95 | "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==",
96 | "dev": true,
97 | "requires": {
98 | "cache-base": "^1.0.1",
99 | "class-utils": "^0.3.5",
100 | "component-emitter": "^1.2.1",
101 | "define-property": "^1.0.0",
102 | "isobject": "^3.0.1",
103 | "mixin-deep": "^1.2.0",
104 | "pascalcase": "^0.1.1"
105 | },
106 | "dependencies": {
107 | "define-property": {
108 | "version": "1.0.0",
109 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
110 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
111 | "dev": true,
112 | "requires": {
113 | "is-descriptor": "^1.0.0"
114 | }
115 | },
116 | "is-accessor-descriptor": {
117 | "version": "1.0.0",
118 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
119 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
120 | "dev": true,
121 | "requires": {
122 | "kind-of": "^6.0.0"
123 | }
124 | },
125 | "is-data-descriptor": {
126 | "version": "1.0.0",
127 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
128 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
129 | "dev": true,
130 | "requires": {
131 | "kind-of": "^6.0.0"
132 | }
133 | },
134 | "is-descriptor": {
135 | "version": "1.0.2",
136 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
137 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
138 | "dev": true,
139 | "requires": {
140 | "is-accessor-descriptor": "^1.0.0",
141 | "is-data-descriptor": "^1.0.0",
142 | "kind-of": "^6.0.2"
143 | }
144 | },
145 | "isobject": {
146 | "version": "3.0.1",
147 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
148 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
149 | "dev": true
150 | },
151 | "kind-of": {
152 | "version": "6.0.2",
153 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
154 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
155 | "dev": true
156 | }
157 | }
158 | },
159 | "binary-extensions": {
160 | "version": "1.13.1",
161 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz",
162 | "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==",
163 | "dev": true
164 | },
165 | "bindings": {
166 | "version": "1.5.0",
167 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
168 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
169 | "dev": true,
170 | "requires": {
171 | "file-uri-to-path": "1.0.0"
172 | }
173 | },
174 | "brace-expansion": {
175 | "version": "1.1.11",
176 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
177 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
178 | "dev": true,
179 | "requires": {
180 | "balanced-match": "^1.0.0",
181 | "concat-map": "0.0.1"
182 | }
183 | },
184 | "braces": {
185 | "version": "1.8.5",
186 | "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz",
187 | "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=",
188 | "dev": true,
189 | "requires": {
190 | "expand-range": "^1.8.1",
191 | "preserve": "^0.2.0",
192 | "repeat-element": "^1.1.2"
193 | }
194 | },
195 | "browser-stdout": {
196 | "version": "1.3.0",
197 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz",
198 | "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=",
199 | "dev": true
200 | },
201 | "cache-base": {
202 | "version": "1.0.1",
203 | "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz",
204 | "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==",
205 | "dev": true,
206 | "requires": {
207 | "collection-visit": "^1.0.0",
208 | "component-emitter": "^1.2.1",
209 | "get-value": "^2.0.6",
210 | "has-value": "^1.0.0",
211 | "isobject": "^3.0.1",
212 | "set-value": "^2.0.0",
213 | "to-object-path": "^0.3.0",
214 | "union-value": "^1.0.0",
215 | "unset-value": "^1.0.0"
216 | },
217 | "dependencies": {
218 | "isobject": {
219 | "version": "3.0.1",
220 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
221 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
222 | "dev": true
223 | }
224 | }
225 | },
226 | "camelcase": {
227 | "version": "4.1.0",
228 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
229 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
230 | "dev": true
231 | },
232 | "chokidar": {
233 | "version": "1.7.0",
234 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz",
235 | "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=",
236 | "dev": true,
237 | "requires": {
238 | "anymatch": "^1.3.0",
239 | "async-each": "^1.0.0",
240 | "fsevents": "^1.0.0",
241 | "glob-parent": "^2.0.0",
242 | "inherits": "^2.0.1",
243 | "is-binary-path": "^1.0.0",
244 | "is-glob": "^2.0.0",
245 | "path-is-absolute": "^1.0.0",
246 | "readdirp": "^2.0.0"
247 | }
248 | },
249 | "class-utils": {
250 | "version": "0.3.6",
251 | "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
252 | "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==",
253 | "dev": true,
254 | "requires": {
255 | "arr-union": "^3.1.0",
256 | "define-property": "^0.2.5",
257 | "isobject": "^3.0.0",
258 | "static-extend": "^0.1.1"
259 | },
260 | "dependencies": {
261 | "define-property": {
262 | "version": "0.2.5",
263 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
264 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
265 | "dev": true,
266 | "requires": {
267 | "is-descriptor": "^0.1.0"
268 | }
269 | },
270 | "isobject": {
271 | "version": "3.0.1",
272 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
273 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
274 | "dev": true
275 | }
276 | }
277 | },
278 | "cliui": {
279 | "version": "4.1.0",
280 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
281 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==",
282 | "dev": true,
283 | "requires": {
284 | "string-width": "^2.1.1",
285 | "strip-ansi": "^4.0.0",
286 | "wrap-ansi": "^2.0.0"
287 | }
288 | },
289 | "co": {
290 | "version": "4.6.0",
291 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
292 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
293 | "dev": true
294 | },
295 | "code-point-at": {
296 | "version": "1.1.0",
297 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
298 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
299 | "dev": true
300 | },
301 | "collection-visit": {
302 | "version": "1.0.0",
303 | "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
304 | "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=",
305 | "dev": true,
306 | "requires": {
307 | "map-visit": "^1.0.0",
308 | "object-visit": "^1.0.0"
309 | }
310 | },
311 | "colors": {
312 | "version": "1.3.3",
313 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz",
314 | "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==",
315 | "dev": true
316 | },
317 | "commander": {
318 | "version": "2.20.0",
319 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
320 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
321 | "dev": true
322 | },
323 | "component-emitter": {
324 | "version": "1.3.0",
325 | "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
326 | "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==",
327 | "dev": true
328 | },
329 | "concat-map": {
330 | "version": "0.0.1",
331 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
332 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
333 | "dev": true
334 | },
335 | "copy-descriptor": {
336 | "version": "0.1.1",
337 | "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
338 | "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
339 | "dev": true
340 | },
341 | "core-util-is": {
342 | "version": "1.0.2",
343 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
344 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
345 | "dev": true
346 | },
347 | "cross-spawn": {
348 | "version": "5.1.0",
349 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
350 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
351 | "dev": true,
352 | "requires": {
353 | "lru-cache": "^4.0.1",
354 | "shebang-command": "^1.2.0",
355 | "which": "^1.2.9"
356 | }
357 | },
358 | "debug": {
359 | "version": "2.6.9",
360 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
361 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
362 | "dev": true,
363 | "requires": {
364 | "ms": "2.0.0"
365 | }
366 | },
367 | "decamelize": {
368 | "version": "1.2.0",
369 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
370 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
371 | "dev": true
372 | },
373 | "decode-uri-component": {
374 | "version": "0.2.0",
375 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
376 | "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
377 | "dev": true
378 | },
379 | "define-property": {
380 | "version": "2.0.2",
381 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz",
382 | "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==",
383 | "dev": true,
384 | "requires": {
385 | "is-descriptor": "^1.0.2",
386 | "isobject": "^3.0.1"
387 | },
388 | "dependencies": {
389 | "is-accessor-descriptor": {
390 | "version": "1.0.0",
391 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
392 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
393 | "dev": true,
394 | "requires": {
395 | "kind-of": "^6.0.0"
396 | }
397 | },
398 | "is-data-descriptor": {
399 | "version": "1.0.0",
400 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
401 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
402 | "dev": true,
403 | "requires": {
404 | "kind-of": "^6.0.0"
405 | }
406 | },
407 | "is-descriptor": {
408 | "version": "1.0.2",
409 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
410 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
411 | "dev": true,
412 | "requires": {
413 | "is-accessor-descriptor": "^1.0.0",
414 | "is-data-descriptor": "^1.0.0",
415 | "kind-of": "^6.0.2"
416 | }
417 | },
418 | "isobject": {
419 | "version": "3.0.1",
420 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
421 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
422 | "dev": true
423 | },
424 | "kind-of": {
425 | "version": "6.0.2",
426 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
427 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
428 | "dev": true
429 | }
430 | }
431 | },
432 | "diff": {
433 | "version": "3.5.0",
434 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
435 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
436 | "dev": true
437 | },
438 | "eol": {
439 | "version": "0.9.1",
440 | "resolved": "https://registry.npmjs.org/eol/-/eol-0.9.1.tgz",
441 | "integrity": "sha512-Ds/TEoZjwggRoz/Q2O7SE3i4Jm66mqTDfmdHdq/7DKVk3bro9Q8h6WdXKdPqFLMoqxrDK5SVRzHVPOS6uuGtrg==",
442 | "dev": true
443 | },
444 | "escape-string-regexp": {
445 | "version": "1.0.5",
446 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
447 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
448 | "dev": true
449 | },
450 | "ethlint": {
451 | "version": "1.2.4",
452 | "resolved": "https://registry.npmjs.org/ethlint/-/ethlint-1.2.4.tgz",
453 | "integrity": "sha512-T0STudObqyISj6QbRo+an240GgWHyt3G1cHnk4jbVdEiesLSMyTybv4Eo7U8mT4OpIQHFsC4YEWw6iKMjeHzqQ==",
454 | "dev": true,
455 | "requires": {
456 | "ajv": "^5.2.2",
457 | "chokidar": "^1.6.0",
458 | "colors": "^1.1.2",
459 | "commander": "^2.9.0",
460 | "diff": "^3.5.0",
461 | "eol": "^0.9.1",
462 | "js-string-escape": "^1.0.1",
463 | "lodash": "^4.14.2",
464 | "sol-digger": "0.0.2",
465 | "sol-explore": "1.6.1",
466 | "solium-plugin-security": "0.1.1",
467 | "solparse": "2.2.8",
468 | "text-table": "^0.2.0"
469 | }
470 | },
471 | "execa": {
472 | "version": "0.7.0",
473 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
474 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=",
475 | "dev": true,
476 | "requires": {
477 | "cross-spawn": "^5.0.1",
478 | "get-stream": "^3.0.0",
479 | "is-stream": "^1.1.0",
480 | "npm-run-path": "^2.0.0",
481 | "p-finally": "^1.0.0",
482 | "signal-exit": "^3.0.0",
483 | "strip-eof": "^1.0.0"
484 | }
485 | },
486 | "expand-brackets": {
487 | "version": "0.1.5",
488 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz",
489 | "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=",
490 | "dev": true,
491 | "requires": {
492 | "is-posix-bracket": "^0.1.0"
493 | }
494 | },
495 | "expand-range": {
496 | "version": "1.8.2",
497 | "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz",
498 | "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=",
499 | "dev": true,
500 | "requires": {
501 | "fill-range": "^2.1.0"
502 | }
503 | },
504 | "extend-shallow": {
505 | "version": "3.0.2",
506 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",
507 | "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=",
508 | "dev": true,
509 | "requires": {
510 | "assign-symbols": "^1.0.0",
511 | "is-extendable": "^1.0.1"
512 | },
513 | "dependencies": {
514 | "is-extendable": {
515 | "version": "1.0.1",
516 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
517 | "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
518 | "dev": true,
519 | "requires": {
520 | "is-plain-object": "^2.0.4"
521 | }
522 | }
523 | }
524 | },
525 | "extglob": {
526 | "version": "0.3.2",
527 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz",
528 | "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=",
529 | "dev": true,
530 | "requires": {
531 | "is-extglob": "^1.0.0"
532 | }
533 | },
534 | "fast-deep-equal": {
535 | "version": "1.1.0",
536 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz",
537 | "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=",
538 | "dev": true
539 | },
540 | "fast-json-stable-stringify": {
541 | "version": "2.0.0",
542 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
543 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=",
544 | "dev": true
545 | },
546 | "file-uri-to-path": {
547 | "version": "1.0.0",
548 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
549 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
550 | "dev": true
551 | },
552 | "filename-regex": {
553 | "version": "2.0.1",
554 | "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz",
555 | "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=",
556 | "dev": true
557 | },
558 | "fill-range": {
559 | "version": "2.2.4",
560 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz",
561 | "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==",
562 | "dev": true,
563 | "requires": {
564 | "is-number": "^2.1.0",
565 | "isobject": "^2.0.0",
566 | "randomatic": "^3.0.0",
567 | "repeat-element": "^1.1.2",
568 | "repeat-string": "^1.5.2"
569 | }
570 | },
571 | "find-up": {
572 | "version": "2.1.0",
573 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
574 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
575 | "dev": true,
576 | "requires": {
577 | "locate-path": "^2.0.0"
578 | }
579 | },
580 | "for-in": {
581 | "version": "1.0.2",
582 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
583 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=",
584 | "dev": true
585 | },
586 | "for-own": {
587 | "version": "0.1.5",
588 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz",
589 | "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=",
590 | "dev": true,
591 | "requires": {
592 | "for-in": "^1.0.1"
593 | }
594 | },
595 | "fragment-cache": {
596 | "version": "0.2.1",
597 | "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
598 | "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=",
599 | "dev": true,
600 | "requires": {
601 | "map-cache": "^0.2.2"
602 | }
603 | },
604 | "fs.realpath": {
605 | "version": "1.0.0",
606 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
607 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
608 | "dev": true
609 | },
610 | "fsevents": {
611 | "version": "1.2.9",
612 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz",
613 | "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==",
614 | "dev": true,
615 | "optional": true,
616 | "requires": {
617 | "nan": "^2.12.1",
618 | "node-pre-gyp": "^0.12.0"
619 | },
620 | "dependencies": {
621 | "abbrev": {
622 | "version": "1.1.1",
623 | "bundled": true,
624 | "dev": true,
625 | "optional": true
626 | },
627 | "ansi-regex": {
628 | "version": "2.1.1",
629 | "bundled": true,
630 | "dev": true,
631 | "optional": true
632 | },
633 | "aproba": {
634 | "version": "1.2.0",
635 | "bundled": true,
636 | "dev": true,
637 | "optional": true
638 | },
639 | "are-we-there-yet": {
640 | "version": "1.1.5",
641 | "bundled": true,
642 | "dev": true,
643 | "optional": true,
644 | "requires": {
645 | "delegates": "^1.0.0",
646 | "readable-stream": "^2.0.6"
647 | }
648 | },
649 | "balanced-match": {
650 | "version": "1.0.0",
651 | "bundled": true,
652 | "dev": true,
653 | "optional": true
654 | },
655 | "brace-expansion": {
656 | "version": "1.1.11",
657 | "bundled": true,
658 | "dev": true,
659 | "optional": true,
660 | "requires": {
661 | "balanced-match": "^1.0.0",
662 | "concat-map": "0.0.1"
663 | }
664 | },
665 | "chownr": {
666 | "version": "1.1.1",
667 | "bundled": true,
668 | "dev": true,
669 | "optional": true
670 | },
671 | "code-point-at": {
672 | "version": "1.1.0",
673 | "bundled": true,
674 | "dev": true,
675 | "optional": true
676 | },
677 | "concat-map": {
678 | "version": "0.0.1",
679 | "bundled": true,
680 | "dev": true,
681 | "optional": true
682 | },
683 | "console-control-strings": {
684 | "version": "1.1.0",
685 | "bundled": true,
686 | "dev": true,
687 | "optional": true
688 | },
689 | "core-util-is": {
690 | "version": "1.0.2",
691 | "bundled": true,
692 | "dev": true,
693 | "optional": true
694 | },
695 | "debug": {
696 | "version": "4.1.1",
697 | "bundled": true,
698 | "dev": true,
699 | "optional": true,
700 | "requires": {
701 | "ms": "^2.1.1"
702 | }
703 | },
704 | "deep-extend": {
705 | "version": "0.6.0",
706 | "bundled": true,
707 | "dev": true,
708 | "optional": true
709 | },
710 | "delegates": {
711 | "version": "1.0.0",
712 | "bundled": true,
713 | "dev": true,
714 | "optional": true
715 | },
716 | "detect-libc": {
717 | "version": "1.0.3",
718 | "bundled": true,
719 | "dev": true,
720 | "optional": true
721 | },
722 | "fs-minipass": {
723 | "version": "1.2.5",
724 | "bundled": true,
725 | "dev": true,
726 | "optional": true,
727 | "requires": {
728 | "minipass": "^2.2.1"
729 | }
730 | },
731 | "fs.realpath": {
732 | "version": "1.0.0",
733 | "bundled": true,
734 | "dev": true,
735 | "optional": true
736 | },
737 | "gauge": {
738 | "version": "2.7.4",
739 | "bundled": true,
740 | "dev": true,
741 | "optional": true,
742 | "requires": {
743 | "aproba": "^1.0.3",
744 | "console-control-strings": "^1.0.0",
745 | "has-unicode": "^2.0.0",
746 | "object-assign": "^4.1.0",
747 | "signal-exit": "^3.0.0",
748 | "string-width": "^1.0.1",
749 | "strip-ansi": "^3.0.1",
750 | "wide-align": "^1.1.0"
751 | }
752 | },
753 | "glob": {
754 | "version": "7.1.3",
755 | "bundled": true,
756 | "dev": true,
757 | "optional": true,
758 | "requires": {
759 | "fs.realpath": "^1.0.0",
760 | "inflight": "^1.0.4",
761 | "inherits": "2",
762 | "minimatch": "^3.0.4",
763 | "once": "^1.3.0",
764 | "path-is-absolute": "^1.0.0"
765 | }
766 | },
767 | "has-unicode": {
768 | "version": "2.0.1",
769 | "bundled": true,
770 | "dev": true,
771 | "optional": true
772 | },
773 | "iconv-lite": {
774 | "version": "0.4.24",
775 | "bundled": true,
776 | "dev": true,
777 | "optional": true,
778 | "requires": {
779 | "safer-buffer": ">= 2.1.2 < 3"
780 | }
781 | },
782 | "ignore-walk": {
783 | "version": "3.0.1",
784 | "bundled": true,
785 | "dev": true,
786 | "optional": true,
787 | "requires": {
788 | "minimatch": "^3.0.4"
789 | }
790 | },
791 | "inflight": {
792 | "version": "1.0.6",
793 | "bundled": true,
794 | "dev": true,
795 | "optional": true,
796 | "requires": {
797 | "once": "^1.3.0",
798 | "wrappy": "1"
799 | }
800 | },
801 | "inherits": {
802 | "version": "2.0.3",
803 | "bundled": true,
804 | "dev": true,
805 | "optional": true
806 | },
807 | "ini": {
808 | "version": "1.3.5",
809 | "bundled": true,
810 | "dev": true,
811 | "optional": true
812 | },
813 | "is-fullwidth-code-point": {
814 | "version": "1.0.0",
815 | "bundled": true,
816 | "dev": true,
817 | "optional": true,
818 | "requires": {
819 | "number-is-nan": "^1.0.0"
820 | }
821 | },
822 | "isarray": {
823 | "version": "1.0.0",
824 | "bundled": true,
825 | "dev": true,
826 | "optional": true
827 | },
828 | "minimatch": {
829 | "version": "3.0.4",
830 | "bundled": true,
831 | "dev": true,
832 | "optional": true,
833 | "requires": {
834 | "brace-expansion": "^1.1.7"
835 | }
836 | },
837 | "minimist": {
838 | "version": "0.0.8",
839 | "bundled": true,
840 | "dev": true,
841 | "optional": true
842 | },
843 | "minipass": {
844 | "version": "2.3.5",
845 | "bundled": true,
846 | "dev": true,
847 | "optional": true,
848 | "requires": {
849 | "safe-buffer": "^5.1.2",
850 | "yallist": "^3.0.0"
851 | }
852 | },
853 | "minizlib": {
854 | "version": "1.2.1",
855 | "bundled": true,
856 | "dev": true,
857 | "optional": true,
858 | "requires": {
859 | "minipass": "^2.2.1"
860 | }
861 | },
862 | "mkdirp": {
863 | "version": "0.5.1",
864 | "bundled": true,
865 | "dev": true,
866 | "optional": true,
867 | "requires": {
868 | "minimist": "0.0.8"
869 | }
870 | },
871 | "ms": {
872 | "version": "2.1.1",
873 | "bundled": true,
874 | "dev": true,
875 | "optional": true
876 | },
877 | "needle": {
878 | "version": "2.3.0",
879 | "bundled": true,
880 | "dev": true,
881 | "optional": true,
882 | "requires": {
883 | "debug": "^4.1.0",
884 | "iconv-lite": "^0.4.4",
885 | "sax": "^1.2.4"
886 | }
887 | },
888 | "node-pre-gyp": {
889 | "version": "0.12.0",
890 | "bundled": true,
891 | "dev": true,
892 | "optional": true,
893 | "requires": {
894 | "detect-libc": "^1.0.2",
895 | "mkdirp": "^0.5.1",
896 | "needle": "^2.2.1",
897 | "nopt": "^4.0.1",
898 | "npm-packlist": "^1.1.6",
899 | "npmlog": "^4.0.2",
900 | "rc": "^1.2.7",
901 | "rimraf": "^2.6.1",
902 | "semver": "^5.3.0",
903 | "tar": "^4"
904 | }
905 | },
906 | "nopt": {
907 | "version": "4.0.1",
908 | "bundled": true,
909 | "dev": true,
910 | "optional": true,
911 | "requires": {
912 | "abbrev": "1",
913 | "osenv": "^0.1.4"
914 | }
915 | },
916 | "npm-bundled": {
917 | "version": "1.0.6",
918 | "bundled": true,
919 | "dev": true,
920 | "optional": true
921 | },
922 | "npm-packlist": {
923 | "version": "1.4.1",
924 | "bundled": true,
925 | "dev": true,
926 | "optional": true,
927 | "requires": {
928 | "ignore-walk": "^3.0.1",
929 | "npm-bundled": "^1.0.1"
930 | }
931 | },
932 | "npmlog": {
933 | "version": "4.1.2",
934 | "bundled": true,
935 | "dev": true,
936 | "optional": true,
937 | "requires": {
938 | "are-we-there-yet": "~1.1.2",
939 | "console-control-strings": "~1.1.0",
940 | "gauge": "~2.7.3",
941 | "set-blocking": "~2.0.0"
942 | }
943 | },
944 | "number-is-nan": {
945 | "version": "1.0.1",
946 | "bundled": true,
947 | "dev": true,
948 | "optional": true
949 | },
950 | "object-assign": {
951 | "version": "4.1.1",
952 | "bundled": true,
953 | "dev": true,
954 | "optional": true
955 | },
956 | "once": {
957 | "version": "1.4.0",
958 | "bundled": true,
959 | "dev": true,
960 | "optional": true,
961 | "requires": {
962 | "wrappy": "1"
963 | }
964 | },
965 | "os-homedir": {
966 | "version": "1.0.2",
967 | "bundled": true,
968 | "dev": true,
969 | "optional": true
970 | },
971 | "os-tmpdir": {
972 | "version": "1.0.2",
973 | "bundled": true,
974 | "dev": true,
975 | "optional": true
976 | },
977 | "osenv": {
978 | "version": "0.1.5",
979 | "bundled": true,
980 | "dev": true,
981 | "optional": true,
982 | "requires": {
983 | "os-homedir": "^1.0.0",
984 | "os-tmpdir": "^1.0.0"
985 | }
986 | },
987 | "path-is-absolute": {
988 | "version": "1.0.1",
989 | "bundled": true,
990 | "dev": true,
991 | "optional": true
992 | },
993 | "process-nextick-args": {
994 | "version": "2.0.0",
995 | "bundled": true,
996 | "dev": true,
997 | "optional": true
998 | },
999 | "rc": {
1000 | "version": "1.2.8",
1001 | "bundled": true,
1002 | "dev": true,
1003 | "optional": true,
1004 | "requires": {
1005 | "deep-extend": "^0.6.0",
1006 | "ini": "~1.3.0",
1007 | "minimist": "^1.2.0",
1008 | "strip-json-comments": "~2.0.1"
1009 | },
1010 | "dependencies": {
1011 | "minimist": {
1012 | "version": "1.2.0",
1013 | "bundled": true,
1014 | "dev": true,
1015 | "optional": true
1016 | }
1017 | }
1018 | },
1019 | "readable-stream": {
1020 | "version": "2.3.6",
1021 | "bundled": true,
1022 | "dev": true,
1023 | "optional": true,
1024 | "requires": {
1025 | "core-util-is": "~1.0.0",
1026 | "inherits": "~2.0.3",
1027 | "isarray": "~1.0.0",
1028 | "process-nextick-args": "~2.0.0",
1029 | "safe-buffer": "~5.1.1",
1030 | "string_decoder": "~1.1.1",
1031 | "util-deprecate": "~1.0.1"
1032 | }
1033 | },
1034 | "rimraf": {
1035 | "version": "2.6.3",
1036 | "bundled": true,
1037 | "dev": true,
1038 | "optional": true,
1039 | "requires": {
1040 | "glob": "^7.1.3"
1041 | }
1042 | },
1043 | "safe-buffer": {
1044 | "version": "5.1.2",
1045 | "bundled": true,
1046 | "dev": true,
1047 | "optional": true
1048 | },
1049 | "safer-buffer": {
1050 | "version": "2.1.2",
1051 | "bundled": true,
1052 | "dev": true,
1053 | "optional": true
1054 | },
1055 | "sax": {
1056 | "version": "1.2.4",
1057 | "bundled": true,
1058 | "dev": true,
1059 | "optional": true
1060 | },
1061 | "semver": {
1062 | "version": "5.7.0",
1063 | "bundled": true,
1064 | "dev": true,
1065 | "optional": true
1066 | },
1067 | "set-blocking": {
1068 | "version": "2.0.0",
1069 | "bundled": true,
1070 | "dev": true,
1071 | "optional": true
1072 | },
1073 | "signal-exit": {
1074 | "version": "3.0.2",
1075 | "bundled": true,
1076 | "dev": true,
1077 | "optional": true
1078 | },
1079 | "string-width": {
1080 | "version": "1.0.2",
1081 | "bundled": true,
1082 | "dev": true,
1083 | "optional": true,
1084 | "requires": {
1085 | "code-point-at": "^1.0.0",
1086 | "is-fullwidth-code-point": "^1.0.0",
1087 | "strip-ansi": "^3.0.0"
1088 | }
1089 | },
1090 | "string_decoder": {
1091 | "version": "1.1.1",
1092 | "bundled": true,
1093 | "dev": true,
1094 | "optional": true,
1095 | "requires": {
1096 | "safe-buffer": "~5.1.0"
1097 | }
1098 | },
1099 | "strip-ansi": {
1100 | "version": "3.0.1",
1101 | "bundled": true,
1102 | "dev": true,
1103 | "optional": true,
1104 | "requires": {
1105 | "ansi-regex": "^2.0.0"
1106 | }
1107 | },
1108 | "strip-json-comments": {
1109 | "version": "2.0.1",
1110 | "bundled": true,
1111 | "dev": true,
1112 | "optional": true
1113 | },
1114 | "tar": {
1115 | "version": "4.4.8",
1116 | "bundled": true,
1117 | "dev": true,
1118 | "optional": true,
1119 | "requires": {
1120 | "chownr": "^1.1.1",
1121 | "fs-minipass": "^1.2.5",
1122 | "minipass": "^2.3.4",
1123 | "minizlib": "^1.1.1",
1124 | "mkdirp": "^0.5.0",
1125 | "safe-buffer": "^5.1.2",
1126 | "yallist": "^3.0.2"
1127 | }
1128 | },
1129 | "util-deprecate": {
1130 | "version": "1.0.2",
1131 | "bundled": true,
1132 | "dev": true,
1133 | "optional": true
1134 | },
1135 | "wide-align": {
1136 | "version": "1.1.3",
1137 | "bundled": true,
1138 | "dev": true,
1139 | "optional": true,
1140 | "requires": {
1141 | "string-width": "^1.0.2 || 2"
1142 | }
1143 | },
1144 | "wrappy": {
1145 | "version": "1.0.2",
1146 | "bundled": true,
1147 | "dev": true,
1148 | "optional": true
1149 | },
1150 | "yallist": {
1151 | "version": "3.0.3",
1152 | "bundled": true,
1153 | "dev": true,
1154 | "optional": true
1155 | }
1156 | }
1157 | },
1158 | "get-caller-file": {
1159 | "version": "1.0.3",
1160 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
1161 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
1162 | "dev": true
1163 | },
1164 | "get-stream": {
1165 | "version": "3.0.0",
1166 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
1167 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
1168 | "dev": true
1169 | },
1170 | "get-value": {
1171 | "version": "2.0.6",
1172 | "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",
1173 | "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
1174 | "dev": true
1175 | },
1176 | "glob": {
1177 | "version": "7.1.2",
1178 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
1179 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
1180 | "dev": true,
1181 | "requires": {
1182 | "fs.realpath": "^1.0.0",
1183 | "inflight": "^1.0.4",
1184 | "inherits": "2",
1185 | "minimatch": "^3.0.4",
1186 | "once": "^1.3.0",
1187 | "path-is-absolute": "^1.0.0"
1188 | }
1189 | },
1190 | "glob-base": {
1191 | "version": "0.3.0",
1192 | "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz",
1193 | "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=",
1194 | "dev": true,
1195 | "requires": {
1196 | "glob-parent": "^2.0.0",
1197 | "is-glob": "^2.0.0"
1198 | }
1199 | },
1200 | "glob-parent": {
1201 | "version": "2.0.0",
1202 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
1203 | "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=",
1204 | "dev": true,
1205 | "requires": {
1206 | "is-glob": "^2.0.0"
1207 | }
1208 | },
1209 | "graceful-fs": {
1210 | "version": "4.1.15",
1211 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
1212 | "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
1213 | "dev": true
1214 | },
1215 | "growl": {
1216 | "version": "1.10.3",
1217 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz",
1218 | "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==",
1219 | "dev": true
1220 | },
1221 | "has-flag": {
1222 | "version": "2.0.0",
1223 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
1224 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=",
1225 | "dev": true
1226 | },
1227 | "has-value": {
1228 | "version": "1.0.0",
1229 | "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
1230 | "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=",
1231 | "dev": true,
1232 | "requires": {
1233 | "get-value": "^2.0.6",
1234 | "has-values": "^1.0.0",
1235 | "isobject": "^3.0.0"
1236 | },
1237 | "dependencies": {
1238 | "isobject": {
1239 | "version": "3.0.1",
1240 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
1241 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
1242 | "dev": true
1243 | }
1244 | }
1245 | },
1246 | "has-values": {
1247 | "version": "1.0.0",
1248 | "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz",
1249 | "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=",
1250 | "dev": true,
1251 | "requires": {
1252 | "is-number": "^3.0.0",
1253 | "kind-of": "^4.0.0"
1254 | },
1255 | "dependencies": {
1256 | "is-number": {
1257 | "version": "3.0.0",
1258 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
1259 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
1260 | "dev": true,
1261 | "requires": {
1262 | "kind-of": "^3.0.2"
1263 | },
1264 | "dependencies": {
1265 | "kind-of": {
1266 | "version": "3.2.2",
1267 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
1268 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
1269 | "dev": true,
1270 | "requires": {
1271 | "is-buffer": "^1.1.5"
1272 | }
1273 | }
1274 | }
1275 | },
1276 | "kind-of": {
1277 | "version": "4.0.0",
1278 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz",
1279 | "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=",
1280 | "dev": true,
1281 | "requires": {
1282 | "is-buffer": "^1.1.5"
1283 | }
1284 | }
1285 | }
1286 | },
1287 | "he": {
1288 | "version": "1.1.1",
1289 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz",
1290 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=",
1291 | "dev": true
1292 | },
1293 | "inflight": {
1294 | "version": "1.0.6",
1295 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
1296 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
1297 | "dev": true,
1298 | "requires": {
1299 | "once": "^1.3.0",
1300 | "wrappy": "1"
1301 | }
1302 | },
1303 | "inherits": {
1304 | "version": "2.0.3",
1305 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
1306 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
1307 | "dev": true
1308 | },
1309 | "invert-kv": {
1310 | "version": "1.0.0",
1311 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz",
1312 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=",
1313 | "dev": true
1314 | },
1315 | "is-accessor-descriptor": {
1316 | "version": "0.1.6",
1317 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
1318 | "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=",
1319 | "dev": true,
1320 | "requires": {
1321 | "kind-of": "^3.0.2"
1322 | }
1323 | },
1324 | "is-binary-path": {
1325 | "version": "1.0.1",
1326 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz",
1327 | "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=",
1328 | "dev": true,
1329 | "requires": {
1330 | "binary-extensions": "^1.0.0"
1331 | }
1332 | },
1333 | "is-buffer": {
1334 | "version": "1.1.6",
1335 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
1336 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
1337 | "dev": true
1338 | },
1339 | "is-data-descriptor": {
1340 | "version": "0.1.4",
1341 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
1342 | "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=",
1343 | "dev": true,
1344 | "requires": {
1345 | "kind-of": "^3.0.2"
1346 | }
1347 | },
1348 | "is-descriptor": {
1349 | "version": "0.1.6",
1350 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",
1351 | "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",
1352 | "dev": true,
1353 | "requires": {
1354 | "is-accessor-descriptor": "^0.1.6",
1355 | "is-data-descriptor": "^0.1.4",
1356 | "kind-of": "^5.0.0"
1357 | },
1358 | "dependencies": {
1359 | "kind-of": {
1360 | "version": "5.1.0",
1361 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",
1362 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",
1363 | "dev": true
1364 | }
1365 | }
1366 | },
1367 | "is-dotfile": {
1368 | "version": "1.0.3",
1369 | "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz",
1370 | "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=",
1371 | "dev": true
1372 | },
1373 | "is-equal-shallow": {
1374 | "version": "0.1.3",
1375 | "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz",
1376 | "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=",
1377 | "dev": true,
1378 | "requires": {
1379 | "is-primitive": "^2.0.0"
1380 | }
1381 | },
1382 | "is-extendable": {
1383 | "version": "0.1.1",
1384 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
1385 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=",
1386 | "dev": true
1387 | },
1388 | "is-extglob": {
1389 | "version": "1.0.0",
1390 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz",
1391 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=",
1392 | "dev": true
1393 | },
1394 | "is-fullwidth-code-point": {
1395 | "version": "2.0.0",
1396 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
1397 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
1398 | "dev": true
1399 | },
1400 | "is-glob": {
1401 | "version": "2.0.1",
1402 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz",
1403 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=",
1404 | "dev": true,
1405 | "requires": {
1406 | "is-extglob": "^1.0.0"
1407 | }
1408 | },
1409 | "is-number": {
1410 | "version": "2.1.0",
1411 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz",
1412 | "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=",
1413 | "dev": true,
1414 | "requires": {
1415 | "kind-of": "^3.0.2"
1416 | }
1417 | },
1418 | "is-plain-object": {
1419 | "version": "2.0.4",
1420 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
1421 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
1422 | "dev": true,
1423 | "requires": {
1424 | "isobject": "^3.0.1"
1425 | },
1426 | "dependencies": {
1427 | "isobject": {
1428 | "version": "3.0.1",
1429 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
1430 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
1431 | "dev": true
1432 | }
1433 | }
1434 | },
1435 | "is-posix-bracket": {
1436 | "version": "0.1.1",
1437 | "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz",
1438 | "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=",
1439 | "dev": true
1440 | },
1441 | "is-primitive": {
1442 | "version": "2.0.0",
1443 | "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz",
1444 | "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=",
1445 | "dev": true
1446 | },
1447 | "is-stream": {
1448 | "version": "1.1.0",
1449 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
1450 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
1451 | "dev": true
1452 | },
1453 | "is-typedarray": {
1454 | "version": "1.0.0",
1455 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
1456 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
1457 | "dev": true
1458 | },
1459 | "is-windows": {
1460 | "version": "1.0.2",
1461 | "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
1462 | "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
1463 | "dev": true
1464 | },
1465 | "isarray": {
1466 | "version": "1.0.0",
1467 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
1468 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
1469 | "dev": true
1470 | },
1471 | "isexe": {
1472 | "version": "2.0.0",
1473 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1474 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
1475 | "dev": true
1476 | },
1477 | "isobject": {
1478 | "version": "2.1.0",
1479 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
1480 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=",
1481 | "dev": true,
1482 | "requires": {
1483 | "isarray": "1.0.0"
1484 | }
1485 | },
1486 | "js-string-escape": {
1487 | "version": "1.0.1",
1488 | "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz",
1489 | "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=",
1490 | "dev": true
1491 | },
1492 | "json-schema-traverse": {
1493 | "version": "0.3.1",
1494 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
1495 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=",
1496 | "dev": true
1497 | },
1498 | "kind-of": {
1499 | "version": "3.2.2",
1500 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
1501 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
1502 | "dev": true,
1503 | "requires": {
1504 | "is-buffer": "^1.1.5"
1505 | }
1506 | },
1507 | "lcid": {
1508 | "version": "1.0.0",
1509 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz",
1510 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
1511 | "dev": true,
1512 | "requires": {
1513 | "invert-kv": "^1.0.0"
1514 | }
1515 | },
1516 | "locate-path": {
1517 | "version": "2.0.0",
1518 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
1519 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
1520 | "dev": true,
1521 | "requires": {
1522 | "p-locate": "^2.0.0",
1523 | "path-exists": "^3.0.0"
1524 | }
1525 | },
1526 | "lodash": {
1527 | "version": "4.17.15",
1528 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
1529 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
1530 | "dev": true
1531 | },
1532 | "lru-cache": {
1533 | "version": "4.1.5",
1534 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
1535 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
1536 | "dev": true,
1537 | "requires": {
1538 | "pseudomap": "^1.0.2",
1539 | "yallist": "^2.1.2"
1540 | }
1541 | },
1542 | "map-cache": {
1543 | "version": "0.2.2",
1544 | "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz",
1545 | "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=",
1546 | "dev": true
1547 | },
1548 | "map-visit": {
1549 | "version": "1.0.0",
1550 | "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz",
1551 | "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=",
1552 | "dev": true,
1553 | "requires": {
1554 | "object-visit": "^1.0.0"
1555 | }
1556 | },
1557 | "math-random": {
1558 | "version": "1.0.4",
1559 | "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz",
1560 | "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==",
1561 | "dev": true
1562 | },
1563 | "mem": {
1564 | "version": "1.1.0",
1565 | "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz",
1566 | "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=",
1567 | "dev": true,
1568 | "requires": {
1569 | "mimic-fn": "^1.0.0"
1570 | }
1571 | },
1572 | "micromatch": {
1573 | "version": "2.3.11",
1574 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz",
1575 | "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=",
1576 | "dev": true,
1577 | "requires": {
1578 | "arr-diff": "^2.0.0",
1579 | "array-unique": "^0.2.1",
1580 | "braces": "^1.8.2",
1581 | "expand-brackets": "^0.1.4",
1582 | "extglob": "^0.3.1",
1583 | "filename-regex": "^2.0.0",
1584 | "is-extglob": "^1.0.0",
1585 | "is-glob": "^2.0.1",
1586 | "kind-of": "^3.0.2",
1587 | "normalize-path": "^2.0.1",
1588 | "object.omit": "^2.0.0",
1589 | "parse-glob": "^3.0.4",
1590 | "regex-cache": "^0.4.2"
1591 | }
1592 | },
1593 | "mimic-fn": {
1594 | "version": "1.2.0",
1595 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
1596 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
1597 | "dev": true
1598 | },
1599 | "minimatch": {
1600 | "version": "3.0.4",
1601 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
1602 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
1603 | "dev": true,
1604 | "requires": {
1605 | "brace-expansion": "^1.1.7"
1606 | }
1607 | },
1608 | "minimist": {
1609 | "version": "0.0.8",
1610 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
1611 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
1612 | "dev": true
1613 | },
1614 | "mixin-deep": {
1615 | "version": "1.3.2",
1616 | "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",
1617 | "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",
1618 | "dev": true,
1619 | "requires": {
1620 | "for-in": "^1.0.2",
1621 | "is-extendable": "^1.0.1"
1622 | },
1623 | "dependencies": {
1624 | "is-extendable": {
1625 | "version": "1.0.1",
1626 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
1627 | "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
1628 | "dev": true,
1629 | "requires": {
1630 | "is-plain-object": "^2.0.4"
1631 | }
1632 | }
1633 | }
1634 | },
1635 | "mkdirp": {
1636 | "version": "0.5.1",
1637 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
1638 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
1639 | "dev": true,
1640 | "requires": {
1641 | "minimist": "0.0.8"
1642 | }
1643 | },
1644 | "mocha": {
1645 | "version": "4.1.0",
1646 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.1.0.tgz",
1647 | "integrity": "sha512-0RVnjg1HJsXY2YFDoTNzcc1NKhYuXKRrBAG2gDygmJJA136Cs2QlRliZG1mA0ap7cuaT30mw16luAeln+4RiNA==",
1648 | "dev": true,
1649 | "requires": {
1650 | "browser-stdout": "1.3.0",
1651 | "commander": "2.11.0",
1652 | "debug": "3.1.0",
1653 | "diff": "3.3.1",
1654 | "escape-string-regexp": "1.0.5",
1655 | "glob": "7.1.2",
1656 | "growl": "1.10.3",
1657 | "he": "1.1.1",
1658 | "mkdirp": "0.5.1",
1659 | "supports-color": "4.4.0"
1660 | },
1661 | "dependencies": {
1662 | "commander": {
1663 | "version": "2.11.0",
1664 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz",
1665 | "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==",
1666 | "dev": true
1667 | },
1668 | "debug": {
1669 | "version": "3.1.0",
1670 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
1671 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
1672 | "dev": true,
1673 | "requires": {
1674 | "ms": "2.0.0"
1675 | }
1676 | },
1677 | "diff": {
1678 | "version": "3.3.1",
1679 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz",
1680 | "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==",
1681 | "dev": true
1682 | }
1683 | }
1684 | },
1685 | "ms": {
1686 | "version": "2.0.0",
1687 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1688 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
1689 | "dev": true
1690 | },
1691 | "nan": {
1692 | "version": "2.14.0",
1693 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz",
1694 | "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",
1695 | "dev": true,
1696 | "optional": true
1697 | },
1698 | "nanomatch": {
1699 | "version": "1.2.13",
1700 | "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
1701 | "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==",
1702 | "dev": true,
1703 | "requires": {
1704 | "arr-diff": "^4.0.0",
1705 | "array-unique": "^0.3.2",
1706 | "define-property": "^2.0.2",
1707 | "extend-shallow": "^3.0.2",
1708 | "fragment-cache": "^0.2.1",
1709 | "is-windows": "^1.0.2",
1710 | "kind-of": "^6.0.2",
1711 | "object.pick": "^1.3.0",
1712 | "regex-not": "^1.0.0",
1713 | "snapdragon": "^0.8.1",
1714 | "to-regex": "^3.0.1"
1715 | },
1716 | "dependencies": {
1717 | "arr-diff": {
1718 | "version": "4.0.0",
1719 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
1720 | "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=",
1721 | "dev": true
1722 | },
1723 | "array-unique": {
1724 | "version": "0.3.2",
1725 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
1726 | "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
1727 | "dev": true
1728 | },
1729 | "kind-of": {
1730 | "version": "6.0.2",
1731 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
1732 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
1733 | "dev": true
1734 | }
1735 | }
1736 | },
1737 | "normalize-path": {
1738 | "version": "2.1.1",
1739 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz",
1740 | "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=",
1741 | "dev": true,
1742 | "requires": {
1743 | "remove-trailing-separator": "^1.0.1"
1744 | }
1745 | },
1746 | "npm-run-path": {
1747 | "version": "2.0.2",
1748 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
1749 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
1750 | "dev": true,
1751 | "requires": {
1752 | "path-key": "^2.0.0"
1753 | }
1754 | },
1755 | "number-is-nan": {
1756 | "version": "1.0.1",
1757 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
1758 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
1759 | "dev": true
1760 | },
1761 | "object-copy": {
1762 | "version": "0.1.0",
1763 | "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz",
1764 | "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=",
1765 | "dev": true,
1766 | "requires": {
1767 | "copy-descriptor": "^0.1.0",
1768 | "define-property": "^0.2.5",
1769 | "kind-of": "^3.0.3"
1770 | },
1771 | "dependencies": {
1772 | "define-property": {
1773 | "version": "0.2.5",
1774 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
1775 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
1776 | "dev": true,
1777 | "requires": {
1778 | "is-descriptor": "^0.1.0"
1779 | }
1780 | }
1781 | }
1782 | },
1783 | "object-visit": {
1784 | "version": "1.0.1",
1785 | "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz",
1786 | "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=",
1787 | "dev": true,
1788 | "requires": {
1789 | "isobject": "^3.0.0"
1790 | },
1791 | "dependencies": {
1792 | "isobject": {
1793 | "version": "3.0.1",
1794 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
1795 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
1796 | "dev": true
1797 | }
1798 | }
1799 | },
1800 | "object.omit": {
1801 | "version": "2.0.1",
1802 | "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz",
1803 | "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=",
1804 | "dev": true,
1805 | "requires": {
1806 | "for-own": "^0.1.4",
1807 | "is-extendable": "^0.1.1"
1808 | }
1809 | },
1810 | "object.pick": {
1811 | "version": "1.3.0",
1812 | "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
1813 | "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=",
1814 | "dev": true,
1815 | "requires": {
1816 | "isobject": "^3.0.1"
1817 | },
1818 | "dependencies": {
1819 | "isobject": {
1820 | "version": "3.0.1",
1821 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
1822 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
1823 | "dev": true
1824 | }
1825 | }
1826 | },
1827 | "once": {
1828 | "version": "1.4.0",
1829 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1830 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
1831 | "dev": true,
1832 | "requires": {
1833 | "wrappy": "1"
1834 | }
1835 | },
1836 | "os-locale": {
1837 | "version": "2.1.0",
1838 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz",
1839 | "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==",
1840 | "dev": true,
1841 | "requires": {
1842 | "execa": "^0.7.0",
1843 | "lcid": "^1.0.0",
1844 | "mem": "^1.1.0"
1845 | }
1846 | },
1847 | "p-finally": {
1848 | "version": "1.0.0",
1849 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
1850 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
1851 | "dev": true
1852 | },
1853 | "p-limit": {
1854 | "version": "1.3.0",
1855 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
1856 | "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
1857 | "dev": true,
1858 | "requires": {
1859 | "p-try": "^1.0.0"
1860 | }
1861 | },
1862 | "p-locate": {
1863 | "version": "2.0.0",
1864 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
1865 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
1866 | "dev": true,
1867 | "requires": {
1868 | "p-limit": "^1.1.0"
1869 | }
1870 | },
1871 | "p-try": {
1872 | "version": "1.0.0",
1873 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
1874 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
1875 | "dev": true
1876 | },
1877 | "parse-glob": {
1878 | "version": "3.0.4",
1879 | "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz",
1880 | "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=",
1881 | "dev": true,
1882 | "requires": {
1883 | "glob-base": "^0.3.0",
1884 | "is-dotfile": "^1.0.0",
1885 | "is-extglob": "^1.0.0",
1886 | "is-glob": "^2.0.0"
1887 | }
1888 | },
1889 | "pascalcase": {
1890 | "version": "0.1.1",
1891 | "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz",
1892 | "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=",
1893 | "dev": true
1894 | },
1895 | "path-exists": {
1896 | "version": "3.0.0",
1897 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
1898 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
1899 | "dev": true
1900 | },
1901 | "path-is-absolute": {
1902 | "version": "1.0.1",
1903 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1904 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
1905 | "dev": true
1906 | },
1907 | "path-key": {
1908 | "version": "2.0.1",
1909 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
1910 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
1911 | "dev": true
1912 | },
1913 | "pegjs": {
1914 | "version": "0.10.0",
1915 | "resolved": "https://registry.npmjs.org/pegjs/-/pegjs-0.10.0.tgz",
1916 | "integrity": "sha1-z4uvrm7d/0tafvsYUmnqr0YQ3b0=",
1917 | "dev": true
1918 | },
1919 | "posix-character-classes": {
1920 | "version": "0.1.1",
1921 | "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
1922 | "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
1923 | "dev": true
1924 | },
1925 | "preserve": {
1926 | "version": "0.2.0",
1927 | "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz",
1928 | "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=",
1929 | "dev": true
1930 | },
1931 | "process-nextick-args": {
1932 | "version": "2.0.0",
1933 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
1934 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
1935 | "dev": true
1936 | },
1937 | "pseudomap": {
1938 | "version": "1.0.2",
1939 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
1940 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
1941 | "dev": true
1942 | },
1943 | "randomatic": {
1944 | "version": "3.1.1",
1945 | "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz",
1946 | "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==",
1947 | "dev": true,
1948 | "requires": {
1949 | "is-number": "^4.0.0",
1950 | "kind-of": "^6.0.0",
1951 | "math-random": "^1.0.1"
1952 | },
1953 | "dependencies": {
1954 | "is-number": {
1955 | "version": "4.0.0",
1956 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz",
1957 | "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==",
1958 | "dev": true
1959 | },
1960 | "kind-of": {
1961 | "version": "6.0.2",
1962 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
1963 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
1964 | "dev": true
1965 | }
1966 | }
1967 | },
1968 | "readable-stream": {
1969 | "version": "2.3.6",
1970 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
1971 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
1972 | "dev": true,
1973 | "requires": {
1974 | "core-util-is": "~1.0.0",
1975 | "inherits": "~2.0.3",
1976 | "isarray": "~1.0.0",
1977 | "process-nextick-args": "~2.0.0",
1978 | "safe-buffer": "~5.1.1",
1979 | "string_decoder": "~1.1.1",
1980 | "util-deprecate": "~1.0.1"
1981 | }
1982 | },
1983 | "readdirp": {
1984 | "version": "2.2.1",
1985 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz",
1986 | "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==",
1987 | "dev": true,
1988 | "requires": {
1989 | "graceful-fs": "^4.1.11",
1990 | "micromatch": "^3.1.10",
1991 | "readable-stream": "^2.0.2"
1992 | },
1993 | "dependencies": {
1994 | "arr-diff": {
1995 | "version": "4.0.0",
1996 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
1997 | "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=",
1998 | "dev": true
1999 | },
2000 | "array-unique": {
2001 | "version": "0.3.2",
2002 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
2003 | "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
2004 | "dev": true
2005 | },
2006 | "braces": {
2007 | "version": "2.3.2",
2008 | "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz",
2009 | "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
2010 | "dev": true,
2011 | "requires": {
2012 | "arr-flatten": "^1.1.0",
2013 | "array-unique": "^0.3.2",
2014 | "extend-shallow": "^2.0.1",
2015 | "fill-range": "^4.0.0",
2016 | "isobject": "^3.0.1",
2017 | "repeat-element": "^1.1.2",
2018 | "snapdragon": "^0.8.1",
2019 | "snapdragon-node": "^2.0.1",
2020 | "split-string": "^3.0.2",
2021 | "to-regex": "^3.0.1"
2022 | },
2023 | "dependencies": {
2024 | "extend-shallow": {
2025 | "version": "2.0.1",
2026 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2027 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2028 | "dev": true,
2029 | "requires": {
2030 | "is-extendable": "^0.1.0"
2031 | }
2032 | }
2033 | }
2034 | },
2035 | "expand-brackets": {
2036 | "version": "2.1.4",
2037 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
2038 | "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=",
2039 | "dev": true,
2040 | "requires": {
2041 | "debug": "^2.3.3",
2042 | "define-property": "^0.2.5",
2043 | "extend-shallow": "^2.0.1",
2044 | "posix-character-classes": "^0.1.0",
2045 | "regex-not": "^1.0.0",
2046 | "snapdragon": "^0.8.1",
2047 | "to-regex": "^3.0.1"
2048 | },
2049 | "dependencies": {
2050 | "define-property": {
2051 | "version": "0.2.5",
2052 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
2053 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
2054 | "dev": true,
2055 | "requires": {
2056 | "is-descriptor": "^0.1.0"
2057 | }
2058 | },
2059 | "extend-shallow": {
2060 | "version": "2.0.1",
2061 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2062 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2063 | "dev": true,
2064 | "requires": {
2065 | "is-extendable": "^0.1.0"
2066 | }
2067 | },
2068 | "is-accessor-descriptor": {
2069 | "version": "0.1.6",
2070 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
2071 | "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=",
2072 | "dev": true,
2073 | "requires": {
2074 | "kind-of": "^3.0.2"
2075 | },
2076 | "dependencies": {
2077 | "kind-of": {
2078 | "version": "3.2.2",
2079 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
2080 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
2081 | "dev": true,
2082 | "requires": {
2083 | "is-buffer": "^1.1.5"
2084 | }
2085 | }
2086 | }
2087 | },
2088 | "is-data-descriptor": {
2089 | "version": "0.1.4",
2090 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
2091 | "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=",
2092 | "dev": true,
2093 | "requires": {
2094 | "kind-of": "^3.0.2"
2095 | },
2096 | "dependencies": {
2097 | "kind-of": {
2098 | "version": "3.2.2",
2099 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
2100 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
2101 | "dev": true,
2102 | "requires": {
2103 | "is-buffer": "^1.1.5"
2104 | }
2105 | }
2106 | }
2107 | },
2108 | "is-descriptor": {
2109 | "version": "0.1.6",
2110 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",
2111 | "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",
2112 | "dev": true,
2113 | "requires": {
2114 | "is-accessor-descriptor": "^0.1.6",
2115 | "is-data-descriptor": "^0.1.4",
2116 | "kind-of": "^5.0.0"
2117 | }
2118 | },
2119 | "kind-of": {
2120 | "version": "5.1.0",
2121 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",
2122 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",
2123 | "dev": true
2124 | }
2125 | }
2126 | },
2127 | "extglob": {
2128 | "version": "2.0.4",
2129 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz",
2130 | "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==",
2131 | "dev": true,
2132 | "requires": {
2133 | "array-unique": "^0.3.2",
2134 | "define-property": "^1.0.0",
2135 | "expand-brackets": "^2.1.4",
2136 | "extend-shallow": "^2.0.1",
2137 | "fragment-cache": "^0.2.1",
2138 | "regex-not": "^1.0.0",
2139 | "snapdragon": "^0.8.1",
2140 | "to-regex": "^3.0.1"
2141 | },
2142 | "dependencies": {
2143 | "define-property": {
2144 | "version": "1.0.0",
2145 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
2146 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
2147 | "dev": true,
2148 | "requires": {
2149 | "is-descriptor": "^1.0.0"
2150 | }
2151 | },
2152 | "extend-shallow": {
2153 | "version": "2.0.1",
2154 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2155 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2156 | "dev": true,
2157 | "requires": {
2158 | "is-extendable": "^0.1.0"
2159 | }
2160 | }
2161 | }
2162 | },
2163 | "fill-range": {
2164 | "version": "4.0.0",
2165 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
2166 | "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=",
2167 | "dev": true,
2168 | "requires": {
2169 | "extend-shallow": "^2.0.1",
2170 | "is-number": "^3.0.0",
2171 | "repeat-string": "^1.6.1",
2172 | "to-regex-range": "^2.1.0"
2173 | },
2174 | "dependencies": {
2175 | "extend-shallow": {
2176 | "version": "2.0.1",
2177 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2178 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2179 | "dev": true,
2180 | "requires": {
2181 | "is-extendable": "^0.1.0"
2182 | }
2183 | }
2184 | }
2185 | },
2186 | "is-accessor-descriptor": {
2187 | "version": "1.0.0",
2188 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
2189 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
2190 | "dev": true,
2191 | "requires": {
2192 | "kind-of": "^6.0.0"
2193 | }
2194 | },
2195 | "is-data-descriptor": {
2196 | "version": "1.0.0",
2197 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
2198 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
2199 | "dev": true,
2200 | "requires": {
2201 | "kind-of": "^6.0.0"
2202 | }
2203 | },
2204 | "is-descriptor": {
2205 | "version": "1.0.2",
2206 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
2207 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
2208 | "dev": true,
2209 | "requires": {
2210 | "is-accessor-descriptor": "^1.0.0",
2211 | "is-data-descriptor": "^1.0.0",
2212 | "kind-of": "^6.0.2"
2213 | }
2214 | },
2215 | "is-number": {
2216 | "version": "3.0.0",
2217 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
2218 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
2219 | "dev": true,
2220 | "requires": {
2221 | "kind-of": "^3.0.2"
2222 | },
2223 | "dependencies": {
2224 | "kind-of": {
2225 | "version": "3.2.2",
2226 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
2227 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
2228 | "dev": true,
2229 | "requires": {
2230 | "is-buffer": "^1.1.5"
2231 | }
2232 | }
2233 | }
2234 | },
2235 | "isobject": {
2236 | "version": "3.0.1",
2237 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
2238 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
2239 | "dev": true
2240 | },
2241 | "kind-of": {
2242 | "version": "6.0.2",
2243 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
2244 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
2245 | "dev": true
2246 | },
2247 | "micromatch": {
2248 | "version": "3.1.10",
2249 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz",
2250 | "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
2251 | "dev": true,
2252 | "requires": {
2253 | "arr-diff": "^4.0.0",
2254 | "array-unique": "^0.3.2",
2255 | "braces": "^2.3.1",
2256 | "define-property": "^2.0.2",
2257 | "extend-shallow": "^3.0.2",
2258 | "extglob": "^2.0.4",
2259 | "fragment-cache": "^0.2.1",
2260 | "kind-of": "^6.0.2",
2261 | "nanomatch": "^1.2.9",
2262 | "object.pick": "^1.3.0",
2263 | "regex-not": "^1.0.0",
2264 | "snapdragon": "^0.8.1",
2265 | "to-regex": "^3.0.2"
2266 | }
2267 | }
2268 | }
2269 | },
2270 | "regex-cache": {
2271 | "version": "0.4.4",
2272 | "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz",
2273 | "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==",
2274 | "dev": true,
2275 | "requires": {
2276 | "is-equal-shallow": "^0.1.3"
2277 | }
2278 | },
2279 | "regex-not": {
2280 | "version": "1.0.2",
2281 | "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
2282 | "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==",
2283 | "dev": true,
2284 | "requires": {
2285 | "extend-shallow": "^3.0.2",
2286 | "safe-regex": "^1.1.0"
2287 | }
2288 | },
2289 | "remove-trailing-separator": {
2290 | "version": "1.1.0",
2291 | "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
2292 | "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=",
2293 | "dev": true
2294 | },
2295 | "repeat-element": {
2296 | "version": "1.1.3",
2297 | "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz",
2298 | "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==",
2299 | "dev": true
2300 | },
2301 | "repeat-string": {
2302 | "version": "1.6.1",
2303 | "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
2304 | "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
2305 | "dev": true
2306 | },
2307 | "require-directory": {
2308 | "version": "2.1.1",
2309 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
2310 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
2311 | "dev": true
2312 | },
2313 | "require-main-filename": {
2314 | "version": "1.0.1",
2315 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
2316 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
2317 | "dev": true
2318 | },
2319 | "resolve-url": {
2320 | "version": "0.2.1",
2321 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
2322 | "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
2323 | "dev": true
2324 | },
2325 | "ret": {
2326 | "version": "0.1.15",
2327 | "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
2328 | "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
2329 | "dev": true
2330 | },
2331 | "safe-buffer": {
2332 | "version": "5.1.2",
2333 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
2334 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
2335 | "dev": true
2336 | },
2337 | "safe-regex": {
2338 | "version": "1.1.0",
2339 | "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz",
2340 | "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=",
2341 | "dev": true,
2342 | "requires": {
2343 | "ret": "~0.1.10"
2344 | }
2345 | },
2346 | "set-blocking": {
2347 | "version": "2.0.0",
2348 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
2349 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
2350 | "dev": true
2351 | },
2352 | "set-value": {
2353 | "version": "2.0.0",
2354 | "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz",
2355 | "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==",
2356 | "dev": true,
2357 | "requires": {
2358 | "extend-shallow": "^2.0.1",
2359 | "is-extendable": "^0.1.1",
2360 | "is-plain-object": "^2.0.3",
2361 | "split-string": "^3.0.1"
2362 | },
2363 | "dependencies": {
2364 | "extend-shallow": {
2365 | "version": "2.0.1",
2366 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2367 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2368 | "dev": true,
2369 | "requires": {
2370 | "is-extendable": "^0.1.0"
2371 | }
2372 | }
2373 | }
2374 | },
2375 | "shebang-command": {
2376 | "version": "1.2.0",
2377 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
2378 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
2379 | "dev": true,
2380 | "requires": {
2381 | "shebang-regex": "^1.0.0"
2382 | }
2383 | },
2384 | "shebang-regex": {
2385 | "version": "1.0.0",
2386 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
2387 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
2388 | "dev": true
2389 | },
2390 | "signal-exit": {
2391 | "version": "3.0.2",
2392 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
2393 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
2394 | "dev": true
2395 | },
2396 | "snapdragon": {
2397 | "version": "0.8.2",
2398 | "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
2399 | "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==",
2400 | "dev": true,
2401 | "requires": {
2402 | "base": "^0.11.1",
2403 | "debug": "^2.2.0",
2404 | "define-property": "^0.2.5",
2405 | "extend-shallow": "^2.0.1",
2406 | "map-cache": "^0.2.2",
2407 | "source-map": "^0.5.6",
2408 | "source-map-resolve": "^0.5.0",
2409 | "use": "^3.1.0"
2410 | },
2411 | "dependencies": {
2412 | "define-property": {
2413 | "version": "0.2.5",
2414 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
2415 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
2416 | "dev": true,
2417 | "requires": {
2418 | "is-descriptor": "^0.1.0"
2419 | }
2420 | },
2421 | "extend-shallow": {
2422 | "version": "2.0.1",
2423 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2424 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2425 | "dev": true,
2426 | "requires": {
2427 | "is-extendable": "^0.1.0"
2428 | }
2429 | }
2430 | }
2431 | },
2432 | "snapdragon-node": {
2433 | "version": "2.1.1",
2434 | "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz",
2435 | "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==",
2436 | "dev": true,
2437 | "requires": {
2438 | "define-property": "^1.0.0",
2439 | "isobject": "^3.0.0",
2440 | "snapdragon-util": "^3.0.1"
2441 | },
2442 | "dependencies": {
2443 | "define-property": {
2444 | "version": "1.0.0",
2445 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
2446 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
2447 | "dev": true,
2448 | "requires": {
2449 | "is-descriptor": "^1.0.0"
2450 | }
2451 | },
2452 | "is-accessor-descriptor": {
2453 | "version": "1.0.0",
2454 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
2455 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
2456 | "dev": true,
2457 | "requires": {
2458 | "kind-of": "^6.0.0"
2459 | }
2460 | },
2461 | "is-data-descriptor": {
2462 | "version": "1.0.0",
2463 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
2464 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
2465 | "dev": true,
2466 | "requires": {
2467 | "kind-of": "^6.0.0"
2468 | }
2469 | },
2470 | "is-descriptor": {
2471 | "version": "1.0.2",
2472 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
2473 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
2474 | "dev": true,
2475 | "requires": {
2476 | "is-accessor-descriptor": "^1.0.0",
2477 | "is-data-descriptor": "^1.0.0",
2478 | "kind-of": "^6.0.2"
2479 | }
2480 | },
2481 | "isobject": {
2482 | "version": "3.0.1",
2483 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
2484 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
2485 | "dev": true
2486 | },
2487 | "kind-of": {
2488 | "version": "6.0.2",
2489 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
2490 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
2491 | "dev": true
2492 | }
2493 | }
2494 | },
2495 | "snapdragon-util": {
2496 | "version": "3.0.1",
2497 | "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz",
2498 | "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==",
2499 | "dev": true,
2500 | "requires": {
2501 | "kind-of": "^3.2.0"
2502 | }
2503 | },
2504 | "sol-digger": {
2505 | "version": "0.0.2",
2506 | "resolved": "https://registry.npmjs.org/sol-digger/-/sol-digger-0.0.2.tgz",
2507 | "integrity": "sha1-QGxKnTHiaef4jrHC6hATGOXgkCU=",
2508 | "dev": true
2509 | },
2510 | "sol-explore": {
2511 | "version": "1.6.1",
2512 | "resolved": "https://registry.npmjs.org/sol-explore/-/sol-explore-1.6.1.tgz",
2513 | "integrity": "sha1-tZ8HPGn+MyVg1aEMMrqMp/KYbPs=",
2514 | "dev": true
2515 | },
2516 | "solium-plugin-security": {
2517 | "version": "0.1.1",
2518 | "resolved": "https://registry.npmjs.org/solium-plugin-security/-/solium-plugin-security-0.1.1.tgz",
2519 | "integrity": "sha512-kpLirBwIq4mhxk0Y/nn5cQ6qdJTI+U1LO3gpoNIcqNaW+sI058moXBe2UiHs+9wvF9IzYD49jcKhFTxcR9u9SQ==",
2520 | "dev": true
2521 | },
2522 | "solparse": {
2523 | "version": "2.2.8",
2524 | "resolved": "https://registry.npmjs.org/solparse/-/solparse-2.2.8.tgz",
2525 | "integrity": "sha512-Tm6hdfG72DOxD40SD+T5ddbekWglNWjzDRSNq7ZDIOHVsyaJSeeunUuWNj4DE7uDrJK3tGQuX0ZTDZWNYsGPMA==",
2526 | "dev": true,
2527 | "requires": {
2528 | "mocha": "^4.0.1",
2529 | "pegjs": "^0.10.0",
2530 | "yargs": "^10.0.3"
2531 | }
2532 | },
2533 | "source-map": {
2534 | "version": "0.5.7",
2535 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
2536 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
2537 | "dev": true
2538 | },
2539 | "source-map-resolve": {
2540 | "version": "0.5.2",
2541 | "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz",
2542 | "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==",
2543 | "dev": true,
2544 | "requires": {
2545 | "atob": "^2.1.1",
2546 | "decode-uri-component": "^0.2.0",
2547 | "resolve-url": "^0.2.1",
2548 | "source-map-url": "^0.4.0",
2549 | "urix": "^0.1.0"
2550 | }
2551 | },
2552 | "source-map-url": {
2553 | "version": "0.4.0",
2554 | "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz",
2555 | "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
2556 | "dev": true
2557 | },
2558 | "split-string": {
2559 | "version": "3.1.0",
2560 | "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
2561 | "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==",
2562 | "dev": true,
2563 | "requires": {
2564 | "extend-shallow": "^3.0.0"
2565 | }
2566 | },
2567 | "static-extend": {
2568 | "version": "0.1.2",
2569 | "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
2570 | "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=",
2571 | "dev": true,
2572 | "requires": {
2573 | "define-property": "^0.2.5",
2574 | "object-copy": "^0.1.0"
2575 | },
2576 | "dependencies": {
2577 | "define-property": {
2578 | "version": "0.2.5",
2579 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
2580 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
2581 | "dev": true,
2582 | "requires": {
2583 | "is-descriptor": "^0.1.0"
2584 | }
2585 | }
2586 | }
2587 | },
2588 | "string-width": {
2589 | "version": "2.1.1",
2590 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
2591 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
2592 | "dev": true,
2593 | "requires": {
2594 | "is-fullwidth-code-point": "^2.0.0",
2595 | "strip-ansi": "^4.0.0"
2596 | }
2597 | },
2598 | "string_decoder": {
2599 | "version": "1.1.1",
2600 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
2601 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
2602 | "dev": true,
2603 | "requires": {
2604 | "safe-buffer": "~5.1.0"
2605 | }
2606 | },
2607 | "strip-ansi": {
2608 | "version": "4.0.0",
2609 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
2610 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
2611 | "dev": true,
2612 | "requires": {
2613 | "ansi-regex": "^3.0.0"
2614 | }
2615 | },
2616 | "strip-eof": {
2617 | "version": "1.0.0",
2618 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
2619 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
2620 | "dev": true
2621 | },
2622 | "supports-color": {
2623 | "version": "4.4.0",
2624 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz",
2625 | "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==",
2626 | "dev": true,
2627 | "requires": {
2628 | "has-flag": "^2.0.0"
2629 | }
2630 | },
2631 | "text-table": {
2632 | "version": "0.2.0",
2633 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
2634 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
2635 | "dev": true
2636 | },
2637 | "to-object-path": {
2638 | "version": "0.3.0",
2639 | "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz",
2640 | "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=",
2641 | "dev": true,
2642 | "requires": {
2643 | "kind-of": "^3.0.2"
2644 | }
2645 | },
2646 | "to-regex": {
2647 | "version": "3.0.2",
2648 | "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz",
2649 | "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==",
2650 | "dev": true,
2651 | "requires": {
2652 | "define-property": "^2.0.2",
2653 | "extend-shallow": "^3.0.2",
2654 | "regex-not": "^1.0.2",
2655 | "safe-regex": "^1.1.0"
2656 | }
2657 | },
2658 | "to-regex-range": {
2659 | "version": "2.1.1",
2660 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz",
2661 | "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=",
2662 | "dev": true,
2663 | "requires": {
2664 | "is-number": "^3.0.0",
2665 | "repeat-string": "^1.6.1"
2666 | },
2667 | "dependencies": {
2668 | "is-number": {
2669 | "version": "3.0.0",
2670 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
2671 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
2672 | "dev": true,
2673 | "requires": {
2674 | "kind-of": "^3.0.2"
2675 | }
2676 | }
2677 | }
2678 | },
2679 | "truffle-hdwallet-provider": {
2680 | "version": "1.0.6",
2681 | "resolved": "https://registry.npmjs.org/truffle-hdwallet-provider/-/truffle-hdwallet-provider-1.0.6.tgz",
2682 | "integrity": "sha512-cYTG0t9XouLLEBLMjkfHe3s2JO9wrFFVeXEgpW5Ay+8S56isf3LkrAUh0ws9bcYCJ0l7jho9xkaNnakeDqq//Q==",
2683 | "dev": true,
2684 | "requires": {
2685 | "any-promise": "^1.3.0",
2686 | "bindings": "^1.3.1",
2687 | "websocket": "^1.0.28"
2688 | }
2689 | },
2690 | "typedarray-to-buffer": {
2691 | "version": "3.1.5",
2692 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
2693 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
2694 | "dev": true,
2695 | "requires": {
2696 | "is-typedarray": "^1.0.0"
2697 | }
2698 | },
2699 | "union-value": {
2700 | "version": "1.0.0",
2701 | "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz",
2702 | "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=",
2703 | "dev": true,
2704 | "requires": {
2705 | "arr-union": "^3.1.0",
2706 | "get-value": "^2.0.6",
2707 | "is-extendable": "^0.1.1",
2708 | "set-value": "^0.4.3"
2709 | },
2710 | "dependencies": {
2711 | "extend-shallow": {
2712 | "version": "2.0.1",
2713 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
2714 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
2715 | "dev": true,
2716 | "requires": {
2717 | "is-extendable": "^0.1.0"
2718 | }
2719 | },
2720 | "set-value": {
2721 | "version": "0.4.3",
2722 | "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz",
2723 | "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=",
2724 | "dev": true,
2725 | "requires": {
2726 | "extend-shallow": "^2.0.1",
2727 | "is-extendable": "^0.1.1",
2728 | "is-plain-object": "^2.0.1",
2729 | "to-object-path": "^0.3.0"
2730 | }
2731 | }
2732 | }
2733 | },
2734 | "unset-value": {
2735 | "version": "1.0.0",
2736 | "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz",
2737 | "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=",
2738 | "dev": true,
2739 | "requires": {
2740 | "has-value": "^0.3.1",
2741 | "isobject": "^3.0.0"
2742 | },
2743 | "dependencies": {
2744 | "has-value": {
2745 | "version": "0.3.1",
2746 | "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz",
2747 | "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=",
2748 | "dev": true,
2749 | "requires": {
2750 | "get-value": "^2.0.3",
2751 | "has-values": "^0.1.4",
2752 | "isobject": "^2.0.0"
2753 | },
2754 | "dependencies": {
2755 | "isobject": {
2756 | "version": "2.1.0",
2757 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
2758 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=",
2759 | "dev": true,
2760 | "requires": {
2761 | "isarray": "1.0.0"
2762 | }
2763 | }
2764 | }
2765 | },
2766 | "has-values": {
2767 | "version": "0.1.4",
2768 | "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz",
2769 | "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=",
2770 | "dev": true
2771 | },
2772 | "isobject": {
2773 | "version": "3.0.1",
2774 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
2775 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
2776 | "dev": true
2777 | }
2778 | }
2779 | },
2780 | "urix": {
2781 | "version": "0.1.0",
2782 | "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz",
2783 | "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
2784 | "dev": true
2785 | },
2786 | "use": {
2787 | "version": "3.1.1",
2788 | "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
2789 | "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
2790 | "dev": true
2791 | },
2792 | "util-deprecate": {
2793 | "version": "1.0.2",
2794 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
2795 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
2796 | "dev": true
2797 | },
2798 | "websocket": {
2799 | "version": "1.0.28",
2800 | "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.28.tgz",
2801 | "integrity": "sha512-00y/20/80P7H4bCYkzuuvvfDvh+dgtXi5kzDf3UcZwN6boTYaKvsrtZ5lIYm1Gsg48siMErd9M4zjSYfYFHTrA==",
2802 | "dev": true,
2803 | "requires": {
2804 | "debug": "^2.2.0",
2805 | "nan": "^2.11.0",
2806 | "typedarray-to-buffer": "^3.1.5",
2807 | "yaeti": "^0.0.6"
2808 | },
2809 | "dependencies": {
2810 | "debug": {
2811 | "version": "2.6.9",
2812 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
2813 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
2814 | "dev": true,
2815 | "requires": {
2816 | "ms": "2.0.0"
2817 | }
2818 | },
2819 | "nan": {
2820 | "version": "2.13.2",
2821 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz",
2822 | "integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==",
2823 | "dev": true
2824 | }
2825 | }
2826 | },
2827 | "which": {
2828 | "version": "1.3.1",
2829 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
2830 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
2831 | "dev": true,
2832 | "requires": {
2833 | "isexe": "^2.0.0"
2834 | }
2835 | },
2836 | "which-module": {
2837 | "version": "2.0.0",
2838 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
2839 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
2840 | "dev": true
2841 | },
2842 | "wrap-ansi": {
2843 | "version": "2.1.0",
2844 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
2845 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
2846 | "dev": true,
2847 | "requires": {
2848 | "string-width": "^1.0.1",
2849 | "strip-ansi": "^3.0.1"
2850 | },
2851 | "dependencies": {
2852 | "ansi-regex": {
2853 | "version": "2.1.1",
2854 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
2855 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
2856 | "dev": true
2857 | },
2858 | "is-fullwidth-code-point": {
2859 | "version": "1.0.0",
2860 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
2861 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
2862 | "dev": true,
2863 | "requires": {
2864 | "number-is-nan": "^1.0.0"
2865 | }
2866 | },
2867 | "string-width": {
2868 | "version": "1.0.2",
2869 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
2870 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
2871 | "dev": true,
2872 | "requires": {
2873 | "code-point-at": "^1.0.0",
2874 | "is-fullwidth-code-point": "^1.0.0",
2875 | "strip-ansi": "^3.0.0"
2876 | }
2877 | },
2878 | "strip-ansi": {
2879 | "version": "3.0.1",
2880 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
2881 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
2882 | "dev": true,
2883 | "requires": {
2884 | "ansi-regex": "^2.0.0"
2885 | }
2886 | }
2887 | }
2888 | },
2889 | "wrappy": {
2890 | "version": "1.0.2",
2891 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2892 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
2893 | "dev": true
2894 | },
2895 | "y18n": {
2896 | "version": "3.2.1",
2897 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
2898 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
2899 | "dev": true
2900 | },
2901 | "yaeti": {
2902 | "version": "0.0.6",
2903 | "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
2904 | "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=",
2905 | "dev": true
2906 | },
2907 | "yallist": {
2908 | "version": "2.1.2",
2909 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
2910 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
2911 | "dev": true
2912 | },
2913 | "yargs": {
2914 | "version": "10.1.2",
2915 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz",
2916 | "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==",
2917 | "dev": true,
2918 | "requires": {
2919 | "cliui": "^4.0.0",
2920 | "decamelize": "^1.1.1",
2921 | "find-up": "^2.1.0",
2922 | "get-caller-file": "^1.0.1",
2923 | "os-locale": "^2.0.0",
2924 | "require-directory": "^2.1.1",
2925 | "require-main-filename": "^1.0.1",
2926 | "set-blocking": "^2.0.0",
2927 | "string-width": "^2.0.0",
2928 | "which-module": "^2.0.0",
2929 | "y18n": "^3.2.1",
2930 | "yargs-parser": "^8.1.0"
2931 | }
2932 | },
2933 | "yargs-parser": {
2934 | "version": "8.1.0",
2935 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz",
2936 | "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==",
2937 | "dev": true,
2938 | "requires": {
2939 | "camelcase": "^4.1.0"
2940 | }
2941 | }
2942 | }
2943 | }
2944 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "erc20faucet-contracts",
3 | "version": "1.0.0",
4 | "description": "Smart contract that holds an ERC20 token and provides `getTokens` method to claim free tokens.",
5 | "main": "index.js",
6 | "directories": {
7 | "test": "test"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "repository": {
13 | "type": "git",
14 | "url": "git+ssh://git@github.com/WeTrustPlatform/erc20faucet-contracts.git"
15 | },
16 | "author": "Hoang Nguyen",
17 | "license": "GPL-3.0",
18 | "bugs": {
19 | "url": "https://github.com/WeTrustPlatform/erc20faucet-contracts/issues"
20 | },
21 | "homepage": "https://github.com/WeTrustPlatform/erc20faucet-contracts#readme",
22 | "devDependencies": {
23 | "ethlint": "^1.2.4",
24 | "truffle-hdwallet-provider": "^1.0.6"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/scripts/getTokens.js:
--------------------------------------------------------------------------------
1 | // Example code on how to claim TRST on Rinkeby
2 | // Copy and paste this snippet to Chrome's console that is connected to MetaMask on Rinkeby
3 | //
4 |
5 | const deployedAddress = "0x9Bc14c55139501643B62d49c9E8dEF17029Ad418";
6 | const amountToClaim = 1000000; // 1 TRST
7 |
8 | const abi =
9 | [{"constant":false,"inputs":[],"name":"reclaimTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxAllowanceInclusive","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_maxAllowanceInclusive","type":"uint256"}],"name":"setMaxAllowance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"erc20Contract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"claimedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"isPaused","type":"bool"}],"name":"setPause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"getTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_erc20ContractAddress","type":"address"},{"name":"_maxAllowanceInclusive","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"requestor","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"GetTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"tokenAmount","type":"uint256"}],"name":"ReclaimTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"setter","type":"address"},{"indexed":false,"name":"newState","type":"bool"},{"indexed":false,"name":"oldState","type":"bool"}],"name":"SetPause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"setter","type":"address"},{"indexed":false,"name":"newState","type":"uint256"},{"indexed":false,"name":"oldState","type":"uint256"}],"name":"SetMaxAllowance","type":"event"}];
10 | const faucet = web3.eth.contract(abi).at(deployedAddress);
11 |
12 | faucet.getTokens(amountToClaim, function (err, success) {
13 | if (err || !success) throw new Error(err || 'getTokens returned false');
14 | });
15 |
--------------------------------------------------------------------------------
/truffle-config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | // See
3 | // to customize your Truffle configuration!
4 | };
5 |
--------------------------------------------------------------------------------
/truffle.js:
--------------------------------------------------------------------------------
1 | const assert = require('assert');
2 | const HDWalletProvider = require("truffle-hdwallet-provider");
3 | const MNEMONIC = process.env.MNEMONIC || "";
4 | const RINKEBY_RPC = process.env.RINKEBY_RPC || "http://127.0.0.1:8545/";
5 |
6 | assert(MNEMONIC);
7 |
8 | module.exports = {
9 | // See
10 | // to customize your Truffle configuration!
11 | networks: {
12 | dev: {
13 | provider: new HDWalletProvider(MNEMONIC, "http://127.0.0.1:8545/"),
14 | network_id: "*", // Match any network id
15 | },
16 | rinkeby: {
17 | provider: new HDWalletProvider(MNEMONIC, RINKEBY_RPC),
18 | network_id: 4,
19 | },
20 | },
21 | };
22 |
--------------------------------------------------------------------------------