├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── contracts ├── Airdrop.sol ├── PayConstants.sol ├── PayProtocol.sol ├── misc │ ├── BytesHelper.sol │ ├── EIPSign.sol │ ├── Migrations.sol │ └── SignCheck.sol └── zep │ └── ECRecovery.sol ├── migrations └── 1_initial_migration.js ├── package-lock.json ├── package.json ├── pay.js ├── index.js ├── package-lock.json ├── package.json └── src │ ├── sign.js │ └── transfer.js ├── scripts └── ganache-cli.sh ├── test ├── helpers │ └── assertErrors.js └── transfers.js ├── truffle-config.js └── truffle.js /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | -------------------------------------------------------------------------------- /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 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pay protocol 2 | (provisional name) 3 | 4 | **Everything in this repo is a research exercise on game theory and governance.** 5 | 6 | ## Mission statement: fixing the transition to a cashless world 7 | 8 | The evolution to a 'cashless society' is the biggest threat to the sovereign 9 | individual in centuries. Cash is clunky, I hate using cash, and in fact I never do, 10 | but I'm scared to death at the possibility of **not being able** to use it when I need to. 11 | Cash is anonymous, hardly traceable and allows free trade between free humans. 12 | 13 | The eradication of the physical form of money will convert money in a purely 14 | information network. Information can be censored. 15 | 16 | Censoring speech is a horrible thing that shouldn't happen in advanced societies 17 | but unfortunately it happens in every country in the world, every day. 18 | 19 | When money is just information, and therefore speech, censoring someone means 20 | a person could be left in the street to starve. 21 | 22 | Card networks and the banking system are really centralized to the point that 23 | a state actor can shut down anyone not playing by their rules or that they might consider 24 | a threat. 25 | 26 | Assuming the transition to money as just information is happening it is really important 27 | than the widely used money is money which is hardly censored and completely sovereign. 28 | 29 | Incentivizing the transition to getting the mainstream to use p2p money is the only 30 | purpose of this effort. 31 | 32 | ## Why aren't we using crypto as money today 33 | 34 | - **Network scalability**: Do we pay for coffee on or off-chain? Do hundreds of thousands 35 | of computers world wide need to process every transaction happening in the world economy? 36 | What is the 'correct' tradeoff between security and usability (in terms of fees) 37 | 38 | - **Volatility**: High volatily makes crypto a really poor unit of account for day to day use. 39 | A currency that is stable to people's spending basket is needed for crypto to flourish beyond 40 | speculation and long term store of value. 41 | 42 | - **Network effect**: The classic chicken-and-egg problem. No incentive to use it until people you 43 | transact with use it and accept it too. Once a threshold is passed, the network effect will do the 44 | job on its own. But some incentive is needed to get the ball rolling. 45 | 46 | - **UX**: Using crypto sucks and it is only used by true freedom fighters or people who are financially 47 | interested in the speculation opportunity. History shows people use whatever is best and that has 48 | nothing to do with values. The only chance is to make using crypto money a better experience than 49 | Apple Pay, the bar is high. 50 | 51 | ## Solutions 52 | 53 | I'm afraid I have nothing to offer on the **scalability** problem. I'm happy people way more intelligent 54 | than myself are working on it and multiple solutions with different tradeoffs will be availble to be used. 55 | 56 | The **volatility** problem is being solved by the brilliant [Maker team](https://makerdao.com) who are 57 | building the [Dai](https://vimeo.com/247715549) stablecoin, which is a super collateralized coin that holds 58 | a trustless peg to 1 USD. Significant improvements need to happen for Dai to become the world's currency 59 | but I consider this a solved problem being worked on by a world class team engineers and economisms. 60 | 61 | This protocol attempts to solve the last two, introducing a governance token to try to kickstart the **network 62 | effect** (no ICO needed to kickstart the token supply) and save the user acquisition costs by using tokenomics. 63 | 64 | Also presents a significant **UX** improvement by allowing Dai (and any ERC20/777 token actually) transfers without 65 | ownining any ether, as well as the cheapest way to transact with tokens in the Ethereum network. The protocol allows 66 | to pay transfer fees in whatever token the user is transacting with. All these while end users being the 67 | custodial of all their crypto money, which no third party can take away from them. 68 | 69 | Token holders will govern a DAO that will own a significant part of the initial token supply. By voting, 70 | DAO token holders should grant tokens to stakeholders that built or will build amazing user experiences for 71 | using crypto payments everywhere using the protocol. Client implementations of the protocol have the opportunity 72 | to charge transaction fees on transfer settlement for users that don't want to own ether. 73 | 74 | ## Technical overview 75 | 76 | At the technical level there are two main features of the protocol. 77 | 78 | - An incentivization layer that mints PAY tokens to reward protocol usage. 79 | - A token transferring and accounting layer that allows for super cheap token transfers. 80 | 81 | ### Token transferring layer 82 | 83 | The token transferring layer: 84 | 85 | - Allows token owners to pay for transaction fees using any token, by incentivizing other entities to settle token transfers in exchange for a fee. This effectively allows users to own and use their tokens without ever needing any ETH. 86 | - By keeping its own internal accounting of account balances in every token, it allows for really gas optimized token transfers. 87 | 88 | ## Team 89 | 90 | There will be no team. Fortunately no advisors either. 91 | 92 | The protocol shouldn't need a team to succeed. 93 | 94 | This protocol should be completely governed by a DAO that incentivizes stakeholders to 95 | make it successful. 96 | 97 | No ICO nor any type of crowdfunding should be needed to bootstrap the network. 98 | 99 | ## Troubleshooting 100 | 101 | Until [aragon-core#160](https://github.com/aragon/aragon-core/pull/160) is 102 | properly fixed and merged, to compile manually loose versions of dependency 103 | contracts by finding and replacing `0.4.15` for `^0.4.15` in `node_modules/**/*.sol` 104 | 105 | -------------------------------------------------------------------------------- /contracts/Airdrop.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | import "@aragon/apps-token-manager/contracts/TokenManager.sol"; 4 | import "@aragon/core/contracts/zeppelin/token/ERC20.sol"; 5 | 6 | contract Airdrop { 7 | MiniMeToken public ANT = MiniMeToken(0x1234); // TODO: Set ANT mainnet addr 8 | address ETH = address(0); // intentionally 0, just to keep balances 9 | 10 | // involve more projects? w more tokens? 11 | // St benefit to only allow ant and eth in terms of our own token utility 12 | // Mt-lt benefit to make it a community thing 100% 13 | 14 | uint256 constant public ANT_RATE = 100; // tokens gotten per wei of token 15 | uint256 constant public ETH_RATE = 5000; 16 | uint256 constant public DAO_TOKENS = 50; // On mint, DAO ends with x% of supply 17 | uint256 constant PERCENT = 100; 18 | 19 | uint256 constant public END = 123456; // TODO: Set timestamp for airdrop end 20 | 21 | uint256 tbm; // to be minted 22 | bool minted; 23 | 24 | address public daoVault; 25 | uint256 public antSnapshotBlock; 26 | 27 | TokenManager manager; 28 | ERC20 token; 29 | // token -> holder -> balance 30 | mapping (address => mapping (address => uint256)) balances; 31 | 32 | event Drop(address indexed who, uint256 value); 33 | 34 | modifier opened { require(isOpen()); _; } 35 | modifier closed { require(!isOpen()); _; } 36 | 37 | function Airdrop(TokenManager _manager, address _daoVault, uint256 _antSnapshot) { 38 | require(address(_daoVault) != 0); 39 | 40 | manager = _manager; 41 | daoVault = _daoVault; 42 | antSnapshotBlock = _antSnapshot; 43 | token = ERC20(manager.token()); 44 | 45 | require(token.totalSupply() == 0); 46 | // require(token != address(0)); // implicit in above check 47 | } 48 | 49 | function () payable { 50 | if (isOpen()) { 51 | if (msg.value == 0) antPing(); 52 | else ethDeposit(); 53 | } else withdraw(msg.sender); 54 | } 55 | 56 | function ethDeposit() opened payable { 57 | balances[ETH][msg.sender] += msg.value; 58 | require(balances[ETH][msg.sender] >= msg.value); 59 | 60 | giveTokens(msg.sender, ETH_RATE * msg.value); 61 | } 62 | 63 | function antPing() opened { 64 | // dont allow same block, to avoid token swaps on snapshot block 65 | require(blockN() > antSnapshotBlock); 66 | require(balances[ANT][msg.sender] == 0); // hasn't pinged before 67 | 68 | uint256 amount = ANT.balanceOfAt(msg.sender, antSnapshotBlock); 69 | balances[ANT][msg.sender] = amount; // mark sender pinged 70 | 71 | giveTokens(msg.sender, ANT_RATE * amount); 72 | } 73 | 74 | function withdraw(address who) closed { 75 | if (!minted) mint(); 76 | 77 | securityWithdraw(who); 78 | 79 | uint256 tokenBalance = balances[token][who]; 80 | balances[token][who] = 0; 81 | 82 | if (tokenBalance > 0) require(token.transfer(who, tokenBalance)); 83 | } 84 | 85 | // in case mint() fails, make sure 'real' funds dont get locked in the contract 86 | function securityWithdraw(address who) closed { 87 | uint256 ethBalance = balances[ETH][who]; 88 | 89 | balances[ETH][who] = 0; 90 | 91 | if (ethBalance > 0) who.transfer(ethBalance); 92 | } 93 | 94 | function giveTokens(address who, uint256 drop) internal { 95 | balances[token][who] += drop; 96 | require(balances[token][who] >= drop); // check overflow 97 | 98 | tbm += drop; // add to mint count 99 | require(tbm >= drop); // check overflow 100 | 101 | Drop(who, drop); 102 | } 103 | 104 | function mint() internal { 105 | assert(!minted && !isOpen()); 106 | minted = true; 107 | 108 | // Formula to get how many tokens the DAO has to get, to respect %s 109 | // AUDIT: this formula is correct 110 | uint256 daoTokens = tbm / (1e18 - (DAO_TOKENS * 1e18 / PERCENT)) - tbm; 111 | 112 | giveTokens(daoVault, daoTokens); 113 | manager.mint(this, tbm + daoTokens); 114 | } 115 | 116 | function isOpen() public view returns (bool) { return time() <= END; } 117 | 118 | function time() internal view returns (uint64) { return uint64(now); } 119 | 120 | function blockN() internal view returns (uint256) { return block.number; } 121 | } 122 | -------------------------------------------------------------------------------- /contracts/PayConstants.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | contract PayConstants { 4 | // EIP712 5 | 6 | // TODO: UNCOMMENT DEPS ARRAY 7 | bytes32 constant public SCHEMA_HASH = keccak256('address protocol', 'address token', 'address from', 'address to', 'uint256 value', 'uint256 expires', 'bool pull', 'bool push', 'bytes32 depsHash'); 8 | address constant public TO_SENDER = address(-1); // 0xffff... 9 | 10 | bytes32 constant MINT_HOUSE_ROLE = bytes32(1); 11 | } 12 | -------------------------------------------------------------------------------- /contracts/PayProtocol.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | import "./PayConstants.sol"; 4 | 5 | import "./misc/SignCheck.sol"; 6 | import "./misc/BytesHelper.sol"; 7 | 8 | import "@aragon/core/contracts/apps/App.sol"; 9 | import "@aragon/apps-token-manager/contracts/TokenManager.sol"; 10 | import "@aragon/core/contracts/zeppelin/token/ERC20.sol"; 11 | 12 | contract PayProtocol is App, SignCheck, PayConstants { 13 | using BytesHelper for bytes; 14 | 15 | struct Account { 16 | mapping (address => uint256) balance; // token -> balance (held in contract) 17 | } 18 | // TODO: Solve when contract gets an airdrop with another token addr 19 | //(How REP token re-deploy situation would have been solved) 20 | 21 | // SYSTEM STATE 22 | 23 | // accts cannot be transferred, but using ints as ids require acct creation 24 | // and can is vulnerable to chain reorg attacks to take over 25 | mapping (address => Account) accounts; 26 | mapping (bytes32 => bool) usedHashes; 27 | uint256 public tbm; // to be minted 28 | 29 | // GOVERNANCE 30 | 31 | TokenManager manager; 32 | ERC20 public govToken; 33 | 34 | uint256 public maxMintReward = 10 ** 18; // 1 token 35 | 36 | event LogTransfer( 37 | address indexed token, 38 | address indexed from, address indexed to, // TODO: Decide on style experiment 39 | uint256 value, 40 | bool pull, bool push, 41 | bytes32 hash 42 | ); 43 | 44 | /* 45 | function PayProtocol(TokenManager _manager) { 46 | manager = _manager; 47 | govToken = ERC20(manager.token()); 48 | } 49 | */ 50 | 51 | // Deposit in contract: when from == to, pull = true, push = false, value is deposited 52 | // Withdraw from contract: when from == to, pull = false, push = true, value is withdrawn 53 | // TODO: Add chainId to exec 54 | function exec(ERC20 token, address from, address to, uint256 value, uint64 expires, bool pull, bool push, bytes32[] deps, bytes sig) public { 55 | bytes32 hash = getHash(token, from, to, value, expires, pull, push, deps); 56 | require(from == getSigner(hash, sig) && from != address(0)); 57 | require(expires > time()); 58 | require(!usedHashes[hash]); 59 | 60 | // A tx can execute only if a previous transfer occurred 61 | for (uint i = 0; i < deps.length; i++) { 62 | require(usedHashes[deps[i]]); 63 | } 64 | 65 | usedHashes[hash] = true; 66 | 67 | if (to == TO_SENDER) to = msg.sender; 68 | 69 | // added before transfer to avoid code duplication. revoked if reverts 70 | LogTransfer(token, from, to, value, pull, push, hash); 71 | 72 | if (pull && push) { 73 | // Transfer occurs directly on token and we finish 74 | require(token.transferFrom(from, to, value)); 75 | return; 76 | } 77 | 78 | // Credit either from token or contract balance 79 | if (pull) { 80 | require(token.transferFrom(from, this, value)); 81 | } else { 82 | require(accounts[from].balance[token] >= value); 83 | accounts[from].balance[token] -= value; 84 | } 85 | 86 | // Debit either in the token or contract balance 87 | if (push) { 88 | require(token.transfer(to, value)); 89 | } else { 90 | accounts[to].balance[token] += value; 91 | require(accounts[to].balance[token] >= value); // overflow check 92 | } 93 | } 94 | 95 | // TODO: Batch: check gas optimization by having a packed bytes payload 96 | // TODO: Batch: study gas cost 97 | // TODO: Make deps and sigs a nested array when solidity supports it (solc new ABI decoder) 98 | function batch( 99 | ERC20[] tokens, 100 | address[] from, 101 | address[] to, 102 | uint256[] value, 103 | uint64[] expires, 104 | bool[] pull, 105 | bool[] push, 106 | uint256[] depsLengths, 107 | bytes32[] flatDeps, 108 | uint256[] sigLengths, 109 | bytes flatSigs 110 | ) public { 111 | // TODO: Is checking length integrity needed? Accessing out of bounds reverts? 112 | 113 | // Done outside this function at the expense of having more loops. 114 | // Workaround 'stack too deep' solc error 115 | bytes32[][] memory unflattenedDeps = unflattenDeps(flatDeps, depsLengths); 116 | bytes[] memory unflattedSigs = unflattenSigs(flatSigs, sigLengths); 117 | 118 | for (uint i = 0; i < tokens.length; i++) { 119 | exec( 120 | tokens[i], 121 | from[i], 122 | to[i], 123 | value[i], 124 | expires[i], 125 | pull[i], 126 | push[i], 127 | unflattenedDeps[i], 128 | unflattedSigs[i] 129 | ); 130 | } 131 | } 132 | 133 | function mint(address coinbase) public { 134 | uint balance = govToken.balanceOf(this); 135 | // Minting reward is a function of how needed the minting is 136 | // (measured by how many tokens need to be minted relative to balance) 137 | uint reward = maxMintReward * tbm / (tbm + balance); 138 | accounts[coinbase].balance[govToken] += reward; 139 | require(accounts[coinbase].balance[govToken] >= reward); // overflow check 140 | 141 | uint totalMint = reward + tbm; 142 | tbm = 0; 143 | 144 | manager.mint(this, totalMint); 145 | 146 | LogTransfer(govToken, address(0), coinbase, reward, false, false, bytes32(0)); 147 | } 148 | 149 | function balance(address token, address holder) public view returns (uint256) { 150 | return accounts[holder].balance[token]; 151 | } 152 | 153 | function unflattenDeps(bytes32[] flatDeps, uint[] lengths) internal returns (bytes32[][]) { 154 | // TODO: check array bounds 155 | bytes32[][] memory unflattened = new bytes32[][](lengths.length); 156 | uint256 needle = 0; 157 | for (uint256 i = 0; i < lengths.length; i++) { 158 | bytes32[] memory deps = new bytes32[](lengths[i]); 159 | for (uint256 j = 0; j < lengths[i]; j++) { 160 | deps[j] = flatDeps[needle + j]; 161 | } 162 | needle += lengths[i]; 163 | unflattened[i] = deps; 164 | } 165 | 166 | return unflattened; 167 | } 168 | 169 | function unflattenSigs(bytes flatSigs, uint[] lengths) internal returns (bytes[]) { 170 | bytes[] memory unflattened = new bytes[](lengths.length); 171 | uint256 needle = 0; 172 | for (uint256 i = 0; i < lengths.length; i++) { 173 | unflattened[i] = flatSigs.slice(needle, lengths[i]); 174 | needle += lengths[i]; 175 | } 176 | 177 | return unflattened; 178 | } 179 | 180 | function getHash(address token, address from, address to, uint256 value, uint256 expires, bool pull, bool push, bytes32[] deps) view public returns (bytes32) { 181 | return keccak256(SCHEMA_HASH, keccak256(this, token, from, to, value, expires, pull, push, keccak256(deps))); 182 | } 183 | 184 | function time() internal view returns (uint64) { return uint64(now); } 185 | } 186 | -------------------------------------------------------------------------------- /contracts/misc/BytesHelper.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | library BytesHelper { 4 | function slice(bytes memory src, uint256 start, uint256 len) internal returns (bytes ret) { 5 | if (len == 0 || start + len > src.length - 1) return new bytes(0); 6 | 7 | uint256 srcPtr; 8 | uint256 retPtr; 9 | 10 | assembly { 11 | ret := mload(0x40) // free mem pointer 12 | mstore(0x40, add(ret, add(0x20, len))) // length byte + all bytes 13 | 14 | mstore(ret, len) // store array length in memory position 15 | mstore(retPtr, add(ret, 0x20)) // save pointer to bytes content 16 | mstore(srcPtr, add(src, 0x20)) 17 | } 18 | 19 | memcpy(retPtr, srcPtr, len); 20 | } 21 | 22 | // From https://github.com/Arachnid/solidity-stringutils/blob/master/strings.sol 23 | function memcpy(uint dest, uint src, uint len) private { 24 | // Copy word-length chunks while possible 25 | for(; len >= 32; len -= 32) { 26 | assembly { 27 | mstore(dest, mload(src)) 28 | } 29 | dest += 32; 30 | src += 32; 31 | } 32 | 33 | // Copy remaining bytes 34 | uint mask = 256 ** (32 - len) - 1; 35 | assembly { 36 | let srcpart := and(mload(src), not(mask)) 37 | let destpart := and(mload(dest), mask) 38 | mstore(dest, or(destpart, srcpart)) 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /contracts/misc/EIPSign.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | contract ISignHolder { 4 | /** 5 | * @notice Returns whether `who` ever sign `hash`. Even if she cancelled, this will return true. 6 | */ 7 | function signed(address who, bytes32 hash) public view returns (bool); 8 | 9 | /** 10 | * @notice Returns if `who` signed `hash` and hasnt cancelled the signature. 11 | */ 12 | function isSigned(address who, bytes32 hash) public view returns (bool); 13 | } 14 | 15 | contract SignHolder is ISignHolder { 16 | mapping (address => mapping (bytes32 => bool)) signatures; 17 | mapping (address => mapping (bytes32 => bool)) cancels; 18 | 19 | function sign(bytes32 hash) external { signatures[msg.sender][hash] = true; } 20 | function cancel(bytes32 hash) external { cancels[msg.sender][hash] = true; } 21 | 22 | function signed(address who, bytes32 hash) public view returns (bool) { 23 | return signatures[who][hash]; 24 | } 25 | 26 | function isSigned(address who, bytes32 hash) public view returns (bool) { 27 | return signatures[who][hash] && !cancels[who][hash]; 28 | } 29 | } 30 | 31 | contract EIPSign { 32 | ISignHolder constant SIGN_HOLDER = ISignHolder(0x1234); // TODO: Address 33 | 34 | function check(address who, bytes32 hash) internal view returns (bool) { 35 | if (msg.sender == who) return true; // Implicit authorization by sender 36 | return SIGN_HOLDER.signed(who, hash); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /contracts/misc/Migrations.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.17; 2 | 3 | contract Migrations { 4 | address public owner; 5 | uint public last_completed_migration; 6 | 7 | modifier restricted() { 8 | if (msg.sender == owner) _; 9 | } 10 | 11 | function Migrations() public { 12 | owner = msg.sender; 13 | } 14 | 15 | function setCompleted(uint completed) public restricted { 16 | last_completed_migration = completed; 17 | } 18 | 19 | function upgrade(address new_address) public restricted { 20 | Migrations upgraded = Migrations(new_address); 21 | upgraded.setCompleted(last_completed_migration); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /contracts/misc/SignCheck.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | import "./EIPSign.sol"; 4 | import "../zep/ECRecovery.sol"; 5 | 6 | contract SignCheck is EIPSign, ECRecovery { 7 | /** 8 | * @dev Checks signature with ecrecover and EIPx 9 | * @return Signer address or address(0) if signature is not correct. 10 | */ 11 | function getSigner(bytes32 hash, bytes sig) internal view returns (address) { 12 | if (sig.length != 20) return recover(hash, sig); 13 | address signer; 14 | assembly { signer := add(sig, 0x20) } 15 | 16 | return check(signer, hash) ? signer : address(0); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /contracts/zep/ECRecovery.sol: -------------------------------------------------------------------------------- 1 | pragma solidity 0.4.18; 2 | 3 | contract ECRecovery { 4 | 5 | /** 6 | * @dev Recover signer address from a message by using his signature 7 | * @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address. 8 | * @param sig bytes signature, the signature is generated using web3.eth.sign() 9 | */ 10 | function recover(bytes32 hash, bytes sig) public pure returns (address) { 11 | bytes32 r; 12 | bytes32 s; 13 | uint8 v; 14 | 15 | //Check the signature length 16 | if (sig.length != 65) { 17 | return (address(0)); 18 | } 19 | 20 | // Divide the signature in r, s and v variables 21 | assembly { 22 | r := mload(add(sig, 32)) 23 | s := mload(add(sig, 64)) 24 | v := byte(0, mload(add(sig, 96))) 25 | } 26 | 27 | // Version of signature should be 27 or 28, but 0 and 1 are also possible versions 28 | if (v < 27) { 29 | v += 27; 30 | } 31 | 32 | // If the version is correct return the signer address 33 | if (v != 27 && v != 28) { 34 | return (address(0)); 35 | } else { 36 | return ecrecover(hash, v, r, s); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- 1 | var Migrations = artifacts.require("./Migrations.sol"); 2 | 3 | module.exports = function(deployer) { 4 | deployer.deploy(Migrations); 5 | }; 6 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pay-protocol", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@aragon/apps-token-manager": { 8 | "version": "1.0.1", 9 | "resolved": "https://registry.npmjs.org/@aragon/apps-token-manager/-/apps-token-manager-1.0.1.tgz", 10 | "integrity": "sha512-2EktscZ7VNivFg4pEZjFSePY8HU6rKZQ7dGQN8YreJHAPz4x44rBygBQIUDskV80MJtO5NaQo8fRB8di2rfSrA==", 11 | "requires": { 12 | "@aragon/core": "2.0.1" 13 | } 14 | }, 15 | "@aragon/core": { 16 | "version": "2.0.1", 17 | "resolved": "https://registry.npmjs.org/@aragon/core/-/core-2.0.1.tgz", 18 | "integrity": "sha512-o2SPNW2H5HlWxgVK+jJ5cpMBjXUwZHbFytjJqySSJkX1mYX+6+9tgH3HAwCXWk7nc7yo/fE22NM60IcDPUZnfA==" 19 | }, 20 | "acorn": { 21 | "version": "5.3.0", 22 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.3.0.tgz", 23 | "integrity": "sha512-Yej+zOJ1Dm/IMZzzj78OntP/r3zHEaKcyNoU2lAaxPtrseM6rF0xwqoz5Q5ysAiED9hTjI2hgtvLXitlCN1/Ug==", 24 | "dev": true 25 | }, 26 | "acorn-dynamic-import": { 27 | "version": "2.0.2", 28 | "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", 29 | "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", 30 | "dev": true, 31 | "requires": { 32 | "acorn": "4.0.13" 33 | }, 34 | "dependencies": { 35 | "acorn": { 36 | "version": "4.0.13", 37 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", 38 | "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", 39 | "dev": true 40 | } 41 | } 42 | }, 43 | "ajv": { 44 | "version": "5.5.2", 45 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", 46 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", 47 | "dev": true, 48 | "requires": { 49 | "co": "4.6.0", 50 | "fast-deep-equal": "1.0.0", 51 | "fast-json-stable-stringify": "2.0.0", 52 | "json-schema-traverse": "0.3.1" 53 | } 54 | }, 55 | "ajv-keywords": { 56 | "version": "2.1.1", 57 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", 58 | "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", 59 | "dev": true 60 | }, 61 | "align-text": { 62 | "version": "0.1.4", 63 | "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", 64 | "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", 65 | "dev": true, 66 | "requires": { 67 | "kind-of": "3.2.2", 68 | "longest": "1.0.1", 69 | "repeat-string": "1.6.1" 70 | } 71 | }, 72 | "ansi-regex": { 73 | "version": "2.1.1", 74 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 75 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 76 | }, 77 | "anymatch": { 78 | "version": "1.3.2", 79 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", 80 | "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", 81 | "dev": true, 82 | "requires": { 83 | "micromatch": "2.3.11", 84 | "normalize-path": "2.1.1" 85 | } 86 | }, 87 | "arr-diff": { 88 | "version": "2.0.0", 89 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", 90 | "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", 91 | "dev": true, 92 | "requires": { 93 | "arr-flatten": "1.1.0" 94 | } 95 | }, 96 | "arr-flatten": { 97 | "version": "1.1.0", 98 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", 99 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", 100 | "dev": true 101 | }, 102 | "array-unique": { 103 | "version": "0.2.1", 104 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", 105 | "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", 106 | "dev": true 107 | }, 108 | "asn1.js": { 109 | "version": "4.9.2", 110 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.2.tgz", 111 | "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==", 112 | "dev": true, 113 | "requires": { 114 | "bn.js": "4.11.8", 115 | "inherits": "2.0.3", 116 | "minimalistic-assert": "1.0.0" 117 | } 118 | }, 119 | "assert": { 120 | "version": "1.4.1", 121 | "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", 122 | "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", 123 | "dev": true, 124 | "requires": { 125 | "util": "0.10.3" 126 | } 127 | }, 128 | "async": { 129 | "version": "2.6.0", 130 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", 131 | "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", 132 | "dev": true, 133 | "requires": { 134 | "lodash": "4.17.4" 135 | } 136 | }, 137 | "async-each": { 138 | "version": "1.0.1", 139 | "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", 140 | "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", 141 | "dev": true 142 | }, 143 | "balanced-match": { 144 | "version": "1.0.0", 145 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 146 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 147 | }, 148 | "base64-js": { 149 | "version": "1.2.1", 150 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", 151 | "integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==", 152 | "dev": true 153 | }, 154 | "big.js": { 155 | "version": "3.2.0", 156 | "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", 157 | "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", 158 | "dev": true 159 | }, 160 | "binary-extensions": { 161 | "version": "1.11.0", 162 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", 163 | "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", 164 | "dev": true 165 | }, 166 | "bindings": { 167 | "version": "1.3.0", 168 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", 169 | "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==" 170 | }, 171 | "bip66": { 172 | "version": "1.1.5", 173 | "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", 174 | "integrity": "sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI=", 175 | "requires": { 176 | "safe-buffer": "5.1.1" 177 | } 178 | }, 179 | "bn.js": { 180 | "version": "4.11.8", 181 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", 182 | "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" 183 | }, 184 | "brace-expansion": { 185 | "version": "1.1.8", 186 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", 187 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", 188 | "requires": { 189 | "balanced-match": "1.0.0", 190 | "concat-map": "0.0.1" 191 | } 192 | }, 193 | "braces": { 194 | "version": "1.8.5", 195 | "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", 196 | "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", 197 | "dev": true, 198 | "requires": { 199 | "expand-range": "1.8.2", 200 | "preserve": "0.2.0", 201 | "repeat-element": "1.1.2" 202 | } 203 | }, 204 | "brorand": { 205 | "version": "1.1.0", 206 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 207 | "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" 208 | }, 209 | "browser-stdout": { 210 | "version": "1.3.0", 211 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", 212 | "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=" 213 | }, 214 | "browserify-aes": { 215 | "version": "1.1.1", 216 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", 217 | "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==", 218 | "requires": { 219 | "buffer-xor": "1.0.3", 220 | "cipher-base": "1.0.4", 221 | "create-hash": "1.1.3", 222 | "evp_bytestokey": "1.0.3", 223 | "inherits": "2.0.3", 224 | "safe-buffer": "5.1.1" 225 | } 226 | }, 227 | "browserify-cipher": { 228 | "version": "1.0.0", 229 | "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz", 230 | "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=", 231 | "dev": true, 232 | "requires": { 233 | "browserify-aes": "1.1.1", 234 | "browserify-des": "1.0.0", 235 | "evp_bytestokey": "1.0.3" 236 | } 237 | }, 238 | "browserify-des": { 239 | "version": "1.0.0", 240 | "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz", 241 | "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=", 242 | "dev": true, 243 | "requires": { 244 | "cipher-base": "1.0.4", 245 | "des.js": "1.0.0", 246 | "inherits": "2.0.3" 247 | } 248 | }, 249 | "browserify-rsa": { 250 | "version": "4.0.1", 251 | "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", 252 | "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", 253 | "dev": true, 254 | "requires": { 255 | "bn.js": "4.11.8", 256 | "randombytes": "2.0.6" 257 | } 258 | }, 259 | "browserify-sha3": { 260 | "version": "0.0.1", 261 | "resolved": "https://registry.npmjs.org/browserify-sha3/-/browserify-sha3-0.0.1.tgz", 262 | "integrity": "sha1-P/NKMAbvFcD7NWflQbkaI0ASPRE=", 263 | "requires": { 264 | "js-sha3": "0.3.1" 265 | } 266 | }, 267 | "browserify-sign": { 268 | "version": "4.0.4", 269 | "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", 270 | "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", 271 | "dev": true, 272 | "requires": { 273 | "bn.js": "4.11.8", 274 | "browserify-rsa": "4.0.1", 275 | "create-hash": "1.1.3", 276 | "create-hmac": "1.1.6", 277 | "elliptic": "6.4.0", 278 | "inherits": "2.0.3", 279 | "parse-asn1": "5.1.0" 280 | } 281 | }, 282 | "browserify-zlib": { 283 | "version": "0.2.0", 284 | "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", 285 | "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", 286 | "dev": true, 287 | "requires": { 288 | "pako": "1.0.6" 289 | } 290 | }, 291 | "buffer": { 292 | "version": "4.9.1", 293 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", 294 | "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", 295 | "dev": true, 296 | "requires": { 297 | "base64-js": "1.2.1", 298 | "ieee754": "1.1.8", 299 | "isarray": "1.0.0" 300 | } 301 | }, 302 | "buffer-xor": { 303 | "version": "1.0.3", 304 | "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", 305 | "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" 306 | }, 307 | "builtin-modules": { 308 | "version": "1.1.1", 309 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 310 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" 311 | }, 312 | "builtin-status-codes": { 313 | "version": "3.0.0", 314 | "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", 315 | "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", 316 | "dev": true 317 | }, 318 | "camelcase": { 319 | "version": "3.0.0", 320 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", 321 | "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" 322 | }, 323 | "center-align": { 324 | "version": "0.1.3", 325 | "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", 326 | "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", 327 | "dev": true, 328 | "requires": { 329 | "align-text": "0.1.4", 330 | "lazy-cache": "1.0.4" 331 | } 332 | }, 333 | "chokidar": { 334 | "version": "1.7.0", 335 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", 336 | "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", 337 | "dev": true, 338 | "requires": { 339 | "anymatch": "1.3.2", 340 | "async-each": "1.0.1", 341 | "fsevents": "1.1.3", 342 | "glob-parent": "2.0.0", 343 | "inherits": "2.0.3", 344 | "is-binary-path": "1.0.1", 345 | "is-glob": "2.0.1", 346 | "path-is-absolute": "1.0.1", 347 | "readdirp": "2.1.0" 348 | } 349 | }, 350 | "cipher-base": { 351 | "version": "1.0.4", 352 | "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", 353 | "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", 354 | "requires": { 355 | "inherits": "2.0.3", 356 | "safe-buffer": "5.1.1" 357 | } 358 | }, 359 | "cliui": { 360 | "version": "3.2.0", 361 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 362 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 363 | "requires": { 364 | "string-width": "1.0.2", 365 | "strip-ansi": "3.0.1", 366 | "wrap-ansi": "2.1.0" 367 | } 368 | }, 369 | "co": { 370 | "version": "4.6.0", 371 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 372 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", 373 | "dev": true 374 | }, 375 | "code-point-at": { 376 | "version": "1.1.0", 377 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 378 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 379 | }, 380 | "commander": { 381 | "version": "2.9.0", 382 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", 383 | "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", 384 | "requires": { 385 | "graceful-readlink": "1.0.1" 386 | } 387 | }, 388 | "concat-map": { 389 | "version": "0.0.1", 390 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 391 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 392 | }, 393 | "console-browserify": { 394 | "version": "1.1.0", 395 | "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", 396 | "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", 397 | "dev": true, 398 | "requires": { 399 | "date-now": "0.1.4" 400 | } 401 | }, 402 | "constants-browserify": { 403 | "version": "1.0.0", 404 | "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", 405 | "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", 406 | "dev": true 407 | }, 408 | "core-util-is": { 409 | "version": "1.0.2", 410 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 411 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 412 | "dev": true 413 | }, 414 | "create-ecdh": { 415 | "version": "4.0.0", 416 | "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", 417 | "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", 418 | "dev": true, 419 | "requires": { 420 | "bn.js": "4.11.8", 421 | "elliptic": "6.4.0" 422 | } 423 | }, 424 | "create-hash": { 425 | "version": "1.1.3", 426 | "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", 427 | "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", 428 | "requires": { 429 | "cipher-base": "1.0.4", 430 | "inherits": "2.0.3", 431 | "ripemd160": "2.0.1", 432 | "sha.js": "2.4.10" 433 | } 434 | }, 435 | "create-hmac": { 436 | "version": "1.1.6", 437 | "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", 438 | "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", 439 | "requires": { 440 | "cipher-base": "1.0.4", 441 | "create-hash": "1.1.3", 442 | "inherits": "2.0.3", 443 | "ripemd160": "2.0.1", 444 | "safe-buffer": "5.1.1", 445 | "sha.js": "2.4.10" 446 | } 447 | }, 448 | "cross-spawn": { 449 | "version": "5.1.0", 450 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 451 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 452 | "dev": true, 453 | "requires": { 454 | "lru-cache": "4.1.1", 455 | "shebang-command": "1.2.0", 456 | "which": "1.3.0" 457 | } 458 | }, 459 | "crypto-browserify": { 460 | "version": "3.12.0", 461 | "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", 462 | "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", 463 | "dev": true, 464 | "requires": { 465 | "browserify-cipher": "1.0.0", 466 | "browserify-sign": "4.0.4", 467 | "create-ecdh": "4.0.0", 468 | "create-hash": "1.1.3", 469 | "create-hmac": "1.1.6", 470 | "diffie-hellman": "5.0.2", 471 | "inherits": "2.0.3", 472 | "pbkdf2": "3.0.14", 473 | "public-encrypt": "4.0.0", 474 | "randombytes": "2.0.6", 475 | "randomfill": "1.0.3" 476 | } 477 | }, 478 | "d": { 479 | "version": "1.0.0", 480 | "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", 481 | "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", 482 | "dev": true, 483 | "requires": { 484 | "es5-ext": "0.10.38" 485 | } 486 | }, 487 | "date-now": { 488 | "version": "0.1.4", 489 | "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", 490 | "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", 491 | "dev": true 492 | }, 493 | "debug": { 494 | "version": "2.6.8", 495 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", 496 | "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", 497 | "requires": { 498 | "ms": "2.0.0" 499 | } 500 | }, 501 | "decamelize": { 502 | "version": "1.2.0", 503 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 504 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 505 | }, 506 | "des.js": { 507 | "version": "1.0.0", 508 | "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", 509 | "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", 510 | "dev": true, 511 | "requires": { 512 | "inherits": "2.0.3", 513 | "minimalistic-assert": "1.0.0" 514 | } 515 | }, 516 | "diff": { 517 | "version": "3.2.0", 518 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", 519 | "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=" 520 | }, 521 | "diffie-hellman": { 522 | "version": "5.0.2", 523 | "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz", 524 | "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=", 525 | "dev": true, 526 | "requires": { 527 | "bn.js": "4.11.8", 528 | "miller-rabin": "4.0.1", 529 | "randombytes": "2.0.6" 530 | } 531 | }, 532 | "domain-browser": { 533 | "version": "1.2.0", 534 | "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", 535 | "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", 536 | "dev": true 537 | }, 538 | "drbg.js": { 539 | "version": "1.0.1", 540 | "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", 541 | "integrity": "sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs=", 542 | "requires": { 543 | "browserify-aes": "1.1.1", 544 | "create-hash": "1.1.3", 545 | "create-hmac": "1.1.6" 546 | } 547 | }, 548 | "elliptic": { 549 | "version": "6.4.0", 550 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", 551 | "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", 552 | "requires": { 553 | "bn.js": "4.11.8", 554 | "brorand": "1.1.0", 555 | "hash.js": "1.1.3", 556 | "hmac-drbg": "1.0.1", 557 | "inherits": "2.0.3", 558 | "minimalistic-assert": "1.0.0", 559 | "minimalistic-crypto-utils": "1.0.1" 560 | } 561 | }, 562 | "emojis-list": { 563 | "version": "2.1.0", 564 | "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", 565 | "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", 566 | "dev": true 567 | }, 568 | "enhanced-resolve": { 569 | "version": "3.4.1", 570 | "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", 571 | "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", 572 | "dev": true, 573 | "requires": { 574 | "graceful-fs": "4.1.11", 575 | "memory-fs": "0.4.1", 576 | "object-assign": "4.1.1", 577 | "tapable": "0.2.8" 578 | } 579 | }, 580 | "errno": { 581 | "version": "0.1.6", 582 | "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.6.tgz", 583 | "integrity": "sha512-IsORQDpaaSwcDP4ZZnHxgE85werpo34VYn1Ud3mq+eUsF593faR8oCZNXrROVkpFu2TsbrNhHin0aUrTsQ9vNw==", 584 | "dev": true, 585 | "requires": { 586 | "prr": "1.0.1" 587 | } 588 | }, 589 | "error-ex": { 590 | "version": "1.3.1", 591 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", 592 | "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", 593 | "requires": { 594 | "is-arrayish": "0.2.1" 595 | } 596 | }, 597 | "es5-ext": { 598 | "version": "0.10.38", 599 | "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.38.tgz", 600 | "integrity": "sha512-jCMyePo7AXbUESwbl8Qi01VSH2piY9s/a3rSU/5w/MlTIx8HPL1xn2InGN8ejt/xulcJgnTO7vqNtOAxzYd2Kg==", 601 | "dev": true, 602 | "requires": { 603 | "es6-iterator": "2.0.3", 604 | "es6-symbol": "3.1.1" 605 | } 606 | }, 607 | "es6-iterator": { 608 | "version": "2.0.3", 609 | "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", 610 | "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", 611 | "dev": true, 612 | "requires": { 613 | "d": "1.0.0", 614 | "es5-ext": "0.10.38", 615 | "es6-symbol": "3.1.1" 616 | } 617 | }, 618 | "es6-map": { 619 | "version": "0.1.5", 620 | "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", 621 | "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", 622 | "dev": true, 623 | "requires": { 624 | "d": "1.0.0", 625 | "es5-ext": "0.10.38", 626 | "es6-iterator": "2.0.3", 627 | "es6-set": "0.1.5", 628 | "es6-symbol": "3.1.1", 629 | "event-emitter": "0.3.5" 630 | } 631 | }, 632 | "es6-set": { 633 | "version": "0.1.5", 634 | "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", 635 | "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", 636 | "dev": true, 637 | "requires": { 638 | "d": "1.0.0", 639 | "es5-ext": "0.10.38", 640 | "es6-iterator": "2.0.3", 641 | "es6-symbol": "3.1.1", 642 | "event-emitter": "0.3.5" 643 | } 644 | }, 645 | "es6-symbol": { 646 | "version": "3.1.1", 647 | "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", 648 | "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", 649 | "dev": true, 650 | "requires": { 651 | "d": "1.0.0", 652 | "es5-ext": "0.10.38" 653 | } 654 | }, 655 | "es6-weak-map": { 656 | "version": "2.0.2", 657 | "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", 658 | "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", 659 | "dev": true, 660 | "requires": { 661 | "d": "1.0.0", 662 | "es5-ext": "0.10.38", 663 | "es6-iterator": "2.0.3", 664 | "es6-symbol": "3.1.1" 665 | } 666 | }, 667 | "escape-string-regexp": { 668 | "version": "1.0.5", 669 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 670 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 671 | }, 672 | "escope": { 673 | "version": "3.6.0", 674 | "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", 675 | "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", 676 | "dev": true, 677 | "requires": { 678 | "es6-map": "0.1.5", 679 | "es6-weak-map": "2.0.2", 680 | "esrecurse": "4.2.0", 681 | "estraverse": "4.2.0" 682 | } 683 | }, 684 | "esrecurse": { 685 | "version": "4.2.0", 686 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.0.tgz", 687 | "integrity": "sha1-+pVo2Y04I/mkHZHpAtyrnqblsWM=", 688 | "dev": true, 689 | "requires": { 690 | "estraverse": "4.2.0", 691 | "object-assign": "4.1.1" 692 | } 693 | }, 694 | "estraverse": { 695 | "version": "4.2.0", 696 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", 697 | "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", 698 | "dev": true 699 | }, 700 | "ethereumjs-abi": { 701 | "version": "0.6.5", 702 | "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.5.tgz", 703 | "integrity": "sha1-WmN+8Wq0NHP6cqKa2QhxQFs/UkE=", 704 | "requires": { 705 | "bn.js": "4.11.8", 706 | "ethereumjs-util": "4.5.0" 707 | } 708 | }, 709 | "ethereumjs-util": { 710 | "version": "4.5.0", 711 | "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz", 712 | "integrity": "sha1-PpQosxfuvaPXJg2FT93alUsfG8Y=", 713 | "requires": { 714 | "bn.js": "4.11.8", 715 | "create-hash": "1.1.3", 716 | "keccakjs": "0.2.1", 717 | "rlp": "2.0.0", 718 | "secp256k1": "3.5.0" 719 | } 720 | }, 721 | "event-emitter": { 722 | "version": "0.3.5", 723 | "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", 724 | "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", 725 | "dev": true, 726 | "requires": { 727 | "d": "1.0.0", 728 | "es5-ext": "0.10.38" 729 | } 730 | }, 731 | "events": { 732 | "version": "1.1.1", 733 | "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", 734 | "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", 735 | "dev": true 736 | }, 737 | "evp_bytestokey": { 738 | "version": "1.0.3", 739 | "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", 740 | "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", 741 | "requires": { 742 | "md5.js": "1.3.4", 743 | "safe-buffer": "5.1.1" 744 | } 745 | }, 746 | "execa": { 747 | "version": "0.7.0", 748 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 749 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 750 | "dev": true, 751 | "requires": { 752 | "cross-spawn": "5.1.0", 753 | "get-stream": "3.0.0", 754 | "is-stream": "1.1.0", 755 | "npm-run-path": "2.0.2", 756 | "p-finally": "1.0.0", 757 | "signal-exit": "3.0.2", 758 | "strip-eof": "1.0.0" 759 | } 760 | }, 761 | "expand-brackets": { 762 | "version": "0.1.5", 763 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", 764 | "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", 765 | "dev": true, 766 | "requires": { 767 | "is-posix-bracket": "0.1.1" 768 | } 769 | }, 770 | "expand-range": { 771 | "version": "1.8.2", 772 | "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", 773 | "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", 774 | "dev": true, 775 | "requires": { 776 | "fill-range": "2.2.3" 777 | } 778 | }, 779 | "extglob": { 780 | "version": "0.3.2", 781 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", 782 | "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", 783 | "dev": true, 784 | "requires": { 785 | "is-extglob": "1.0.0" 786 | } 787 | }, 788 | "fast-deep-equal": { 789 | "version": "1.0.0", 790 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", 791 | "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=", 792 | "dev": true 793 | }, 794 | "fast-json-stable-stringify": { 795 | "version": "2.0.0", 796 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 797 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", 798 | "dev": true 799 | }, 800 | "filename-regex": { 801 | "version": "2.0.1", 802 | "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", 803 | "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", 804 | "dev": true 805 | }, 806 | "fill-range": { 807 | "version": "2.2.3", 808 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", 809 | "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", 810 | "dev": true, 811 | "requires": { 812 | "is-number": "2.1.0", 813 | "isobject": "2.1.0", 814 | "randomatic": "1.1.7", 815 | "repeat-element": "1.1.2", 816 | "repeat-string": "1.6.1" 817 | } 818 | }, 819 | "find-up": { 820 | "version": "1.1.2", 821 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", 822 | "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", 823 | "requires": { 824 | "path-exists": "2.1.0", 825 | "pinkie-promise": "2.0.1" 826 | } 827 | }, 828 | "for-in": { 829 | "version": "1.0.2", 830 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", 831 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", 832 | "dev": true 833 | }, 834 | "for-own": { 835 | "version": "0.1.5", 836 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", 837 | "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", 838 | "dev": true, 839 | "requires": { 840 | "for-in": "1.0.2" 841 | } 842 | }, 843 | "fs-extra": { 844 | "version": "0.30.0", 845 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", 846 | "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", 847 | "requires": { 848 | "graceful-fs": "4.1.11", 849 | "jsonfile": "2.4.0", 850 | "klaw": "1.3.1", 851 | "path-is-absolute": "1.0.1", 852 | "rimraf": "2.6.2" 853 | } 854 | }, 855 | "fs.realpath": { 856 | "version": "1.0.0", 857 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 858 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 859 | }, 860 | "fsevents": { 861 | "version": "1.1.3", 862 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", 863 | "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", 864 | "dev": true, 865 | "optional": true, 866 | "requires": { 867 | "nan": "2.8.0", 868 | "node-pre-gyp": "0.6.39" 869 | }, 870 | "dependencies": { 871 | "abbrev": { 872 | "version": "1.1.0", 873 | "bundled": true, 874 | "dev": true, 875 | "optional": true 876 | }, 877 | "ajv": { 878 | "version": "4.11.8", 879 | "bundled": true, 880 | "dev": true, 881 | "optional": true, 882 | "requires": { 883 | "co": "4.6.0", 884 | "json-stable-stringify": "1.0.1" 885 | } 886 | }, 887 | "ansi-regex": { 888 | "version": "2.1.1", 889 | "bundled": true, 890 | "dev": true 891 | }, 892 | "aproba": { 893 | "version": "1.1.1", 894 | "bundled": true, 895 | "dev": true, 896 | "optional": true 897 | }, 898 | "are-we-there-yet": { 899 | "version": "1.1.4", 900 | "bundled": true, 901 | "dev": true, 902 | "optional": true, 903 | "requires": { 904 | "delegates": "1.0.0", 905 | "readable-stream": "2.2.9" 906 | } 907 | }, 908 | "asn1": { 909 | "version": "0.2.3", 910 | "bundled": true, 911 | "dev": true, 912 | "optional": true 913 | }, 914 | "assert-plus": { 915 | "version": "0.2.0", 916 | "bundled": true, 917 | "dev": true, 918 | "optional": true 919 | }, 920 | "asynckit": { 921 | "version": "0.4.0", 922 | "bundled": true, 923 | "dev": true, 924 | "optional": true 925 | }, 926 | "aws-sign2": { 927 | "version": "0.6.0", 928 | "bundled": true, 929 | "dev": true, 930 | "optional": true 931 | }, 932 | "aws4": { 933 | "version": "1.6.0", 934 | "bundled": true, 935 | "dev": true, 936 | "optional": true 937 | }, 938 | "balanced-match": { 939 | "version": "0.4.2", 940 | "bundled": true, 941 | "dev": true 942 | }, 943 | "bcrypt-pbkdf": { 944 | "version": "1.0.1", 945 | "bundled": true, 946 | "dev": true, 947 | "optional": true, 948 | "requires": { 949 | "tweetnacl": "0.14.5" 950 | } 951 | }, 952 | "block-stream": { 953 | "version": "0.0.9", 954 | "bundled": true, 955 | "dev": true, 956 | "requires": { 957 | "inherits": "2.0.3" 958 | } 959 | }, 960 | "boom": { 961 | "version": "2.10.1", 962 | "bundled": true, 963 | "dev": true, 964 | "requires": { 965 | "hoek": "2.16.3" 966 | } 967 | }, 968 | "brace-expansion": { 969 | "version": "1.1.7", 970 | "bundled": true, 971 | "dev": true, 972 | "requires": { 973 | "balanced-match": "0.4.2", 974 | "concat-map": "0.0.1" 975 | } 976 | }, 977 | "buffer-shims": { 978 | "version": "1.0.0", 979 | "bundled": true, 980 | "dev": true 981 | }, 982 | "caseless": { 983 | "version": "0.12.0", 984 | "bundled": true, 985 | "dev": true, 986 | "optional": true 987 | }, 988 | "co": { 989 | "version": "4.6.0", 990 | "bundled": true, 991 | "dev": true, 992 | "optional": true 993 | }, 994 | "code-point-at": { 995 | "version": "1.1.0", 996 | "bundled": true, 997 | "dev": true 998 | }, 999 | "combined-stream": { 1000 | "version": "1.0.5", 1001 | "bundled": true, 1002 | "dev": true, 1003 | "requires": { 1004 | "delayed-stream": "1.0.0" 1005 | } 1006 | }, 1007 | "concat-map": { 1008 | "version": "0.0.1", 1009 | "bundled": true, 1010 | "dev": true 1011 | }, 1012 | "console-control-strings": { 1013 | "version": "1.1.0", 1014 | "bundled": true, 1015 | "dev": true 1016 | }, 1017 | "core-util-is": { 1018 | "version": "1.0.2", 1019 | "bundled": true, 1020 | "dev": true 1021 | }, 1022 | "cryptiles": { 1023 | "version": "2.0.5", 1024 | "bundled": true, 1025 | "dev": true, 1026 | "requires": { 1027 | "boom": "2.10.1" 1028 | } 1029 | }, 1030 | "dashdash": { 1031 | "version": "1.14.1", 1032 | "bundled": true, 1033 | "dev": true, 1034 | "optional": true, 1035 | "requires": { 1036 | "assert-plus": "1.0.0" 1037 | }, 1038 | "dependencies": { 1039 | "assert-plus": { 1040 | "version": "1.0.0", 1041 | "bundled": true, 1042 | "dev": true, 1043 | "optional": true 1044 | } 1045 | } 1046 | }, 1047 | "debug": { 1048 | "version": "2.6.8", 1049 | "bundled": true, 1050 | "dev": true, 1051 | "optional": true, 1052 | "requires": { 1053 | "ms": "2.0.0" 1054 | } 1055 | }, 1056 | "deep-extend": { 1057 | "version": "0.4.2", 1058 | "bundled": true, 1059 | "dev": true, 1060 | "optional": true 1061 | }, 1062 | "delayed-stream": { 1063 | "version": "1.0.0", 1064 | "bundled": true, 1065 | "dev": true 1066 | }, 1067 | "delegates": { 1068 | "version": "1.0.0", 1069 | "bundled": true, 1070 | "dev": true, 1071 | "optional": true 1072 | }, 1073 | "detect-libc": { 1074 | "version": "1.0.2", 1075 | "bundled": true, 1076 | "dev": true, 1077 | "optional": true 1078 | }, 1079 | "ecc-jsbn": { 1080 | "version": "0.1.1", 1081 | "bundled": true, 1082 | "dev": true, 1083 | "optional": true, 1084 | "requires": { 1085 | "jsbn": "0.1.1" 1086 | } 1087 | }, 1088 | "extend": { 1089 | "version": "3.0.1", 1090 | "bundled": true, 1091 | "dev": true, 1092 | "optional": true 1093 | }, 1094 | "extsprintf": { 1095 | "version": "1.0.2", 1096 | "bundled": true, 1097 | "dev": true 1098 | }, 1099 | "forever-agent": { 1100 | "version": "0.6.1", 1101 | "bundled": true, 1102 | "dev": true, 1103 | "optional": true 1104 | }, 1105 | "form-data": { 1106 | "version": "2.1.4", 1107 | "bundled": true, 1108 | "dev": true, 1109 | "optional": true, 1110 | "requires": { 1111 | "asynckit": "0.4.0", 1112 | "combined-stream": "1.0.5", 1113 | "mime-types": "2.1.15" 1114 | } 1115 | }, 1116 | "fs.realpath": { 1117 | "version": "1.0.0", 1118 | "bundled": true, 1119 | "dev": true 1120 | }, 1121 | "fstream": { 1122 | "version": "1.0.11", 1123 | "bundled": true, 1124 | "dev": true, 1125 | "requires": { 1126 | "graceful-fs": "4.1.11", 1127 | "inherits": "2.0.3", 1128 | "mkdirp": "0.5.1", 1129 | "rimraf": "2.6.1" 1130 | } 1131 | }, 1132 | "fstream-ignore": { 1133 | "version": "1.0.5", 1134 | "bundled": true, 1135 | "dev": true, 1136 | "optional": true, 1137 | "requires": { 1138 | "fstream": "1.0.11", 1139 | "inherits": "2.0.3", 1140 | "minimatch": "3.0.4" 1141 | } 1142 | }, 1143 | "gauge": { 1144 | "version": "2.7.4", 1145 | "bundled": true, 1146 | "dev": true, 1147 | "optional": true, 1148 | "requires": { 1149 | "aproba": "1.1.1", 1150 | "console-control-strings": "1.1.0", 1151 | "has-unicode": "2.0.1", 1152 | "object-assign": "4.1.1", 1153 | "signal-exit": "3.0.2", 1154 | "string-width": "1.0.2", 1155 | "strip-ansi": "3.0.1", 1156 | "wide-align": "1.1.2" 1157 | } 1158 | }, 1159 | "getpass": { 1160 | "version": "0.1.7", 1161 | "bundled": true, 1162 | "dev": true, 1163 | "optional": true, 1164 | "requires": { 1165 | "assert-plus": "1.0.0" 1166 | }, 1167 | "dependencies": { 1168 | "assert-plus": { 1169 | "version": "1.0.0", 1170 | "bundled": true, 1171 | "dev": true, 1172 | "optional": true 1173 | } 1174 | } 1175 | }, 1176 | "glob": { 1177 | "version": "7.1.2", 1178 | "bundled": true, 1179 | "dev": true, 1180 | "requires": { 1181 | "fs.realpath": "1.0.0", 1182 | "inflight": "1.0.6", 1183 | "inherits": "2.0.3", 1184 | "minimatch": "3.0.4", 1185 | "once": "1.4.0", 1186 | "path-is-absolute": "1.0.1" 1187 | } 1188 | }, 1189 | "graceful-fs": { 1190 | "version": "4.1.11", 1191 | "bundled": true, 1192 | "dev": true 1193 | }, 1194 | "har-schema": { 1195 | "version": "1.0.5", 1196 | "bundled": true, 1197 | "dev": true, 1198 | "optional": true 1199 | }, 1200 | "har-validator": { 1201 | "version": "4.2.1", 1202 | "bundled": true, 1203 | "dev": true, 1204 | "optional": true, 1205 | "requires": { 1206 | "ajv": "4.11.8", 1207 | "har-schema": "1.0.5" 1208 | } 1209 | }, 1210 | "has-unicode": { 1211 | "version": "2.0.1", 1212 | "bundled": true, 1213 | "dev": true, 1214 | "optional": true 1215 | }, 1216 | "hawk": { 1217 | "version": "3.1.3", 1218 | "bundled": true, 1219 | "dev": true, 1220 | "requires": { 1221 | "boom": "2.10.1", 1222 | "cryptiles": "2.0.5", 1223 | "hoek": "2.16.3", 1224 | "sntp": "1.0.9" 1225 | } 1226 | }, 1227 | "hoek": { 1228 | "version": "2.16.3", 1229 | "bundled": true, 1230 | "dev": true 1231 | }, 1232 | "http-signature": { 1233 | "version": "1.1.1", 1234 | "bundled": true, 1235 | "dev": true, 1236 | "optional": true, 1237 | "requires": { 1238 | "assert-plus": "0.2.0", 1239 | "jsprim": "1.4.0", 1240 | "sshpk": "1.13.0" 1241 | } 1242 | }, 1243 | "inflight": { 1244 | "version": "1.0.6", 1245 | "bundled": true, 1246 | "dev": true, 1247 | "requires": { 1248 | "once": "1.4.0", 1249 | "wrappy": "1.0.2" 1250 | } 1251 | }, 1252 | "inherits": { 1253 | "version": "2.0.3", 1254 | "bundled": true, 1255 | "dev": true 1256 | }, 1257 | "ini": { 1258 | "version": "1.3.4", 1259 | "bundled": true, 1260 | "dev": true, 1261 | "optional": true 1262 | }, 1263 | "is-fullwidth-code-point": { 1264 | "version": "1.0.0", 1265 | "bundled": true, 1266 | "dev": true, 1267 | "requires": { 1268 | "number-is-nan": "1.0.1" 1269 | } 1270 | }, 1271 | "is-typedarray": { 1272 | "version": "1.0.0", 1273 | "bundled": true, 1274 | "dev": true, 1275 | "optional": true 1276 | }, 1277 | "isarray": { 1278 | "version": "1.0.0", 1279 | "bundled": true, 1280 | "dev": true 1281 | }, 1282 | "isstream": { 1283 | "version": "0.1.2", 1284 | "bundled": true, 1285 | "dev": true, 1286 | "optional": true 1287 | }, 1288 | "jodid25519": { 1289 | "version": "1.0.2", 1290 | "bundled": true, 1291 | "dev": true, 1292 | "optional": true, 1293 | "requires": { 1294 | "jsbn": "0.1.1" 1295 | } 1296 | }, 1297 | "jsbn": { 1298 | "version": "0.1.1", 1299 | "bundled": true, 1300 | "dev": true, 1301 | "optional": true 1302 | }, 1303 | "json-schema": { 1304 | "version": "0.2.3", 1305 | "bundled": true, 1306 | "dev": true, 1307 | "optional": true 1308 | }, 1309 | "json-stable-stringify": { 1310 | "version": "1.0.1", 1311 | "bundled": true, 1312 | "dev": true, 1313 | "optional": true, 1314 | "requires": { 1315 | "jsonify": "0.0.0" 1316 | } 1317 | }, 1318 | "json-stringify-safe": { 1319 | "version": "5.0.1", 1320 | "bundled": true, 1321 | "dev": true, 1322 | "optional": true 1323 | }, 1324 | "jsonify": { 1325 | "version": "0.0.0", 1326 | "bundled": true, 1327 | "dev": true, 1328 | "optional": true 1329 | }, 1330 | "jsprim": { 1331 | "version": "1.4.0", 1332 | "bundled": true, 1333 | "dev": true, 1334 | "optional": true, 1335 | "requires": { 1336 | "assert-plus": "1.0.0", 1337 | "extsprintf": "1.0.2", 1338 | "json-schema": "0.2.3", 1339 | "verror": "1.3.6" 1340 | }, 1341 | "dependencies": { 1342 | "assert-plus": { 1343 | "version": "1.0.0", 1344 | "bundled": true, 1345 | "dev": true, 1346 | "optional": true 1347 | } 1348 | } 1349 | }, 1350 | "mime-db": { 1351 | "version": "1.27.0", 1352 | "bundled": true, 1353 | "dev": true 1354 | }, 1355 | "mime-types": { 1356 | "version": "2.1.15", 1357 | "bundled": true, 1358 | "dev": true, 1359 | "requires": { 1360 | "mime-db": "1.27.0" 1361 | } 1362 | }, 1363 | "minimatch": { 1364 | "version": "3.0.4", 1365 | "bundled": true, 1366 | "dev": true, 1367 | "requires": { 1368 | "brace-expansion": "1.1.7" 1369 | } 1370 | }, 1371 | "minimist": { 1372 | "version": "0.0.8", 1373 | "bundled": true, 1374 | "dev": true 1375 | }, 1376 | "mkdirp": { 1377 | "version": "0.5.1", 1378 | "bundled": true, 1379 | "dev": true, 1380 | "requires": { 1381 | "minimist": "0.0.8" 1382 | } 1383 | }, 1384 | "ms": { 1385 | "version": "2.0.0", 1386 | "bundled": true, 1387 | "dev": true, 1388 | "optional": true 1389 | }, 1390 | "node-pre-gyp": { 1391 | "version": "0.6.39", 1392 | "bundled": true, 1393 | "dev": true, 1394 | "optional": true, 1395 | "requires": { 1396 | "detect-libc": "1.0.2", 1397 | "hawk": "3.1.3", 1398 | "mkdirp": "0.5.1", 1399 | "nopt": "4.0.1", 1400 | "npmlog": "4.1.0", 1401 | "rc": "1.2.1", 1402 | "request": "2.81.0", 1403 | "rimraf": "2.6.1", 1404 | "semver": "5.3.0", 1405 | "tar": "2.2.1", 1406 | "tar-pack": "3.4.0" 1407 | } 1408 | }, 1409 | "nopt": { 1410 | "version": "4.0.1", 1411 | "bundled": true, 1412 | "dev": true, 1413 | "optional": true, 1414 | "requires": { 1415 | "abbrev": "1.1.0", 1416 | "osenv": "0.1.4" 1417 | } 1418 | }, 1419 | "npmlog": { 1420 | "version": "4.1.0", 1421 | "bundled": true, 1422 | "dev": true, 1423 | "optional": true, 1424 | "requires": { 1425 | "are-we-there-yet": "1.1.4", 1426 | "console-control-strings": "1.1.0", 1427 | "gauge": "2.7.4", 1428 | "set-blocking": "2.0.0" 1429 | } 1430 | }, 1431 | "number-is-nan": { 1432 | "version": "1.0.1", 1433 | "bundled": true, 1434 | "dev": true 1435 | }, 1436 | "oauth-sign": { 1437 | "version": "0.8.2", 1438 | "bundled": true, 1439 | "dev": true, 1440 | "optional": true 1441 | }, 1442 | "object-assign": { 1443 | "version": "4.1.1", 1444 | "bundled": true, 1445 | "dev": true, 1446 | "optional": true 1447 | }, 1448 | "once": { 1449 | "version": "1.4.0", 1450 | "bundled": true, 1451 | "dev": true, 1452 | "requires": { 1453 | "wrappy": "1.0.2" 1454 | } 1455 | }, 1456 | "os-homedir": { 1457 | "version": "1.0.2", 1458 | "bundled": true, 1459 | "dev": true, 1460 | "optional": true 1461 | }, 1462 | "os-tmpdir": { 1463 | "version": "1.0.2", 1464 | "bundled": true, 1465 | "dev": true, 1466 | "optional": true 1467 | }, 1468 | "osenv": { 1469 | "version": "0.1.4", 1470 | "bundled": true, 1471 | "dev": true, 1472 | "optional": true, 1473 | "requires": { 1474 | "os-homedir": "1.0.2", 1475 | "os-tmpdir": "1.0.2" 1476 | } 1477 | }, 1478 | "path-is-absolute": { 1479 | "version": "1.0.1", 1480 | "bundled": true, 1481 | "dev": true 1482 | }, 1483 | "performance-now": { 1484 | "version": "0.2.0", 1485 | "bundled": true, 1486 | "dev": true, 1487 | "optional": true 1488 | }, 1489 | "process-nextick-args": { 1490 | "version": "1.0.7", 1491 | "bundled": true, 1492 | "dev": true 1493 | }, 1494 | "punycode": { 1495 | "version": "1.4.1", 1496 | "bundled": true, 1497 | "dev": true, 1498 | "optional": true 1499 | }, 1500 | "qs": { 1501 | "version": "6.4.0", 1502 | "bundled": true, 1503 | "dev": true, 1504 | "optional": true 1505 | }, 1506 | "rc": { 1507 | "version": "1.2.1", 1508 | "bundled": true, 1509 | "dev": true, 1510 | "optional": true, 1511 | "requires": { 1512 | "deep-extend": "0.4.2", 1513 | "ini": "1.3.4", 1514 | "minimist": "1.2.0", 1515 | "strip-json-comments": "2.0.1" 1516 | }, 1517 | "dependencies": { 1518 | "minimist": { 1519 | "version": "1.2.0", 1520 | "bundled": true, 1521 | "dev": true, 1522 | "optional": true 1523 | } 1524 | } 1525 | }, 1526 | "readable-stream": { 1527 | "version": "2.2.9", 1528 | "bundled": true, 1529 | "dev": true, 1530 | "requires": { 1531 | "buffer-shims": "1.0.0", 1532 | "core-util-is": "1.0.2", 1533 | "inherits": "2.0.3", 1534 | "isarray": "1.0.0", 1535 | "process-nextick-args": "1.0.7", 1536 | "string_decoder": "1.0.1", 1537 | "util-deprecate": "1.0.2" 1538 | } 1539 | }, 1540 | "request": { 1541 | "version": "2.81.0", 1542 | "bundled": true, 1543 | "dev": true, 1544 | "optional": true, 1545 | "requires": { 1546 | "aws-sign2": "0.6.0", 1547 | "aws4": "1.6.0", 1548 | "caseless": "0.12.0", 1549 | "combined-stream": "1.0.5", 1550 | "extend": "3.0.1", 1551 | "forever-agent": "0.6.1", 1552 | "form-data": "2.1.4", 1553 | "har-validator": "4.2.1", 1554 | "hawk": "3.1.3", 1555 | "http-signature": "1.1.1", 1556 | "is-typedarray": "1.0.0", 1557 | "isstream": "0.1.2", 1558 | "json-stringify-safe": "5.0.1", 1559 | "mime-types": "2.1.15", 1560 | "oauth-sign": "0.8.2", 1561 | "performance-now": "0.2.0", 1562 | "qs": "6.4.0", 1563 | "safe-buffer": "5.0.1", 1564 | "stringstream": "0.0.5", 1565 | "tough-cookie": "2.3.2", 1566 | "tunnel-agent": "0.6.0", 1567 | "uuid": "3.0.1" 1568 | } 1569 | }, 1570 | "rimraf": { 1571 | "version": "2.6.1", 1572 | "bundled": true, 1573 | "dev": true, 1574 | "requires": { 1575 | "glob": "7.1.2" 1576 | } 1577 | }, 1578 | "safe-buffer": { 1579 | "version": "5.0.1", 1580 | "bundled": true, 1581 | "dev": true 1582 | }, 1583 | "semver": { 1584 | "version": "5.3.0", 1585 | "bundled": true, 1586 | "dev": true, 1587 | "optional": true 1588 | }, 1589 | "set-blocking": { 1590 | "version": "2.0.0", 1591 | "bundled": true, 1592 | "dev": true, 1593 | "optional": true 1594 | }, 1595 | "signal-exit": { 1596 | "version": "3.0.2", 1597 | "bundled": true, 1598 | "dev": true, 1599 | "optional": true 1600 | }, 1601 | "sntp": { 1602 | "version": "1.0.9", 1603 | "bundled": true, 1604 | "dev": true, 1605 | "requires": { 1606 | "hoek": "2.16.3" 1607 | } 1608 | }, 1609 | "sshpk": { 1610 | "version": "1.13.0", 1611 | "bundled": true, 1612 | "dev": true, 1613 | "optional": true, 1614 | "requires": { 1615 | "asn1": "0.2.3", 1616 | "assert-plus": "1.0.0", 1617 | "bcrypt-pbkdf": "1.0.1", 1618 | "dashdash": "1.14.1", 1619 | "ecc-jsbn": "0.1.1", 1620 | "getpass": "0.1.7", 1621 | "jodid25519": "1.0.2", 1622 | "jsbn": "0.1.1", 1623 | "tweetnacl": "0.14.5" 1624 | }, 1625 | "dependencies": { 1626 | "assert-plus": { 1627 | "version": "1.0.0", 1628 | "bundled": true, 1629 | "dev": true, 1630 | "optional": true 1631 | } 1632 | } 1633 | }, 1634 | "string-width": { 1635 | "version": "1.0.2", 1636 | "bundled": true, 1637 | "dev": true, 1638 | "requires": { 1639 | "code-point-at": "1.1.0", 1640 | "is-fullwidth-code-point": "1.0.0", 1641 | "strip-ansi": "3.0.1" 1642 | } 1643 | }, 1644 | "string_decoder": { 1645 | "version": "1.0.1", 1646 | "bundled": true, 1647 | "dev": true, 1648 | "requires": { 1649 | "safe-buffer": "5.0.1" 1650 | } 1651 | }, 1652 | "stringstream": { 1653 | "version": "0.0.5", 1654 | "bundled": true, 1655 | "dev": true, 1656 | "optional": true 1657 | }, 1658 | "strip-ansi": { 1659 | "version": "3.0.1", 1660 | "bundled": true, 1661 | "dev": true, 1662 | "requires": { 1663 | "ansi-regex": "2.1.1" 1664 | } 1665 | }, 1666 | "strip-json-comments": { 1667 | "version": "2.0.1", 1668 | "bundled": true, 1669 | "dev": true, 1670 | "optional": true 1671 | }, 1672 | "tar": { 1673 | "version": "2.2.1", 1674 | "bundled": true, 1675 | "dev": true, 1676 | "requires": { 1677 | "block-stream": "0.0.9", 1678 | "fstream": "1.0.11", 1679 | "inherits": "2.0.3" 1680 | } 1681 | }, 1682 | "tar-pack": { 1683 | "version": "3.4.0", 1684 | "bundled": true, 1685 | "dev": true, 1686 | "optional": true, 1687 | "requires": { 1688 | "debug": "2.6.8", 1689 | "fstream": "1.0.11", 1690 | "fstream-ignore": "1.0.5", 1691 | "once": "1.4.0", 1692 | "readable-stream": "2.2.9", 1693 | "rimraf": "2.6.1", 1694 | "tar": "2.2.1", 1695 | "uid-number": "0.0.6" 1696 | } 1697 | }, 1698 | "tough-cookie": { 1699 | "version": "2.3.2", 1700 | "bundled": true, 1701 | "dev": true, 1702 | "optional": true, 1703 | "requires": { 1704 | "punycode": "1.4.1" 1705 | } 1706 | }, 1707 | "tunnel-agent": { 1708 | "version": "0.6.0", 1709 | "bundled": true, 1710 | "dev": true, 1711 | "optional": true, 1712 | "requires": { 1713 | "safe-buffer": "5.0.1" 1714 | } 1715 | }, 1716 | "tweetnacl": { 1717 | "version": "0.14.5", 1718 | "bundled": true, 1719 | "dev": true, 1720 | "optional": true 1721 | }, 1722 | "uid-number": { 1723 | "version": "0.0.6", 1724 | "bundled": true, 1725 | "dev": true, 1726 | "optional": true 1727 | }, 1728 | "util-deprecate": { 1729 | "version": "1.0.2", 1730 | "bundled": true, 1731 | "dev": true 1732 | }, 1733 | "uuid": { 1734 | "version": "3.0.1", 1735 | "bundled": true, 1736 | "dev": true, 1737 | "optional": true 1738 | }, 1739 | "verror": { 1740 | "version": "1.3.6", 1741 | "bundled": true, 1742 | "dev": true, 1743 | "optional": true, 1744 | "requires": { 1745 | "extsprintf": "1.0.2" 1746 | } 1747 | }, 1748 | "wide-align": { 1749 | "version": "1.1.2", 1750 | "bundled": true, 1751 | "dev": true, 1752 | "optional": true, 1753 | "requires": { 1754 | "string-width": "1.0.2" 1755 | } 1756 | }, 1757 | "wrappy": { 1758 | "version": "1.0.2", 1759 | "bundled": true, 1760 | "dev": true 1761 | } 1762 | } 1763 | }, 1764 | "ganache-cli": { 1765 | "version": "6.0.3", 1766 | "resolved": "https://registry.npmjs.org/ganache-cli/-/ganache-cli-6.0.3.tgz", 1767 | "integrity": "sha512-C7a8su4Zwtootvcy9HtroshTsyUtLC51+aOGUREpy/G4CXbAuLa3nNQri2NyFdqGyOrm/D+jxYP/PWnnrGLyXg==", 1768 | "dev": true, 1769 | "requires": { 1770 | "webpack": "3.10.0" 1771 | } 1772 | }, 1773 | "get-caller-file": { 1774 | "version": "1.0.2", 1775 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", 1776 | "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" 1777 | }, 1778 | "get-stream": { 1779 | "version": "3.0.0", 1780 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 1781 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", 1782 | "dev": true 1783 | }, 1784 | "glob": { 1785 | "version": "7.1.1", 1786 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", 1787 | "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", 1788 | "requires": { 1789 | "fs.realpath": "1.0.0", 1790 | "inflight": "1.0.6", 1791 | "inherits": "2.0.3", 1792 | "minimatch": "3.0.4", 1793 | "once": "1.4.0", 1794 | "path-is-absolute": "1.0.1" 1795 | } 1796 | }, 1797 | "glob-base": { 1798 | "version": "0.3.0", 1799 | "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", 1800 | "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", 1801 | "dev": true, 1802 | "requires": { 1803 | "glob-parent": "2.0.0", 1804 | "is-glob": "2.0.1" 1805 | } 1806 | }, 1807 | "glob-parent": { 1808 | "version": "2.0.0", 1809 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", 1810 | "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", 1811 | "dev": true, 1812 | "requires": { 1813 | "is-glob": "2.0.1" 1814 | } 1815 | }, 1816 | "graceful-fs": { 1817 | "version": "4.1.11", 1818 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 1819 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" 1820 | }, 1821 | "graceful-readlink": { 1822 | "version": "1.0.1", 1823 | "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", 1824 | "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=" 1825 | }, 1826 | "growl": { 1827 | "version": "1.9.2", 1828 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", 1829 | "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=" 1830 | }, 1831 | "has-flag": { 1832 | "version": "1.0.0", 1833 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", 1834 | "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=" 1835 | }, 1836 | "hash-base": { 1837 | "version": "2.0.2", 1838 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", 1839 | "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", 1840 | "requires": { 1841 | "inherits": "2.0.3" 1842 | } 1843 | }, 1844 | "hash.js": { 1845 | "version": "1.1.3", 1846 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", 1847 | "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", 1848 | "requires": { 1849 | "inherits": "2.0.3", 1850 | "minimalistic-assert": "1.0.0" 1851 | } 1852 | }, 1853 | "he": { 1854 | "version": "1.1.1", 1855 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 1856 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=" 1857 | }, 1858 | "hmac-drbg": { 1859 | "version": "1.0.1", 1860 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 1861 | "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", 1862 | "requires": { 1863 | "hash.js": "1.1.3", 1864 | "minimalistic-assert": "1.0.0", 1865 | "minimalistic-crypto-utils": "1.0.1" 1866 | } 1867 | }, 1868 | "hosted-git-info": { 1869 | "version": "2.5.0", 1870 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", 1871 | "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==" 1872 | }, 1873 | "https-browserify": { 1874 | "version": "1.0.0", 1875 | "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", 1876 | "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", 1877 | "dev": true 1878 | }, 1879 | "ieee754": { 1880 | "version": "1.1.8", 1881 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", 1882 | "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", 1883 | "dev": true 1884 | }, 1885 | "indexof": { 1886 | "version": "0.0.1", 1887 | "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", 1888 | "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", 1889 | "dev": true 1890 | }, 1891 | "inflight": { 1892 | "version": "1.0.6", 1893 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1894 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1895 | "requires": { 1896 | "once": "1.4.0", 1897 | "wrappy": "1.0.2" 1898 | } 1899 | }, 1900 | "inherits": { 1901 | "version": "2.0.3", 1902 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1903 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1904 | }, 1905 | "interpret": { 1906 | "version": "1.1.0", 1907 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", 1908 | "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", 1909 | "dev": true 1910 | }, 1911 | "invert-kv": { 1912 | "version": "1.0.0", 1913 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 1914 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" 1915 | }, 1916 | "is-arrayish": { 1917 | "version": "0.2.1", 1918 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1919 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" 1920 | }, 1921 | "is-binary-path": { 1922 | "version": "1.0.1", 1923 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", 1924 | "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", 1925 | "dev": true, 1926 | "requires": { 1927 | "binary-extensions": "1.11.0" 1928 | } 1929 | }, 1930 | "is-buffer": { 1931 | "version": "1.1.6", 1932 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 1933 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", 1934 | "dev": true 1935 | }, 1936 | "is-builtin-module": { 1937 | "version": "1.0.0", 1938 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", 1939 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", 1940 | "requires": { 1941 | "builtin-modules": "1.1.1" 1942 | } 1943 | }, 1944 | "is-dotfile": { 1945 | "version": "1.0.3", 1946 | "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", 1947 | "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", 1948 | "dev": true 1949 | }, 1950 | "is-equal-shallow": { 1951 | "version": "0.1.3", 1952 | "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", 1953 | "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", 1954 | "dev": true, 1955 | "requires": { 1956 | "is-primitive": "2.0.0" 1957 | } 1958 | }, 1959 | "is-extendable": { 1960 | "version": "0.1.1", 1961 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 1962 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", 1963 | "dev": true 1964 | }, 1965 | "is-extglob": { 1966 | "version": "1.0.0", 1967 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 1968 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 1969 | "dev": true 1970 | }, 1971 | "is-fullwidth-code-point": { 1972 | "version": "1.0.0", 1973 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1974 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1975 | "requires": { 1976 | "number-is-nan": "1.0.1" 1977 | } 1978 | }, 1979 | "is-glob": { 1980 | "version": "2.0.1", 1981 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", 1982 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", 1983 | "dev": true, 1984 | "requires": { 1985 | "is-extglob": "1.0.0" 1986 | } 1987 | }, 1988 | "is-number": { 1989 | "version": "2.1.0", 1990 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", 1991 | "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", 1992 | "dev": true, 1993 | "requires": { 1994 | "kind-of": "3.2.2" 1995 | } 1996 | }, 1997 | "is-posix-bracket": { 1998 | "version": "0.1.1", 1999 | "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", 2000 | "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", 2001 | "dev": true 2002 | }, 2003 | "is-primitive": { 2004 | "version": "2.0.0", 2005 | "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", 2006 | "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", 2007 | "dev": true 2008 | }, 2009 | "is-stream": { 2010 | "version": "1.1.0", 2011 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 2012 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 2013 | "dev": true 2014 | }, 2015 | "is-utf8": { 2016 | "version": "0.2.1", 2017 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", 2018 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" 2019 | }, 2020 | "isarray": { 2021 | "version": "1.0.0", 2022 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 2023 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 2024 | "dev": true 2025 | }, 2026 | "isexe": { 2027 | "version": "2.0.0", 2028 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2029 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 2030 | "dev": true 2031 | }, 2032 | "isobject": { 2033 | "version": "2.1.0", 2034 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", 2035 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", 2036 | "dev": true, 2037 | "requires": { 2038 | "isarray": "1.0.0" 2039 | } 2040 | }, 2041 | "js-sha3": { 2042 | "version": "0.3.1", 2043 | "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", 2044 | "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=" 2045 | }, 2046 | "json-loader": { 2047 | "version": "0.5.7", 2048 | "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", 2049 | "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", 2050 | "dev": true 2051 | }, 2052 | "json-schema-traverse": { 2053 | "version": "0.3.1", 2054 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 2055 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", 2056 | "dev": true 2057 | }, 2058 | "json3": { 2059 | "version": "3.3.2", 2060 | "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", 2061 | "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=" 2062 | }, 2063 | "json5": { 2064 | "version": "0.5.1", 2065 | "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", 2066 | "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", 2067 | "dev": true 2068 | }, 2069 | "jsonfile": { 2070 | "version": "2.4.0", 2071 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", 2072 | "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", 2073 | "requires": { 2074 | "graceful-fs": "4.1.11" 2075 | } 2076 | }, 2077 | "keccakjs": { 2078 | "version": "0.2.1", 2079 | "resolved": "https://registry.npmjs.org/keccakjs/-/keccakjs-0.2.1.tgz", 2080 | "integrity": "sha1-HWM6+QfvMFu/ny+mFtVsRFYd+k0=", 2081 | "requires": { 2082 | "browserify-sha3": "0.0.1", 2083 | "sha3": "1.2.0" 2084 | } 2085 | }, 2086 | "kind-of": { 2087 | "version": "3.2.2", 2088 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2089 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2090 | "dev": true, 2091 | "requires": { 2092 | "is-buffer": "1.1.6" 2093 | } 2094 | }, 2095 | "klaw": { 2096 | "version": "1.3.1", 2097 | "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", 2098 | "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", 2099 | "requires": { 2100 | "graceful-fs": "4.1.11" 2101 | } 2102 | }, 2103 | "lazy-cache": { 2104 | "version": "1.0.4", 2105 | "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", 2106 | "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", 2107 | "dev": true 2108 | }, 2109 | "lcid": { 2110 | "version": "1.0.0", 2111 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 2112 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 2113 | "requires": { 2114 | "invert-kv": "1.0.0" 2115 | } 2116 | }, 2117 | "load-json-file": { 2118 | "version": "1.1.0", 2119 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", 2120 | "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", 2121 | "requires": { 2122 | "graceful-fs": "4.1.11", 2123 | "parse-json": "2.2.0", 2124 | "pify": "2.3.0", 2125 | "pinkie-promise": "2.0.1", 2126 | "strip-bom": "2.0.0" 2127 | } 2128 | }, 2129 | "loader-runner": { 2130 | "version": "2.3.0", 2131 | "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", 2132 | "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", 2133 | "dev": true 2134 | }, 2135 | "loader-utils": { 2136 | "version": "1.1.0", 2137 | "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", 2138 | "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", 2139 | "dev": true, 2140 | "requires": { 2141 | "big.js": "3.2.0", 2142 | "emojis-list": "2.1.0", 2143 | "json5": "0.5.1" 2144 | } 2145 | }, 2146 | "locate-path": { 2147 | "version": "2.0.0", 2148 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 2149 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 2150 | "dev": true, 2151 | "requires": { 2152 | "p-locate": "2.0.0", 2153 | "path-exists": "3.0.0" 2154 | }, 2155 | "dependencies": { 2156 | "path-exists": { 2157 | "version": "3.0.0", 2158 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 2159 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 2160 | "dev": true 2161 | } 2162 | } 2163 | }, 2164 | "lodash": { 2165 | "version": "4.17.4", 2166 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", 2167 | "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", 2168 | "dev": true 2169 | }, 2170 | "lodash._baseassign": { 2171 | "version": "3.2.0", 2172 | "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", 2173 | "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", 2174 | "requires": { 2175 | "lodash._basecopy": "3.0.1", 2176 | "lodash.keys": "3.1.2" 2177 | } 2178 | }, 2179 | "lodash._basecopy": { 2180 | "version": "3.0.1", 2181 | "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", 2182 | "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=" 2183 | }, 2184 | "lodash._basecreate": { 2185 | "version": "3.0.3", 2186 | "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", 2187 | "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=" 2188 | }, 2189 | "lodash._getnative": { 2190 | "version": "3.9.1", 2191 | "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", 2192 | "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=" 2193 | }, 2194 | "lodash._isiterateecall": { 2195 | "version": "3.0.9", 2196 | "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", 2197 | "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=" 2198 | }, 2199 | "lodash.assign": { 2200 | "version": "4.2.0", 2201 | "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", 2202 | "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" 2203 | }, 2204 | "lodash.create": { 2205 | "version": "3.1.1", 2206 | "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", 2207 | "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", 2208 | "requires": { 2209 | "lodash._baseassign": "3.2.0", 2210 | "lodash._basecreate": "3.0.3", 2211 | "lodash._isiterateecall": "3.0.9" 2212 | } 2213 | }, 2214 | "lodash.isarguments": { 2215 | "version": "3.1.0", 2216 | "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", 2217 | "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=" 2218 | }, 2219 | "lodash.isarray": { 2220 | "version": "3.0.4", 2221 | "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", 2222 | "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=" 2223 | }, 2224 | "lodash.keys": { 2225 | "version": "3.1.2", 2226 | "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", 2227 | "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", 2228 | "requires": { 2229 | "lodash._getnative": "3.9.1", 2230 | "lodash.isarguments": "3.1.0", 2231 | "lodash.isarray": "3.0.4" 2232 | } 2233 | }, 2234 | "longest": { 2235 | "version": "1.0.1", 2236 | "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", 2237 | "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", 2238 | "dev": true 2239 | }, 2240 | "lru-cache": { 2241 | "version": "4.1.1", 2242 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", 2243 | "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", 2244 | "dev": true, 2245 | "requires": { 2246 | "pseudomap": "1.0.2", 2247 | "yallist": "2.1.2" 2248 | } 2249 | }, 2250 | "md5.js": { 2251 | "version": "1.3.4", 2252 | "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", 2253 | "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", 2254 | "requires": { 2255 | "hash-base": "3.0.4", 2256 | "inherits": "2.0.3" 2257 | }, 2258 | "dependencies": { 2259 | "hash-base": { 2260 | "version": "3.0.4", 2261 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", 2262 | "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", 2263 | "requires": { 2264 | "inherits": "2.0.3", 2265 | "safe-buffer": "5.1.1" 2266 | } 2267 | } 2268 | } 2269 | }, 2270 | "mem": { 2271 | "version": "1.1.0", 2272 | "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", 2273 | "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", 2274 | "dev": true, 2275 | "requires": { 2276 | "mimic-fn": "1.1.0" 2277 | } 2278 | }, 2279 | "memory-fs": { 2280 | "version": "0.4.1", 2281 | "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", 2282 | "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", 2283 | "dev": true, 2284 | "requires": { 2285 | "errno": "0.1.6", 2286 | "readable-stream": "2.3.3" 2287 | } 2288 | }, 2289 | "memorystream": { 2290 | "version": "0.3.1", 2291 | "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", 2292 | "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=" 2293 | }, 2294 | "micromatch": { 2295 | "version": "2.3.11", 2296 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", 2297 | "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", 2298 | "dev": true, 2299 | "requires": { 2300 | "arr-diff": "2.0.0", 2301 | "array-unique": "0.2.1", 2302 | "braces": "1.8.5", 2303 | "expand-brackets": "0.1.5", 2304 | "extglob": "0.3.2", 2305 | "filename-regex": "2.0.1", 2306 | "is-extglob": "1.0.0", 2307 | "is-glob": "2.0.1", 2308 | "kind-of": "3.2.2", 2309 | "normalize-path": "2.1.1", 2310 | "object.omit": "2.0.1", 2311 | "parse-glob": "3.0.4", 2312 | "regex-cache": "0.4.4" 2313 | } 2314 | }, 2315 | "miller-rabin": { 2316 | "version": "4.0.1", 2317 | "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", 2318 | "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", 2319 | "dev": true, 2320 | "requires": { 2321 | "bn.js": "4.11.8", 2322 | "brorand": "1.1.0" 2323 | } 2324 | }, 2325 | "mimic-fn": { 2326 | "version": "1.1.0", 2327 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.1.0.tgz", 2328 | "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=", 2329 | "dev": true 2330 | }, 2331 | "minimalistic-assert": { 2332 | "version": "1.0.0", 2333 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", 2334 | "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=" 2335 | }, 2336 | "minimalistic-crypto-utils": { 2337 | "version": "1.0.1", 2338 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 2339 | "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" 2340 | }, 2341 | "minimatch": { 2342 | "version": "3.0.4", 2343 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 2344 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 2345 | "requires": { 2346 | "brace-expansion": "1.1.8" 2347 | } 2348 | }, 2349 | "minimist": { 2350 | "version": "0.0.8", 2351 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 2352 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" 2353 | }, 2354 | "mkdirp": { 2355 | "version": "0.5.1", 2356 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 2357 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 2358 | "requires": { 2359 | "minimist": "0.0.8" 2360 | } 2361 | }, 2362 | "mocha": { 2363 | "version": "3.5.3", 2364 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.3.tgz", 2365 | "integrity": "sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg==", 2366 | "requires": { 2367 | "browser-stdout": "1.3.0", 2368 | "commander": "2.9.0", 2369 | "debug": "2.6.8", 2370 | "diff": "3.2.0", 2371 | "escape-string-regexp": "1.0.5", 2372 | "glob": "7.1.1", 2373 | "growl": "1.9.2", 2374 | "he": "1.1.1", 2375 | "json3": "3.3.2", 2376 | "lodash.create": "3.1.1", 2377 | "mkdirp": "0.5.1", 2378 | "supports-color": "3.1.2" 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 | }, 2386 | "nan": { 2387 | "version": "2.8.0", 2388 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz", 2389 | "integrity": "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=" 2390 | }, 2391 | "node-libs-browser": { 2392 | "version": "2.1.0", 2393 | "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", 2394 | "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", 2395 | "dev": true, 2396 | "requires": { 2397 | "assert": "1.4.1", 2398 | "browserify-zlib": "0.2.0", 2399 | "buffer": "4.9.1", 2400 | "console-browserify": "1.1.0", 2401 | "constants-browserify": "1.0.0", 2402 | "crypto-browserify": "3.12.0", 2403 | "domain-browser": "1.2.0", 2404 | "events": "1.1.1", 2405 | "https-browserify": "1.0.0", 2406 | "os-browserify": "0.3.0", 2407 | "path-browserify": "0.0.0", 2408 | "process": "0.11.10", 2409 | "punycode": "1.4.1", 2410 | "querystring-es3": "0.2.1", 2411 | "readable-stream": "2.3.3", 2412 | "stream-browserify": "2.0.1", 2413 | "stream-http": "2.8.0", 2414 | "string_decoder": "1.0.3", 2415 | "timers-browserify": "2.0.6", 2416 | "tty-browserify": "0.0.0", 2417 | "url": "0.11.0", 2418 | "util": "0.10.3", 2419 | "vm-browserify": "0.0.4" 2420 | } 2421 | }, 2422 | "normalize-package-data": { 2423 | "version": "2.4.0", 2424 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", 2425 | "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", 2426 | "requires": { 2427 | "hosted-git-info": "2.5.0", 2428 | "is-builtin-module": "1.0.0", 2429 | "semver": "5.4.1", 2430 | "validate-npm-package-license": "3.0.1" 2431 | } 2432 | }, 2433 | "normalize-path": { 2434 | "version": "2.1.1", 2435 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", 2436 | "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", 2437 | "dev": true, 2438 | "requires": { 2439 | "remove-trailing-separator": "1.1.0" 2440 | } 2441 | }, 2442 | "npm-run-path": { 2443 | "version": "2.0.2", 2444 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 2445 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 2446 | "dev": true, 2447 | "requires": { 2448 | "path-key": "2.0.1" 2449 | } 2450 | }, 2451 | "number-is-nan": { 2452 | "version": "1.0.1", 2453 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 2454 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 2455 | }, 2456 | "object-assign": { 2457 | "version": "4.1.1", 2458 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 2459 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 2460 | "dev": true 2461 | }, 2462 | "object.omit": { 2463 | "version": "2.0.1", 2464 | "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", 2465 | "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", 2466 | "dev": true, 2467 | "requires": { 2468 | "for-own": "0.1.5", 2469 | "is-extendable": "0.1.1" 2470 | } 2471 | }, 2472 | "once": { 2473 | "version": "1.4.0", 2474 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2475 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 2476 | "requires": { 2477 | "wrappy": "1.0.2" 2478 | } 2479 | }, 2480 | "original-require": { 2481 | "version": "1.0.1", 2482 | "resolved": "https://registry.npmjs.org/original-require/-/original-require-1.0.1.tgz", 2483 | "integrity": "sha1-DxMEcVhM0zURxew4yNWSE/msXiA=" 2484 | }, 2485 | "os-browserify": { 2486 | "version": "0.3.0", 2487 | "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", 2488 | "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", 2489 | "dev": true 2490 | }, 2491 | "os-locale": { 2492 | "version": "1.4.0", 2493 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", 2494 | "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", 2495 | "requires": { 2496 | "lcid": "1.0.0" 2497 | } 2498 | }, 2499 | "p-finally": { 2500 | "version": "1.0.0", 2501 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 2502 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 2503 | "dev": true 2504 | }, 2505 | "p-limit": { 2506 | "version": "1.2.0", 2507 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", 2508 | "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", 2509 | "dev": true, 2510 | "requires": { 2511 | "p-try": "1.0.0" 2512 | } 2513 | }, 2514 | "p-locate": { 2515 | "version": "2.0.0", 2516 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 2517 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 2518 | "dev": true, 2519 | "requires": { 2520 | "p-limit": "1.2.0" 2521 | } 2522 | }, 2523 | "p-try": { 2524 | "version": "1.0.0", 2525 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", 2526 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", 2527 | "dev": true 2528 | }, 2529 | "pako": { 2530 | "version": "1.0.6", 2531 | "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", 2532 | "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", 2533 | "dev": true 2534 | }, 2535 | "parse-asn1": { 2536 | "version": "5.1.0", 2537 | "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", 2538 | "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", 2539 | "dev": true, 2540 | "requires": { 2541 | "asn1.js": "4.9.2", 2542 | "browserify-aes": "1.1.1", 2543 | "create-hash": "1.1.3", 2544 | "evp_bytestokey": "1.0.3", 2545 | "pbkdf2": "3.0.14" 2546 | } 2547 | }, 2548 | "parse-glob": { 2549 | "version": "3.0.4", 2550 | "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", 2551 | "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", 2552 | "dev": true, 2553 | "requires": { 2554 | "glob-base": "0.3.0", 2555 | "is-dotfile": "1.0.3", 2556 | "is-extglob": "1.0.0", 2557 | "is-glob": "2.0.1" 2558 | } 2559 | }, 2560 | "parse-json": { 2561 | "version": "2.2.0", 2562 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 2563 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 2564 | "requires": { 2565 | "error-ex": "1.3.1" 2566 | } 2567 | }, 2568 | "path-browserify": { 2569 | "version": "0.0.0", 2570 | "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", 2571 | "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", 2572 | "dev": true 2573 | }, 2574 | "path-exists": { 2575 | "version": "2.1.0", 2576 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", 2577 | "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", 2578 | "requires": { 2579 | "pinkie-promise": "2.0.1" 2580 | } 2581 | }, 2582 | "path-is-absolute": { 2583 | "version": "1.0.1", 2584 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2585 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 2586 | }, 2587 | "path-key": { 2588 | "version": "2.0.1", 2589 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 2590 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 2591 | "dev": true 2592 | }, 2593 | "path-type": { 2594 | "version": "1.1.0", 2595 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", 2596 | "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", 2597 | "requires": { 2598 | "graceful-fs": "4.1.11", 2599 | "pify": "2.3.0", 2600 | "pinkie-promise": "2.0.1" 2601 | } 2602 | }, 2603 | "pbkdf2": { 2604 | "version": "3.0.14", 2605 | "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", 2606 | "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", 2607 | "dev": true, 2608 | "requires": { 2609 | "create-hash": "1.1.3", 2610 | "create-hmac": "1.1.6", 2611 | "ripemd160": "2.0.1", 2612 | "safe-buffer": "5.1.1", 2613 | "sha.js": "2.4.10" 2614 | } 2615 | }, 2616 | "pify": { 2617 | "version": "2.3.0", 2618 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 2619 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" 2620 | }, 2621 | "pinkie": { 2622 | "version": "2.0.4", 2623 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 2624 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" 2625 | }, 2626 | "pinkie-promise": { 2627 | "version": "2.0.1", 2628 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 2629 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 2630 | "requires": { 2631 | "pinkie": "2.0.4" 2632 | } 2633 | }, 2634 | "preserve": { 2635 | "version": "0.2.0", 2636 | "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", 2637 | "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", 2638 | "dev": true 2639 | }, 2640 | "process": { 2641 | "version": "0.11.10", 2642 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 2643 | "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", 2644 | "dev": true 2645 | }, 2646 | "process-nextick-args": { 2647 | "version": "1.0.7", 2648 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", 2649 | "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", 2650 | "dev": true 2651 | }, 2652 | "prr": { 2653 | "version": "1.0.1", 2654 | "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", 2655 | "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", 2656 | "dev": true 2657 | }, 2658 | "pseudomap": { 2659 | "version": "1.0.2", 2660 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 2661 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 2662 | "dev": true 2663 | }, 2664 | "public-encrypt": { 2665 | "version": "4.0.0", 2666 | "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", 2667 | "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", 2668 | "dev": true, 2669 | "requires": { 2670 | "bn.js": "4.11.8", 2671 | "browserify-rsa": "4.0.1", 2672 | "create-hash": "1.1.3", 2673 | "parse-asn1": "5.1.0", 2674 | "randombytes": "2.0.6" 2675 | } 2676 | }, 2677 | "punycode": { 2678 | "version": "1.4.1", 2679 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 2680 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", 2681 | "dev": true 2682 | }, 2683 | "querystring": { 2684 | "version": "0.2.0", 2685 | "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", 2686 | "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", 2687 | "dev": true 2688 | }, 2689 | "querystring-es3": { 2690 | "version": "0.2.1", 2691 | "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", 2692 | "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", 2693 | "dev": true 2694 | }, 2695 | "randomatic": { 2696 | "version": "1.1.7", 2697 | "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", 2698 | "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", 2699 | "dev": true, 2700 | "requires": { 2701 | "is-number": "3.0.0", 2702 | "kind-of": "4.0.0" 2703 | }, 2704 | "dependencies": { 2705 | "is-number": { 2706 | "version": "3.0.0", 2707 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 2708 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 2709 | "dev": true, 2710 | "requires": { 2711 | "kind-of": "3.2.2" 2712 | }, 2713 | "dependencies": { 2714 | "kind-of": { 2715 | "version": "3.2.2", 2716 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2717 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2718 | "dev": true, 2719 | "requires": { 2720 | "is-buffer": "1.1.6" 2721 | } 2722 | } 2723 | } 2724 | }, 2725 | "kind-of": { 2726 | "version": "4.0.0", 2727 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", 2728 | "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", 2729 | "dev": true, 2730 | "requires": { 2731 | "is-buffer": "1.1.6" 2732 | } 2733 | } 2734 | } 2735 | }, 2736 | "randombytes": { 2737 | "version": "2.0.6", 2738 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", 2739 | "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", 2740 | "dev": true, 2741 | "requires": { 2742 | "safe-buffer": "5.1.1" 2743 | } 2744 | }, 2745 | "randomfill": { 2746 | "version": "1.0.3", 2747 | "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz", 2748 | "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", 2749 | "dev": true, 2750 | "requires": { 2751 | "randombytes": "2.0.6", 2752 | "safe-buffer": "5.1.1" 2753 | } 2754 | }, 2755 | "read-pkg": { 2756 | "version": "1.1.0", 2757 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", 2758 | "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", 2759 | "requires": { 2760 | "load-json-file": "1.1.0", 2761 | "normalize-package-data": "2.4.0", 2762 | "path-type": "1.1.0" 2763 | } 2764 | }, 2765 | "read-pkg-up": { 2766 | "version": "1.0.1", 2767 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", 2768 | "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", 2769 | "requires": { 2770 | "find-up": "1.1.2", 2771 | "read-pkg": "1.1.0" 2772 | } 2773 | }, 2774 | "readable-stream": { 2775 | "version": "2.3.3", 2776 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", 2777 | "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", 2778 | "dev": true, 2779 | "requires": { 2780 | "core-util-is": "1.0.2", 2781 | "inherits": "2.0.3", 2782 | "isarray": "1.0.0", 2783 | "process-nextick-args": "1.0.7", 2784 | "safe-buffer": "5.1.1", 2785 | "string_decoder": "1.0.3", 2786 | "util-deprecate": "1.0.2" 2787 | } 2788 | }, 2789 | "readdirp": { 2790 | "version": "2.1.0", 2791 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", 2792 | "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", 2793 | "dev": true, 2794 | "requires": { 2795 | "graceful-fs": "4.1.11", 2796 | "minimatch": "3.0.4", 2797 | "readable-stream": "2.3.3", 2798 | "set-immediate-shim": "1.0.1" 2799 | } 2800 | }, 2801 | "regex-cache": { 2802 | "version": "0.4.4", 2803 | "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", 2804 | "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", 2805 | "dev": true, 2806 | "requires": { 2807 | "is-equal-shallow": "0.1.3" 2808 | } 2809 | }, 2810 | "remove-trailing-separator": { 2811 | "version": "1.1.0", 2812 | "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", 2813 | "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", 2814 | "dev": true 2815 | }, 2816 | "repeat-element": { 2817 | "version": "1.1.2", 2818 | "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", 2819 | "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", 2820 | "dev": true 2821 | }, 2822 | "repeat-string": { 2823 | "version": "1.6.1", 2824 | "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", 2825 | "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", 2826 | "dev": true 2827 | }, 2828 | "require-directory": { 2829 | "version": "2.1.1", 2830 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2831 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" 2832 | }, 2833 | "require-from-string": { 2834 | "version": "1.2.1", 2835 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz", 2836 | "integrity": "sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg=" 2837 | }, 2838 | "require-main-filename": { 2839 | "version": "1.0.1", 2840 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 2841 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" 2842 | }, 2843 | "right-align": { 2844 | "version": "0.1.3", 2845 | "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", 2846 | "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", 2847 | "dev": true, 2848 | "requires": { 2849 | "align-text": "0.1.4" 2850 | } 2851 | }, 2852 | "rimraf": { 2853 | "version": "2.6.2", 2854 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", 2855 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", 2856 | "requires": { 2857 | "glob": "7.1.1" 2858 | } 2859 | }, 2860 | "ripemd160": { 2861 | "version": "2.0.1", 2862 | "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", 2863 | "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", 2864 | "requires": { 2865 | "hash-base": "2.0.2", 2866 | "inherits": "2.0.3" 2867 | } 2868 | }, 2869 | "rlp": { 2870 | "version": "2.0.0", 2871 | "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.0.0.tgz", 2872 | "integrity": "sha1-nbOE/0uJqPYVY9kjldhiWxjzr7A=" 2873 | }, 2874 | "safe-buffer": { 2875 | "version": "5.1.1", 2876 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 2877 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 2878 | }, 2879 | "secp256k1": { 2880 | "version": "3.5.0", 2881 | "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.0.tgz", 2882 | "integrity": "sha512-e5QIJl8W7Y4tT6LHffVcZAxJjvpgE5Owawv6/XCYPQljE9aP2NFFddQ8OYMKhdLshNu88FfL3qCN3/xYkXGRsA==", 2883 | "requires": { 2884 | "bindings": "1.3.0", 2885 | "bip66": "1.1.5", 2886 | "bn.js": "4.11.8", 2887 | "create-hash": "1.1.3", 2888 | "drbg.js": "1.0.1", 2889 | "elliptic": "6.4.0", 2890 | "nan": "2.8.0", 2891 | "safe-buffer": "5.1.1" 2892 | } 2893 | }, 2894 | "semver": { 2895 | "version": "5.4.1", 2896 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", 2897 | "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" 2898 | }, 2899 | "set-blocking": { 2900 | "version": "2.0.0", 2901 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2902 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 2903 | }, 2904 | "set-immediate-shim": { 2905 | "version": "1.0.1", 2906 | "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", 2907 | "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", 2908 | "dev": true 2909 | }, 2910 | "setimmediate": { 2911 | "version": "1.0.5", 2912 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2913 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 2914 | "dev": true 2915 | }, 2916 | "sha.js": { 2917 | "version": "2.4.10", 2918 | "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.10.tgz", 2919 | "integrity": "sha512-vnwmrFDlOExK4Nm16J2KMWHLrp14lBrjxMxBJpu++EnsuBmpiYaM/MEs46Vxxm/4FvdP5yTwuCTO9it5FSjrqA==", 2920 | "requires": { 2921 | "inherits": "2.0.3", 2922 | "safe-buffer": "5.1.1" 2923 | } 2924 | }, 2925 | "sha3": { 2926 | "version": "1.2.0", 2927 | "resolved": "https://registry.npmjs.org/sha3/-/sha3-1.2.0.tgz", 2928 | "integrity": "sha1-aYnxtwpJhwWHajc+LGKs6WqpOZo=", 2929 | "requires": { 2930 | "nan": "2.8.0" 2931 | } 2932 | }, 2933 | "shebang-command": { 2934 | "version": "1.2.0", 2935 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 2936 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 2937 | "dev": true, 2938 | "requires": { 2939 | "shebang-regex": "1.0.0" 2940 | } 2941 | }, 2942 | "shebang-regex": { 2943 | "version": "1.0.0", 2944 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 2945 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 2946 | "dev": true 2947 | }, 2948 | "signal-exit": { 2949 | "version": "3.0.2", 2950 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 2951 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 2952 | "dev": true 2953 | }, 2954 | "solc": { 2955 | "version": "0.4.18", 2956 | "resolved": "https://registry.npmjs.org/solc/-/solc-0.4.18.tgz", 2957 | "integrity": "sha512-Kq+O3PNF9Pfq7fB+lDYAuoqRdghLmZyfngsg0h1Hj38NKAeVHeGPOGeZasn5KqdPeCzbMFvaGyTySxzGv6aXCg==", 2958 | "requires": { 2959 | "fs-extra": "0.30.0", 2960 | "memorystream": "0.3.1", 2961 | "require-from-string": "1.2.1", 2962 | "semver": "5.4.1", 2963 | "yargs": "4.8.1" 2964 | } 2965 | }, 2966 | "source-list-map": { 2967 | "version": "2.0.0", 2968 | "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", 2969 | "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", 2970 | "dev": true 2971 | }, 2972 | "source-map": { 2973 | "version": "0.5.7", 2974 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 2975 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", 2976 | "dev": true 2977 | }, 2978 | "spdx-correct": { 2979 | "version": "1.0.2", 2980 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", 2981 | "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", 2982 | "requires": { 2983 | "spdx-license-ids": "1.2.2" 2984 | } 2985 | }, 2986 | "spdx-expression-parse": { 2987 | "version": "1.0.4", 2988 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", 2989 | "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=" 2990 | }, 2991 | "spdx-license-ids": { 2992 | "version": "1.2.2", 2993 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", 2994 | "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=" 2995 | }, 2996 | "stream-browserify": { 2997 | "version": "2.0.1", 2998 | "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", 2999 | "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", 3000 | "dev": true, 3001 | "requires": { 3002 | "inherits": "2.0.3", 3003 | "readable-stream": "2.3.3" 3004 | } 3005 | }, 3006 | "stream-http": { 3007 | "version": "2.8.0", 3008 | "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.0.tgz", 3009 | "integrity": "sha512-sZOFxI/5xw058XIRHl4dU3dZ+TTOIGJR78Dvo0oEAejIt4ou27k+3ne1zYmCV+v7UucbxIFQuOgnkTVHh8YPnw==", 3010 | "dev": true, 3011 | "requires": { 3012 | "builtin-status-codes": "3.0.0", 3013 | "inherits": "2.0.3", 3014 | "readable-stream": "2.3.3", 3015 | "to-arraybuffer": "1.0.1", 3016 | "xtend": "4.0.1" 3017 | } 3018 | }, 3019 | "string-width": { 3020 | "version": "1.0.2", 3021 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 3022 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 3023 | "requires": { 3024 | "code-point-at": "1.1.0", 3025 | "is-fullwidth-code-point": "1.0.0", 3026 | "strip-ansi": "3.0.1" 3027 | } 3028 | }, 3029 | "string_decoder": { 3030 | "version": "1.0.3", 3031 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", 3032 | "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", 3033 | "dev": true, 3034 | "requires": { 3035 | "safe-buffer": "5.1.1" 3036 | } 3037 | }, 3038 | "strip-ansi": { 3039 | "version": "3.0.1", 3040 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 3041 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 3042 | "requires": { 3043 | "ansi-regex": "2.1.1" 3044 | } 3045 | }, 3046 | "strip-bom": { 3047 | "version": "2.0.0", 3048 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", 3049 | "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", 3050 | "requires": { 3051 | "is-utf8": "0.2.1" 3052 | } 3053 | }, 3054 | "strip-eof": { 3055 | "version": "1.0.0", 3056 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 3057 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 3058 | "dev": true 3059 | }, 3060 | "supports-color": { 3061 | "version": "3.1.2", 3062 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", 3063 | "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", 3064 | "requires": { 3065 | "has-flag": "1.0.0" 3066 | } 3067 | }, 3068 | "tapable": { 3069 | "version": "0.2.8", 3070 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", 3071 | "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", 3072 | "dev": true 3073 | }, 3074 | "timers-browserify": { 3075 | "version": "2.0.6", 3076 | "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.6.tgz", 3077 | "integrity": "sha512-HQ3nbYRAowdVd0ckGFvmJPPCOH/CHleFN/Y0YQCX1DVaB7t+KFvisuyN09fuP8Jtp1CpfSh8O8bMkHbdbPe6Pw==", 3078 | "dev": true, 3079 | "requires": { 3080 | "setimmediate": "1.0.5" 3081 | } 3082 | }, 3083 | "to-arraybuffer": { 3084 | "version": "1.0.1", 3085 | "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", 3086 | "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", 3087 | "dev": true 3088 | }, 3089 | "truffle": { 3090 | "version": "4.0.4", 3091 | "resolved": "https://registry.npmjs.org/truffle/-/truffle-4.0.4.tgz", 3092 | "integrity": "sha512-keAkRNNfU3W7yUMRDF3YHoqmqdv6TChXY0g+RuPpxnRHfspXVtIKwuN2pV07jzY/RbDsIKShcSyF7VBV7eZUvg==", 3093 | "requires": { 3094 | "mocha": "3.5.3", 3095 | "original-require": "1.0.1", 3096 | "solc": "0.4.18" 3097 | } 3098 | }, 3099 | "tty-browserify": { 3100 | "version": "0.0.0", 3101 | "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", 3102 | "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", 3103 | "dev": true 3104 | }, 3105 | "uglify-js": { 3106 | "version": "2.8.29", 3107 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", 3108 | "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", 3109 | "dev": true, 3110 | "requires": { 3111 | "source-map": "0.5.7", 3112 | "uglify-to-browserify": "1.0.2", 3113 | "yargs": "3.10.0" 3114 | }, 3115 | "dependencies": { 3116 | "camelcase": { 3117 | "version": "1.2.1", 3118 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", 3119 | "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", 3120 | "dev": true 3121 | }, 3122 | "cliui": { 3123 | "version": "2.1.0", 3124 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", 3125 | "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", 3126 | "dev": true, 3127 | "requires": { 3128 | "center-align": "0.1.3", 3129 | "right-align": "0.1.3", 3130 | "wordwrap": "0.0.2" 3131 | } 3132 | }, 3133 | "window-size": { 3134 | "version": "0.1.0", 3135 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", 3136 | "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", 3137 | "dev": true 3138 | }, 3139 | "yargs": { 3140 | "version": "3.10.0", 3141 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", 3142 | "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", 3143 | "dev": true, 3144 | "requires": { 3145 | "camelcase": "1.2.1", 3146 | "cliui": "2.1.0", 3147 | "decamelize": "1.2.0", 3148 | "window-size": "0.1.0" 3149 | } 3150 | } 3151 | } 3152 | }, 3153 | "uglify-to-browserify": { 3154 | "version": "1.0.2", 3155 | "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", 3156 | "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", 3157 | "dev": true, 3158 | "optional": true 3159 | }, 3160 | "uglifyjs-webpack-plugin": { 3161 | "version": "0.4.6", 3162 | "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", 3163 | "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", 3164 | "dev": true, 3165 | "requires": { 3166 | "source-map": "0.5.7", 3167 | "uglify-js": "2.8.29", 3168 | "webpack-sources": "1.1.0" 3169 | } 3170 | }, 3171 | "url": { 3172 | "version": "0.11.0", 3173 | "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", 3174 | "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", 3175 | "dev": true, 3176 | "requires": { 3177 | "punycode": "1.3.2", 3178 | "querystring": "0.2.0" 3179 | }, 3180 | "dependencies": { 3181 | "punycode": { 3182 | "version": "1.3.2", 3183 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", 3184 | "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", 3185 | "dev": true 3186 | } 3187 | } 3188 | }, 3189 | "util": { 3190 | "version": "0.10.3", 3191 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", 3192 | "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", 3193 | "dev": true, 3194 | "requires": { 3195 | "inherits": "2.0.1" 3196 | }, 3197 | "dependencies": { 3198 | "inherits": { 3199 | "version": "2.0.1", 3200 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", 3201 | "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", 3202 | "dev": true 3203 | } 3204 | } 3205 | }, 3206 | "util-deprecate": { 3207 | "version": "1.0.2", 3208 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 3209 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 3210 | "dev": true 3211 | }, 3212 | "validate-npm-package-license": { 3213 | "version": "3.0.1", 3214 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", 3215 | "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", 3216 | "requires": { 3217 | "spdx-correct": "1.0.2", 3218 | "spdx-expression-parse": "1.0.4" 3219 | } 3220 | }, 3221 | "vm-browserify": { 3222 | "version": "0.0.4", 3223 | "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", 3224 | "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", 3225 | "dev": true, 3226 | "requires": { 3227 | "indexof": "0.0.1" 3228 | } 3229 | }, 3230 | "watchpack": { 3231 | "version": "1.4.0", 3232 | "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz", 3233 | "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=", 3234 | "dev": true, 3235 | "requires": { 3236 | "async": "2.6.0", 3237 | "chokidar": "1.7.0", 3238 | "graceful-fs": "4.1.11" 3239 | } 3240 | }, 3241 | "webpack": { 3242 | "version": "3.10.0", 3243 | "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.10.0.tgz", 3244 | "integrity": "sha512-fxxKXoicjdXNUMY7LIdY89tkJJJ0m1Oo8PQutZ5rLgWbV5QVKI15Cn7+/IHnRTd3vfKfiwBx6SBqlorAuNA8LA==", 3245 | "dev": true, 3246 | "requires": { 3247 | "acorn": "5.3.0", 3248 | "acorn-dynamic-import": "2.0.2", 3249 | "ajv": "5.5.2", 3250 | "ajv-keywords": "2.1.1", 3251 | "async": "2.6.0", 3252 | "enhanced-resolve": "3.4.1", 3253 | "escope": "3.6.0", 3254 | "interpret": "1.1.0", 3255 | "json-loader": "0.5.7", 3256 | "json5": "0.5.1", 3257 | "loader-runner": "2.3.0", 3258 | "loader-utils": "1.1.0", 3259 | "memory-fs": "0.4.1", 3260 | "mkdirp": "0.5.1", 3261 | "node-libs-browser": "2.1.0", 3262 | "source-map": "0.5.7", 3263 | "supports-color": "4.5.0", 3264 | "tapable": "0.2.8", 3265 | "uglifyjs-webpack-plugin": "0.4.6", 3266 | "watchpack": "1.4.0", 3267 | "webpack-sources": "1.1.0", 3268 | "yargs": "8.0.2" 3269 | }, 3270 | "dependencies": { 3271 | "ansi-regex": { 3272 | "version": "3.0.0", 3273 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 3274 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 3275 | "dev": true 3276 | }, 3277 | "camelcase": { 3278 | "version": "4.1.0", 3279 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 3280 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", 3281 | "dev": true 3282 | }, 3283 | "find-up": { 3284 | "version": "2.1.0", 3285 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 3286 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 3287 | "dev": true, 3288 | "requires": { 3289 | "locate-path": "2.0.0" 3290 | } 3291 | }, 3292 | "has-flag": { 3293 | "version": "2.0.0", 3294 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", 3295 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", 3296 | "dev": true 3297 | }, 3298 | "is-fullwidth-code-point": { 3299 | "version": "2.0.0", 3300 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 3301 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 3302 | "dev": true 3303 | }, 3304 | "load-json-file": { 3305 | "version": "2.0.0", 3306 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", 3307 | "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", 3308 | "dev": true, 3309 | "requires": { 3310 | "graceful-fs": "4.1.11", 3311 | "parse-json": "2.2.0", 3312 | "pify": "2.3.0", 3313 | "strip-bom": "3.0.0" 3314 | } 3315 | }, 3316 | "os-locale": { 3317 | "version": "2.1.0", 3318 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", 3319 | "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", 3320 | "dev": true, 3321 | "requires": { 3322 | "execa": "0.7.0", 3323 | "lcid": "1.0.0", 3324 | "mem": "1.1.0" 3325 | } 3326 | }, 3327 | "path-type": { 3328 | "version": "2.0.0", 3329 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", 3330 | "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", 3331 | "dev": true, 3332 | "requires": { 3333 | "pify": "2.3.0" 3334 | } 3335 | }, 3336 | "read-pkg": { 3337 | "version": "2.0.0", 3338 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", 3339 | "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", 3340 | "dev": true, 3341 | "requires": { 3342 | "load-json-file": "2.0.0", 3343 | "normalize-package-data": "2.4.0", 3344 | "path-type": "2.0.0" 3345 | } 3346 | }, 3347 | "read-pkg-up": { 3348 | "version": "2.0.0", 3349 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", 3350 | "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", 3351 | "dev": true, 3352 | "requires": { 3353 | "find-up": "2.1.0", 3354 | "read-pkg": "2.0.0" 3355 | } 3356 | }, 3357 | "string-width": { 3358 | "version": "2.1.1", 3359 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 3360 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 3361 | "dev": true, 3362 | "requires": { 3363 | "is-fullwidth-code-point": "2.0.0", 3364 | "strip-ansi": "4.0.0" 3365 | } 3366 | }, 3367 | "strip-ansi": { 3368 | "version": "4.0.0", 3369 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 3370 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 3371 | "dev": true, 3372 | "requires": { 3373 | "ansi-regex": "3.0.0" 3374 | } 3375 | }, 3376 | "strip-bom": { 3377 | "version": "3.0.0", 3378 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 3379 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", 3380 | "dev": true 3381 | }, 3382 | "supports-color": { 3383 | "version": "4.5.0", 3384 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", 3385 | "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", 3386 | "dev": true, 3387 | "requires": { 3388 | "has-flag": "2.0.0" 3389 | } 3390 | }, 3391 | "which-module": { 3392 | "version": "2.0.0", 3393 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 3394 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 3395 | "dev": true 3396 | }, 3397 | "yargs": { 3398 | "version": "8.0.2", 3399 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", 3400 | "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", 3401 | "dev": true, 3402 | "requires": { 3403 | "camelcase": "4.1.0", 3404 | "cliui": "3.2.0", 3405 | "decamelize": "1.2.0", 3406 | "get-caller-file": "1.0.2", 3407 | "os-locale": "2.1.0", 3408 | "read-pkg-up": "2.0.0", 3409 | "require-directory": "2.1.1", 3410 | "require-main-filename": "1.0.1", 3411 | "set-blocking": "2.0.0", 3412 | "string-width": "2.1.1", 3413 | "which-module": "2.0.0", 3414 | "y18n": "3.2.1", 3415 | "yargs-parser": "7.0.0" 3416 | } 3417 | }, 3418 | "yargs-parser": { 3419 | "version": "7.0.0", 3420 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", 3421 | "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", 3422 | "dev": true, 3423 | "requires": { 3424 | "camelcase": "4.1.0" 3425 | } 3426 | } 3427 | } 3428 | }, 3429 | "webpack-sources": { 3430 | "version": "1.1.0", 3431 | "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", 3432 | "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", 3433 | "dev": true, 3434 | "requires": { 3435 | "source-list-map": "2.0.0", 3436 | "source-map": "0.6.1" 3437 | }, 3438 | "dependencies": { 3439 | "source-map": { 3440 | "version": "0.6.1", 3441 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 3442 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 3443 | "dev": true 3444 | } 3445 | } 3446 | }, 3447 | "which": { 3448 | "version": "1.3.0", 3449 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", 3450 | "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", 3451 | "dev": true, 3452 | "requires": { 3453 | "isexe": "2.0.0" 3454 | } 3455 | }, 3456 | "which-module": { 3457 | "version": "1.0.0", 3458 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", 3459 | "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=" 3460 | }, 3461 | "window-size": { 3462 | "version": "0.2.0", 3463 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", 3464 | "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=" 3465 | }, 3466 | "wordwrap": { 3467 | "version": "0.0.2", 3468 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", 3469 | "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", 3470 | "dev": true 3471 | }, 3472 | "wrap-ansi": { 3473 | "version": "2.1.0", 3474 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 3475 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 3476 | "requires": { 3477 | "string-width": "1.0.2", 3478 | "strip-ansi": "3.0.1" 3479 | } 3480 | }, 3481 | "wrappy": { 3482 | "version": "1.0.2", 3483 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3484 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 3485 | }, 3486 | "xtend": { 3487 | "version": "4.0.1", 3488 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 3489 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", 3490 | "dev": true 3491 | }, 3492 | "y18n": { 3493 | "version": "3.2.1", 3494 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 3495 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" 3496 | }, 3497 | "yallist": { 3498 | "version": "2.1.2", 3499 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 3500 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 3501 | "dev": true 3502 | }, 3503 | "yargs": { 3504 | "version": "4.8.1", 3505 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", 3506 | "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", 3507 | "requires": { 3508 | "cliui": "3.2.0", 3509 | "decamelize": "1.2.0", 3510 | "get-caller-file": "1.0.2", 3511 | "lodash.assign": "4.2.0", 3512 | "os-locale": "1.4.0", 3513 | "read-pkg-up": "1.0.1", 3514 | "require-directory": "2.1.1", 3515 | "require-main-filename": "1.0.1", 3516 | "set-blocking": "2.0.0", 3517 | "string-width": "1.0.2", 3518 | "which-module": "1.0.0", 3519 | "window-size": "0.2.0", 3520 | "y18n": "3.2.1", 3521 | "yargs-parser": "2.4.1" 3522 | } 3523 | }, 3524 | "yargs-parser": { 3525 | "version": "2.4.1", 3526 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz", 3527 | "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=", 3528 | "requires": { 3529 | "camelcase": "3.0.0", 3530 | "lodash.assign": "4.2.0" 3531 | } 3532 | } 3533 | } 3534 | } 3535 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pay-protocol", 3 | "version": "1.0.0", 4 | "description": "Protocol to make crypto p2p payments take over the world", 5 | "main": "index.js", 6 | "scripts": { 7 | "dev": "truffle develop", 8 | "test": "npm run ganache-cli:dev && truffle test --network rpc", 9 | "ganache-cli:dev": "scripts/ganache-cli.sh" 10 | }, 11 | "author": "Jorge Izquierdo ", 12 | "license": "GPL-3.0", 13 | "dependencies": { 14 | "@aragon/apps-token-manager": "^1.0.1", 15 | "@aragon/core": "^2.0.1", 16 | "ethereumjs-abi": "^0.6.5", 17 | "truffle": "^4.0.4" 18 | }, 19 | "devDependencies": { 20 | "ganache-cli": "^6.0.3" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /pay.js/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | Transfer: require('./src/transfer'), 3 | Signer: require('./src/sign') 4 | } 5 | -------------------------------------------------------------------------------- /pay.js/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pay.js", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "bindings": { 8 | "version": "1.3.0", 9 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", 10 | "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==" 11 | }, 12 | "bip66": { 13 | "version": "1.1.5", 14 | "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", 15 | "integrity": "sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI=", 16 | "requires": { 17 | "safe-buffer": "5.1.1" 18 | } 19 | }, 20 | "bn.js": { 21 | "version": "4.11.8", 22 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", 23 | "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" 24 | }, 25 | "brorand": { 26 | "version": "1.1.0", 27 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 28 | "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" 29 | }, 30 | "browserify-aes": { 31 | "version": "1.1.1", 32 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", 33 | "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==", 34 | "requires": { 35 | "buffer-xor": "1.0.3", 36 | "cipher-base": "1.0.4", 37 | "create-hash": "1.1.3", 38 | "evp_bytestokey": "1.0.3", 39 | "inherits": "2.0.3", 40 | "safe-buffer": "5.1.1" 41 | } 42 | }, 43 | "browserify-sha3": { 44 | "version": "0.0.1", 45 | "resolved": "https://registry.npmjs.org/browserify-sha3/-/browserify-sha3-0.0.1.tgz", 46 | "integrity": "sha1-P/NKMAbvFcD7NWflQbkaI0ASPRE=", 47 | "requires": { 48 | "js-sha3": "0.3.1" 49 | } 50 | }, 51 | "buffer-xor": { 52 | "version": "1.0.3", 53 | "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", 54 | "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" 55 | }, 56 | "cipher-base": { 57 | "version": "1.0.4", 58 | "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", 59 | "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", 60 | "requires": { 61 | "inherits": "2.0.3", 62 | "safe-buffer": "5.1.1" 63 | } 64 | }, 65 | "create-hash": { 66 | "version": "1.1.3", 67 | "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", 68 | "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", 69 | "requires": { 70 | "cipher-base": "1.0.4", 71 | "inherits": "2.0.3", 72 | "ripemd160": "2.0.1", 73 | "sha.js": "2.4.10" 74 | } 75 | }, 76 | "create-hmac": { 77 | "version": "1.1.6", 78 | "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", 79 | "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", 80 | "requires": { 81 | "cipher-base": "1.0.4", 82 | "create-hash": "1.1.3", 83 | "inherits": "2.0.3", 84 | "ripemd160": "2.0.1", 85 | "safe-buffer": "5.1.1", 86 | "sha.js": "2.4.10" 87 | } 88 | }, 89 | "drbg.js": { 90 | "version": "1.0.1", 91 | "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", 92 | "integrity": "sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs=", 93 | "requires": { 94 | "browserify-aes": "1.1.1", 95 | "create-hash": "1.1.3", 96 | "create-hmac": "1.1.6" 97 | } 98 | }, 99 | "elliptic": { 100 | "version": "6.4.0", 101 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", 102 | "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", 103 | "requires": { 104 | "bn.js": "4.11.8", 105 | "brorand": "1.1.0", 106 | "hash.js": "1.1.3", 107 | "hmac-drbg": "1.0.1", 108 | "inherits": "2.0.3", 109 | "minimalistic-assert": "1.0.0", 110 | "minimalistic-crypto-utils": "1.0.1" 111 | } 112 | }, 113 | "eth-sig-util": { 114 | "version": "1.4.2", 115 | "resolved": "https://registry.npmjs.org/eth-sig-util/-/eth-sig-util-1.4.2.tgz", 116 | "integrity": "sha1-jZWCAsftuq6Dlwf7pvCf8ydgYhA=", 117 | "requires": { 118 | "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git#71f123b676f2b2d81bc20f343670d90045a3d3d8", 119 | "ethereumjs-util": "5.1.3" 120 | } 121 | }, 122 | "ethereumjs-abi": { 123 | "version": "git+https://github.com/ethereumjs/ethereumjs-abi.git#71f123b676f2b2d81bc20f343670d90045a3d3d8", 124 | "requires": { 125 | "bn.js": "4.11.8", 126 | "ethereumjs-util": "4.5.0" 127 | }, 128 | "dependencies": { 129 | "ethereumjs-util": { 130 | "version": "4.5.0", 131 | "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz", 132 | "integrity": "sha1-PpQosxfuvaPXJg2FT93alUsfG8Y=", 133 | "requires": { 134 | "bn.js": "4.11.8", 135 | "create-hash": "1.1.3", 136 | "keccakjs": "0.2.1", 137 | "rlp": "2.0.0", 138 | "secp256k1": "3.5.0" 139 | } 140 | } 141 | } 142 | }, 143 | "ethereumjs-util": { 144 | "version": "5.1.3", 145 | "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.1.3.tgz", 146 | "integrity": "sha512-U/wmHagElZVxnpo3bFsvk5beFADegUcEzqtA/NfQbitAPOs6JoYq8M4SY9NfH4HD8236i63UOkkXafd7bqBL9A==", 147 | "requires": { 148 | "bn.js": "4.11.8", 149 | "create-hash": "1.1.3", 150 | "ethjs-util": "0.1.4", 151 | "keccak": "1.4.0", 152 | "rlp": "2.0.0", 153 | "safe-buffer": "5.1.1", 154 | "secp256k1": "3.5.0" 155 | } 156 | }, 157 | "ethjs-util": { 158 | "version": "0.1.4", 159 | "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.4.tgz", 160 | "integrity": "sha1-HItoeSV0RO9NPz+7rC3tEs2ZfZM=", 161 | "requires": { 162 | "is-hex-prefixed": "1.0.0", 163 | "strip-hex-prefix": "1.0.0" 164 | } 165 | }, 166 | "evp_bytestokey": { 167 | "version": "1.0.3", 168 | "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", 169 | "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", 170 | "requires": { 171 | "md5.js": "1.3.4", 172 | "safe-buffer": "5.1.1" 173 | } 174 | }, 175 | "hash-base": { 176 | "version": "2.0.2", 177 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", 178 | "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", 179 | "requires": { 180 | "inherits": "2.0.3" 181 | } 182 | }, 183 | "hash.js": { 184 | "version": "1.1.3", 185 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", 186 | "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", 187 | "requires": { 188 | "inherits": "2.0.3", 189 | "minimalistic-assert": "1.0.0" 190 | } 191 | }, 192 | "hmac-drbg": { 193 | "version": "1.0.1", 194 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 195 | "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", 196 | "requires": { 197 | "hash.js": "1.1.3", 198 | "minimalistic-assert": "1.0.0", 199 | "minimalistic-crypto-utils": "1.0.1" 200 | } 201 | }, 202 | "inherits": { 203 | "version": "2.0.3", 204 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 205 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 206 | }, 207 | "is-hex-prefixed": { 208 | "version": "1.0.0", 209 | "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", 210 | "integrity": "sha1-fY035q135dEnFIkTxXPggtd39VQ=" 211 | }, 212 | "js-sha3": { 213 | "version": "0.3.1", 214 | "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", 215 | "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=" 216 | }, 217 | "keccak": { 218 | "version": "1.4.0", 219 | "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz", 220 | "integrity": "sha512-eZVaCpblK5formjPjeTBik7TAg+pqnDrMHIffSvi9Lh7PQgM1+hSzakUeZFCk9DVVG0dacZJuaz2ntwlzZUIBw==", 221 | "requires": { 222 | "bindings": "1.3.0", 223 | "inherits": "2.0.3", 224 | "nan": "2.8.0", 225 | "safe-buffer": "5.1.1" 226 | } 227 | }, 228 | "keccakjs": { 229 | "version": "0.2.1", 230 | "resolved": "https://registry.npmjs.org/keccakjs/-/keccakjs-0.2.1.tgz", 231 | "integrity": "sha1-HWM6+QfvMFu/ny+mFtVsRFYd+k0=", 232 | "requires": { 233 | "browserify-sha3": "0.0.1", 234 | "sha3": "1.2.0" 235 | } 236 | }, 237 | "md5.js": { 238 | "version": "1.3.4", 239 | "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", 240 | "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", 241 | "requires": { 242 | "hash-base": "3.0.4", 243 | "inherits": "2.0.3" 244 | }, 245 | "dependencies": { 246 | "hash-base": { 247 | "version": "3.0.4", 248 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", 249 | "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", 250 | "requires": { 251 | "inherits": "2.0.3", 252 | "safe-buffer": "5.1.1" 253 | } 254 | } 255 | } 256 | }, 257 | "minimalistic-assert": { 258 | "version": "1.0.0", 259 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", 260 | "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=" 261 | }, 262 | "minimalistic-crypto-utils": { 263 | "version": "1.0.1", 264 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 265 | "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" 266 | }, 267 | "nan": { 268 | "version": "2.8.0", 269 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz", 270 | "integrity": "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=" 271 | }, 272 | "ripemd160": { 273 | "version": "2.0.1", 274 | "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", 275 | "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", 276 | "requires": { 277 | "hash-base": "2.0.2", 278 | "inherits": "2.0.3" 279 | } 280 | }, 281 | "rlp": { 282 | "version": "2.0.0", 283 | "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.0.0.tgz", 284 | "integrity": "sha1-nbOE/0uJqPYVY9kjldhiWxjzr7A=" 285 | }, 286 | "safe-buffer": { 287 | "version": "5.1.1", 288 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 289 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 290 | }, 291 | "secp256k1": { 292 | "version": "3.5.0", 293 | "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.0.tgz", 294 | "integrity": "sha512-e5QIJl8W7Y4tT6LHffVcZAxJjvpgE5Owawv6/XCYPQljE9aP2NFFddQ8OYMKhdLshNu88FfL3qCN3/xYkXGRsA==", 295 | "requires": { 296 | "bindings": "1.3.0", 297 | "bip66": "1.1.5", 298 | "bn.js": "4.11.8", 299 | "create-hash": "1.1.3", 300 | "drbg.js": "1.0.1", 301 | "elliptic": "6.4.0", 302 | "nan": "2.8.0", 303 | "safe-buffer": "5.1.1" 304 | } 305 | }, 306 | "sha.js": { 307 | "version": "2.4.10", 308 | "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.10.tgz", 309 | "integrity": "sha512-vnwmrFDlOExK4Nm16J2KMWHLrp14lBrjxMxBJpu++EnsuBmpiYaM/MEs46Vxxm/4FvdP5yTwuCTO9it5FSjrqA==", 310 | "requires": { 311 | "inherits": "2.0.3", 312 | "safe-buffer": "5.1.1" 313 | } 314 | }, 315 | "sha3": { 316 | "version": "1.2.0", 317 | "resolved": "https://registry.npmjs.org/sha3/-/sha3-1.2.0.tgz", 318 | "integrity": "sha1-aYnxtwpJhwWHajc+LGKs6WqpOZo=", 319 | "requires": { 320 | "nan": "2.8.0" 321 | } 322 | }, 323 | "strip-hex-prefix": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", 326 | "integrity": "sha1-DF8VX+8RUTczd96du1iNoFUA428=", 327 | "requires": { 328 | "is-hex-prefixed": "1.0.0" 329 | } 330 | } 331 | } 332 | } 333 | -------------------------------------------------------------------------------- /pay.js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pay.js", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "eth-sig-util": "^1.4.2" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pay.js/src/sign.js: -------------------------------------------------------------------------------- 1 | const { signTypedData } = require('eth-sig-util') 2 | 3 | class PrivateKeySigner { 4 | constructor(privateKey) { 5 | this.privateKey = Buffer.from(privateKey.slice(2), 'hex') 6 | 7 | console.log(this.privateKey) 8 | } 9 | 10 | sign(transfer) { 11 | return signTypedData(this.privateKey, { data: transfer.typedData()}) 12 | } 13 | } 14 | 15 | module.exports = PrivateKeySigner 16 | -------------------------------------------------------------------------------- /pay.js/src/transfer.js: -------------------------------------------------------------------------------- 1 | const { typedSignatureHash } = require('eth-sig-util') 2 | const { soliditySHA3 } = require('ethereumjs-abi') 3 | 4 | class Transfer { 5 | constructor(protocol, token, to, value, expires, pull, push, deps, from) { 6 | this.protocol = protocol 7 | this.token = token 8 | this.to = to 9 | this.value = value 10 | this.expires = expires 11 | this.pull = pull 12 | this.push = push 13 | this.deps = deps 14 | this.from = from 15 | } 16 | 17 | transferHash(from) { 18 | if (from != null) { 19 | this.from = from 20 | } 21 | 22 | return typedSignatureHash(this.typedData()) 23 | } 24 | 25 | // SCHEMA: 26 | // 'address protocol', 'address token', 'address from', 'address to', 'uint256 value', 'uint256 expires', 'bool pull', 'bool push', 'bytes32[] deps' 27 | 28 | typedData() { 29 | return [ 30 | { type: 'address', name: 'protocol', value: this.protocol }, 31 | { type: 'address', name: 'token', value: this.token }, 32 | { type: 'address', name: 'from', value: this.from }, 33 | { type: 'address', name: 'to', value: this.to }, 34 | { type: 'uint256', name: 'value', value: this.value }, 35 | { type: 'uint256', name: 'expires', value: this.expires }, 36 | { type: 'bool', name: 'pull', value: this.pull }, 37 | { type: 'bool', name: 'push', value: this.push }, 38 | { type: 'bytes32', name: 'depsHash', value: this.depsHash() }, 39 | ] 40 | } 41 | 42 | depsHash() { 43 | const types = new Array(this.deps.length).fill('bytes32') 44 | return '0x'+soliditySHA3(types, this.deps).toString('hex') 45 | } 46 | } 47 | 48 | module.exports = Transfer 49 | -------------------------------------------------------------------------------- /scripts/ganache-cli.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Exit script as soon as a command fails. 4 | set -o errexit 5 | 6 | if [ "$SOLIDITY_COVERAGE" = true ]; then 7 | testrpc_port=8555 8 | else 9 | testrpc_port=8545 10 | fi 11 | 12 | testrpc_running() { 13 | nc -z localhost "$testrpc_port" 14 | } 15 | 16 | start_testrpc() { 17 | if [ "$SOLIDITY_COVERAGE" = true ]; then 18 | node_modules/.bin/testrpc-sc -i 16 --gasLimit 0xfffffffffff --port "$testrpc_port" > /dev/null & 19 | else 20 | node_modules/.bin/ganache-cli -i 15 --gasLimit 50000000 > /dev/null & 21 | fi 22 | 23 | testrpc_pid=$! 24 | } 25 | 26 | if testrpc_running; then 27 | echo "Using existing testrpc instance at port $testrpc_port" 28 | else 29 | echo "Starting our own testrpc instance at port $testrpc_port" 30 | start_testrpc 31 | fi 32 | -------------------------------------------------------------------------------- /test/helpers/assertErrors.js: -------------------------------------------------------------------------------- 1 | function assertError(error, s, message) { 2 | assert.isAbove(error.message.search(s), -1, message); 3 | } 4 | 5 | async function assertThrows(codeBlock, message, errorCode) { 6 | try { 7 | await codeBlock() 8 | } catch (e) { 9 | return assertError(e, errorCode, message) 10 | } 11 | assert.fail('should have thrown before') 12 | } 13 | 14 | module.exports = { 15 | async assertJump(codeBlock, message = 'should have failed with invalid JUMP') { 16 | return assertThrows(codeBlock, message, 'invalid JUMP') 17 | }, 18 | 19 | async assertInvalidOpcode(codeBlock, message = 'should have failed with invalid opcode') { 20 | return assertThrows(codeBlock, message, 'invalid opcode') 21 | }, 22 | 23 | async assertRevert(codeBlock, message = 'should have failed by reverting') { 24 | return assertThrows(codeBlock, message, 'revert') 25 | }, 26 | } 27 | -------------------------------------------------------------------------------- /test/transfers.js: -------------------------------------------------------------------------------- 1 | const { assertRevert } = require('./helpers/assertErrors') 2 | const payjs = require('../pay.js') 3 | 4 | const PayProtocol = artifacts.require('PayProtocol') 5 | 6 | contract('Pay, transfers', accounts => { 7 | let pay = {} 8 | 9 | const testAccount = { 10 | privateKey: '0x79b71a893c193802d16ad407ab4ad8fe2bf84cc7b8a9a0c1bd1c0fff4998ecad', 11 | address: '0x67e5e9dc12b2b02d1273522ec2c7cec8e447623d', 12 | } 13 | 14 | before(async () => { 15 | pay = await PayProtocol.new() 16 | }) 17 | 18 | it('has empty balances', async () => { 19 | assert.equal(await pay.balance('0x0', '0x0'), 0) 20 | }) 21 | 22 | context('transfer payload manipulation', () => { 23 | const token = accounts[2] 24 | const to = accounts[1] 25 | const value = 10 26 | const expires = 10 27 | const pull = true 28 | const push = false 29 | const deps = [] 30 | 31 | const from = testAccount.address 32 | const signer = new payjs.Signer(testAccount.privateKey) 33 | 34 | it('transfer hash matches with pay.js', async () => { 35 | const t = new payjs.Transfer(pay.address, token, to, value, expires, pull, push, deps) 36 | 37 | const hashJS = t.transferHash(from) 38 | const hashSol = await pay.getHash(token, from, to, value, expires, pull, push, deps) 39 | 40 | assert.equal(hashJS, hashSol, 'js and sol hashes should match') 41 | }) 42 | 43 | it('can sign transfer', async () => { 44 | const t = new payjs.Transfer(pay.address, token, to, value, expires, pull, push, deps) 45 | const sig = signer.sign(t) 46 | 47 | console.log(sig) 48 | }) 49 | }) 50 | }) 51 | -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // See 3 | // to customize your Truffle configuration! 4 | }; 5 | -------------------------------------------------------------------------------- /truffle.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // See 3 | // to customize your Truffle configuration! 4 | }; 5 | --------------------------------------------------------------------------------