├── .gitignore ├── LICENSE ├── README.md ├── audits ├── defencegroup.pdf └── digitalsecurity.pdf ├── contracts ├── Migrations.sol ├── math │ └── SafeMath.sol ├── ownership │ └── Shareable.sol └── token │ ├── BasicToken.sol │ ├── ERC20.sol │ ├── ERC20Basic.sol │ ├── MintableToken.sol │ ├── OTNToken.sol │ └── StandardToken.sol ├── migrations ├── 1_initial_migration.js └── 2_deploy_contracts.js ├── package-lock.json ├── package.json ├── test ├── BasicToken.js ├── MintableToken.js ├── OTNToken.js ├── SafeMath.js ├── Shareable.js ├── StandardToken.js └── helpers │ ├── BasicTokenMock.sol │ ├── SafeMathMock.sol │ ├── ShareableMock.sol │ ├── StandardTokenMock.sol │ └── assertJump.js └── truffle.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | build 3 | node_modules 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /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 | 635 | Copyright (C) 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 | Copyright (C) 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 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Open Trading Network token 2 | 3 | Open Trading Network (OTN) – the first platform that offers cross-chain technology to unite all blockchain networks and market participants, and ensure their best interests. 4 | 5 | -------------------------------------------------------------------------------- /audits/defencegroup.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTradingNetworkFoundation/otn-token/7f454449da672fc22aa736436145027ec7c50b0f/audits/defencegroup.pdf -------------------------------------------------------------------------------- /audits/digitalsecurity.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenTradingNetworkFoundation/otn-token/7f454449da672fc22aa736436145027ec7c50b0f/audits/digitalsecurity.pdf -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.4; 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() { 12 | owner = msg.sender; 13 | } 14 | 15 | function setCompleted(uint completed) restricted { 16 | last_completed_migration = completed; 17 | } 18 | 19 | function upgrade(address new_address) restricted { 20 | Migrations upgraded = Migrations(new_address); 21 | upgraded.setCompleted(last_completed_migration); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /contracts/math/SafeMath.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | /** 5 | * @title SafeMath 6 | * @dev Math operations with safety checks that throw on error 7 | */ 8 | library SafeMath { 9 | function mul(uint256 a, uint256 b) internal constant returns (uint256) { 10 | uint256 c = a * b; 11 | assert(a == 0 || c / a == b); 12 | return c; 13 | } 14 | 15 | function div(uint256 a, uint256 b) internal constant returns (uint256) { 16 | // assert(b > 0); // Solidity automatically throws when dividing by 0 17 | uint256 c = a / b; 18 | // assert(a == b * c + a % b); // There is no case in which this doesn't hold 19 | return c; 20 | } 21 | 22 | function sub(uint256 a, uint256 b) internal constant returns (uint256) { 23 | assert(b <= a); 24 | return a - b; 25 | } 26 | 27 | function add(uint256 a, uint256 b) internal constant returns (uint256) { 28 | uint256 c = a + b; 29 | assert(c >= a); 30 | return c; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /contracts/ownership/Shareable.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | /** 5 | * @title Shareable 6 | * @dev inheritable "property" contract that enables methods to be protected by requiring the 7 | * acquiescence of either a single, or, crucially, each of a number of, designated owners. 8 | * @dev Usage: use modifiers onlyOwner (just own owned) or onlyManyOwners(hash), whereby the same hash must be provided by some number (specified in constructor) of the set of owners (specified in the constructor) before the interior is executed. 9 | */ 10 | contract Shareable { 11 | 12 | event Confirmation(address owner, bytes32 operation); 13 | event Revoke(address owner, bytes32 operation); 14 | event RequirementChange(uint required); 15 | event OwnerAddition(address indexed owner); 16 | event OwnerRemoval(address indexed owner); 17 | 18 | // struct for the status of a pending operation. 19 | struct PendingState { 20 | uint256 index; 21 | uint256 yetNeeded; 22 | mapping (address => bool) ownersDone; 23 | } 24 | 25 | // the number of owners that must confirm the same operation before it is run. 26 | uint256 public required; 27 | 28 | // list of owners by index 29 | address[] owners; 30 | 31 | // hash table of owners by address 32 | mapping (address => bool) internal isOwner; 33 | 34 | // the ongoing operations. 35 | mapping (bytes32 => PendingState) internal pendings; 36 | 37 | // the ongoing operations by index 38 | bytes32[] internal pendingsIndex; 39 | 40 | /** 41 | * @dev Throws if address is null. 42 | * @param _address The address for check 43 | */ 44 | modifier addressNotNull(address _address) { 45 | require(_address != address(0)); 46 | _; 47 | } 48 | 49 | /** 50 | * @dev Throws if owners count less then quorum. 51 | * @param _ownersCount New owners count 52 | * @param _required New or old required param, min: 2 53 | */ 54 | modifier validRequirement(uint256 _ownersCount, uint _required) { 55 | require(_required > 1 && _ownersCount >= _required); 56 | _; 57 | } 58 | 59 | /** 60 | * @dev Throws if owner does not exists. 61 | * @param owner The address for check 62 | */ 63 | modifier ownerExists(address owner) { 64 | require(isOwner[owner]); 65 | _; 66 | } 67 | 68 | /** 69 | * @dev Throws if owner exists. 70 | * @param owner The address for check 71 | */ 72 | modifier ownerDoesNotExist(address owner) { 73 | require(!isOwner[owner]); 74 | _; 75 | } 76 | 77 | /** 78 | * @dev Throws if called by any account other than the owner. 79 | */ 80 | modifier onlyOwner { 81 | require(isOwner[msg.sender]); 82 | _; 83 | } 84 | 85 | /** 86 | * @dev Modifier for multisig functions. 87 | * @param _operation The operation must have an intrinsic hash in order that later attempts can be 88 | * realised as the same underlying operation and thus count as confirmations. 89 | */ 90 | modifier onlyManyOwners(bytes32 _operation) { 91 | if (confirmAndCheck(_operation)) { 92 | _; 93 | } 94 | } 95 | 96 | /** 97 | * @dev Constructor is given the number of sigs required to do protected "onlyManyOwners" 98 | * transactions as well as the selection of addresses capable of confirming them. 99 | * @param _additionalOwners A list of owners. 100 | * @param _required The amount required for a operation to be approved. 101 | */ 102 | function Shareable(address[] _additionalOwners, uint256 _required) 103 | validRequirement(_additionalOwners.length + 1, _required) 104 | { 105 | owners.push(msg.sender); 106 | isOwner[msg.sender] = true; 107 | 108 | for (uint i = 0; i < _additionalOwners.length; i++) { 109 | require(!isOwner[_additionalOwners[i]] && _additionalOwners[i] != address(0)); 110 | 111 | owners.push(_additionalOwners[i]); 112 | isOwner[_additionalOwners[i]] = true; 113 | } 114 | 115 | required = _required; 116 | } 117 | 118 | /** 119 | * @dev Allows to change the number of required confirmations. 120 | * @param _required Number of required confirmations. 121 | */ 122 | function changeRequirement(uint _required) 123 | external 124 | validRequirement(owners.length, _required) 125 | onlyManyOwners(keccak256("change-requirement", _required)) 126 | { 127 | required = _required; 128 | 129 | RequirementChange(_required); 130 | } 131 | 132 | /** 133 | * @dev Allows owners to add new owner with quorum. 134 | * @param _owner The address to join for ownership. 135 | */ 136 | function addOwner(address _owner) 137 | external 138 | addressNotNull(_owner) 139 | ownerDoesNotExist(_owner) 140 | onlyManyOwners(keccak256("add-owner", _owner)) 141 | { 142 | owners.push(_owner); 143 | isOwner[_owner] = true; 144 | 145 | OwnerAddition(_owner); 146 | } 147 | 148 | /** 149 | * @dev Allows owners to remove owner with quorum. 150 | * @param _owner The address to remove from ownership. 151 | */ 152 | function removeOwner(address _owner) 153 | external 154 | addressNotNull(_owner) 155 | ownerExists(_owner) 156 | onlyManyOwners(keccak256("remove-owner", _owner)) 157 | validRequirement(owners.length - 1, required) 158 | { 159 | // clear all pending operation list 160 | clearPending(); 161 | 162 | isOwner[_owner] = false; 163 | 164 | for (uint256 i = 0; i < owners.length - 1; i++) { 165 | if (owners[i] == _owner) { 166 | owners[i] = owners[owners.length - 1]; 167 | break; 168 | } 169 | } 170 | 171 | owners.length -= 1; 172 | 173 | OwnerRemoval(_owner); 174 | } 175 | 176 | /** 177 | * @dev Revokes a prior confirmation of the given operation. 178 | * @param _operation A string identifying the operation. 179 | */ 180 | function revoke(bytes32 _operation) 181 | external 182 | onlyOwner 183 | { 184 | var pending = pendings[_operation]; 185 | 186 | if (pending.ownersDone[msg.sender]) { 187 | pending.yetNeeded++; 188 | pending.ownersDone[msg.sender] = false; 189 | 190 | uint256 count = 0; 191 | for (uint256 i = 0; i < owners.length; i++) { 192 | if (hasConfirmed(_operation, owners[i])) { 193 | count++; 194 | } 195 | } 196 | 197 | if (count <= 0) { 198 | pendingsIndex[pending.index] = pendingsIndex[pendingsIndex.length - 1]; 199 | pendingsIndex.length--; 200 | delete pendings[_operation]; 201 | } 202 | 203 | Revoke(msg.sender, _operation); 204 | } 205 | } 206 | 207 | /** 208 | * @dev Function to check is specific owner has already confirme the operation. 209 | * @param _operation The operation identifier. 210 | * @param _owner The owner address. 211 | * @return True if the owner has confirmed and false otherwise. 212 | */ 213 | function hasConfirmed(bytes32 _operation, address _owner) 214 | constant 215 | addressNotNull(_owner) 216 | onlyOwner 217 | returns (bool) 218 | { 219 | return pendings[_operation].ownersDone[_owner]; 220 | } 221 | 222 | /** 223 | * @dev Confirm and operation and checks if it's already executable. 224 | * @param _operation The operation identifier. 225 | * @return Returns true when operation can be executed. 226 | */ 227 | function confirmAndCheck(bytes32 _operation) 228 | internal 229 | onlyOwner 230 | returns (bool) 231 | { 232 | var pending = pendings[_operation]; 233 | 234 | // if we're not yet working on this operation, switch over and reset the confirmation status. 235 | if (pending.yetNeeded == 0) { 236 | clearOwnersDone(_operation); 237 | // reset count of confirmations needed. 238 | pending.yetNeeded = required; 239 | // reset which owners have confirmed (none). 240 | pendingsIndex.length++; 241 | pending.index = pendingsIndex.length++; 242 | pendingsIndex[pending.index] = _operation; 243 | } 244 | 245 | // make sure we (the message sender) haven't confirmed this operation previously. 246 | if (!hasConfirmed(_operation, msg.sender)) { 247 | Confirmation(msg.sender, _operation); 248 | 249 | // ok - check if count is enough to go ahead. 250 | if (pending.yetNeeded <= 1) { 251 | // enough confirmations: reset and run interior. 252 | clearOwnersDone(_operation); 253 | pendingsIndex[pending.index] = pendingsIndex[pendingsIndex.length - 1]; 254 | pendingsIndex.length--; 255 | delete pendings[_operation]; 256 | 257 | return true; 258 | } else { 259 | // not enough: record that this owner in particular confirmed. 260 | pending.yetNeeded--; 261 | pending.ownersDone[msg.sender] = true; 262 | } 263 | } else { 264 | revert(); 265 | } 266 | 267 | return false; 268 | } 269 | 270 | /** 271 | * @dev Clear ownersDone in operation. 272 | * @param _operation The operation identifier. 273 | */ 274 | function clearOwnersDone(bytes32 _operation) 275 | internal 276 | onlyOwner 277 | { 278 | for (uint256 i = 0; i < owners.length; i++) { 279 | if (pendings[_operation].ownersDone[owners[i]]) { 280 | pendings[_operation].ownersDone[owners[i]] = false; 281 | } 282 | } 283 | } 284 | 285 | /** 286 | * @dev Clear the pending list. 287 | */ 288 | function clearPending() 289 | internal 290 | onlyOwner 291 | { 292 | uint256 length = pendingsIndex.length; 293 | 294 | for (uint256 i = 0; i < length; ++i) { 295 | clearOwnersDone(pendingsIndex[i]); 296 | delete pendings[pendingsIndex[i]]; 297 | } 298 | 299 | pendingsIndex.length = 0; 300 | } 301 | } 302 | -------------------------------------------------------------------------------- /contracts/token/BasicToken.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import './ERC20Basic.sol'; 5 | import '../math/SafeMath.sol'; 6 | 7 | 8 | /** 9 | * @title Basic token 10 | * @dev Basic version of StandardToken, with no allowances. 11 | */ 12 | contract BasicToken is ERC20Basic { 13 | using SafeMath for uint256; 14 | 15 | mapping (address => uint256) balances; 16 | 17 | /** 18 | * @dev transfer token for a specified address 19 | * @param _to The address to transfer to. 20 | * @param _value The amount to be transferred. 21 | */ 22 | function transfer(address _to, uint256 _value) public returns (bool) { 23 | require(_to != address(0)); 24 | 25 | // SafeMath.sub will throw if there is not enough balance. 26 | balances[msg.sender] = balances[msg.sender].sub(_value); 27 | balances[_to] = balances[_to].add(_value); 28 | Transfer(msg.sender, _to, _value); 29 | return true; 30 | } 31 | 32 | /** 33 | * @dev Gets the balance of the specified address. 34 | * @param _owner The address to query the the balance of. 35 | * @return An uint256 representing the amount owned by the passed address. 36 | */ 37 | function balanceOf(address _owner) public constant returns (uint256 balance) { 38 | return balances[_owner]; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /contracts/token/ERC20.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import './ERC20Basic.sol'; 5 | 6 | 7 | /** 8 | * @title ERC20 interface 9 | * @dev see https://github.com/ethereum/EIPs/issues/20 10 | */ 11 | contract ERC20 is ERC20Basic { 12 | function allowance(address owner, address spender) public constant returns (uint256); 13 | 14 | function transferFrom(address from, address to, uint256 value) public returns (bool); 15 | 16 | function approve(address spender, uint256 value) public returns (bool); 17 | 18 | event Approval(address indexed owner, address indexed spender, uint256 value); 19 | } 20 | -------------------------------------------------------------------------------- /contracts/token/ERC20Basic.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | /** 5 | * @title ERC20Basic 6 | * @dev Simpler version of ERC20 interface 7 | * @dev see https://github.com/ethereum/EIPs/issues/179 8 | */ 9 | contract ERC20Basic { 10 | uint256 public totalSupply; 11 | 12 | function balanceOf(address who) public constant returns (uint256); 13 | 14 | function transfer(address to, uint256 value) public returns (bool); 15 | 16 | event Transfer(address indexed from, address indexed to, uint256 value); 17 | } 18 | -------------------------------------------------------------------------------- /contracts/token/MintableToken.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import './StandardToken.sol'; 5 | import '../ownership/Shareable.sol'; 6 | 7 | 8 | /** 9 | * @title MintableToken 10 | * @dev Simple ERC20 Token example, with mintable token creation. 11 | */ 12 | contract MintableToken is StandardToken, Shareable { 13 | event Mint(uint256 iteration, address indexed to, uint256 amount); 14 | 15 | // total supply limit 16 | uint256 public totalSupplyLimit; 17 | 18 | // the number of blocks to the next supply 19 | uint256 public numberOfBlocksBetweenSupplies; 20 | 21 | // mint is available after the block number 22 | uint256 public nextSupplyAfterBlock; 23 | 24 | // the current iteration of the supply 25 | uint256 public currentIteration = 1; 26 | 27 | // the amount of tokens available supply in prev iteration 28 | uint256 private prevIterationSupplyLimit = 0; 29 | 30 | /** 31 | * @dev Throws if minting are not allowed. 32 | * @param _amount The amount of tokens to mint. 33 | */ 34 | modifier canMint(uint256 _amount) { 35 | // check block height 36 | require(block.number >= nextSupplyAfterBlock); 37 | 38 | // check total supply limit 39 | require(totalSupply.add(_amount) <= totalSupplyLimit); 40 | 41 | // check supply amount in current iteration 42 | require(_amount <= currentIterationSupplyLimit()); 43 | 44 | _; 45 | } 46 | 47 | /** 48 | * @dev Constructor 49 | * @param _initialSupplyAddress The address that will recieve the initial minted tokens. 50 | * @param _initialSupply The amount of tokens to initial mint. 51 | * @param _firstIterationSupplyLimit The amount of token to limit first iteration. 52 | * @param _totalSupplyLimit The amount of tokens to finish mint. 53 | * @param _numberOfBlocksBetweenSupplies Number of blocks for the next mint. 54 | * @param _additionalOwners A list of owners. 55 | * @param _required The amount required for a transaction to be approved. 56 | */ 57 | function MintableToken( 58 | address _initialSupplyAddress, 59 | uint256 _initialSupply, 60 | uint256 _firstIterationSupplyLimit, 61 | uint256 _totalSupplyLimit, 62 | uint256 _numberOfBlocksBetweenSupplies, 63 | address[] _additionalOwners, 64 | uint256 _required 65 | ) 66 | Shareable(_additionalOwners, _required) 67 | { 68 | require(_initialSupplyAddress != address(0) && _initialSupply > 0); 69 | 70 | prevIterationSupplyLimit = _firstIterationSupplyLimit; 71 | totalSupplyLimit = _totalSupplyLimit; 72 | numberOfBlocksBetweenSupplies = _numberOfBlocksBetweenSupplies; 73 | nextSupplyAfterBlock = block.number.add(_numberOfBlocksBetweenSupplies); 74 | 75 | totalSupply = totalSupply.add(_initialSupply); 76 | balances[_initialSupplyAddress] = balances[_initialSupplyAddress].add(_initialSupply); 77 | } 78 | 79 | /** 80 | * @dev Returns the limit on the supply in the current iteration. 81 | */ 82 | function currentIterationSupplyLimit() 83 | public 84 | constant 85 | returns (uint256 maxSupply) 86 | { 87 | if (currentIteration == 1) { 88 | maxSupply = prevIterationSupplyLimit; 89 | } else { 90 | maxSupply = prevIterationSupplyLimit.mul(9881653713).div(10000000000); 91 | 92 | if (maxSupply > (totalSupplyLimit.sub(totalSupply))) { 93 | maxSupply = totalSupplyLimit.sub(totalSupply); 94 | } 95 | } 96 | } 97 | 98 | /** 99 | * @dev Function to init minting tokens 100 | * @param _to The address that will recieve the minted tokens. 101 | * @param _amount The amount of tokens to mint. 102 | * @return A boolean that indicates if the operation was successful. 103 | */ 104 | function mint(address _to, uint256 _amount) 105 | external 106 | canMint(_amount) 107 | onlyManyOwners(keccak256("mint", _to, _amount)) 108 | returns (bool) 109 | { 110 | prevIterationSupplyLimit = currentIterationSupplyLimit(); 111 | nextSupplyAfterBlock = block.number.add(numberOfBlocksBetweenSupplies); 112 | 113 | totalSupply = totalSupply.add(_amount); 114 | balances[_to] = balances[_to].add(_amount); 115 | 116 | Mint(currentIteration, _to, _amount); 117 | Transfer(0x0, _to, _amount); 118 | 119 | currentIteration = currentIteration.add(1); 120 | 121 | clearPending(); 122 | 123 | return true; 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /contracts/token/OTNToken.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import './MintableToken.sol'; 5 | 6 | 7 | /** 8 | * @title OTN ERC20 token 9 | */ 10 | contract OTNToken is MintableToken { 11 | // token name 12 | string public name = "Open Trading Network"; 13 | 14 | // token symbol 15 | string public symbol = "OTN"; 16 | 17 | // token decimals 18 | uint256 public decimals = 18; 19 | 20 | /** 21 | * @dev Constructor 22 | * @param _initialSupplyAddress The address that will recieve the initial minted tokens. 23 | * @param _additionalOwners A list of owners. 24 | */ 25 | function OTNToken( 26 | address _initialSupplyAddress, 27 | address[] _additionalOwners 28 | ) 29 | MintableToken( 30 | _initialSupplyAddress, 31 | 79000000e18, // initial supply 32 | 350000e18, // first iteration max supply 33 | 100000000e18, // max supply for all time 34 | 100, // supply iteration every 100 blocks (17 sec per block) 35 | _additionalOwners, // additional owners 36 | 2 // required number for a operations to be approved 37 | ) 38 | { 39 | 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /contracts/token/StandardToken.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import './BasicToken.sol'; 5 | import './ERC20.sol'; 6 | 7 | 8 | /** 9 | * @title Standard ERC20 token 10 | * 11 | * @dev Implementation of the basic standard token. 12 | * @dev https://github.com/ethereum/EIPs/issues/20 13 | * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol 14 | */ 15 | contract StandardToken is ERC20, BasicToken { 16 | 17 | mapping (address => mapping (address => uint256)) allowed; 18 | 19 | 20 | /** 21 | * @dev Transfer tokens from one address to another 22 | * @param _from address The address which you want to send tokens from 23 | * @param _to address The address which you want to transfer to 24 | * @param _value uint256 the amount of tokens to be transferred 25 | */ 26 | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { 27 | require(_to != address(0)); 28 | 29 | uint256 _allowance = allowed[_from][msg.sender]; 30 | 31 | // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met 32 | // require (_value <= _allowance); 33 | 34 | balances[_from] = balances[_from].sub(_value); 35 | balances[_to] = balances[_to].add(_value); 36 | allowed[_from][msg.sender] = _allowance.sub(_value); 37 | Transfer(_from, _to, _value); 38 | return true; 39 | } 40 | 41 | /** 42 | * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. 43 | * 44 | * Beware that changing an allowance with this method brings the risk that someone may use both the old 45 | * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this 46 | * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: 47 | * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 48 | * @param _spender The address which will spend the funds. 49 | * @param _value The amount of tokens to be spent. 50 | */ 51 | function approve(address _spender, uint256 _value) public returns (bool) { 52 | allowed[msg.sender][_spender] = _value; 53 | Approval(msg.sender, _spender, _value); 54 | return true; 55 | } 56 | 57 | /** 58 | * @dev Function to check the amount of tokens that an owner allowed to a spender. 59 | * @param _owner address The address which owns the funds. 60 | * @param _spender address The address which will spend the funds. 61 | * @return A uint256 specifying the amount of tokens still available for the spender. 62 | */ 63 | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { 64 | return allowed[_owner][_spender]; 65 | } 66 | 67 | /** 68 | * approve should be called when allowed[_spender] == 0. To increment 69 | * allowed value is better to use this function to avoid 2 calls (and wait until 70 | * the first transaction is mined) 71 | * From MonolithDAO Token.sol 72 | */ 73 | function increaseApproval(address _spender, uint _addedValue) 74 | returns (bool success) { 75 | allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); 76 | Approval(msg.sender, _spender, allowed[msg.sender][_spender]); 77 | return true; 78 | } 79 | 80 | function decreaseApproval(address _spender, uint _subtractedValue) 81 | returns (bool success) { 82 | uint oldValue = allowed[msg.sender][_spender]; 83 | if (_subtractedValue > oldValue) { 84 | allowed[msg.sender][_spender] = 0; 85 | } else { 86 | allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); 87 | } 88 | Approval(msg.sender, _spender, allowed[msg.sender][_spender]); 89 | return true; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /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_contracts.js: -------------------------------------------------------------------------------- 1 | const OTNToken = artifacts.require("./token/OTNToken.sol"); 2 | 3 | module.exports = function(deployer, network, accounts) { 4 | // const args = process.argv.slice(); 5 | // 6 | // if (args.length > 4) { 7 | // deployer.deploy(OTNToken, args[3], args[4].split(",")); 8 | // console.info("OTNToken deployed") 9 | // } else { 10 | // throw new Error("OTNToken deploy failed: invalid arguments"); 11 | // } 12 | }; 13 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "otn-token", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "acorn": { 8 | "version": "5.1.2", 9 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.1.2.tgz", 10 | "integrity": "sha512-o96FZLJBPY1lvTuJylGA9Bk3t/GKPPJG8H0ydQQl01crzwJgspa4AEIq/pVTXigmK0PHVQhiAtn8WMBLL9D2WA==", 11 | "dev": true 12 | }, 13 | "acorn-dynamic-import": { 14 | "version": "2.0.2", 15 | "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", 16 | "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", 17 | "dev": true, 18 | "requires": { 19 | "acorn": "4.0.13" 20 | }, 21 | "dependencies": { 22 | "acorn": { 23 | "version": "4.0.13", 24 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", 25 | "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", 26 | "dev": true 27 | } 28 | } 29 | }, 30 | "ajv": { 31 | "version": "5.2.3", 32 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.3.tgz", 33 | "integrity": "sha1-wG9Zh3jETGsWGrr+NGa4GtGBTtI=", 34 | "dev": true, 35 | "requires": { 36 | "co": "4.6.0", 37 | "fast-deep-equal": "1.0.0", 38 | "json-schema-traverse": "0.3.1", 39 | "json-stable-stringify": "1.0.1" 40 | } 41 | }, 42 | "ajv-keywords": { 43 | "version": "2.1.0", 44 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.0.tgz", 45 | "integrity": "sha1-opbhf3v658HOT34N5T0pyzIWLfA=", 46 | "dev": true 47 | }, 48 | "align-text": { 49 | "version": "0.1.4", 50 | "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", 51 | "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", 52 | "dev": true, 53 | "requires": { 54 | "kind-of": "3.2.2", 55 | "longest": "1.0.1", 56 | "repeat-string": "1.6.1" 57 | } 58 | }, 59 | "ansi-regex": { 60 | "version": "2.1.1", 61 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 62 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 63 | "dev": true 64 | }, 65 | "anymatch": { 66 | "version": "1.3.2", 67 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", 68 | "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", 69 | "dev": true, 70 | "requires": { 71 | "micromatch": "2.3.11", 72 | "normalize-path": "2.1.1" 73 | } 74 | }, 75 | "arr-diff": { 76 | "version": "2.0.0", 77 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", 78 | "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", 79 | "dev": true, 80 | "requires": { 81 | "arr-flatten": "1.1.0" 82 | } 83 | }, 84 | "arr-flatten": { 85 | "version": "1.1.0", 86 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", 87 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", 88 | "dev": true 89 | }, 90 | "array-unique": { 91 | "version": "0.2.1", 92 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", 93 | "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", 94 | "dev": true 95 | }, 96 | "asn1.js": { 97 | "version": "4.9.1", 98 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.1.tgz", 99 | "integrity": "sha1-SLokC0WpKA6UdImQull9IWYX/UA=", 100 | "dev": true, 101 | "requires": { 102 | "bn.js": "4.11.8", 103 | "inherits": "2.0.3", 104 | "minimalistic-assert": "1.0.0" 105 | } 106 | }, 107 | "assert": { 108 | "version": "1.4.1", 109 | "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", 110 | "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", 111 | "dev": true, 112 | "requires": { 113 | "util": "0.10.3" 114 | } 115 | }, 116 | "async": { 117 | "version": "2.5.0", 118 | "resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz", 119 | "integrity": "sha512-e+lJAJeNWuPCNyxZKOBdaJGyLGHugXVQtrAwtuAe2vhxTYxFTKE73p8JuTmdH0qdQZtDvI4dhJwjZc5zsfIsYw==", 120 | "dev": true, 121 | "requires": { 122 | "lodash": "4.17.4" 123 | } 124 | }, 125 | "async-each": { 126 | "version": "1.0.1", 127 | "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", 128 | "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", 129 | "dev": true 130 | }, 131 | "balanced-match": { 132 | "version": "1.0.0", 133 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 134 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 135 | "dev": true 136 | }, 137 | "base64-js": { 138 | "version": "1.2.1", 139 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", 140 | "integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==", 141 | "dev": true 142 | }, 143 | "big.js": { 144 | "version": "3.2.0", 145 | "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", 146 | "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", 147 | "dev": true 148 | }, 149 | "binary-extensions": { 150 | "version": "1.10.0", 151 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.10.0.tgz", 152 | "integrity": "sha1-muuabF6IY4qtFx4Wf1kAq+JINdA=", 153 | "dev": true 154 | }, 155 | "bn.js": { 156 | "version": "4.11.8", 157 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", 158 | "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", 159 | "dev": true 160 | }, 161 | "brace-expansion": { 162 | "version": "1.1.8", 163 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", 164 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", 165 | "dev": true, 166 | "requires": { 167 | "balanced-match": "1.0.0", 168 | "concat-map": "0.0.1" 169 | } 170 | }, 171 | "braces": { 172 | "version": "1.8.5", 173 | "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", 174 | "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", 175 | "dev": true, 176 | "requires": { 177 | "expand-range": "1.8.2", 178 | "preserve": "0.2.0", 179 | "repeat-element": "1.1.2" 180 | } 181 | }, 182 | "brorand": { 183 | "version": "1.1.0", 184 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 185 | "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", 186 | "dev": true 187 | }, 188 | "browser-stdout": { 189 | "version": "1.3.0", 190 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", 191 | "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", 192 | "dev": true 193 | }, 194 | "browserify-aes": { 195 | "version": "1.0.8", 196 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.0.8.tgz", 197 | "integrity": "sha512-WYCMOT/PtGTlpOKFht0YJFYcPy6pLCR98CtWfzK13zoynLlBMvAdEMSRGmgnJCw2M2j/5qxBkinZQFobieM8dQ==", 198 | "dev": true, 199 | "requires": { 200 | "buffer-xor": "1.0.3", 201 | "cipher-base": "1.0.4", 202 | "create-hash": "1.1.3", 203 | "evp_bytestokey": "1.0.3", 204 | "inherits": "2.0.3", 205 | "safe-buffer": "5.1.1" 206 | } 207 | }, 208 | "browserify-cipher": { 209 | "version": "1.0.0", 210 | "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz", 211 | "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=", 212 | "dev": true, 213 | "requires": { 214 | "browserify-aes": "1.0.8", 215 | "browserify-des": "1.0.0", 216 | "evp_bytestokey": "1.0.3" 217 | } 218 | }, 219 | "browserify-des": { 220 | "version": "1.0.0", 221 | "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz", 222 | "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=", 223 | "dev": true, 224 | "requires": { 225 | "cipher-base": "1.0.4", 226 | "des.js": "1.0.0", 227 | "inherits": "2.0.3" 228 | } 229 | }, 230 | "browserify-rsa": { 231 | "version": "4.0.1", 232 | "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", 233 | "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", 234 | "dev": true, 235 | "requires": { 236 | "bn.js": "4.11.8", 237 | "randombytes": "2.0.5" 238 | } 239 | }, 240 | "browserify-sign": { 241 | "version": "4.0.4", 242 | "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", 243 | "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", 244 | "dev": true, 245 | "requires": { 246 | "bn.js": "4.11.8", 247 | "browserify-rsa": "4.0.1", 248 | "create-hash": "1.1.3", 249 | "create-hmac": "1.1.6", 250 | "elliptic": "6.4.0", 251 | "inherits": "2.0.3", 252 | "parse-asn1": "5.1.0" 253 | } 254 | }, 255 | "browserify-zlib": { 256 | "version": "0.1.4", 257 | "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", 258 | "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", 259 | "dev": true, 260 | "requires": { 261 | "pako": "0.2.9" 262 | } 263 | }, 264 | "buffer": { 265 | "version": "4.9.1", 266 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", 267 | "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", 268 | "dev": true, 269 | "requires": { 270 | "base64-js": "1.2.1", 271 | "ieee754": "1.1.8", 272 | "isarray": "1.0.0" 273 | } 274 | }, 275 | "buffer-xor": { 276 | "version": "1.0.3", 277 | "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", 278 | "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", 279 | "dev": true 280 | }, 281 | "builtin-modules": { 282 | "version": "1.1.1", 283 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 284 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 285 | "dev": true 286 | }, 287 | "builtin-status-codes": { 288 | "version": "3.0.0", 289 | "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", 290 | "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", 291 | "dev": true 292 | }, 293 | "camelcase": { 294 | "version": "1.2.1", 295 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", 296 | "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", 297 | "dev": true 298 | }, 299 | "center-align": { 300 | "version": "0.1.3", 301 | "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", 302 | "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", 303 | "dev": true, 304 | "requires": { 305 | "align-text": "0.1.4", 306 | "lazy-cache": "1.0.4" 307 | } 308 | }, 309 | "chokidar": { 310 | "version": "1.7.0", 311 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", 312 | "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", 313 | "dev": true, 314 | "requires": { 315 | "anymatch": "1.3.2", 316 | "async-each": "1.0.1", 317 | "fsevents": "1.1.2", 318 | "glob-parent": "2.0.0", 319 | "inherits": "2.0.3", 320 | "is-binary-path": "1.0.1", 321 | "is-glob": "2.0.1", 322 | "path-is-absolute": "1.0.1", 323 | "readdirp": "2.1.0" 324 | } 325 | }, 326 | "cipher-base": { 327 | "version": "1.0.4", 328 | "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", 329 | "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", 330 | "dev": true, 331 | "requires": { 332 | "inherits": "2.0.3", 333 | "safe-buffer": "5.1.1" 334 | } 335 | }, 336 | "cliui": { 337 | "version": "2.1.0", 338 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", 339 | "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", 340 | "dev": true, 341 | "requires": { 342 | "center-align": "0.1.3", 343 | "right-align": "0.1.3", 344 | "wordwrap": "0.0.2" 345 | } 346 | }, 347 | "co": { 348 | "version": "4.6.0", 349 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 350 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", 351 | "dev": true 352 | }, 353 | "code-point-at": { 354 | "version": "1.1.0", 355 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 356 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", 357 | "dev": true 358 | }, 359 | "commander": { 360 | "version": "2.9.0", 361 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", 362 | "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", 363 | "dev": true, 364 | "requires": { 365 | "graceful-readlink": "1.0.1" 366 | } 367 | }, 368 | "concat-map": { 369 | "version": "0.0.1", 370 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 371 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 372 | "dev": true 373 | }, 374 | "console-browserify": { 375 | "version": "1.1.0", 376 | "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", 377 | "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", 378 | "dev": true, 379 | "requires": { 380 | "date-now": "0.1.4" 381 | } 382 | }, 383 | "constants-browserify": { 384 | "version": "1.0.0", 385 | "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", 386 | "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", 387 | "dev": true 388 | }, 389 | "core-util-is": { 390 | "version": "1.0.2", 391 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 392 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 393 | "dev": true 394 | }, 395 | "create-ecdh": { 396 | "version": "4.0.0", 397 | "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", 398 | "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", 399 | "dev": true, 400 | "requires": { 401 | "bn.js": "4.11.8", 402 | "elliptic": "6.4.0" 403 | } 404 | }, 405 | "create-hash": { 406 | "version": "1.1.3", 407 | "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", 408 | "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", 409 | "dev": true, 410 | "requires": { 411 | "cipher-base": "1.0.4", 412 | "inherits": "2.0.3", 413 | "ripemd160": "2.0.1", 414 | "sha.js": "2.4.9" 415 | } 416 | }, 417 | "create-hmac": { 418 | "version": "1.1.6", 419 | "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", 420 | "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", 421 | "dev": true, 422 | "requires": { 423 | "cipher-base": "1.0.4", 424 | "create-hash": "1.1.3", 425 | "inherits": "2.0.3", 426 | "ripemd160": "2.0.1", 427 | "safe-buffer": "5.1.1", 428 | "sha.js": "2.4.9" 429 | } 430 | }, 431 | "cross-spawn": { 432 | "version": "5.1.0", 433 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 434 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 435 | "dev": true, 436 | "requires": { 437 | "lru-cache": "4.1.1", 438 | "shebang-command": "1.2.0", 439 | "which": "1.3.0" 440 | } 441 | }, 442 | "crypto-browserify": { 443 | "version": "3.11.1", 444 | "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.11.1.tgz", 445 | "integrity": "sha512-Na7ZlwCOqoaW5RwUK1WpXws2kv8mNhWdTlzob0UXulk6G9BDbyiJaGTYBIX61Ozn9l1EPPJpICZb4DaOpT9NlQ==", 446 | "dev": true, 447 | "requires": { 448 | "browserify-cipher": "1.0.0", 449 | "browserify-sign": "4.0.4", 450 | "create-ecdh": "4.0.0", 451 | "create-hash": "1.1.3", 452 | "create-hmac": "1.1.6", 453 | "diffie-hellman": "5.0.2", 454 | "inherits": "2.0.3", 455 | "pbkdf2": "3.0.14", 456 | "public-encrypt": "4.0.0", 457 | "randombytes": "2.0.5" 458 | } 459 | }, 460 | "d": { 461 | "version": "1.0.0", 462 | "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", 463 | "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", 464 | "dev": true, 465 | "requires": { 466 | "es5-ext": "0.10.30" 467 | } 468 | }, 469 | "date-now": { 470 | "version": "0.1.4", 471 | "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", 472 | "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", 473 | "dev": true 474 | }, 475 | "debug": { 476 | "version": "2.6.8", 477 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", 478 | "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", 479 | "dev": true, 480 | "requires": { 481 | "ms": "2.0.0" 482 | } 483 | }, 484 | "decamelize": { 485 | "version": "1.2.0", 486 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 487 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 488 | "dev": true 489 | }, 490 | "des.js": { 491 | "version": "1.0.0", 492 | "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", 493 | "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", 494 | "dev": true, 495 | "requires": { 496 | "inherits": "2.0.3", 497 | "minimalistic-assert": "1.0.0" 498 | } 499 | }, 500 | "diff": { 501 | "version": "3.2.0", 502 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", 503 | "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", 504 | "dev": true 505 | }, 506 | "diffie-hellman": { 507 | "version": "5.0.2", 508 | "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz", 509 | "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=", 510 | "dev": true, 511 | "requires": { 512 | "bn.js": "4.11.8", 513 | "miller-rabin": "4.0.1", 514 | "randombytes": "2.0.5" 515 | } 516 | }, 517 | "domain-browser": { 518 | "version": "1.1.7", 519 | "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", 520 | "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", 521 | "dev": true 522 | }, 523 | "elliptic": { 524 | "version": "6.4.0", 525 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", 526 | "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", 527 | "dev": true, 528 | "requires": { 529 | "bn.js": "4.11.8", 530 | "brorand": "1.1.0", 531 | "hash.js": "1.1.3", 532 | "hmac-drbg": "1.0.1", 533 | "inherits": "2.0.3", 534 | "minimalistic-assert": "1.0.0", 535 | "minimalistic-crypto-utils": "1.0.1" 536 | } 537 | }, 538 | "emojis-list": { 539 | "version": "2.1.0", 540 | "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", 541 | "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", 542 | "dev": true 543 | }, 544 | "enhanced-resolve": { 545 | "version": "3.4.1", 546 | "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", 547 | "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", 548 | "dev": true, 549 | "requires": { 550 | "graceful-fs": "4.1.11", 551 | "memory-fs": "0.4.1", 552 | "object-assign": "4.1.1", 553 | "tapable": "0.2.8" 554 | } 555 | }, 556 | "errno": { 557 | "version": "0.1.4", 558 | "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz", 559 | "integrity": "sha1-uJbiOp5ei6M4cfyZar02NfyaHH0=", 560 | "dev": true, 561 | "requires": { 562 | "prr": "0.0.0" 563 | } 564 | }, 565 | "error-ex": { 566 | "version": "1.3.1", 567 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", 568 | "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", 569 | "dev": true, 570 | "requires": { 571 | "is-arrayish": "0.2.1" 572 | } 573 | }, 574 | "es5-ext": { 575 | "version": "0.10.30", 576 | "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.30.tgz", 577 | "integrity": "sha1-cUGhaDZpfbq/qq7uQUlc4p9SyTk=", 578 | "dev": true, 579 | "requires": { 580 | "es6-iterator": "2.0.1", 581 | "es6-symbol": "3.1.1" 582 | } 583 | }, 584 | "es6-iterator": { 585 | "version": "2.0.1", 586 | "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.1.tgz", 587 | "integrity": "sha1-jjGcnwRTv1ddN0lAplWSDlnKVRI=", 588 | "dev": true, 589 | "requires": { 590 | "d": "1.0.0", 591 | "es5-ext": "0.10.30", 592 | "es6-symbol": "3.1.1" 593 | } 594 | }, 595 | "es6-map": { 596 | "version": "0.1.5", 597 | "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", 598 | "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", 599 | "dev": true, 600 | "requires": { 601 | "d": "1.0.0", 602 | "es5-ext": "0.10.30", 603 | "es6-iterator": "2.0.1", 604 | "es6-set": "0.1.5", 605 | "es6-symbol": "3.1.1", 606 | "event-emitter": "0.3.5" 607 | } 608 | }, 609 | "es6-set": { 610 | "version": "0.1.5", 611 | "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", 612 | "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", 613 | "dev": true, 614 | "requires": { 615 | "d": "1.0.0", 616 | "es5-ext": "0.10.30", 617 | "es6-iterator": "2.0.1", 618 | "es6-symbol": "3.1.1", 619 | "event-emitter": "0.3.5" 620 | } 621 | }, 622 | "es6-symbol": { 623 | "version": "3.1.1", 624 | "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", 625 | "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", 626 | "dev": true, 627 | "requires": { 628 | "d": "1.0.0", 629 | "es5-ext": "0.10.30" 630 | } 631 | }, 632 | "es6-weak-map": { 633 | "version": "2.0.2", 634 | "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", 635 | "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", 636 | "dev": true, 637 | "requires": { 638 | "d": "1.0.0", 639 | "es5-ext": "0.10.30", 640 | "es6-iterator": "2.0.1", 641 | "es6-symbol": "3.1.1" 642 | } 643 | }, 644 | "escape-string-regexp": { 645 | "version": "1.0.5", 646 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 647 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 648 | "dev": true 649 | }, 650 | "escope": { 651 | "version": "3.6.0", 652 | "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", 653 | "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", 654 | "dev": true, 655 | "requires": { 656 | "es6-map": "0.1.5", 657 | "es6-weak-map": "2.0.2", 658 | "esrecurse": "4.2.0", 659 | "estraverse": "4.2.0" 660 | } 661 | }, 662 | "esrecurse": { 663 | "version": "4.2.0", 664 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.0.tgz", 665 | "integrity": "sha1-+pVo2Y04I/mkHZHpAtyrnqblsWM=", 666 | "dev": true, 667 | "requires": { 668 | "estraverse": "4.2.0", 669 | "object-assign": "4.1.1" 670 | } 671 | }, 672 | "estraverse": { 673 | "version": "4.2.0", 674 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", 675 | "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", 676 | "dev": true 677 | }, 678 | "ethereumjs-testrpc": { 679 | "version": "4.1.3", 680 | "resolved": "https://registry.npmjs.org/ethereumjs-testrpc/-/ethereumjs-testrpc-4.1.3.tgz", 681 | "integrity": "sha512-zVipEeZQcBnOzpGQk4ngFbd+VUYJDWASnGpquHthSPta3Kcy33qOwAIx3hXRmDdp4d2zbm8licximJWbpEG1hA==", 682 | "dev": true, 683 | "requires": { 684 | "webpack": "3.6.0" 685 | } 686 | }, 687 | "event-emitter": { 688 | "version": "0.3.5", 689 | "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", 690 | "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", 691 | "dev": true, 692 | "requires": { 693 | "d": "1.0.0", 694 | "es5-ext": "0.10.30" 695 | } 696 | }, 697 | "events": { 698 | "version": "1.1.1", 699 | "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", 700 | "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", 701 | "dev": true 702 | }, 703 | "evp_bytestokey": { 704 | "version": "1.0.3", 705 | "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", 706 | "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", 707 | "dev": true, 708 | "requires": { 709 | "md5.js": "1.3.4", 710 | "safe-buffer": "5.1.1" 711 | } 712 | }, 713 | "execa": { 714 | "version": "0.7.0", 715 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 716 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 717 | "dev": true, 718 | "requires": { 719 | "cross-spawn": "5.1.0", 720 | "get-stream": "3.0.0", 721 | "is-stream": "1.1.0", 722 | "npm-run-path": "2.0.2", 723 | "p-finally": "1.0.0", 724 | "signal-exit": "3.0.2", 725 | "strip-eof": "1.0.0" 726 | } 727 | }, 728 | "expand-brackets": { 729 | "version": "0.1.5", 730 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", 731 | "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", 732 | "dev": true, 733 | "requires": { 734 | "is-posix-bracket": "0.1.1" 735 | } 736 | }, 737 | "expand-range": { 738 | "version": "1.8.2", 739 | "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", 740 | "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", 741 | "dev": true, 742 | "requires": { 743 | "fill-range": "2.2.3" 744 | } 745 | }, 746 | "extglob": { 747 | "version": "0.3.2", 748 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", 749 | "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", 750 | "dev": true, 751 | "requires": { 752 | "is-extglob": "1.0.0" 753 | } 754 | }, 755 | "fast-deep-equal": { 756 | "version": "1.0.0", 757 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", 758 | "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=", 759 | "dev": true 760 | }, 761 | "filename-regex": { 762 | "version": "2.0.1", 763 | "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", 764 | "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", 765 | "dev": true 766 | }, 767 | "fill-range": { 768 | "version": "2.2.3", 769 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", 770 | "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", 771 | "dev": true, 772 | "requires": { 773 | "is-number": "2.1.0", 774 | "isobject": "2.1.0", 775 | "randomatic": "1.1.7", 776 | "repeat-element": "1.1.2", 777 | "repeat-string": "1.6.1" 778 | } 779 | }, 780 | "find-up": { 781 | "version": "2.1.0", 782 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 783 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 784 | "dev": true, 785 | "requires": { 786 | "locate-path": "2.0.0" 787 | } 788 | }, 789 | "for-in": { 790 | "version": "1.0.2", 791 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", 792 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", 793 | "dev": true 794 | }, 795 | "for-own": { 796 | "version": "0.1.5", 797 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", 798 | "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", 799 | "dev": true, 800 | "requires": { 801 | "for-in": "1.0.2" 802 | } 803 | }, 804 | "fs-extra": { 805 | "version": "0.30.0", 806 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", 807 | "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", 808 | "dev": true, 809 | "requires": { 810 | "graceful-fs": "4.1.11", 811 | "jsonfile": "2.4.0", 812 | "klaw": "1.3.1", 813 | "path-is-absolute": "1.0.1", 814 | "rimraf": "2.6.2" 815 | } 816 | }, 817 | "fs.realpath": { 818 | "version": "1.0.0", 819 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 820 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 821 | "dev": true 822 | }, 823 | "fsevents": { 824 | "version": "1.1.2", 825 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz", 826 | "integrity": "sha512-Sn44E5wQW4bTHXvQmvSHwqbuiXtduD6Rrjm2ZtUEGbyrig+nUH3t/QD4M4/ZXViY556TBpRgZkHLDx3JxPwxiw==", 827 | "dev": true, 828 | "optional": true, 829 | "requires": { 830 | "nan": "2.7.0", 831 | "node-pre-gyp": "0.6.36" 832 | }, 833 | "dependencies": { 834 | "abbrev": { 835 | "version": "1.1.0", 836 | "bundled": true, 837 | "dev": true, 838 | "optional": true 839 | }, 840 | "ajv": { 841 | "version": "4.11.8", 842 | "bundled": true, 843 | "dev": true, 844 | "optional": true, 845 | "requires": { 846 | "co": "4.6.0", 847 | "json-stable-stringify": "1.0.1" 848 | } 849 | }, 850 | "ansi-regex": { 851 | "version": "2.1.1", 852 | "bundled": true, 853 | "dev": true 854 | }, 855 | "aproba": { 856 | "version": "1.1.1", 857 | "bundled": true, 858 | "dev": true, 859 | "optional": true 860 | }, 861 | "are-we-there-yet": { 862 | "version": "1.1.4", 863 | "bundled": true, 864 | "dev": true, 865 | "optional": true, 866 | "requires": { 867 | "delegates": "1.0.0", 868 | "readable-stream": "2.2.9" 869 | } 870 | }, 871 | "asn1": { 872 | "version": "0.2.3", 873 | "bundled": true, 874 | "dev": true, 875 | "optional": true 876 | }, 877 | "assert-plus": { 878 | "version": "0.2.0", 879 | "bundled": true, 880 | "dev": true, 881 | "optional": true 882 | }, 883 | "asynckit": { 884 | "version": "0.4.0", 885 | "bundled": true, 886 | "dev": true, 887 | "optional": true 888 | }, 889 | "aws-sign2": { 890 | "version": "0.6.0", 891 | "bundled": true, 892 | "dev": true, 893 | "optional": true 894 | }, 895 | "aws4": { 896 | "version": "1.6.0", 897 | "bundled": true, 898 | "dev": true, 899 | "optional": true 900 | }, 901 | "balanced-match": { 902 | "version": "0.4.2", 903 | "bundled": true, 904 | "dev": true 905 | }, 906 | "bcrypt-pbkdf": { 907 | "version": "1.0.1", 908 | "bundled": true, 909 | "dev": true, 910 | "optional": true, 911 | "requires": { 912 | "tweetnacl": "0.14.5" 913 | } 914 | }, 915 | "block-stream": { 916 | "version": "0.0.9", 917 | "bundled": true, 918 | "dev": true, 919 | "requires": { 920 | "inherits": "2.0.3" 921 | } 922 | }, 923 | "boom": { 924 | "version": "2.10.1", 925 | "bundled": true, 926 | "dev": true, 927 | "requires": { 928 | "hoek": "2.16.3" 929 | } 930 | }, 931 | "brace-expansion": { 932 | "version": "1.1.7", 933 | "bundled": true, 934 | "dev": true, 935 | "requires": { 936 | "balanced-match": "0.4.2", 937 | "concat-map": "0.0.1" 938 | } 939 | }, 940 | "buffer-shims": { 941 | "version": "1.0.0", 942 | "bundled": true, 943 | "dev": true 944 | }, 945 | "caseless": { 946 | "version": "0.12.0", 947 | "bundled": true, 948 | "dev": true, 949 | "optional": true 950 | }, 951 | "co": { 952 | "version": "4.6.0", 953 | "bundled": true, 954 | "dev": true, 955 | "optional": true 956 | }, 957 | "code-point-at": { 958 | "version": "1.1.0", 959 | "bundled": true, 960 | "dev": true 961 | }, 962 | "combined-stream": { 963 | "version": "1.0.5", 964 | "bundled": true, 965 | "dev": true, 966 | "requires": { 967 | "delayed-stream": "1.0.0" 968 | } 969 | }, 970 | "concat-map": { 971 | "version": "0.0.1", 972 | "bundled": true, 973 | "dev": true 974 | }, 975 | "console-control-strings": { 976 | "version": "1.1.0", 977 | "bundled": true, 978 | "dev": true 979 | }, 980 | "core-util-is": { 981 | "version": "1.0.2", 982 | "bundled": true, 983 | "dev": true 984 | }, 985 | "cryptiles": { 986 | "version": "2.0.5", 987 | "bundled": true, 988 | "dev": true, 989 | "optional": true, 990 | "requires": { 991 | "boom": "2.10.1" 992 | } 993 | }, 994 | "dashdash": { 995 | "version": "1.14.1", 996 | "bundled": true, 997 | "dev": true, 998 | "optional": true, 999 | "requires": { 1000 | "assert-plus": "1.0.0" 1001 | }, 1002 | "dependencies": { 1003 | "assert-plus": { 1004 | "version": "1.0.0", 1005 | "bundled": true, 1006 | "dev": true, 1007 | "optional": true 1008 | } 1009 | } 1010 | }, 1011 | "debug": { 1012 | "version": "2.6.8", 1013 | "bundled": true, 1014 | "dev": true, 1015 | "optional": true, 1016 | "requires": { 1017 | "ms": "2.0.0" 1018 | } 1019 | }, 1020 | "deep-extend": { 1021 | "version": "0.4.2", 1022 | "bundled": true, 1023 | "dev": true, 1024 | "optional": true 1025 | }, 1026 | "delayed-stream": { 1027 | "version": "1.0.0", 1028 | "bundled": true, 1029 | "dev": true 1030 | }, 1031 | "delegates": { 1032 | "version": "1.0.0", 1033 | "bundled": true, 1034 | "dev": true, 1035 | "optional": true 1036 | }, 1037 | "ecc-jsbn": { 1038 | "version": "0.1.1", 1039 | "bundled": true, 1040 | "dev": true, 1041 | "optional": true, 1042 | "requires": { 1043 | "jsbn": "0.1.1" 1044 | } 1045 | }, 1046 | "extend": { 1047 | "version": "3.0.1", 1048 | "bundled": true, 1049 | "dev": true, 1050 | "optional": true 1051 | }, 1052 | "extsprintf": { 1053 | "version": "1.0.2", 1054 | "bundled": true, 1055 | "dev": true 1056 | }, 1057 | "forever-agent": { 1058 | "version": "0.6.1", 1059 | "bundled": true, 1060 | "dev": true, 1061 | "optional": true 1062 | }, 1063 | "form-data": { 1064 | "version": "2.1.4", 1065 | "bundled": true, 1066 | "dev": true, 1067 | "optional": true, 1068 | "requires": { 1069 | "asynckit": "0.4.0", 1070 | "combined-stream": "1.0.5", 1071 | "mime-types": "2.1.15" 1072 | } 1073 | }, 1074 | "fs.realpath": { 1075 | "version": "1.0.0", 1076 | "bundled": true, 1077 | "dev": true 1078 | }, 1079 | "fstream": { 1080 | "version": "1.0.11", 1081 | "bundled": true, 1082 | "dev": true, 1083 | "requires": { 1084 | "graceful-fs": "4.1.11", 1085 | "inherits": "2.0.3", 1086 | "mkdirp": "0.5.1", 1087 | "rimraf": "2.6.1" 1088 | } 1089 | }, 1090 | "fstream-ignore": { 1091 | "version": "1.0.5", 1092 | "bundled": true, 1093 | "dev": true, 1094 | "optional": true, 1095 | "requires": { 1096 | "fstream": "1.0.11", 1097 | "inherits": "2.0.3", 1098 | "minimatch": "3.0.4" 1099 | } 1100 | }, 1101 | "gauge": { 1102 | "version": "2.7.4", 1103 | "bundled": true, 1104 | "dev": true, 1105 | "optional": true, 1106 | "requires": { 1107 | "aproba": "1.1.1", 1108 | "console-control-strings": "1.1.0", 1109 | "has-unicode": "2.0.1", 1110 | "object-assign": "4.1.1", 1111 | "signal-exit": "3.0.2", 1112 | "string-width": "1.0.2", 1113 | "strip-ansi": "3.0.1", 1114 | "wide-align": "1.1.2" 1115 | } 1116 | }, 1117 | "getpass": { 1118 | "version": "0.1.7", 1119 | "bundled": true, 1120 | "dev": true, 1121 | "optional": true, 1122 | "requires": { 1123 | "assert-plus": "1.0.0" 1124 | }, 1125 | "dependencies": { 1126 | "assert-plus": { 1127 | "version": "1.0.0", 1128 | "bundled": true, 1129 | "dev": true, 1130 | "optional": true 1131 | } 1132 | } 1133 | }, 1134 | "glob": { 1135 | "version": "7.1.2", 1136 | "bundled": true, 1137 | "dev": true, 1138 | "requires": { 1139 | "fs.realpath": "1.0.0", 1140 | "inflight": "1.0.6", 1141 | "inherits": "2.0.3", 1142 | "minimatch": "3.0.4", 1143 | "once": "1.4.0", 1144 | "path-is-absolute": "1.0.1" 1145 | } 1146 | }, 1147 | "graceful-fs": { 1148 | "version": "4.1.11", 1149 | "bundled": true, 1150 | "dev": true 1151 | }, 1152 | "har-schema": { 1153 | "version": "1.0.5", 1154 | "bundled": true, 1155 | "dev": true, 1156 | "optional": true 1157 | }, 1158 | "har-validator": { 1159 | "version": "4.2.1", 1160 | "bundled": true, 1161 | "dev": true, 1162 | "optional": true, 1163 | "requires": { 1164 | "ajv": "4.11.8", 1165 | "har-schema": "1.0.5" 1166 | } 1167 | }, 1168 | "has-unicode": { 1169 | "version": "2.0.1", 1170 | "bundled": true, 1171 | "dev": true, 1172 | "optional": true 1173 | }, 1174 | "hawk": { 1175 | "version": "3.1.3", 1176 | "bundled": true, 1177 | "dev": true, 1178 | "optional": true, 1179 | "requires": { 1180 | "boom": "2.10.1", 1181 | "cryptiles": "2.0.5", 1182 | "hoek": "2.16.3", 1183 | "sntp": "1.0.9" 1184 | } 1185 | }, 1186 | "hoek": { 1187 | "version": "2.16.3", 1188 | "bundled": true, 1189 | "dev": true 1190 | }, 1191 | "http-signature": { 1192 | "version": "1.1.1", 1193 | "bundled": true, 1194 | "dev": true, 1195 | "optional": true, 1196 | "requires": { 1197 | "assert-plus": "0.2.0", 1198 | "jsprim": "1.4.0", 1199 | "sshpk": "1.13.0" 1200 | } 1201 | }, 1202 | "inflight": { 1203 | "version": "1.0.6", 1204 | "bundled": true, 1205 | "dev": true, 1206 | "requires": { 1207 | "once": "1.4.0", 1208 | "wrappy": "1.0.2" 1209 | } 1210 | }, 1211 | "inherits": { 1212 | "version": "2.0.3", 1213 | "bundled": true, 1214 | "dev": true 1215 | }, 1216 | "ini": { 1217 | "version": "1.3.4", 1218 | "bundled": true, 1219 | "dev": true, 1220 | "optional": true 1221 | }, 1222 | "is-fullwidth-code-point": { 1223 | "version": "1.0.0", 1224 | "bundled": true, 1225 | "dev": true, 1226 | "requires": { 1227 | "number-is-nan": "1.0.1" 1228 | } 1229 | }, 1230 | "is-typedarray": { 1231 | "version": "1.0.0", 1232 | "bundled": true, 1233 | "dev": true, 1234 | "optional": true 1235 | }, 1236 | "isarray": { 1237 | "version": "1.0.0", 1238 | "bundled": true, 1239 | "dev": true 1240 | }, 1241 | "isstream": { 1242 | "version": "0.1.2", 1243 | "bundled": true, 1244 | "dev": true, 1245 | "optional": true 1246 | }, 1247 | "jodid25519": { 1248 | "version": "1.0.2", 1249 | "bundled": true, 1250 | "dev": true, 1251 | "optional": true, 1252 | "requires": { 1253 | "jsbn": "0.1.1" 1254 | } 1255 | }, 1256 | "jsbn": { 1257 | "version": "0.1.1", 1258 | "bundled": true, 1259 | "dev": true, 1260 | "optional": true 1261 | }, 1262 | "json-schema": { 1263 | "version": "0.2.3", 1264 | "bundled": true, 1265 | "dev": true, 1266 | "optional": true 1267 | }, 1268 | "json-stable-stringify": { 1269 | "version": "1.0.1", 1270 | "bundled": true, 1271 | "dev": true, 1272 | "optional": true, 1273 | "requires": { 1274 | "jsonify": "0.0.0" 1275 | } 1276 | }, 1277 | "json-stringify-safe": { 1278 | "version": "5.0.1", 1279 | "bundled": true, 1280 | "dev": true, 1281 | "optional": true 1282 | }, 1283 | "jsonify": { 1284 | "version": "0.0.0", 1285 | "bundled": true, 1286 | "dev": true, 1287 | "optional": true 1288 | }, 1289 | "jsprim": { 1290 | "version": "1.4.0", 1291 | "bundled": true, 1292 | "dev": true, 1293 | "optional": true, 1294 | "requires": { 1295 | "assert-plus": "1.0.0", 1296 | "extsprintf": "1.0.2", 1297 | "json-schema": "0.2.3", 1298 | "verror": "1.3.6" 1299 | }, 1300 | "dependencies": { 1301 | "assert-plus": { 1302 | "version": "1.0.0", 1303 | "bundled": true, 1304 | "dev": true, 1305 | "optional": true 1306 | } 1307 | } 1308 | }, 1309 | "mime-db": { 1310 | "version": "1.27.0", 1311 | "bundled": true, 1312 | "dev": true 1313 | }, 1314 | "mime-types": { 1315 | "version": "2.1.15", 1316 | "bundled": true, 1317 | "dev": true, 1318 | "requires": { 1319 | "mime-db": "1.27.0" 1320 | } 1321 | }, 1322 | "minimatch": { 1323 | "version": "3.0.4", 1324 | "bundled": true, 1325 | "dev": true, 1326 | "requires": { 1327 | "brace-expansion": "1.1.7" 1328 | } 1329 | }, 1330 | "minimist": { 1331 | "version": "0.0.8", 1332 | "bundled": true, 1333 | "dev": true 1334 | }, 1335 | "mkdirp": { 1336 | "version": "0.5.1", 1337 | "bundled": true, 1338 | "dev": true, 1339 | "requires": { 1340 | "minimist": "0.0.8" 1341 | } 1342 | }, 1343 | "ms": { 1344 | "version": "2.0.0", 1345 | "bundled": true, 1346 | "dev": true, 1347 | "optional": true 1348 | }, 1349 | "node-pre-gyp": { 1350 | "version": "0.6.36", 1351 | "bundled": true, 1352 | "dev": true, 1353 | "optional": true, 1354 | "requires": { 1355 | "mkdirp": "0.5.1", 1356 | "nopt": "4.0.1", 1357 | "npmlog": "4.1.0", 1358 | "rc": "1.2.1", 1359 | "request": "2.81.0", 1360 | "rimraf": "2.6.1", 1361 | "semver": "5.3.0", 1362 | "tar": "2.2.1", 1363 | "tar-pack": "3.4.0" 1364 | } 1365 | }, 1366 | "nopt": { 1367 | "version": "4.0.1", 1368 | "bundled": true, 1369 | "dev": true, 1370 | "optional": true, 1371 | "requires": { 1372 | "abbrev": "1.1.0", 1373 | "osenv": "0.1.4" 1374 | } 1375 | }, 1376 | "npmlog": { 1377 | "version": "4.1.0", 1378 | "bundled": true, 1379 | "dev": true, 1380 | "optional": true, 1381 | "requires": { 1382 | "are-we-there-yet": "1.1.4", 1383 | "console-control-strings": "1.1.0", 1384 | "gauge": "2.7.4", 1385 | "set-blocking": "2.0.0" 1386 | } 1387 | }, 1388 | "number-is-nan": { 1389 | "version": "1.0.1", 1390 | "bundled": true, 1391 | "dev": true 1392 | }, 1393 | "oauth-sign": { 1394 | "version": "0.8.2", 1395 | "bundled": true, 1396 | "dev": true, 1397 | "optional": true 1398 | }, 1399 | "object-assign": { 1400 | "version": "4.1.1", 1401 | "bundled": true, 1402 | "dev": true, 1403 | "optional": true 1404 | }, 1405 | "once": { 1406 | "version": "1.4.0", 1407 | "bundled": true, 1408 | "dev": true, 1409 | "requires": { 1410 | "wrappy": "1.0.2" 1411 | } 1412 | }, 1413 | "os-homedir": { 1414 | "version": "1.0.2", 1415 | "bundled": true, 1416 | "dev": true, 1417 | "optional": true 1418 | }, 1419 | "os-tmpdir": { 1420 | "version": "1.0.2", 1421 | "bundled": true, 1422 | "dev": true, 1423 | "optional": true 1424 | }, 1425 | "osenv": { 1426 | "version": "0.1.4", 1427 | "bundled": true, 1428 | "dev": true, 1429 | "optional": true, 1430 | "requires": { 1431 | "os-homedir": "1.0.2", 1432 | "os-tmpdir": "1.0.2" 1433 | } 1434 | }, 1435 | "path-is-absolute": { 1436 | "version": "1.0.1", 1437 | "bundled": true, 1438 | "dev": true 1439 | }, 1440 | "performance-now": { 1441 | "version": "0.2.0", 1442 | "bundled": true, 1443 | "dev": true, 1444 | "optional": true 1445 | }, 1446 | "process-nextick-args": { 1447 | "version": "1.0.7", 1448 | "bundled": true, 1449 | "dev": true 1450 | }, 1451 | "punycode": { 1452 | "version": "1.4.1", 1453 | "bundled": true, 1454 | "dev": true, 1455 | "optional": true 1456 | }, 1457 | "qs": { 1458 | "version": "6.4.0", 1459 | "bundled": true, 1460 | "dev": true, 1461 | "optional": true 1462 | }, 1463 | "rc": { 1464 | "version": "1.2.1", 1465 | "bundled": true, 1466 | "dev": true, 1467 | "optional": true, 1468 | "requires": { 1469 | "deep-extend": "0.4.2", 1470 | "ini": "1.3.4", 1471 | "minimist": "1.2.0", 1472 | "strip-json-comments": "2.0.1" 1473 | }, 1474 | "dependencies": { 1475 | "minimist": { 1476 | "version": "1.2.0", 1477 | "bundled": true, 1478 | "dev": true, 1479 | "optional": true 1480 | } 1481 | } 1482 | }, 1483 | "readable-stream": { 1484 | "version": "2.2.9", 1485 | "bundled": true, 1486 | "dev": true, 1487 | "requires": { 1488 | "buffer-shims": "1.0.0", 1489 | "core-util-is": "1.0.2", 1490 | "inherits": "2.0.3", 1491 | "isarray": "1.0.0", 1492 | "process-nextick-args": "1.0.7", 1493 | "string_decoder": "1.0.1", 1494 | "util-deprecate": "1.0.2" 1495 | } 1496 | }, 1497 | "request": { 1498 | "version": "2.81.0", 1499 | "bundled": true, 1500 | "dev": true, 1501 | "optional": true, 1502 | "requires": { 1503 | "aws-sign2": "0.6.0", 1504 | "aws4": "1.6.0", 1505 | "caseless": "0.12.0", 1506 | "combined-stream": "1.0.5", 1507 | "extend": "3.0.1", 1508 | "forever-agent": "0.6.1", 1509 | "form-data": "2.1.4", 1510 | "har-validator": "4.2.1", 1511 | "hawk": "3.1.3", 1512 | "http-signature": "1.1.1", 1513 | "is-typedarray": "1.0.0", 1514 | "isstream": "0.1.2", 1515 | "json-stringify-safe": "5.0.1", 1516 | "mime-types": "2.1.15", 1517 | "oauth-sign": "0.8.2", 1518 | "performance-now": "0.2.0", 1519 | "qs": "6.4.0", 1520 | "safe-buffer": "5.0.1", 1521 | "stringstream": "0.0.5", 1522 | "tough-cookie": "2.3.2", 1523 | "tunnel-agent": "0.6.0", 1524 | "uuid": "3.0.1" 1525 | } 1526 | }, 1527 | "rimraf": { 1528 | "version": "2.6.1", 1529 | "bundled": true, 1530 | "dev": true, 1531 | "requires": { 1532 | "glob": "7.1.2" 1533 | } 1534 | }, 1535 | "safe-buffer": { 1536 | "version": "5.0.1", 1537 | "bundled": true, 1538 | "dev": true 1539 | }, 1540 | "semver": { 1541 | "version": "5.3.0", 1542 | "bundled": true, 1543 | "dev": true, 1544 | "optional": true 1545 | }, 1546 | "set-blocking": { 1547 | "version": "2.0.0", 1548 | "bundled": true, 1549 | "dev": true, 1550 | "optional": true 1551 | }, 1552 | "signal-exit": { 1553 | "version": "3.0.2", 1554 | "bundled": true, 1555 | "dev": true, 1556 | "optional": true 1557 | }, 1558 | "sntp": { 1559 | "version": "1.0.9", 1560 | "bundled": true, 1561 | "dev": true, 1562 | "optional": true, 1563 | "requires": { 1564 | "hoek": "2.16.3" 1565 | } 1566 | }, 1567 | "sshpk": { 1568 | "version": "1.13.0", 1569 | "bundled": true, 1570 | "dev": true, 1571 | "optional": true, 1572 | "requires": { 1573 | "asn1": "0.2.3", 1574 | "assert-plus": "1.0.0", 1575 | "bcrypt-pbkdf": "1.0.1", 1576 | "dashdash": "1.14.1", 1577 | "ecc-jsbn": "0.1.1", 1578 | "getpass": "0.1.7", 1579 | "jodid25519": "1.0.2", 1580 | "jsbn": "0.1.1", 1581 | "tweetnacl": "0.14.5" 1582 | }, 1583 | "dependencies": { 1584 | "assert-plus": { 1585 | "version": "1.0.0", 1586 | "bundled": true, 1587 | "dev": true, 1588 | "optional": true 1589 | } 1590 | } 1591 | }, 1592 | "string-width": { 1593 | "version": "1.0.2", 1594 | "bundled": true, 1595 | "dev": true, 1596 | "requires": { 1597 | "code-point-at": "1.1.0", 1598 | "is-fullwidth-code-point": "1.0.0", 1599 | "strip-ansi": "3.0.1" 1600 | } 1601 | }, 1602 | "string_decoder": { 1603 | "version": "1.0.1", 1604 | "bundled": true, 1605 | "dev": true, 1606 | "requires": { 1607 | "safe-buffer": "5.0.1" 1608 | } 1609 | }, 1610 | "stringstream": { 1611 | "version": "0.0.5", 1612 | "bundled": true, 1613 | "dev": true, 1614 | "optional": true 1615 | }, 1616 | "strip-ansi": { 1617 | "version": "3.0.1", 1618 | "bundled": true, 1619 | "dev": true, 1620 | "requires": { 1621 | "ansi-regex": "2.1.1" 1622 | } 1623 | }, 1624 | "strip-json-comments": { 1625 | "version": "2.0.1", 1626 | "bundled": true, 1627 | "dev": true, 1628 | "optional": true 1629 | }, 1630 | "tar": { 1631 | "version": "2.2.1", 1632 | "bundled": true, 1633 | "dev": true, 1634 | "requires": { 1635 | "block-stream": "0.0.9", 1636 | "fstream": "1.0.11", 1637 | "inherits": "2.0.3" 1638 | } 1639 | }, 1640 | "tar-pack": { 1641 | "version": "3.4.0", 1642 | "bundled": true, 1643 | "dev": true, 1644 | "optional": true, 1645 | "requires": { 1646 | "debug": "2.6.8", 1647 | "fstream": "1.0.11", 1648 | "fstream-ignore": "1.0.5", 1649 | "once": "1.4.0", 1650 | "readable-stream": "2.2.9", 1651 | "rimraf": "2.6.1", 1652 | "tar": "2.2.1", 1653 | "uid-number": "0.0.6" 1654 | } 1655 | }, 1656 | "tough-cookie": { 1657 | "version": "2.3.2", 1658 | "bundled": true, 1659 | "dev": true, 1660 | "optional": true, 1661 | "requires": { 1662 | "punycode": "1.4.1" 1663 | } 1664 | }, 1665 | "tunnel-agent": { 1666 | "version": "0.6.0", 1667 | "bundled": true, 1668 | "dev": true, 1669 | "optional": true, 1670 | "requires": { 1671 | "safe-buffer": "5.0.1" 1672 | } 1673 | }, 1674 | "tweetnacl": { 1675 | "version": "0.14.5", 1676 | "bundled": true, 1677 | "dev": true, 1678 | "optional": true 1679 | }, 1680 | "uid-number": { 1681 | "version": "0.0.6", 1682 | "bundled": true, 1683 | "dev": true, 1684 | "optional": true 1685 | }, 1686 | "util-deprecate": { 1687 | "version": "1.0.2", 1688 | "bundled": true, 1689 | "dev": true 1690 | }, 1691 | "uuid": { 1692 | "version": "3.0.1", 1693 | "bundled": true, 1694 | "dev": true, 1695 | "optional": true 1696 | }, 1697 | "verror": { 1698 | "version": "1.3.6", 1699 | "bundled": true, 1700 | "dev": true, 1701 | "optional": true, 1702 | "requires": { 1703 | "extsprintf": "1.0.2" 1704 | } 1705 | }, 1706 | "wide-align": { 1707 | "version": "1.1.2", 1708 | "bundled": true, 1709 | "dev": true, 1710 | "optional": true, 1711 | "requires": { 1712 | "string-width": "1.0.2" 1713 | } 1714 | }, 1715 | "wrappy": { 1716 | "version": "1.0.2", 1717 | "bundled": true, 1718 | "dev": true 1719 | } 1720 | } 1721 | }, 1722 | "get-caller-file": { 1723 | "version": "1.0.2", 1724 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", 1725 | "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", 1726 | "dev": true 1727 | }, 1728 | "get-stream": { 1729 | "version": "3.0.0", 1730 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 1731 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", 1732 | "dev": true 1733 | }, 1734 | "glob": { 1735 | "version": "7.1.1", 1736 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", 1737 | "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", 1738 | "dev": true, 1739 | "requires": { 1740 | "fs.realpath": "1.0.0", 1741 | "inflight": "1.0.6", 1742 | "inherits": "2.0.3", 1743 | "minimatch": "3.0.4", 1744 | "once": "1.4.0", 1745 | "path-is-absolute": "1.0.1" 1746 | } 1747 | }, 1748 | "glob-base": { 1749 | "version": "0.3.0", 1750 | "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", 1751 | "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", 1752 | "dev": true, 1753 | "requires": { 1754 | "glob-parent": "2.0.0", 1755 | "is-glob": "2.0.1" 1756 | } 1757 | }, 1758 | "glob-parent": { 1759 | "version": "2.0.0", 1760 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", 1761 | "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", 1762 | "dev": true, 1763 | "requires": { 1764 | "is-glob": "2.0.1" 1765 | } 1766 | }, 1767 | "graceful-fs": { 1768 | "version": "4.1.11", 1769 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 1770 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", 1771 | "dev": true 1772 | }, 1773 | "graceful-readlink": { 1774 | "version": "1.0.1", 1775 | "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", 1776 | "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", 1777 | "dev": true 1778 | }, 1779 | "growl": { 1780 | "version": "1.9.2", 1781 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", 1782 | "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", 1783 | "dev": true 1784 | }, 1785 | "has-flag": { 1786 | "version": "2.0.0", 1787 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", 1788 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", 1789 | "dev": true 1790 | }, 1791 | "hash-base": { 1792 | "version": "2.0.2", 1793 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", 1794 | "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", 1795 | "dev": true, 1796 | "requires": { 1797 | "inherits": "2.0.3" 1798 | } 1799 | }, 1800 | "hash.js": { 1801 | "version": "1.1.3", 1802 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", 1803 | "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", 1804 | "dev": true, 1805 | "requires": { 1806 | "inherits": "2.0.3", 1807 | "minimalistic-assert": "1.0.0" 1808 | } 1809 | }, 1810 | "he": { 1811 | "version": "1.1.1", 1812 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 1813 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 1814 | "dev": true 1815 | }, 1816 | "hmac-drbg": { 1817 | "version": "1.0.1", 1818 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 1819 | "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", 1820 | "dev": true, 1821 | "requires": { 1822 | "hash.js": "1.1.3", 1823 | "minimalistic-assert": "1.0.0", 1824 | "minimalistic-crypto-utils": "1.0.1" 1825 | } 1826 | }, 1827 | "hosted-git-info": { 1828 | "version": "2.5.0", 1829 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", 1830 | "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", 1831 | "dev": true 1832 | }, 1833 | "https-browserify": { 1834 | "version": "0.0.1", 1835 | "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", 1836 | "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", 1837 | "dev": true 1838 | }, 1839 | "ieee754": { 1840 | "version": "1.1.8", 1841 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", 1842 | "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", 1843 | "dev": true 1844 | }, 1845 | "indexof": { 1846 | "version": "0.0.1", 1847 | "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", 1848 | "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", 1849 | "dev": true 1850 | }, 1851 | "inflight": { 1852 | "version": "1.0.6", 1853 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1854 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1855 | "dev": true, 1856 | "requires": { 1857 | "once": "1.4.0", 1858 | "wrappy": "1.0.2" 1859 | } 1860 | }, 1861 | "inherits": { 1862 | "version": "2.0.3", 1863 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1864 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 1865 | "dev": true 1866 | }, 1867 | "interpret": { 1868 | "version": "1.0.4", 1869 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", 1870 | "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", 1871 | "dev": true 1872 | }, 1873 | "invert-kv": { 1874 | "version": "1.0.0", 1875 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 1876 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", 1877 | "dev": true 1878 | }, 1879 | "is-arrayish": { 1880 | "version": "0.2.1", 1881 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1882 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", 1883 | "dev": true 1884 | }, 1885 | "is-binary-path": { 1886 | "version": "1.0.1", 1887 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", 1888 | "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", 1889 | "dev": true, 1890 | "requires": { 1891 | "binary-extensions": "1.10.0" 1892 | } 1893 | }, 1894 | "is-buffer": { 1895 | "version": "1.1.5", 1896 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", 1897 | "integrity": "sha1-Hzsm72E7IUuIy8ojzGwB2Hlh7sw=", 1898 | "dev": true 1899 | }, 1900 | "is-builtin-module": { 1901 | "version": "1.0.0", 1902 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", 1903 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", 1904 | "dev": true, 1905 | "requires": { 1906 | "builtin-modules": "1.1.1" 1907 | } 1908 | }, 1909 | "is-dotfile": { 1910 | "version": "1.0.3", 1911 | "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", 1912 | "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", 1913 | "dev": true 1914 | }, 1915 | "is-equal-shallow": { 1916 | "version": "0.1.3", 1917 | "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", 1918 | "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", 1919 | "dev": true, 1920 | "requires": { 1921 | "is-primitive": "2.0.0" 1922 | } 1923 | }, 1924 | "is-extendable": { 1925 | "version": "0.1.1", 1926 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 1927 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", 1928 | "dev": true 1929 | }, 1930 | "is-extglob": { 1931 | "version": "1.0.0", 1932 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 1933 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 1934 | "dev": true 1935 | }, 1936 | "is-fullwidth-code-point": { 1937 | "version": "1.0.0", 1938 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1939 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1940 | "dev": true, 1941 | "requires": { 1942 | "number-is-nan": "1.0.1" 1943 | } 1944 | }, 1945 | "is-glob": { 1946 | "version": "2.0.1", 1947 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", 1948 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", 1949 | "dev": true, 1950 | "requires": { 1951 | "is-extglob": "1.0.0" 1952 | } 1953 | }, 1954 | "is-number": { 1955 | "version": "2.1.0", 1956 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", 1957 | "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", 1958 | "dev": true, 1959 | "requires": { 1960 | "kind-of": "3.2.2" 1961 | } 1962 | }, 1963 | "is-posix-bracket": { 1964 | "version": "0.1.1", 1965 | "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", 1966 | "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", 1967 | "dev": true 1968 | }, 1969 | "is-primitive": { 1970 | "version": "2.0.0", 1971 | "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", 1972 | "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", 1973 | "dev": true 1974 | }, 1975 | "is-stream": { 1976 | "version": "1.1.0", 1977 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1978 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 1979 | "dev": true 1980 | }, 1981 | "is-utf8": { 1982 | "version": "0.2.1", 1983 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", 1984 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", 1985 | "dev": true 1986 | }, 1987 | "isarray": { 1988 | "version": "1.0.0", 1989 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1990 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1991 | "dev": true 1992 | }, 1993 | "isexe": { 1994 | "version": "2.0.0", 1995 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1996 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1997 | "dev": true 1998 | }, 1999 | "isobject": { 2000 | "version": "2.1.0", 2001 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", 2002 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", 2003 | "dev": true, 2004 | "requires": { 2005 | "isarray": "1.0.0" 2006 | } 2007 | }, 2008 | "json-loader": { 2009 | "version": "0.5.7", 2010 | "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", 2011 | "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", 2012 | "dev": true 2013 | }, 2014 | "json-schema-traverse": { 2015 | "version": "0.3.1", 2016 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 2017 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", 2018 | "dev": true 2019 | }, 2020 | "json-stable-stringify": { 2021 | "version": "1.0.1", 2022 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", 2023 | "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", 2024 | "dev": true, 2025 | "requires": { 2026 | "jsonify": "0.0.0" 2027 | } 2028 | }, 2029 | "json3": { 2030 | "version": "3.3.2", 2031 | "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", 2032 | "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", 2033 | "dev": true 2034 | }, 2035 | "json5": { 2036 | "version": "0.5.1", 2037 | "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", 2038 | "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", 2039 | "dev": true 2040 | }, 2041 | "jsonfile": { 2042 | "version": "2.4.0", 2043 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", 2044 | "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", 2045 | "dev": true, 2046 | "requires": { 2047 | "graceful-fs": "4.1.11" 2048 | } 2049 | }, 2050 | "jsonify": { 2051 | "version": "0.0.0", 2052 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", 2053 | "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", 2054 | "dev": true 2055 | }, 2056 | "kind-of": { 2057 | "version": "3.2.2", 2058 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2059 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2060 | "dev": true, 2061 | "requires": { 2062 | "is-buffer": "1.1.5" 2063 | } 2064 | }, 2065 | "klaw": { 2066 | "version": "1.3.1", 2067 | "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", 2068 | "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", 2069 | "dev": true, 2070 | "requires": { 2071 | "graceful-fs": "4.1.11" 2072 | } 2073 | }, 2074 | "lazy-cache": { 2075 | "version": "1.0.4", 2076 | "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", 2077 | "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", 2078 | "dev": true 2079 | }, 2080 | "lcid": { 2081 | "version": "1.0.0", 2082 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 2083 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 2084 | "dev": true, 2085 | "requires": { 2086 | "invert-kv": "1.0.0" 2087 | } 2088 | }, 2089 | "load-json-file": { 2090 | "version": "2.0.0", 2091 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", 2092 | "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", 2093 | "dev": true, 2094 | "requires": { 2095 | "graceful-fs": "4.1.11", 2096 | "parse-json": "2.2.0", 2097 | "pify": "2.3.0", 2098 | "strip-bom": "3.0.0" 2099 | } 2100 | }, 2101 | "loader-runner": { 2102 | "version": "2.3.0", 2103 | "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", 2104 | "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", 2105 | "dev": true 2106 | }, 2107 | "loader-utils": { 2108 | "version": "1.1.0", 2109 | "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", 2110 | "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", 2111 | "dev": true, 2112 | "requires": { 2113 | "big.js": "3.2.0", 2114 | "emojis-list": "2.1.0", 2115 | "json5": "0.5.1" 2116 | } 2117 | }, 2118 | "locate-path": { 2119 | "version": "2.0.0", 2120 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 2121 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 2122 | "dev": true, 2123 | "requires": { 2124 | "p-locate": "2.0.0", 2125 | "path-exists": "3.0.0" 2126 | } 2127 | }, 2128 | "lodash": { 2129 | "version": "4.17.4", 2130 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", 2131 | "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", 2132 | "dev": true 2133 | }, 2134 | "lodash._baseassign": { 2135 | "version": "3.2.0", 2136 | "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", 2137 | "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", 2138 | "dev": true, 2139 | "requires": { 2140 | "lodash._basecopy": "3.0.1", 2141 | "lodash.keys": "3.1.2" 2142 | } 2143 | }, 2144 | "lodash._basecopy": { 2145 | "version": "3.0.1", 2146 | "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", 2147 | "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", 2148 | "dev": true 2149 | }, 2150 | "lodash._basecreate": { 2151 | "version": "3.0.3", 2152 | "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", 2153 | "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", 2154 | "dev": true 2155 | }, 2156 | "lodash._getnative": { 2157 | "version": "3.9.1", 2158 | "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", 2159 | "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", 2160 | "dev": true 2161 | }, 2162 | "lodash._isiterateecall": { 2163 | "version": "3.0.9", 2164 | "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", 2165 | "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", 2166 | "dev": true 2167 | }, 2168 | "lodash.assign": { 2169 | "version": "4.2.0", 2170 | "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", 2171 | "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", 2172 | "dev": true 2173 | }, 2174 | "lodash.create": { 2175 | "version": "3.1.1", 2176 | "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", 2177 | "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", 2178 | "dev": true, 2179 | "requires": { 2180 | "lodash._baseassign": "3.2.0", 2181 | "lodash._basecreate": "3.0.3", 2182 | "lodash._isiterateecall": "3.0.9" 2183 | } 2184 | }, 2185 | "lodash.isarguments": { 2186 | "version": "3.1.0", 2187 | "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", 2188 | "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", 2189 | "dev": true 2190 | }, 2191 | "lodash.isarray": { 2192 | "version": "3.0.4", 2193 | "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", 2194 | "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", 2195 | "dev": true 2196 | }, 2197 | "lodash.keys": { 2198 | "version": "3.1.2", 2199 | "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", 2200 | "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", 2201 | "dev": true, 2202 | "requires": { 2203 | "lodash._getnative": "3.9.1", 2204 | "lodash.isarguments": "3.1.0", 2205 | "lodash.isarray": "3.0.4" 2206 | } 2207 | }, 2208 | "longest": { 2209 | "version": "1.0.1", 2210 | "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", 2211 | "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", 2212 | "dev": true 2213 | }, 2214 | "lru-cache": { 2215 | "version": "4.1.1", 2216 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", 2217 | "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", 2218 | "dev": true, 2219 | "requires": { 2220 | "pseudomap": "1.0.2", 2221 | "yallist": "2.1.2" 2222 | } 2223 | }, 2224 | "md5.js": { 2225 | "version": "1.3.4", 2226 | "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", 2227 | "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", 2228 | "dev": true, 2229 | "requires": { 2230 | "hash-base": "3.0.4", 2231 | "inherits": "2.0.3" 2232 | }, 2233 | "dependencies": { 2234 | "hash-base": { 2235 | "version": "3.0.4", 2236 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", 2237 | "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", 2238 | "dev": true, 2239 | "requires": { 2240 | "inherits": "2.0.3", 2241 | "safe-buffer": "5.1.1" 2242 | } 2243 | } 2244 | } 2245 | }, 2246 | "mem": { 2247 | "version": "1.1.0", 2248 | "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", 2249 | "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", 2250 | "dev": true, 2251 | "requires": { 2252 | "mimic-fn": "1.1.0" 2253 | } 2254 | }, 2255 | "memory-fs": { 2256 | "version": "0.4.1", 2257 | "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", 2258 | "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", 2259 | "dev": true, 2260 | "requires": { 2261 | "errno": "0.1.4", 2262 | "readable-stream": "2.3.3" 2263 | } 2264 | }, 2265 | "memorystream": { 2266 | "version": "0.3.1", 2267 | "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", 2268 | "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=", 2269 | "dev": true 2270 | }, 2271 | "micromatch": { 2272 | "version": "2.3.11", 2273 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", 2274 | "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", 2275 | "dev": true, 2276 | "requires": { 2277 | "arr-diff": "2.0.0", 2278 | "array-unique": "0.2.1", 2279 | "braces": "1.8.5", 2280 | "expand-brackets": "0.1.5", 2281 | "extglob": "0.3.2", 2282 | "filename-regex": "2.0.1", 2283 | "is-extglob": "1.0.0", 2284 | "is-glob": "2.0.1", 2285 | "kind-of": "3.2.2", 2286 | "normalize-path": "2.1.1", 2287 | "object.omit": "2.0.1", 2288 | "parse-glob": "3.0.4", 2289 | "regex-cache": "0.4.4" 2290 | } 2291 | }, 2292 | "miller-rabin": { 2293 | "version": "4.0.1", 2294 | "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", 2295 | "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", 2296 | "dev": true, 2297 | "requires": { 2298 | "bn.js": "4.11.8", 2299 | "brorand": "1.1.0" 2300 | } 2301 | }, 2302 | "mimic-fn": { 2303 | "version": "1.1.0", 2304 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.1.0.tgz", 2305 | "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=", 2306 | "dev": true 2307 | }, 2308 | "minimalistic-assert": { 2309 | "version": "1.0.0", 2310 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", 2311 | "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", 2312 | "dev": true 2313 | }, 2314 | "minimalistic-crypto-utils": { 2315 | "version": "1.0.1", 2316 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 2317 | "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", 2318 | "dev": true 2319 | }, 2320 | "minimatch": { 2321 | "version": "3.0.4", 2322 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 2323 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 2324 | "dev": true, 2325 | "requires": { 2326 | "brace-expansion": "1.1.8" 2327 | } 2328 | }, 2329 | "minimist": { 2330 | "version": "0.0.8", 2331 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 2332 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 2333 | "dev": true 2334 | }, 2335 | "mkdirp": { 2336 | "version": "0.5.1", 2337 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 2338 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 2339 | "dev": true, 2340 | "requires": { 2341 | "minimist": "0.0.8" 2342 | } 2343 | }, 2344 | "mocha": { 2345 | "version": "3.5.3", 2346 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.3.tgz", 2347 | "integrity": "sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg==", 2348 | "dev": true, 2349 | "requires": { 2350 | "browser-stdout": "1.3.0", 2351 | "commander": "2.9.0", 2352 | "debug": "2.6.8", 2353 | "diff": "3.2.0", 2354 | "escape-string-regexp": "1.0.5", 2355 | "glob": "7.1.1", 2356 | "growl": "1.9.2", 2357 | "he": "1.1.1", 2358 | "json3": "3.3.2", 2359 | "lodash.create": "3.1.1", 2360 | "mkdirp": "0.5.1", 2361 | "supports-color": "3.1.2" 2362 | }, 2363 | "dependencies": { 2364 | "has-flag": { 2365 | "version": "1.0.0", 2366 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", 2367 | "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", 2368 | "dev": true 2369 | }, 2370 | "supports-color": { 2371 | "version": "3.1.2", 2372 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", 2373 | "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", 2374 | "dev": true, 2375 | "requires": { 2376 | "has-flag": "1.0.0" 2377 | } 2378 | } 2379 | } 2380 | }, 2381 | "ms": { 2382 | "version": "2.0.0", 2383 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2384 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 2385 | "dev": true 2386 | }, 2387 | "nan": { 2388 | "version": "2.7.0", 2389 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", 2390 | "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", 2391 | "dev": true, 2392 | "optional": true 2393 | }, 2394 | "node-libs-browser": { 2395 | "version": "2.0.0", 2396 | "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.0.0.tgz", 2397 | "integrity": "sha1-o6WeyXAkmFtG6Vg3lkb5bEthZkY=", 2398 | "dev": true, 2399 | "requires": { 2400 | "assert": "1.4.1", 2401 | "browserify-zlib": "0.1.4", 2402 | "buffer": "4.9.1", 2403 | "console-browserify": "1.1.0", 2404 | "constants-browserify": "1.0.0", 2405 | "crypto-browserify": "3.11.1", 2406 | "domain-browser": "1.1.7", 2407 | "events": "1.1.1", 2408 | "https-browserify": "0.0.1", 2409 | "os-browserify": "0.2.1", 2410 | "path-browserify": "0.0.0", 2411 | "process": "0.11.10", 2412 | "punycode": "1.4.1", 2413 | "querystring-es3": "0.2.1", 2414 | "readable-stream": "2.3.3", 2415 | "stream-browserify": "2.0.1", 2416 | "stream-http": "2.7.2", 2417 | "string_decoder": "0.10.31", 2418 | "timers-browserify": "2.0.4", 2419 | "tty-browserify": "0.0.0", 2420 | "url": "0.11.0", 2421 | "util": "0.10.3", 2422 | "vm-browserify": "0.0.4" 2423 | }, 2424 | "dependencies": { 2425 | "string_decoder": { 2426 | "version": "0.10.31", 2427 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 2428 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 2429 | "dev": true 2430 | } 2431 | } 2432 | }, 2433 | "normalize-package-data": { 2434 | "version": "2.4.0", 2435 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", 2436 | "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", 2437 | "dev": true, 2438 | "requires": { 2439 | "hosted-git-info": "2.5.0", 2440 | "is-builtin-module": "1.0.0", 2441 | "semver": "5.4.1", 2442 | "validate-npm-package-license": "3.0.1" 2443 | } 2444 | }, 2445 | "normalize-path": { 2446 | "version": "2.1.1", 2447 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", 2448 | "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", 2449 | "dev": true, 2450 | "requires": { 2451 | "remove-trailing-separator": "1.1.0" 2452 | } 2453 | }, 2454 | "npm-run-path": { 2455 | "version": "2.0.2", 2456 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 2457 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 2458 | "dev": true, 2459 | "requires": { 2460 | "path-key": "2.0.1" 2461 | } 2462 | }, 2463 | "number-is-nan": { 2464 | "version": "1.0.1", 2465 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 2466 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", 2467 | "dev": true 2468 | }, 2469 | "object-assign": { 2470 | "version": "4.1.1", 2471 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 2472 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 2473 | "dev": true 2474 | }, 2475 | "object.omit": { 2476 | "version": "2.0.1", 2477 | "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", 2478 | "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", 2479 | "dev": true, 2480 | "requires": { 2481 | "for-own": "0.1.5", 2482 | "is-extendable": "0.1.1" 2483 | } 2484 | }, 2485 | "once": { 2486 | "version": "1.4.0", 2487 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2488 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 2489 | "dev": true, 2490 | "requires": { 2491 | "wrappy": "1.0.2" 2492 | } 2493 | }, 2494 | "original-require": { 2495 | "version": "1.0.1", 2496 | "resolved": "https://registry.npmjs.org/original-require/-/original-require-1.0.1.tgz", 2497 | "integrity": "sha1-DxMEcVhM0zURxew4yNWSE/msXiA=", 2498 | "dev": true 2499 | }, 2500 | "os-browserify": { 2501 | "version": "0.2.1", 2502 | "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.2.1.tgz", 2503 | "integrity": "sha1-Y/xMzuXS13Y9Jrv4YBB45sLgBE8=", 2504 | "dev": true 2505 | }, 2506 | "os-locale": { 2507 | "version": "2.1.0", 2508 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", 2509 | "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", 2510 | "dev": true, 2511 | "requires": { 2512 | "execa": "0.7.0", 2513 | "lcid": "1.0.0", 2514 | "mem": "1.1.0" 2515 | } 2516 | }, 2517 | "p-finally": { 2518 | "version": "1.0.0", 2519 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 2520 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 2521 | "dev": true 2522 | }, 2523 | "p-limit": { 2524 | "version": "1.1.0", 2525 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz", 2526 | "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=", 2527 | "dev": true 2528 | }, 2529 | "p-locate": { 2530 | "version": "2.0.0", 2531 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 2532 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 2533 | "dev": true, 2534 | "requires": { 2535 | "p-limit": "1.1.0" 2536 | } 2537 | }, 2538 | "pako": { 2539 | "version": "0.2.9", 2540 | "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", 2541 | "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", 2542 | "dev": true 2543 | }, 2544 | "parse-asn1": { 2545 | "version": "5.1.0", 2546 | "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", 2547 | "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", 2548 | "dev": true, 2549 | "requires": { 2550 | "asn1.js": "4.9.1", 2551 | "browserify-aes": "1.0.8", 2552 | "create-hash": "1.1.3", 2553 | "evp_bytestokey": "1.0.3", 2554 | "pbkdf2": "3.0.14" 2555 | } 2556 | }, 2557 | "parse-glob": { 2558 | "version": "3.0.4", 2559 | "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", 2560 | "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", 2561 | "dev": true, 2562 | "requires": { 2563 | "glob-base": "0.3.0", 2564 | "is-dotfile": "1.0.3", 2565 | "is-extglob": "1.0.0", 2566 | "is-glob": "2.0.1" 2567 | } 2568 | }, 2569 | "parse-json": { 2570 | "version": "2.2.0", 2571 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 2572 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 2573 | "dev": true, 2574 | "requires": { 2575 | "error-ex": "1.3.1" 2576 | } 2577 | }, 2578 | "path-browserify": { 2579 | "version": "0.0.0", 2580 | "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", 2581 | "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", 2582 | "dev": true 2583 | }, 2584 | "path-exists": { 2585 | "version": "3.0.0", 2586 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 2587 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 2588 | "dev": true 2589 | }, 2590 | "path-is-absolute": { 2591 | "version": "1.0.1", 2592 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2593 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 2594 | "dev": true 2595 | }, 2596 | "path-key": { 2597 | "version": "2.0.1", 2598 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 2599 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 2600 | "dev": true 2601 | }, 2602 | "path-type": { 2603 | "version": "2.0.0", 2604 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", 2605 | "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", 2606 | "dev": true, 2607 | "requires": { 2608 | "pify": "2.3.0" 2609 | } 2610 | }, 2611 | "pbkdf2": { 2612 | "version": "3.0.14", 2613 | "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", 2614 | "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", 2615 | "dev": true, 2616 | "requires": { 2617 | "create-hash": "1.1.3", 2618 | "create-hmac": "1.1.6", 2619 | "ripemd160": "2.0.1", 2620 | "safe-buffer": "5.1.1", 2621 | "sha.js": "2.4.9" 2622 | } 2623 | }, 2624 | "pify": { 2625 | "version": "2.3.0", 2626 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 2627 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", 2628 | "dev": true 2629 | }, 2630 | "pinkie": { 2631 | "version": "2.0.4", 2632 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 2633 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", 2634 | "dev": true 2635 | }, 2636 | "pinkie-promise": { 2637 | "version": "2.0.1", 2638 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 2639 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 2640 | "dev": true, 2641 | "requires": { 2642 | "pinkie": "2.0.4" 2643 | } 2644 | }, 2645 | "preserve": { 2646 | "version": "0.2.0", 2647 | "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", 2648 | "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", 2649 | "dev": true 2650 | }, 2651 | "process": { 2652 | "version": "0.11.10", 2653 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 2654 | "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", 2655 | "dev": true 2656 | }, 2657 | "process-nextick-args": { 2658 | "version": "1.0.7", 2659 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", 2660 | "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", 2661 | "dev": true 2662 | }, 2663 | "prr": { 2664 | "version": "0.0.0", 2665 | "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", 2666 | "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=", 2667 | "dev": true 2668 | }, 2669 | "pseudomap": { 2670 | "version": "1.0.2", 2671 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 2672 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 2673 | "dev": true 2674 | }, 2675 | "public-encrypt": { 2676 | "version": "4.0.0", 2677 | "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", 2678 | "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", 2679 | "dev": true, 2680 | "requires": { 2681 | "bn.js": "4.11.8", 2682 | "browserify-rsa": "4.0.1", 2683 | "create-hash": "1.1.3", 2684 | "parse-asn1": "5.1.0", 2685 | "randombytes": "2.0.5" 2686 | } 2687 | }, 2688 | "punycode": { 2689 | "version": "1.4.1", 2690 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 2691 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", 2692 | "dev": true 2693 | }, 2694 | "querystring": { 2695 | "version": "0.2.0", 2696 | "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", 2697 | "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", 2698 | "dev": true 2699 | }, 2700 | "querystring-es3": { 2701 | "version": "0.2.1", 2702 | "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", 2703 | "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", 2704 | "dev": true 2705 | }, 2706 | "randomatic": { 2707 | "version": "1.1.7", 2708 | "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", 2709 | "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", 2710 | "dev": true, 2711 | "requires": { 2712 | "is-number": "3.0.0", 2713 | "kind-of": "4.0.0" 2714 | }, 2715 | "dependencies": { 2716 | "is-number": { 2717 | "version": "3.0.0", 2718 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 2719 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 2720 | "dev": true, 2721 | "requires": { 2722 | "kind-of": "3.2.2" 2723 | }, 2724 | "dependencies": { 2725 | "kind-of": { 2726 | "version": "3.2.2", 2727 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2728 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2729 | "dev": true, 2730 | "requires": { 2731 | "is-buffer": "1.1.5" 2732 | } 2733 | } 2734 | } 2735 | }, 2736 | "kind-of": { 2737 | "version": "4.0.0", 2738 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", 2739 | "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", 2740 | "dev": true, 2741 | "requires": { 2742 | "is-buffer": "1.1.5" 2743 | } 2744 | } 2745 | } 2746 | }, 2747 | "randombytes": { 2748 | "version": "2.0.5", 2749 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", 2750 | "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", 2751 | "dev": true, 2752 | "requires": { 2753 | "safe-buffer": "5.1.1" 2754 | } 2755 | }, 2756 | "read-pkg": { 2757 | "version": "2.0.0", 2758 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", 2759 | "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", 2760 | "dev": true, 2761 | "requires": { 2762 | "load-json-file": "2.0.0", 2763 | "normalize-package-data": "2.4.0", 2764 | "path-type": "2.0.0" 2765 | } 2766 | }, 2767 | "read-pkg-up": { 2768 | "version": "2.0.0", 2769 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", 2770 | "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", 2771 | "dev": true, 2772 | "requires": { 2773 | "find-up": "2.1.0", 2774 | "read-pkg": "2.0.0" 2775 | } 2776 | }, 2777 | "readable-stream": { 2778 | "version": "2.3.3", 2779 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", 2780 | "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", 2781 | "dev": true, 2782 | "requires": { 2783 | "core-util-is": "1.0.2", 2784 | "inherits": "2.0.3", 2785 | "isarray": "1.0.0", 2786 | "process-nextick-args": "1.0.7", 2787 | "safe-buffer": "5.1.1", 2788 | "string_decoder": "1.0.3", 2789 | "util-deprecate": "1.0.2" 2790 | } 2791 | }, 2792 | "readdirp": { 2793 | "version": "2.1.0", 2794 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", 2795 | "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", 2796 | "dev": true, 2797 | "requires": { 2798 | "graceful-fs": "4.1.11", 2799 | "minimatch": "3.0.4", 2800 | "readable-stream": "2.3.3", 2801 | "set-immediate-shim": "1.0.1" 2802 | } 2803 | }, 2804 | "regex-cache": { 2805 | "version": "0.4.4", 2806 | "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", 2807 | "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", 2808 | "dev": true, 2809 | "requires": { 2810 | "is-equal-shallow": "0.1.3" 2811 | } 2812 | }, 2813 | "remove-trailing-separator": { 2814 | "version": "1.1.0", 2815 | "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", 2816 | "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", 2817 | "dev": true 2818 | }, 2819 | "repeat-element": { 2820 | "version": "1.1.2", 2821 | "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", 2822 | "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", 2823 | "dev": true 2824 | }, 2825 | "repeat-string": { 2826 | "version": "1.6.1", 2827 | "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", 2828 | "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", 2829 | "dev": true 2830 | }, 2831 | "require-directory": { 2832 | "version": "2.1.1", 2833 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2834 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 2835 | "dev": true 2836 | }, 2837 | "require-from-string": { 2838 | "version": "1.2.1", 2839 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz", 2840 | "integrity": "sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg=", 2841 | "dev": true 2842 | }, 2843 | "require-main-filename": { 2844 | "version": "1.0.1", 2845 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 2846 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", 2847 | "dev": true 2848 | }, 2849 | "right-align": { 2850 | "version": "0.1.3", 2851 | "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", 2852 | "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", 2853 | "dev": true, 2854 | "requires": { 2855 | "align-text": "0.1.4" 2856 | } 2857 | }, 2858 | "rimraf": { 2859 | "version": "2.6.2", 2860 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", 2861 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", 2862 | "dev": true, 2863 | "requires": { 2864 | "glob": "7.1.1" 2865 | } 2866 | }, 2867 | "ripemd160": { 2868 | "version": "2.0.1", 2869 | "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", 2870 | "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", 2871 | "dev": true, 2872 | "requires": { 2873 | "hash-base": "2.0.2", 2874 | "inherits": "2.0.3" 2875 | } 2876 | }, 2877 | "safe-buffer": { 2878 | "version": "5.1.1", 2879 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 2880 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", 2881 | "dev": true 2882 | }, 2883 | "semver": { 2884 | "version": "5.4.1", 2885 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", 2886 | "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", 2887 | "dev": true 2888 | }, 2889 | "set-blocking": { 2890 | "version": "2.0.0", 2891 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2892 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 2893 | "dev": true 2894 | }, 2895 | "set-immediate-shim": { 2896 | "version": "1.0.1", 2897 | "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", 2898 | "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", 2899 | "dev": true 2900 | }, 2901 | "setimmediate": { 2902 | "version": "1.0.5", 2903 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2904 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 2905 | "dev": true 2906 | }, 2907 | "sha.js": { 2908 | "version": "2.4.9", 2909 | "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", 2910 | "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==", 2911 | "dev": true, 2912 | "requires": { 2913 | "inherits": "2.0.3", 2914 | "safe-buffer": "5.1.1" 2915 | } 2916 | }, 2917 | "shebang-command": { 2918 | "version": "1.2.0", 2919 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 2920 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 2921 | "dev": true, 2922 | "requires": { 2923 | "shebang-regex": "1.0.0" 2924 | } 2925 | }, 2926 | "shebang-regex": { 2927 | "version": "1.0.0", 2928 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 2929 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 2930 | "dev": true 2931 | }, 2932 | "signal-exit": { 2933 | "version": "3.0.2", 2934 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 2935 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 2936 | "dev": true 2937 | }, 2938 | "solc": { 2939 | "version": "0.4.15", 2940 | "resolved": "https://registry.npmjs.org/solc/-/solc-0.4.15.tgz", 2941 | "integrity": "sha1-iujxYGoSSj+BwoudzssJZOvfnyU=", 2942 | "dev": true, 2943 | "requires": { 2944 | "fs-extra": "0.30.0", 2945 | "memorystream": "0.3.1", 2946 | "require-from-string": "1.2.1", 2947 | "semver": "5.4.1", 2948 | "yargs": "4.8.1" 2949 | }, 2950 | "dependencies": { 2951 | "camelcase": { 2952 | "version": "3.0.0", 2953 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", 2954 | "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", 2955 | "dev": true 2956 | }, 2957 | "cliui": { 2958 | "version": "3.2.0", 2959 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 2960 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 2961 | "dev": true, 2962 | "requires": { 2963 | "string-width": "1.0.2", 2964 | "strip-ansi": "3.0.1", 2965 | "wrap-ansi": "2.1.0" 2966 | } 2967 | }, 2968 | "find-up": { 2969 | "version": "1.1.2", 2970 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", 2971 | "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", 2972 | "dev": true, 2973 | "requires": { 2974 | "path-exists": "2.1.0", 2975 | "pinkie-promise": "2.0.1" 2976 | } 2977 | }, 2978 | "load-json-file": { 2979 | "version": "1.1.0", 2980 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", 2981 | "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", 2982 | "dev": true, 2983 | "requires": { 2984 | "graceful-fs": "4.1.11", 2985 | "parse-json": "2.2.0", 2986 | "pify": "2.3.0", 2987 | "pinkie-promise": "2.0.1", 2988 | "strip-bom": "2.0.0" 2989 | } 2990 | }, 2991 | "os-locale": { 2992 | "version": "1.4.0", 2993 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", 2994 | "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", 2995 | "dev": true, 2996 | "requires": { 2997 | "lcid": "1.0.0" 2998 | } 2999 | }, 3000 | "path-exists": { 3001 | "version": "2.1.0", 3002 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", 3003 | "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", 3004 | "dev": true, 3005 | "requires": { 3006 | "pinkie-promise": "2.0.1" 3007 | } 3008 | }, 3009 | "path-type": { 3010 | "version": "1.1.0", 3011 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", 3012 | "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", 3013 | "dev": true, 3014 | "requires": { 3015 | "graceful-fs": "4.1.11", 3016 | "pify": "2.3.0", 3017 | "pinkie-promise": "2.0.1" 3018 | } 3019 | }, 3020 | "read-pkg": { 3021 | "version": "1.1.0", 3022 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", 3023 | "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", 3024 | "dev": true, 3025 | "requires": { 3026 | "load-json-file": "1.1.0", 3027 | "normalize-package-data": "2.4.0", 3028 | "path-type": "1.1.0" 3029 | } 3030 | }, 3031 | "read-pkg-up": { 3032 | "version": "1.0.1", 3033 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", 3034 | "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", 3035 | "dev": true, 3036 | "requires": { 3037 | "find-up": "1.1.2", 3038 | "read-pkg": "1.1.0" 3039 | } 3040 | }, 3041 | "string-width": { 3042 | "version": "1.0.2", 3043 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 3044 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 3045 | "dev": true, 3046 | "requires": { 3047 | "code-point-at": "1.1.0", 3048 | "is-fullwidth-code-point": "1.0.0", 3049 | "strip-ansi": "3.0.1" 3050 | } 3051 | }, 3052 | "strip-bom": { 3053 | "version": "2.0.0", 3054 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", 3055 | "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", 3056 | "dev": true, 3057 | "requires": { 3058 | "is-utf8": "0.2.1" 3059 | } 3060 | }, 3061 | "which-module": { 3062 | "version": "1.0.0", 3063 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", 3064 | "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", 3065 | "dev": true 3066 | }, 3067 | "window-size": { 3068 | "version": "0.2.0", 3069 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", 3070 | "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=", 3071 | "dev": true 3072 | }, 3073 | "yargs": { 3074 | "version": "4.8.1", 3075 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", 3076 | "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", 3077 | "dev": true, 3078 | "requires": { 3079 | "cliui": "3.2.0", 3080 | "decamelize": "1.2.0", 3081 | "get-caller-file": "1.0.2", 3082 | "lodash.assign": "4.2.0", 3083 | "os-locale": "1.4.0", 3084 | "read-pkg-up": "1.0.1", 3085 | "require-directory": "2.1.1", 3086 | "require-main-filename": "1.0.1", 3087 | "set-blocking": "2.0.0", 3088 | "string-width": "1.0.2", 3089 | "which-module": "1.0.0", 3090 | "window-size": "0.2.0", 3091 | "y18n": "3.2.1", 3092 | "yargs-parser": "2.4.1" 3093 | } 3094 | }, 3095 | "yargs-parser": { 3096 | "version": "2.4.1", 3097 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz", 3098 | "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=", 3099 | "dev": true, 3100 | "requires": { 3101 | "camelcase": "3.0.0", 3102 | "lodash.assign": "4.2.0" 3103 | } 3104 | } 3105 | } 3106 | }, 3107 | "source-list-map": { 3108 | "version": "2.0.0", 3109 | "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", 3110 | "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", 3111 | "dev": true 3112 | }, 3113 | "source-map": { 3114 | "version": "0.5.7", 3115 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 3116 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", 3117 | "dev": true 3118 | }, 3119 | "spdx-correct": { 3120 | "version": "1.0.2", 3121 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", 3122 | "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", 3123 | "dev": true, 3124 | "requires": { 3125 | "spdx-license-ids": "1.2.2" 3126 | } 3127 | }, 3128 | "spdx-expression-parse": { 3129 | "version": "1.0.4", 3130 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", 3131 | "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", 3132 | "dev": true 3133 | }, 3134 | "spdx-license-ids": { 3135 | "version": "1.2.2", 3136 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", 3137 | "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", 3138 | "dev": true 3139 | }, 3140 | "stream-browserify": { 3141 | "version": "2.0.1", 3142 | "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", 3143 | "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", 3144 | "dev": true, 3145 | "requires": { 3146 | "inherits": "2.0.3", 3147 | "readable-stream": "2.3.3" 3148 | } 3149 | }, 3150 | "stream-http": { 3151 | "version": "2.7.2", 3152 | "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", 3153 | "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", 3154 | "dev": true, 3155 | "requires": { 3156 | "builtin-status-codes": "3.0.0", 3157 | "inherits": "2.0.3", 3158 | "readable-stream": "2.3.3", 3159 | "to-arraybuffer": "1.0.1", 3160 | "xtend": "4.0.1" 3161 | } 3162 | }, 3163 | "string-width": { 3164 | "version": "2.1.1", 3165 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 3166 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 3167 | "dev": true, 3168 | "requires": { 3169 | "is-fullwidth-code-point": "2.0.0", 3170 | "strip-ansi": "4.0.0" 3171 | }, 3172 | "dependencies": { 3173 | "ansi-regex": { 3174 | "version": "3.0.0", 3175 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 3176 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 3177 | "dev": true 3178 | }, 3179 | "is-fullwidth-code-point": { 3180 | "version": "2.0.0", 3181 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 3182 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 3183 | "dev": true 3184 | }, 3185 | "strip-ansi": { 3186 | "version": "4.0.0", 3187 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 3188 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 3189 | "dev": true, 3190 | "requires": { 3191 | "ansi-regex": "3.0.0" 3192 | } 3193 | } 3194 | } 3195 | }, 3196 | "string_decoder": { 3197 | "version": "1.0.3", 3198 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", 3199 | "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", 3200 | "dev": true, 3201 | "requires": { 3202 | "safe-buffer": "5.1.1" 3203 | } 3204 | }, 3205 | "strip-ansi": { 3206 | "version": "3.0.1", 3207 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 3208 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 3209 | "dev": true, 3210 | "requires": { 3211 | "ansi-regex": "2.1.1" 3212 | } 3213 | }, 3214 | "strip-bom": { 3215 | "version": "3.0.0", 3216 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 3217 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", 3218 | "dev": true 3219 | }, 3220 | "strip-eof": { 3221 | "version": "1.0.0", 3222 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 3223 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 3224 | "dev": true 3225 | }, 3226 | "supports-color": { 3227 | "version": "4.4.0", 3228 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", 3229 | "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", 3230 | "dev": true, 3231 | "requires": { 3232 | "has-flag": "2.0.0" 3233 | } 3234 | }, 3235 | "tapable": { 3236 | "version": "0.2.8", 3237 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", 3238 | "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", 3239 | "dev": true 3240 | }, 3241 | "timers-browserify": { 3242 | "version": "2.0.4", 3243 | "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", 3244 | "integrity": "sha512-uZYhyU3EX8O7HQP+J9fTVYwsq90Vr68xPEFo7yrVImIxYvHgukBEgOB/SgGoorWVTzGM/3Z+wUNnboA4M8jWrg==", 3245 | "dev": true, 3246 | "requires": { 3247 | "setimmediate": "1.0.5" 3248 | } 3249 | }, 3250 | "to-arraybuffer": { 3251 | "version": "1.0.1", 3252 | "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", 3253 | "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", 3254 | "dev": true 3255 | }, 3256 | "truffle": { 3257 | "version": "3.4.11", 3258 | "resolved": "https://registry.npmjs.org/truffle/-/truffle-3.4.11.tgz", 3259 | "integrity": "sha512-DT5nArmVW0wPCPMCHrYyVrhBbTiA2VLTOXIbbHULHTCJSFOSsDK6EDKA2nrtzq3fZ6i++ZS34iIjLNY27dBLXQ==", 3260 | "dev": true, 3261 | "requires": { 3262 | "mocha": "3.5.3", 3263 | "original-require": "1.0.1", 3264 | "solc": "0.4.15" 3265 | } 3266 | }, 3267 | "tty-browserify": { 3268 | "version": "0.0.0", 3269 | "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", 3270 | "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", 3271 | "dev": true 3272 | }, 3273 | "uglify-js": { 3274 | "version": "2.8.29", 3275 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", 3276 | "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", 3277 | "dev": true, 3278 | "requires": { 3279 | "source-map": "0.5.7", 3280 | "uglify-to-browserify": "1.0.2", 3281 | "yargs": "3.10.0" 3282 | }, 3283 | "dependencies": { 3284 | "yargs": { 3285 | "version": "3.10.0", 3286 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", 3287 | "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", 3288 | "dev": true, 3289 | "requires": { 3290 | "camelcase": "1.2.1", 3291 | "cliui": "2.1.0", 3292 | "decamelize": "1.2.0", 3293 | "window-size": "0.1.0" 3294 | } 3295 | } 3296 | } 3297 | }, 3298 | "uglify-to-browserify": { 3299 | "version": "1.0.2", 3300 | "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", 3301 | "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", 3302 | "dev": true, 3303 | "optional": true 3304 | }, 3305 | "uglifyjs-webpack-plugin": { 3306 | "version": "0.4.6", 3307 | "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", 3308 | "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", 3309 | "dev": true, 3310 | "requires": { 3311 | "source-map": "0.5.7", 3312 | "uglify-js": "2.8.29", 3313 | "webpack-sources": "1.0.1" 3314 | } 3315 | }, 3316 | "url": { 3317 | "version": "0.11.0", 3318 | "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", 3319 | "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", 3320 | "dev": true, 3321 | "requires": { 3322 | "punycode": "1.3.2", 3323 | "querystring": "0.2.0" 3324 | }, 3325 | "dependencies": { 3326 | "punycode": { 3327 | "version": "1.3.2", 3328 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", 3329 | "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", 3330 | "dev": true 3331 | } 3332 | } 3333 | }, 3334 | "util": { 3335 | "version": "0.10.3", 3336 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", 3337 | "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", 3338 | "dev": true, 3339 | "requires": { 3340 | "inherits": "2.0.1" 3341 | }, 3342 | "dependencies": { 3343 | "inherits": { 3344 | "version": "2.0.1", 3345 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", 3346 | "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", 3347 | "dev": true 3348 | } 3349 | } 3350 | }, 3351 | "util-deprecate": { 3352 | "version": "1.0.2", 3353 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 3354 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 3355 | "dev": true 3356 | }, 3357 | "validate-npm-package-license": { 3358 | "version": "3.0.1", 3359 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", 3360 | "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", 3361 | "dev": true, 3362 | "requires": { 3363 | "spdx-correct": "1.0.2", 3364 | "spdx-expression-parse": "1.0.4" 3365 | } 3366 | }, 3367 | "vm-browserify": { 3368 | "version": "0.0.4", 3369 | "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", 3370 | "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", 3371 | "dev": true, 3372 | "requires": { 3373 | "indexof": "0.0.1" 3374 | } 3375 | }, 3376 | "watchpack": { 3377 | "version": "1.4.0", 3378 | "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz", 3379 | "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=", 3380 | "dev": true, 3381 | "requires": { 3382 | "async": "2.5.0", 3383 | "chokidar": "1.7.0", 3384 | "graceful-fs": "4.1.11" 3385 | } 3386 | }, 3387 | "webpack": { 3388 | "version": "3.6.0", 3389 | "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.6.0.tgz", 3390 | "integrity": "sha512-OsHT3D0W0KmPPh60tC7asNnOmST6bKTiR90UyEdT9QYoaJ4OYN4Gg7WK1k3VxHK07ZoiYWPsKvlS/gAjwL/vRA==", 3391 | "dev": true, 3392 | "requires": { 3393 | "acorn": "5.1.2", 3394 | "acorn-dynamic-import": "2.0.2", 3395 | "ajv": "5.2.3", 3396 | "ajv-keywords": "2.1.0", 3397 | "async": "2.5.0", 3398 | "enhanced-resolve": "3.4.1", 3399 | "escope": "3.6.0", 3400 | "interpret": "1.0.4", 3401 | "json-loader": "0.5.7", 3402 | "json5": "0.5.1", 3403 | "loader-runner": "2.3.0", 3404 | "loader-utils": "1.1.0", 3405 | "memory-fs": "0.4.1", 3406 | "mkdirp": "0.5.1", 3407 | "node-libs-browser": "2.0.0", 3408 | "source-map": "0.5.7", 3409 | "supports-color": "4.4.0", 3410 | "tapable": "0.2.8", 3411 | "uglifyjs-webpack-plugin": "0.4.6", 3412 | "watchpack": "1.4.0", 3413 | "webpack-sources": "1.0.1", 3414 | "yargs": "8.0.2" 3415 | } 3416 | }, 3417 | "webpack-sources": { 3418 | "version": "1.0.1", 3419 | "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.0.1.tgz", 3420 | "integrity": "sha512-05tMxipUCwHqYaVS8xc7sYPTly8PzXayRCB4dTxLhWTqlKUiwH6ezmEe0OSreL1c30LAuA3Zqmc+uEBUGFJDjw==", 3421 | "dev": true, 3422 | "requires": { 3423 | "source-list-map": "2.0.0", 3424 | "source-map": "0.5.7" 3425 | } 3426 | }, 3427 | "which": { 3428 | "version": "1.3.0", 3429 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", 3430 | "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", 3431 | "dev": true, 3432 | "requires": { 3433 | "isexe": "2.0.0" 3434 | } 3435 | }, 3436 | "which-module": { 3437 | "version": "2.0.0", 3438 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 3439 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 3440 | "dev": true 3441 | }, 3442 | "window-size": { 3443 | "version": "0.1.0", 3444 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", 3445 | "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", 3446 | "dev": true 3447 | }, 3448 | "wordwrap": { 3449 | "version": "0.0.2", 3450 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", 3451 | "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", 3452 | "dev": true 3453 | }, 3454 | "wrap-ansi": { 3455 | "version": "2.1.0", 3456 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 3457 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 3458 | "dev": true, 3459 | "requires": { 3460 | "string-width": "1.0.2", 3461 | "strip-ansi": "3.0.1" 3462 | }, 3463 | "dependencies": { 3464 | "string-width": { 3465 | "version": "1.0.2", 3466 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 3467 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 3468 | "dev": true, 3469 | "requires": { 3470 | "code-point-at": "1.1.0", 3471 | "is-fullwidth-code-point": "1.0.0", 3472 | "strip-ansi": "3.0.1" 3473 | } 3474 | } 3475 | } 3476 | }, 3477 | "wrappy": { 3478 | "version": "1.0.2", 3479 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3480 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 3481 | "dev": true 3482 | }, 3483 | "xtend": { 3484 | "version": "4.0.1", 3485 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 3486 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", 3487 | "dev": true 3488 | }, 3489 | "y18n": { 3490 | "version": "3.2.1", 3491 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 3492 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", 3493 | "dev": true 3494 | }, 3495 | "yallist": { 3496 | "version": "2.1.2", 3497 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 3498 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 3499 | "dev": true 3500 | }, 3501 | "yargs": { 3502 | "version": "8.0.2", 3503 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", 3504 | "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", 3505 | "dev": true, 3506 | "requires": { 3507 | "camelcase": "4.1.0", 3508 | "cliui": "3.2.0", 3509 | "decamelize": "1.2.0", 3510 | "get-caller-file": "1.0.2", 3511 | "os-locale": "2.1.0", 3512 | "read-pkg-up": "2.0.0", 3513 | "require-directory": "2.1.1", 3514 | "require-main-filename": "1.0.1", 3515 | "set-blocking": "2.0.0", 3516 | "string-width": "2.1.1", 3517 | "which-module": "2.0.0", 3518 | "y18n": "3.2.1", 3519 | "yargs-parser": "7.0.0" 3520 | }, 3521 | "dependencies": { 3522 | "camelcase": { 3523 | "version": "4.1.0", 3524 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 3525 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", 3526 | "dev": true 3527 | }, 3528 | "cliui": { 3529 | "version": "3.2.0", 3530 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 3531 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 3532 | "dev": true, 3533 | "requires": { 3534 | "string-width": "1.0.2", 3535 | "strip-ansi": "3.0.1", 3536 | "wrap-ansi": "2.1.0" 3537 | }, 3538 | "dependencies": { 3539 | "string-width": { 3540 | "version": "1.0.2", 3541 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 3542 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 3543 | "dev": true, 3544 | "requires": { 3545 | "code-point-at": "1.1.0", 3546 | "is-fullwidth-code-point": "1.0.0", 3547 | "strip-ansi": "3.0.1" 3548 | } 3549 | } 3550 | } 3551 | } 3552 | } 3553 | }, 3554 | "yargs-parser": { 3555 | "version": "7.0.0", 3556 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", 3557 | "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", 3558 | "dev": true, 3559 | "requires": { 3560 | "camelcase": "4.1.0" 3561 | }, 3562 | "dependencies": { 3563 | "camelcase": { 3564 | "version": "4.1.0", 3565 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 3566 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", 3567 | "dev": true 3568 | } 3569 | } 3570 | } 3571 | } 3572 | } 3573 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "otn-token", 3 | "version": "1.0.0", 4 | "description": "Open Trading Network token", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/OpenTradingNetworkFoundation/otn-token.git" 8 | }, 9 | "license": "GPL-3.0", 10 | "bugs": { 11 | "url": "https://github.com/OpenTradingNetworkFoundation/otn-token/issues" 12 | }, 13 | "homepage": "https://github.com/OpenTradingNetworkFoundation/otn-token", 14 | "devDependencies": { 15 | "ethereumjs-testrpc": "^4.1.3", 16 | "truffle": "^3.4.6" 17 | }, 18 | "dependencies": {}, 19 | "main": "truffle.js", 20 | "directories": { 21 | "test": "test" 22 | }, 23 | "scripts": { 24 | "test": "echo \"Error: no test specified\" && exit 1" 25 | }, 26 | "author": "Open Trading Network Foundation" 27 | } 28 | -------------------------------------------------------------------------------- /test/BasicToken.js: -------------------------------------------------------------------------------- 1 | const assertJump = require('./helpers/assertJump'); 2 | 3 | var BasicTokenMock = artifacts.require("./helpers/BasicTokenMock.sol"); 4 | 5 | contract('BasicToken', function(accounts) { 6 | 7 | it("should return the correct totalSupply after construction", async function() { 8 | let token = await BasicTokenMock.new(accounts[0], 100); 9 | let totalSupply = await token.totalSupply(); 10 | 11 | assert.equal(totalSupply, 100); 12 | }) 13 | 14 | it("should return correct balances after transfer", async function(){ 15 | let token = await BasicTokenMock.new(accounts[0], 100); 16 | let transfer = await token.transfer(accounts[1], 100); 17 | 18 | let firstAccountBalance = await token.balanceOf(accounts[0]); 19 | assert.equal(firstAccountBalance, 0); 20 | 21 | let secondAccountBalance = await token.balanceOf(accounts[1]); 22 | assert.equal(secondAccountBalance, 100); 23 | }); 24 | 25 | it("should throw an error when trying to transfer more than balance", async function() { 26 | let token = await BasicTokenMock.new(accounts[0], 100); 27 | try { 28 | let transfer = await token.transfer(accounts[1], 101); 29 | } catch(error) { 30 | return assertJump(error); 31 | } 32 | assert.fail('should have thrown before'); 33 | }); 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /test/MintableToken.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const assertJump = require('./helpers/assertJump'); 4 | var MintableToken = artifacts.require('../contracts/token/MintableToken.sol'); 5 | 6 | contract('Mintable', function (accounts) { 7 | let initialSupply = 79000000; 8 | let firstIterationMaxSupply = 350000; 9 | let totalSupplyLimit = 100000000; 10 | let token; 11 | 12 | beforeEach(async function () { 13 | token = await MintableToken.new( 14 | accounts[0], 15 | initialSupply, 16 | firstIterationMaxSupply, 17 | totalSupplyLimit, 18 | 0, 19 | [accounts[1], accounts[2]], 20 | 2 21 | ); 22 | }); 23 | 24 | it('should start with a totalSupplyLimit', async function () { 25 | assert.equal(await token.totalSupplyLimit(), totalSupplyLimit); 26 | }); 27 | 28 | it('should start with a totalSupply', async function () { 29 | assert.equal(await token.totalSupply(), initialSupply); 30 | }); 31 | 32 | it('should start with a correct balance', async function () { 33 | assert.equal(await token.balanceOf(accounts[0]), initialSupply); 34 | }); 35 | 36 | it('should start with a correct step blocks parameter', async function () { 37 | assert.equal(await token.numberOfBlocksBetweenSupplies(), 0); 38 | }); 39 | 40 | it('should start with a correct current iteration', async function () { 41 | assert.equal(await token.currentIteration(), 1); 42 | }); 43 | 44 | it('should start with a correct next mint after block > 0', async function () { 45 | assert.isTrue((await token.nextSupplyAfterBlock()) > 0); 46 | }); 47 | 48 | it('should create mint failed not owner', async function () { 49 | try { 50 | await token.mint(accounts[0], 100, {from: accounts[6]}); 51 | } catch (error) { 52 | return assertJump(error); 53 | } 54 | 55 | assert.fail('should have thrown before'); 56 | }); 57 | 58 | it('should create mint operation', async function () { 59 | await token.mint(accounts[0], 100, {from: accounts[0]}); 60 | 61 | assert.equal(await token.totalSupply(), initialSupply); 62 | assert.equal(await token.balanceOf(accounts[0]), initialSupply); 63 | }); 64 | 65 | it('should create minting and confirm all owners', async function () { 66 | await token.mint(accounts[0], 100, {from: accounts[1]}); 67 | await token.mint(accounts[0], 100, {from: accounts[2]}); 68 | 69 | assert.equal(await token.totalSupply(), initialSupply + 100); 70 | assert.equal(await token.balanceOf(accounts[0]), initialSupply + 100); 71 | assert.equal(await token.currentIteration(), 2); 72 | }); 73 | 74 | it('should correct amount of supply at each iteration', async function () { 75 | let currentySupply = firstIterationMaxSupply; 76 | let totalSupply = initialSupply; 77 | 78 | for (let iteration = 1; iteration < 107; iteration++) { 79 | if (currentySupply > (totalSupplyLimit - totalSupply)) { 80 | currentySupply = totalSupplyLimit - totalSupply; 81 | } 82 | 83 | assert.equal((await token.currentIterationSupplyLimit()).valueOf(), currentySupply); 84 | 85 | await token.mint(accounts[0], currentySupply, {from: accounts[1]}); 86 | await token.mint(accounts[0], currentySupply, {from: accounts[2]}); 87 | 88 | totalSupply += currentySupply; 89 | 90 | assert.equal((await token.totalSupply()).valueOf(), totalSupply); 91 | assert.equal((await token.balanceOf(accounts[0])).valueOf(), totalSupply); 92 | 93 | currentySupply = Math.floor((currentySupply * 9881653713) / 10000000000); 94 | } 95 | 96 | assert.equal((await token.totalSupply()).valueOf(), totalSupplyLimit); 97 | assert.equal((await token.balanceOf(accounts[0])).valueOf(), totalSupplyLimit); 98 | }); 99 | 100 | it('should mint failed amount of supply > max amount at iteration', async function () { 101 | let currentySupply = 500010e18; 102 | 103 | try { 104 | await token.mint(accounts[0], currentySupply, {from: accounts[0]}); 105 | } catch (error) { 106 | return assertJump(error); 107 | } 108 | 109 | assert.fail('should have thrown before'); 110 | }); 111 | }); 112 | -------------------------------------------------------------------------------- /test/OTNToken.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const assertJump = require('./helpers/assertJump'); 4 | var OTNToken = artifacts.require('../contracts/token/OTNToken.sol'); 5 | 6 | contract('OTNToken', function (accounts) { 7 | 8 | it('should start with initial supply', async function () { 9 | let owners = accounts.slice(0, 3); 10 | let token = await OTNToken.new( 11 | owners[0], // initial supply address 12 | owners.slice(1, 3), // owners 13 | ); 14 | 15 | let currentIteration = await token.currentIteration(); 16 | assert.equal(currentIteration, 1); 17 | 18 | let totalSupply = await token.totalSupply(); 19 | assert.equal(totalSupply, 79000000e18); 20 | 21 | let balance0 = await token.balanceOf(owners[0]); 22 | assert.equal(balance0, 79000000e18); 23 | }); 24 | 25 | it('should minting not allowed after deploy', async function () { 26 | let owners = accounts.slice(0, 3); 27 | let token = await OTNToken.new( 28 | owners[0], // initial supply address 29 | owners.slice(1, 3), // owners 30 | ); 31 | 32 | try { 33 | await token.mint(owners[0], 100); 34 | } catch (error) { 35 | return assertJump(error); 36 | } 37 | 38 | assert.fail('should have thrown before'); 39 | }); 40 | }); 41 | -------------------------------------------------------------------------------- /test/SafeMath.js: -------------------------------------------------------------------------------- 1 | const assertJump = require('./helpers/assertJump'); 2 | var SafeMathMock = artifacts.require("./helpers/SafeMathMock.sol"); 3 | 4 | contract('SafeMath', function(accounts) { 5 | 6 | let safeMath; 7 | 8 | before(async function() { 9 | safeMath = await SafeMathMock.new(); 10 | }); 11 | 12 | it("multiplies correctly", async function() { 13 | let a = 5678; 14 | let b = 1234; 15 | let mult = await safeMath.multiply(a, b); 16 | let result = await safeMath.result(); 17 | assert.equal(result, a*b); 18 | }); 19 | 20 | it("adds correctly", async function() { 21 | let a = 5678; 22 | let b = 1234; 23 | let add = await safeMath.add(a, b); 24 | let result = await safeMath.result(); 25 | 26 | assert.equal(result, a+b); 27 | }); 28 | 29 | it("subtracts correctly", async function() { 30 | let a = 5678; 31 | let b = 1234; 32 | let subtract = await safeMath.subtract(a, b); 33 | let result = await safeMath.result(); 34 | 35 | assert.equal(result, a-b); 36 | }); 37 | 38 | it("should throw an error if subtraction result would be negative", async function () { 39 | let a = 1234; 40 | let b = 5678; 41 | try { 42 | let subtract = await safeMath.subtract(a, b); 43 | } catch(error) { 44 | return assertJump(error); 45 | } 46 | assert.fail('should have thrown before'); 47 | }); 48 | 49 | it("should throw an error on addition overflow", async function() { 50 | let a = 115792089237316195423570985008687907853269984665640564039457584007913129639935; 51 | let b = 1; 52 | try { 53 | let add = await safeMath.add(a, b); 54 | } catch(error) { 55 | return assertJump(error); 56 | } 57 | assert.fail('should have thrown before'); 58 | }); 59 | 60 | it("should throw an error on multiplication overflow", async function() { 61 | let a = 115792089237316195423570985008687907853269984665640564039457584007913129639933; 62 | let b = 2; 63 | try { 64 | let multiply = await safeMath.multiply(a, b); 65 | } catch(error) { 66 | return assertJump(error); 67 | } 68 | assert.fail('should have thrown before'); 69 | }); 70 | 71 | }); 72 | -------------------------------------------------------------------------------- /test/Shareable.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const assertJump = require('./helpers/assertJump'); 4 | var ShareableMock = artifacts.require("./helpers/ShareableMock.sol"); 5 | 6 | contract('Shareable', function (accounts) { 7 | 8 | it('should construct fail with incorrect required = 1', async function () { 9 | try { 10 | await ShareableMock.new([ 11 | accounts[1], 12 | accounts[2], 13 | ], 1); 14 | } catch (error) { 15 | return assertJump(error); 16 | } 17 | 18 | assert.fail('should have thrown before'); 19 | 20 | }); 21 | 22 | it('should construct fail with incorrect owners', async function () { 23 | try { 24 | await ShareableMock.new([], 2); 25 | } catch (error) { 26 | return assertJump(error); 27 | } 28 | 29 | assert.fail('should have thrown before'); 30 | 31 | }); 32 | 33 | it('should construct fail with incorrect required', async function () { 34 | try { 35 | await ShareableMock.new([ 36 | accounts[1], 37 | accounts[2] 38 | ], 4); 39 | } catch (error) { 40 | return assertJump(error); 41 | } 42 | 43 | assert.fail('should have thrown before'); 44 | 45 | }); 46 | 47 | it('should construct with correct owners and number of sigs required', async function () { 48 | let requiredSigs = 3; 49 | let owners = accounts.slice(1, 3); 50 | let shareable = await ShareableMock.new(owners, requiredSigs); 51 | 52 | let required = await shareable.required(); 53 | assert.equal(required, requiredSigs); 54 | 55 | assert.equal(await shareable.getIsOwner(accounts[0]), true); 56 | assert.equal(await shareable.getIsOwner(owners[0]), true); 57 | assert.equal(await shareable.getIsOwner(owners[1]), true); 58 | assert.equal(await shareable.getIsOwner(accounts[6]), false); 59 | }); 60 | 61 | it('should only perform multisig function with enough sigs', async function () { 62 | let requiredSigs = 3; 63 | let owners = accounts.slice(1, 3); 64 | let shareable = await ShareableMock.new(owners, requiredSigs); 65 | let hash = 1234; 66 | 67 | let initCount = await shareable.count(); 68 | initCount = initCount.toString(); 69 | 70 | for (let i = 0; i < requiredSigs; i++) { 71 | await shareable.increaseCount(hash, {from: accounts[i]}); 72 | let count = await shareable.count(); 73 | if (i == requiredSigs - 1) { 74 | assert.equal(Number(initCount) + 1, count.toString()); 75 | } else { 76 | assert.equal(initCount, count.toString()); 77 | } 78 | } 79 | }); 80 | 81 | it('should require approval from different owners', async function () { 82 | let requiredSigs = 2; 83 | let owners = accounts.slice(1, 3); 84 | let shareable = await ShareableMock.new(owners, requiredSigs); 85 | let hash = 1234; 86 | 87 | let initCount = await shareable.count(); 88 | initCount = initCount.toString(); 89 | 90 | 91 | await shareable.increaseCount(hash); 92 | assert.equal(initCount, (await shareable.count()).toString()); 93 | 94 | try { 95 | await shareable.increaseCount(hash); 96 | } catch (error) { 97 | assert.equal(initCount, (await shareable.count()).toString()); 98 | 99 | return assertJump(error); 100 | } 101 | 102 | assert.fail('should have thrown before'); 103 | }); 104 | 105 | it('should reset sig count after operation is approved', async function () { 106 | let requiredSigs = 3; 107 | let owners = accounts.slice(1, 4); 108 | let shareable = await ShareableMock.new(owners, requiredSigs); 109 | let hash = 1234; 110 | 111 | let initCount = await shareable.count(); 112 | 113 | for (let i = 0; i < requiredSigs * 3; i++) { 114 | await shareable.increaseCount(hash, {from: accounts[i % 4]}); 115 | let count = await shareable.count(); 116 | if ((i % (requiredSigs)) == requiredSigs - 1) { 117 | initCount = Number(initCount) + 1; 118 | assert.equal(initCount, count); 119 | } else { 120 | assert.equal(initCount.toString(), count); 121 | } 122 | } 123 | }); 124 | 125 | it('should not perform multisig function after an owner revokes', async function () { 126 | let requiredSigs = 3; 127 | let owners = accounts.slice(1, 4); 128 | let shareable = await ShareableMock.new(owners, requiredSigs); 129 | let hash = 1234; 130 | 131 | let initCount = await shareable.count(); 132 | 133 | for (let i = 0; i < requiredSigs; i++) { 134 | if (i == 1) { 135 | await shareable.revoke(hash, {from: accounts[i - 1]}); 136 | } 137 | await shareable.increaseCount(hash, {from: accounts[i]}); 138 | let count = await shareable.count(); 139 | assert.equal(initCount.toString(), count); 140 | } 141 | }); 142 | 143 | it('should delete pending operation if all revokes', async function () { 144 | let requiredSigs = 3; 145 | let owners = accounts.slice(1, 3); 146 | let shareable = await ShareableMock.new(owners, requiredSigs); 147 | let hash = 1234; 148 | 149 | await shareable.increaseCount(hash, {from: accounts[0]}); 150 | assert.equal(await shareable.hasConfirmed(hash, accounts[0]), true); 151 | await shareable.increaseCount(hash, {from: accounts[1]}); 152 | assert.equal(await shareable.hasConfirmed(hash, accounts[1]), true); 153 | await shareable.revoke(hash, {from: accounts[1]}); 154 | assert.equal(await shareable.hasConfirmed(hash, accounts[1]), false); 155 | await shareable.revoke(hash, {from: accounts[0]}); 156 | assert.equal(await shareable.hasOperation(hash), false); 157 | }); 158 | 159 | it('should add new owner with quorum', async function () { 160 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 161 | 162 | await shareable.addOwner(accounts[5]); 163 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[0]), true); 164 | 165 | await shareable.addOwner(accounts[5], {from: accounts[1]}); 166 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[1]), true); 167 | 168 | await shareable.addOwner(accounts[5], {from: accounts[2]}); 169 | 170 | assert.equal(await shareable.getIsOwner(accounts[5], {from: accounts[1]}), true); 171 | }); 172 | 173 | it('should add new owner failed not owner', async function () { 174 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 175 | 176 | try { 177 | await shareable.addOwner(accounts[5], {from: accounts[5]}); 178 | } catch (error) { 179 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[5]), false); 180 | 181 | return assertJump(error); 182 | } 183 | 184 | assert.fail('should have thrown before'); 185 | }); 186 | 187 | it('should remove owner with quorum', async function () { 188 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 189 | await shareable.addOwner(accounts[5], {from: accounts[0]}); 190 | await shareable.addOwner(accounts[5], {from: accounts[1]}); 191 | await shareable.addOwner(accounts[5], {from: accounts[2]}); 192 | 193 | assert.equal(await shareable.getIsOwner(accounts[5], {from: accounts[0]}), true); 194 | 195 | await shareable.removeOwner(accounts[0], {from: accounts[5]}); 196 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForRemovingOwner(accounts[0]), accounts[5]), true); 197 | await shareable.removeOwner(accounts[0], {from: accounts[2]}); 198 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForRemovingOwner(accounts[0]), accounts[2]), true); 199 | await shareable.removeOwner(accounts[0], {from: accounts[1]}); 200 | assert.equal(await shareable.getIsOwner(accounts[0], {from: accounts[5]}), false); 201 | }); 202 | 203 | it('should remove owner failed not owner', async function () { 204 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 205 | await shareable.addOwner(accounts[5], {from: accounts[0]}); 206 | await shareable.addOwner(accounts[5], {from: accounts[1]}); 207 | await shareable.addOwner(accounts[5], {from: accounts[2]}); 208 | 209 | assert.equal(await shareable.getIsOwner(accounts[5], {from: accounts[0]}), true); 210 | 211 | try { 212 | await shareable.removeOwner(accounts[0], {from: accounts[6]}); 213 | } catch (error) { 214 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForRemovingOwner(accounts[0]), accounts[1]), false); 215 | 216 | return assertJump(error); 217 | } 218 | 219 | assert.fail('should have thrown before'); 220 | }); 221 | 222 | it('should add owner with quorum and revoke', async function () { 223 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 224 | await shareable.addOwner(accounts[5], {from: accounts[0]}); 225 | await shareable.addOwner(accounts[5], {from: accounts[1]}); 226 | 227 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[1]), true); 228 | 229 | await shareable.revoke(await shareable.getHashForAddingOwner(accounts[5]), {from: accounts[1]}); 230 | 231 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[1]), false); 232 | }); 233 | 234 | it('should add owner with quorum and revoke failed not owner', async function () { 235 | let shareable = await ShareableMock.new(accounts.slice(1, 3), 3); 236 | await shareable.addOwner(accounts[5], {from: accounts[0]}); 237 | await shareable.addOwner(accounts[5], {from: accounts[1]}); 238 | 239 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[1]), true); 240 | 241 | try { 242 | await shareable.revoke(await shareable.getHashForAddingOwner(accounts[5]), {from: accounts[6]}); 243 | } catch (error) { 244 | assert.equal(await shareable.hasConfirmed(await shareable.getHashForAddingOwner(accounts[5]), accounts[6]), false); 245 | 246 | return assertJump(error); 247 | } 248 | 249 | assert.fail('should have thrown before'); 250 | }); 251 | 252 | it('should change required', async function () { 253 | let shareable = await ShareableMock.new([ 254 | accounts[1], 255 | accounts[2], 256 | ], 3); 257 | 258 | assert.equal(await shareable.required(), 3); 259 | 260 | await shareable.changeRequirement(2, {from: accounts[0]}); 261 | assert.equal(await shareable.required(), 3); 262 | 263 | await shareable.changeRequirement(2, {from: accounts[1]}); 264 | assert.equal(await shareable.required(), 3); 265 | 266 | await shareable.changeRequirement(2, {from: accounts[2]}); 267 | assert.equal(await shareable.required(), 2); 268 | }); 269 | 270 | it('should failed change required > ownersCount', async function () { 271 | let shareable = await ShareableMock.new([ 272 | accounts[1], 273 | accounts[2], 274 | ], 3); 275 | 276 | try { 277 | await shareable.changeRequirement(4, {from: accounts[0]}); 278 | } catch (error) { 279 | return assertJump(error); 280 | } 281 | 282 | assert.fail('should have thrown before'); 283 | }); 284 | 285 | it('should failed change required not owner', async function () { 286 | let shareable = await ShareableMock.new([ 287 | accounts[1], 288 | accounts[2], 289 | ], 3); 290 | 291 | await shareable.changeRequirement(2, {from: accounts[0]}); 292 | 293 | try { 294 | await shareable.changeRequirement(2, {from: accounts[3]}); 295 | } catch (error) { 296 | return assertJump(error); 297 | } 298 | 299 | assert.fail('should have thrown before'); 300 | }); 301 | 302 | it('should remove owner and clear pending operation list', async function () { 303 | let shareable = await ShareableMock.new([ 304 | accounts[1], 305 | accounts[2] 306 | ], 2); 307 | await shareable.removeOwner(accounts[2], {from: accounts[0]}); 308 | await shareable.addOwner(accounts[3], {from: accounts[0]}); 309 | assert.equal(await shareable.hasOperation(await shareable.getHashForAddingOwner(accounts[3]), {from: accounts[0]}), true); 310 | assert.equal(await shareable.hasOperation(await shareable.getHashForRemovingOwner(accounts[2]), {from: accounts[0]}), true); 311 | 312 | await shareable.removeOwner(accounts[2], {from: accounts[1]}); 313 | 314 | assert.equal(await shareable.getIsOwner(accounts[2], {from: accounts[0]}), false); 315 | assert.equal(await shareable.hasOperation(await shareable.getHashForAddingOwner(accounts[3]), {from: accounts[0]}), false); 316 | }); 317 | }); 318 | -------------------------------------------------------------------------------- /test/StandardToken.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const assertJump = require('./helpers/assertJump'); 4 | var StandardTokenMock = artifacts.require('./helpers/StandardTokenMock.sol'); 5 | 6 | contract('StandardToken', function(accounts) { 7 | 8 | it('should return the correct totalSupply after construction', async function() { 9 | let token = await StandardTokenMock.new(accounts[0], 100); 10 | let totalSupply = await token.totalSupply(); 11 | 12 | assert.equal(totalSupply, 100); 13 | }); 14 | 15 | it('should return the correct allowance amount after approval', async function() { 16 | let token = await StandardTokenMock.new(); 17 | await token.approve(accounts[1], 100); 18 | let allowance = await token.allowance(accounts[0], accounts[1]); 19 | 20 | assert.equal(allowance, 100); 21 | }); 22 | 23 | it('should return correct balances after transfer', async function() { 24 | let token = await StandardTokenMock.new(accounts[0], 100); 25 | await token.transfer(accounts[1], 100); 26 | let balance0 = await token.balanceOf(accounts[0]); 27 | assert.equal(balance0, 0); 28 | 29 | let balance1 = await token.balanceOf(accounts[1]); 30 | assert.equal(balance1, 100); 31 | }); 32 | 33 | it('should throw an error when trying to transfer more than balance', async function() { 34 | let token = await StandardTokenMock.new(accounts[0], 100); 35 | try { 36 | await token.transfer(accounts[1], 101); 37 | } catch(error) { 38 | return assertJump(error); 39 | } 40 | assert.fail('should have thrown before'); 41 | }); 42 | 43 | it('should return correct balances after transfering from another account', async function() { 44 | let token = await StandardTokenMock.new(accounts[0], 100); 45 | await token.approve(accounts[1], 100); 46 | await token.transferFrom(accounts[0], accounts[2], 100, {from: accounts[1]}); 47 | 48 | let balance0 = await token.balanceOf(accounts[0]); 49 | assert.equal(balance0, 0); 50 | 51 | let balance1 = await token.balanceOf(accounts[2]); 52 | assert.equal(balance1, 100); 53 | 54 | let balance2 = await token.balanceOf(accounts[1]); 55 | assert.equal(balance2, 0); 56 | }); 57 | 58 | it('should throw an error when trying to transfer more than allowed', async function() { 59 | let token = await StandardTokenMock.new(); 60 | await token.approve(accounts[1], 99); 61 | try { 62 | await token.transferFrom(accounts[0], accounts[2], 100, {from: accounts[1]}); 63 | } catch (error) { 64 | return assertJump(error); 65 | } 66 | assert.fail('should have thrown before'); 67 | }); 68 | 69 | }); 70 | -------------------------------------------------------------------------------- /test/helpers/BasicTokenMock.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import '../../contracts/token/BasicToken.sol'; 5 | 6 | 7 | // mock class using BasicToken 8 | contract BasicTokenMock is BasicToken { 9 | 10 | function BasicTokenMock(address initialAccount, uint initialBalance) { 11 | balances[initialAccount] = initialBalance; 12 | totalSupply = initialBalance; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /test/helpers/SafeMathMock.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import '../../contracts/math/SafeMath.sol'; 5 | 6 | 7 | contract SafeMathMock { 8 | uint public result; 9 | 10 | function multiply(uint a, uint b) { 11 | result = SafeMath.mul(a, b); 12 | } 13 | 14 | function subtract(uint a, uint b) { 15 | result = SafeMath.sub(a, b); 16 | } 17 | 18 | function add(uint a, uint b) { 19 | result = SafeMath.add(a, b); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /test/helpers/ShareableMock.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import "../../contracts/ownership/Shareable.sol"; 5 | 6 | 7 | contract ShareableMock is Shareable { 8 | 9 | uint public count = 0; 10 | 11 | function ShareableMock(address[] _owners, uint _required) Shareable(_owners, _required) { 12 | 13 | } 14 | 15 | function increaseCount(bytes32 action) onlyManyOwners(action) { 16 | count = count + 1; 17 | } 18 | 19 | function getIsOwner(address _owner) constant returns (bool) { 20 | return isOwner[_owner]; 21 | } 22 | 23 | function hasOperation(bytes32 action) constant returns (bool) { 24 | if (pendings[action].index > 0 && pendings[action].yetNeeded > 0 && !ownersCleaned(action)) { 25 | for (uint256 i = 0; i < pendingsIndex.length; i++) { 26 | if (pendingsIndex[i] == action) { 27 | return true; 28 | } 29 | } 30 | } 31 | 32 | return false; 33 | } 34 | 35 | function ownersCleaned(bytes32 action) constant returns (bool) { 36 | var pending = pendings[action]; 37 | 38 | uint256 cnt = 0; 39 | for (uint256 i = 0; i < owners.length; i++) { 40 | if (pending.ownersDone[owners[i]]) { 41 | cnt++; 42 | } 43 | } 44 | 45 | return cnt == 0; 46 | } 47 | 48 | function getHashForAddingOwner(address owner) constant returns (bytes32) { 49 | return keccak256("add-owner", owner); 50 | } 51 | 52 | function getHashForRemovingOwner(address owner) constant returns (bytes32) { 53 | return keccak256("remove-owner", owner); 54 | } 55 | 56 | function getOwners() constant returns (address[]) { 57 | return owners; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /test/helpers/StandardTokenMock.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.11; 2 | 3 | 4 | import '../../contracts/token/StandardToken.sol'; 5 | 6 | 7 | // mock class using StandardToken 8 | contract StandardTokenMock is StandardToken { 9 | 10 | function StandardTokenMock(address initialAccount, uint initialBalance) { 11 | balances[initialAccount] = initialBalance; 12 | totalSupply = initialBalance; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /test/helpers/assertJump.js: -------------------------------------------------------------------------------- 1 | module.exports = function(error) { 2 | assert.isAbove(error.message.search('invalid opcode'), -1, 'Invalid opcode error must be returned'); 3 | } 4 | -------------------------------------------------------------------------------- /truffle.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | networks: { 3 | development: { 4 | network_id: "*", // Match any network id 5 | host: "localhost", 6 | port: 8545, 7 | } 8 | }, 9 | mocha: { 10 | useColors: true 11 | } 12 | }; 13 | --------------------------------------------------------------------------------