├── .gitignore ├── .nojekyll ├── 404.html ├── CNAME ├── LICENSE ├── README.md ├── contracts ├── BasicToken.json ├── ERC20.json ├── ERC20Basic.json ├── LeekCoin.json ├── LeekCoinCrowdsale.json ├── Migrations.json ├── MintableToken.json ├── Ownable.json ├── SafeMath.json ├── StandardToken.json └── token.json ├── crowdsale.html ├── css ├── main.css └── scifi.css ├── images └── icons │ ├── android-icon-192x192.png │ ├── apple-icon-120x120.png │ ├── apple-icon-144x144.png │ ├── apple-icon-152x152.png │ ├── apple-icon-76x76.png │ └── favicon.png ├── index.html ├── js ├── TweenMax.min.js ├── backgrounds │ ├── drifter.min.js │ └── particles.min.js ├── buy-token.js ├── dependencies.js ├── jquery.min.js ├── main.js ├── truffle-contract.js └── web3.min.js ├── package-lock.json ├── package.json ├── white-paper.pdf └── white-paper.txt /.gitignore: -------------------------------------------------------------------------------- 1 | _site/ 2 | .sass-cache/ 3 | .jekyll-metadata 4 | node_modules 5 | -------------------------------------------------------------------------------- /.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/.nojekyll -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 31 | 32 | 404 | Leek Ecological Chain 33 | 34 | 35 | 36 | 40 | 41 | 42 | 43 | 44 | 45 |
46 |
47 |
48 | 49 |
50 |
51 |
52 |

Looks like you're lost...

53 |

404. The page you were looking for appears to have been moved, deleted or does not exist. Here are some useful links instead...

54 | 58 |
59 |
60 |
61 | 62 |
63 | © LEC. All Rights Reserved 64 |
65 | 66 | 67 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | lec.yubolun.com -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Disney 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # lec 2 | Leek Ecological Chain 3 | -------------------------------------------------------------------------------- /contracts/ERC20.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "ERC20", 3 | "abi": [ 4 | { 5 | "constant": true, 6 | "inputs": [], 7 | "name": "totalSupply", 8 | "outputs": [ 9 | { 10 | "name": "", 11 | "type": "uint256" 12 | } 13 | ], 14 | "payable": false, 15 | "stateMutability": "view", 16 | "type": "function" 17 | }, 18 | { 19 | "constant": true, 20 | "inputs": [ 21 | { 22 | "name": "who", 23 | "type": "address" 24 | } 25 | ], 26 | "name": "balanceOf", 27 | "outputs": [ 28 | { 29 | "name": "", 30 | "type": "uint256" 31 | } 32 | ], 33 | "payable": false, 34 | "stateMutability": "view", 35 | "type": "function" 36 | }, 37 | { 38 | "constant": false, 39 | "inputs": [ 40 | { 41 | "name": "to", 42 | "type": "address" 43 | }, 44 | { 45 | "name": "value", 46 | "type": "uint256" 47 | } 48 | ], 49 | "name": "transfer", 50 | "outputs": [ 51 | { 52 | "name": "", 53 | "type": "bool" 54 | } 55 | ], 56 | "payable": false, 57 | "stateMutability": "nonpayable", 58 | "type": "function" 59 | }, 60 | { 61 | "anonymous": false, 62 | "inputs": [ 63 | { 64 | "indexed": true, 65 | "name": "owner", 66 | "type": "address" 67 | }, 68 | { 69 | "indexed": true, 70 | "name": "spender", 71 | "type": "address" 72 | }, 73 | { 74 | "indexed": false, 75 | "name": "value", 76 | "type": "uint256" 77 | } 78 | ], 79 | "name": "Approval", 80 | "type": "event" 81 | }, 82 | { 83 | "anonymous": false, 84 | "inputs": [ 85 | { 86 | "indexed": true, 87 | "name": "from", 88 | "type": "address" 89 | }, 90 | { 91 | "indexed": true, 92 | "name": "to", 93 | "type": "address" 94 | }, 95 | { 96 | "indexed": false, 97 | "name": "value", 98 | "type": "uint256" 99 | } 100 | ], 101 | "name": "Transfer", 102 | "type": "event" 103 | }, 104 | { 105 | "constant": true, 106 | "inputs": [ 107 | { 108 | "name": "owner", 109 | "type": "address" 110 | }, 111 | { 112 | "name": "spender", 113 | "type": "address" 114 | } 115 | ], 116 | "name": "allowance", 117 | "outputs": [ 118 | { 119 | "name": "", 120 | "type": "uint256" 121 | } 122 | ], 123 | "payable": false, 124 | "stateMutability": "view", 125 | "type": "function" 126 | }, 127 | { 128 | "constant": false, 129 | "inputs": [ 130 | { 131 | "name": "from", 132 | "type": "address" 133 | }, 134 | { 135 | "name": "to", 136 | "type": "address" 137 | }, 138 | { 139 | "name": "value", 140 | "type": "uint256" 141 | } 142 | ], 143 | "name": "transferFrom", 144 | "outputs": [ 145 | { 146 | "name": "", 147 | "type": "bool" 148 | } 149 | ], 150 | "payable": false, 151 | "stateMutability": "nonpayable", 152 | "type": "function" 153 | }, 154 | { 155 | "constant": false, 156 | "inputs": [ 157 | { 158 | "name": "spender", 159 | "type": "address" 160 | }, 161 | { 162 | "name": "value", 163 | "type": "uint256" 164 | } 165 | ], 166 | "name": "approve", 167 | "outputs": [ 168 | { 169 | "name": "", 170 | "type": "bool" 171 | } 172 | ], 173 | "payable": false, 174 | "stateMutability": "nonpayable", 175 | "type": "function" 176 | } 177 | ], 178 | "bytecode": "0x", 179 | "deployedBytecode": "0x", 180 | "sourceMap": "", 181 | "deployedSourceMap": "", 182 | "source": "pragma solidity ^0.4.18;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address owner, address spender) public view returns (uint256);\n function transferFrom(address from, address to, uint256 value) public returns (bool);\n function approve(address spender, uint256 value) public returns (bool);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n", 183 | "sourcePath": "zeppelin-solidity\\contracts\\token\\ERC20\\ERC20.sol", 184 | "ast": { 185 | "attributes": { 186 | "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", 187 | "exportedSymbols": { 188 | "ERC20": [ 189 | 581 190 | ] 191 | } 192 | }, 193 | "children": [ 194 | { 195 | "attributes": { 196 | "literals": [ 197 | "solidity", 198 | "^", 199 | "0.4", 200 | ".18" 201 | ] 202 | }, 203 | "id": 540, 204 | "name": "PragmaDirective", 205 | "src": "0:24:5" 206 | }, 207 | { 208 | "attributes": { 209 | "SourceUnit": 614, 210 | "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", 211 | "file": "./ERC20Basic.sol", 212 | "scope": 582, 213 | "symbolAliases": [ 214 | null 215 | ], 216 | "unitAlias": "" 217 | }, 218 | "id": 541, 219 | "name": "ImportDirective", 220 | "src": "26:26:5" 221 | }, 222 | { 223 | "attributes": { 224 | "contractDependencies": [ 225 | 613 226 | ], 227 | "contractKind": "contract", 228 | "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", 229 | "fullyImplemented": false, 230 | "linearizedBaseContracts": [ 231 | 581, 232 | 613 233 | ], 234 | "name": "ERC20", 235 | "scope": 582 236 | }, 237 | "children": [ 238 | { 239 | "attributes": { 240 | "arguments": [ 241 | null 242 | ] 243 | }, 244 | "children": [ 245 | { 246 | "attributes": { 247 | "contractScope": null, 248 | "name": "ERC20Basic", 249 | "referencedDeclaration": 613, 250 | "type": "contract ERC20Basic" 251 | }, 252 | "id": 542, 253 | "name": "UserDefinedTypeName", 254 | "src": "162:10:5" 255 | } 256 | ], 257 | "id": 543, 258 | "name": "InheritanceSpecifier", 259 | "src": "162:10:5" 260 | }, 261 | { 262 | "attributes": { 263 | "body": null, 264 | "constant": true, 265 | "implemented": false, 266 | "isConstructor": false, 267 | "modifiers": [ 268 | null 269 | ], 270 | "name": "allowance", 271 | "payable": false, 272 | "scope": 581, 273 | "stateMutability": "view", 274 | "superFunction": null, 275 | "visibility": "public" 276 | }, 277 | "children": [ 278 | { 279 | "children": [ 280 | { 281 | "attributes": { 282 | "constant": false, 283 | "name": "owner", 284 | "scope": 552, 285 | "stateVariable": false, 286 | "storageLocation": "default", 287 | "type": "address", 288 | "value": null, 289 | "visibility": "internal" 290 | }, 291 | "children": [ 292 | { 293 | "attributes": { 294 | "name": "address", 295 | "type": "address" 296 | }, 297 | "id": 544, 298 | "name": "ElementaryTypeName", 299 | "src": "196:7:5" 300 | } 301 | ], 302 | "id": 545, 303 | "name": "VariableDeclaration", 304 | "src": "196:13:5" 305 | }, 306 | { 307 | "attributes": { 308 | "constant": false, 309 | "name": "spender", 310 | "scope": 552, 311 | "stateVariable": false, 312 | "storageLocation": "default", 313 | "type": "address", 314 | "value": null, 315 | "visibility": "internal" 316 | }, 317 | "children": [ 318 | { 319 | "attributes": { 320 | "name": "address", 321 | "type": "address" 322 | }, 323 | "id": 546, 324 | "name": "ElementaryTypeName", 325 | "src": "211:7:5" 326 | } 327 | ], 328 | "id": 547, 329 | "name": "VariableDeclaration", 330 | "src": "211:15:5" 331 | } 332 | ], 333 | "id": 548, 334 | "name": "ParameterList", 335 | "src": "195:32:5" 336 | }, 337 | { 338 | "children": [ 339 | { 340 | "attributes": { 341 | "constant": false, 342 | "name": "", 343 | "scope": 552, 344 | "stateVariable": false, 345 | "storageLocation": "default", 346 | "type": "uint256", 347 | "value": null, 348 | "visibility": "internal" 349 | }, 350 | "children": [ 351 | { 352 | "attributes": { 353 | "name": "uint256", 354 | "type": "uint256" 355 | }, 356 | "id": 549, 357 | "name": "ElementaryTypeName", 358 | "src": "249:7:5" 359 | } 360 | ], 361 | "id": 550, 362 | "name": "VariableDeclaration", 363 | "src": "249:7:5" 364 | } 365 | ], 366 | "id": 551, 367 | "name": "ParameterList", 368 | "src": "248:9:5" 369 | } 370 | ], 371 | "id": 552, 372 | "name": "FunctionDefinition", 373 | "src": "177:81:5" 374 | }, 375 | { 376 | "attributes": { 377 | "body": null, 378 | "constant": false, 379 | "implemented": false, 380 | "isConstructor": false, 381 | "modifiers": [ 382 | null 383 | ], 384 | "name": "transferFrom", 385 | "payable": false, 386 | "scope": 581, 387 | "stateMutability": "nonpayable", 388 | "superFunction": null, 389 | "visibility": "public" 390 | }, 391 | "children": [ 392 | { 393 | "children": [ 394 | { 395 | "attributes": { 396 | "constant": false, 397 | "name": "from", 398 | "scope": 563, 399 | "stateVariable": false, 400 | "storageLocation": "default", 401 | "type": "address", 402 | "value": null, 403 | "visibility": "internal" 404 | }, 405 | "children": [ 406 | { 407 | "attributes": { 408 | "name": "address", 409 | "type": "address" 410 | }, 411 | "id": 553, 412 | "name": "ElementaryTypeName", 413 | "src": "283:7:5" 414 | } 415 | ], 416 | "id": 554, 417 | "name": "VariableDeclaration", 418 | "src": "283:12:5" 419 | }, 420 | { 421 | "attributes": { 422 | "constant": false, 423 | "name": "to", 424 | "scope": 563, 425 | "stateVariable": false, 426 | "storageLocation": "default", 427 | "type": "address", 428 | "value": null, 429 | "visibility": "internal" 430 | }, 431 | "children": [ 432 | { 433 | "attributes": { 434 | "name": "address", 435 | "type": "address" 436 | }, 437 | "id": 555, 438 | "name": "ElementaryTypeName", 439 | "src": "297:7:5" 440 | } 441 | ], 442 | "id": 556, 443 | "name": "VariableDeclaration", 444 | "src": "297:10:5" 445 | }, 446 | { 447 | "attributes": { 448 | "constant": false, 449 | "name": "value", 450 | "scope": 563, 451 | "stateVariable": false, 452 | "storageLocation": "default", 453 | "type": "uint256", 454 | "value": null, 455 | "visibility": "internal" 456 | }, 457 | "children": [ 458 | { 459 | "attributes": { 460 | "name": "uint256", 461 | "type": "uint256" 462 | }, 463 | "id": 557, 464 | "name": "ElementaryTypeName", 465 | "src": "309:7:5" 466 | } 467 | ], 468 | "id": 558, 469 | "name": "VariableDeclaration", 470 | "src": "309:13:5" 471 | } 472 | ], 473 | "id": 559, 474 | "name": "ParameterList", 475 | "src": "282:41:5" 476 | }, 477 | { 478 | "children": [ 479 | { 480 | "attributes": { 481 | "constant": false, 482 | "name": "", 483 | "scope": 563, 484 | "stateVariable": false, 485 | "storageLocation": "default", 486 | "type": "bool", 487 | "value": null, 488 | "visibility": "internal" 489 | }, 490 | "children": [ 491 | { 492 | "attributes": { 493 | "name": "bool", 494 | "type": "bool" 495 | }, 496 | "id": 560, 497 | "name": "ElementaryTypeName", 498 | "src": "340:4:5" 499 | } 500 | ], 501 | "id": 561, 502 | "name": "VariableDeclaration", 503 | "src": "340:4:5" 504 | } 505 | ], 506 | "id": 562, 507 | "name": "ParameterList", 508 | "src": "339:6:5" 509 | } 510 | ], 511 | "id": 563, 512 | "name": "FunctionDefinition", 513 | "src": "261:85:5" 514 | }, 515 | { 516 | "attributes": { 517 | "body": null, 518 | "constant": false, 519 | "implemented": false, 520 | "isConstructor": false, 521 | "modifiers": [ 522 | null 523 | ], 524 | "name": "approve", 525 | "payable": false, 526 | "scope": 581, 527 | "stateMutability": "nonpayable", 528 | "superFunction": null, 529 | "visibility": "public" 530 | }, 531 | "children": [ 532 | { 533 | "children": [ 534 | { 535 | "attributes": { 536 | "constant": false, 537 | "name": "spender", 538 | "scope": 572, 539 | "stateVariable": false, 540 | "storageLocation": "default", 541 | "type": "address", 542 | "value": null, 543 | "visibility": "internal" 544 | }, 545 | "children": [ 546 | { 547 | "attributes": { 548 | "name": "address", 549 | "type": "address" 550 | }, 551 | "id": 564, 552 | "name": "ElementaryTypeName", 553 | "src": "366:7:5" 554 | } 555 | ], 556 | "id": 565, 557 | "name": "VariableDeclaration", 558 | "src": "366:15:5" 559 | }, 560 | { 561 | "attributes": { 562 | "constant": false, 563 | "name": "value", 564 | "scope": 572, 565 | "stateVariable": false, 566 | "storageLocation": "default", 567 | "type": "uint256", 568 | "value": null, 569 | "visibility": "internal" 570 | }, 571 | "children": [ 572 | { 573 | "attributes": { 574 | "name": "uint256", 575 | "type": "uint256" 576 | }, 577 | "id": 566, 578 | "name": "ElementaryTypeName", 579 | "src": "383:7:5" 580 | } 581 | ], 582 | "id": 567, 583 | "name": "VariableDeclaration", 584 | "src": "383:13:5" 585 | } 586 | ], 587 | "id": 568, 588 | "name": "ParameterList", 589 | "src": "365:32:5" 590 | }, 591 | { 592 | "children": [ 593 | { 594 | "attributes": { 595 | "constant": false, 596 | "name": "", 597 | "scope": 572, 598 | "stateVariable": false, 599 | "storageLocation": "default", 600 | "type": "bool", 601 | "value": null, 602 | "visibility": "internal" 603 | }, 604 | "children": [ 605 | { 606 | "attributes": { 607 | "name": "bool", 608 | "type": "bool" 609 | }, 610 | "id": 569, 611 | "name": "ElementaryTypeName", 612 | "src": "414:4:5" 613 | } 614 | ], 615 | "id": 570, 616 | "name": "VariableDeclaration", 617 | "src": "414:4:5" 618 | } 619 | ], 620 | "id": 571, 621 | "name": "ParameterList", 622 | "src": "413:6:5" 623 | } 624 | ], 625 | "id": 572, 626 | "name": "FunctionDefinition", 627 | "src": "349:71:5" 628 | }, 629 | { 630 | "attributes": { 631 | "anonymous": false, 632 | "name": "Approval" 633 | }, 634 | "children": [ 635 | { 636 | "children": [ 637 | { 638 | "attributes": { 639 | "constant": false, 640 | "indexed": true, 641 | "name": "owner", 642 | "scope": 580, 643 | "stateVariable": false, 644 | "storageLocation": "default", 645 | "type": "address", 646 | "value": null, 647 | "visibility": "internal" 648 | }, 649 | "children": [ 650 | { 651 | "attributes": { 652 | "name": "address", 653 | "type": "address" 654 | }, 655 | "id": 573, 656 | "name": "ElementaryTypeName", 657 | "src": "438:7:5" 658 | } 659 | ], 660 | "id": 574, 661 | "name": "VariableDeclaration", 662 | "src": "438:21:5" 663 | }, 664 | { 665 | "attributes": { 666 | "constant": false, 667 | "indexed": true, 668 | "name": "spender", 669 | "scope": 580, 670 | "stateVariable": false, 671 | "storageLocation": "default", 672 | "type": "address", 673 | "value": null, 674 | "visibility": "internal" 675 | }, 676 | "children": [ 677 | { 678 | "attributes": { 679 | "name": "address", 680 | "type": "address" 681 | }, 682 | "id": 575, 683 | "name": "ElementaryTypeName", 684 | "src": "461:7:5" 685 | } 686 | ], 687 | "id": 576, 688 | "name": "VariableDeclaration", 689 | "src": "461:23:5" 690 | }, 691 | { 692 | "attributes": { 693 | "constant": false, 694 | "indexed": false, 695 | "name": "value", 696 | "scope": 580, 697 | "stateVariable": false, 698 | "storageLocation": "default", 699 | "type": "uint256", 700 | "value": null, 701 | "visibility": "internal" 702 | }, 703 | "children": [ 704 | { 705 | "attributes": { 706 | "name": "uint256", 707 | "type": "uint256" 708 | }, 709 | "id": 577, 710 | "name": "ElementaryTypeName", 711 | "src": "486:7:5" 712 | } 713 | ], 714 | "id": 578, 715 | "name": "VariableDeclaration", 716 | "src": "486:13:5" 717 | } 718 | ], 719 | "id": 579, 720 | "name": "ParameterList", 721 | "src": "437:63:5" 722 | } 723 | ], 724 | "id": 580, 725 | "name": "EventDefinition", 726 | "src": "423:78:5" 727 | } 728 | ], 729 | "id": 581, 730 | "name": "ContractDefinition", 731 | "src": "144:359:5" 732 | } 733 | ], 734 | "id": 582, 735 | "name": "SourceUnit", 736 | "src": "0:504:5" 737 | }, 738 | "compiler": { 739 | "name": "solc", 740 | "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" 741 | }, 742 | "networks": {}, 743 | "schemaVersion": "1.0.1", 744 | "updatedAt": "2018-02-03T10:35:56.370Z" 745 | } -------------------------------------------------------------------------------- /contracts/ERC20Basic.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "ERC20Basic", 3 | "abi": [ 4 | { 5 | "anonymous": false, 6 | "inputs": [ 7 | { 8 | "indexed": true, 9 | "name": "from", 10 | "type": "address" 11 | }, 12 | { 13 | "indexed": true, 14 | "name": "to", 15 | "type": "address" 16 | }, 17 | { 18 | "indexed": false, 19 | "name": "value", 20 | "type": "uint256" 21 | } 22 | ], 23 | "name": "Transfer", 24 | "type": "event" 25 | }, 26 | { 27 | "constant": true, 28 | "inputs": [], 29 | "name": "totalSupply", 30 | "outputs": [ 31 | { 32 | "name": "", 33 | "type": "uint256" 34 | } 35 | ], 36 | "payable": false, 37 | "stateMutability": "view", 38 | "type": "function" 39 | }, 40 | { 41 | "constant": true, 42 | "inputs": [ 43 | { 44 | "name": "who", 45 | "type": "address" 46 | } 47 | ], 48 | "name": "balanceOf", 49 | "outputs": [ 50 | { 51 | "name": "", 52 | "type": "uint256" 53 | } 54 | ], 55 | "payable": false, 56 | "stateMutability": "view", 57 | "type": "function" 58 | }, 59 | { 60 | "constant": false, 61 | "inputs": [ 62 | { 63 | "name": "to", 64 | "type": "address" 65 | }, 66 | { 67 | "name": "value", 68 | "type": "uint256" 69 | } 70 | ], 71 | "name": "transfer", 72 | "outputs": [ 73 | { 74 | "name": "", 75 | "type": "bool" 76 | } 77 | ], 78 | "payable": false, 79 | "stateMutability": "nonpayable", 80 | "type": "function" 81 | } 82 | ], 83 | "bytecode": "0x", 84 | "deployedBytecode": "0x", 85 | "sourceMap": "", 86 | "deployedSourceMap": "", 87 | "source": "pragma solidity ^0.4.18;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n", 88 | "sourcePath": "zeppelin-solidity\\contracts\\token\\ERC20\\ERC20Basic.sol", 89 | "ast": { 90 | "attributes": { 91 | "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", 92 | "exportedSymbols": { 93 | "ERC20Basic": [ 94 | 613 95 | ] 96 | } 97 | }, 98 | "children": [ 99 | { 100 | "attributes": { 101 | "literals": [ 102 | "solidity", 103 | "^", 104 | "0.4", 105 | ".18" 106 | ] 107 | }, 108 | "id": 583, 109 | "name": "PragmaDirective", 110 | "src": "0:24:6" 111 | }, 112 | { 113 | "attributes": { 114 | "baseContracts": [ 115 | null 116 | ], 117 | "contractDependencies": [ 118 | null 119 | ], 120 | "contractKind": "contract", 121 | "documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/179", 122 | "fullyImplemented": false, 123 | "linearizedBaseContracts": [ 124 | 613 125 | ], 126 | "name": "ERC20Basic", 127 | "scope": 614 128 | }, 129 | "children": [ 130 | { 131 | "attributes": { 132 | "body": null, 133 | "constant": true, 134 | "implemented": false, 135 | "isConstructor": false, 136 | "modifiers": [ 137 | null 138 | ], 139 | "name": "totalSupply", 140 | "payable": false, 141 | "scope": 613, 142 | "stateMutability": "view", 143 | "superFunction": null, 144 | "visibility": "public" 145 | }, 146 | "children": [ 147 | { 148 | "attributes": { 149 | "parameters": [ 150 | null 151 | ] 152 | }, 153 | "children": [], 154 | "id": 584, 155 | "name": "ParameterList", 156 | "src": "199:2:6" 157 | }, 158 | { 159 | "children": [ 160 | { 161 | "attributes": { 162 | "constant": false, 163 | "name": "", 164 | "scope": 588, 165 | "stateVariable": false, 166 | "storageLocation": "default", 167 | "type": "uint256", 168 | "value": null, 169 | "visibility": "internal" 170 | }, 171 | "children": [ 172 | { 173 | "attributes": { 174 | "name": "uint256", 175 | "type": "uint256" 176 | }, 177 | "id": 585, 178 | "name": "ElementaryTypeName", 179 | "src": "223:7:6" 180 | } 181 | ], 182 | "id": 586, 183 | "name": "VariableDeclaration", 184 | "src": "223:7:6" 185 | } 186 | ], 187 | "id": 587, 188 | "name": "ParameterList", 189 | "src": "222:9:6" 190 | } 191 | ], 192 | "id": 588, 193 | "name": "FunctionDefinition", 194 | "src": "179:53:6" 195 | }, 196 | { 197 | "attributes": { 198 | "body": null, 199 | "constant": true, 200 | "implemented": false, 201 | "isConstructor": false, 202 | "modifiers": [ 203 | null 204 | ], 205 | "name": "balanceOf", 206 | "payable": false, 207 | "scope": 613, 208 | "stateMutability": "view", 209 | "superFunction": null, 210 | "visibility": "public" 211 | }, 212 | "children": [ 213 | { 214 | "children": [ 215 | { 216 | "attributes": { 217 | "constant": false, 218 | "name": "who", 219 | "scope": 595, 220 | "stateVariable": false, 221 | "storageLocation": "default", 222 | "type": "address", 223 | "value": null, 224 | "visibility": "internal" 225 | }, 226 | "children": [ 227 | { 228 | "attributes": { 229 | "name": "address", 230 | "type": "address" 231 | }, 232 | "id": 589, 233 | "name": "ElementaryTypeName", 234 | "src": "254:7:6" 235 | } 236 | ], 237 | "id": 590, 238 | "name": "VariableDeclaration", 239 | "src": "254:11:6" 240 | } 241 | ], 242 | "id": 591, 243 | "name": "ParameterList", 244 | "src": "253:13:6" 245 | }, 246 | { 247 | "children": [ 248 | { 249 | "attributes": { 250 | "constant": false, 251 | "name": "", 252 | "scope": 595, 253 | "stateVariable": false, 254 | "storageLocation": "default", 255 | "type": "uint256", 256 | "value": null, 257 | "visibility": "internal" 258 | }, 259 | "children": [ 260 | { 261 | "attributes": { 262 | "name": "uint256", 263 | "type": "uint256" 264 | }, 265 | "id": 592, 266 | "name": "ElementaryTypeName", 267 | "src": "288:7:6" 268 | } 269 | ], 270 | "id": 593, 271 | "name": "VariableDeclaration", 272 | "src": "288:7:6" 273 | } 274 | ], 275 | "id": 594, 276 | "name": "ParameterList", 277 | "src": "287:9:6" 278 | } 279 | ], 280 | "id": 595, 281 | "name": "FunctionDefinition", 282 | "src": "235:62:6" 283 | }, 284 | { 285 | "attributes": { 286 | "body": null, 287 | "constant": false, 288 | "implemented": false, 289 | "isConstructor": false, 290 | "modifiers": [ 291 | null 292 | ], 293 | "name": "transfer", 294 | "payable": false, 295 | "scope": 613, 296 | "stateMutability": "nonpayable", 297 | "superFunction": null, 298 | "visibility": "public" 299 | }, 300 | "children": [ 301 | { 302 | "children": [ 303 | { 304 | "attributes": { 305 | "constant": false, 306 | "name": "to", 307 | "scope": 604, 308 | "stateVariable": false, 309 | "storageLocation": "default", 310 | "type": "address", 311 | "value": null, 312 | "visibility": "internal" 313 | }, 314 | "children": [ 315 | { 316 | "attributes": { 317 | "name": "address", 318 | "type": "address" 319 | }, 320 | "id": 596, 321 | "name": "ElementaryTypeName", 322 | "src": "318:7:6" 323 | } 324 | ], 325 | "id": 597, 326 | "name": "VariableDeclaration", 327 | "src": "318:10:6" 328 | }, 329 | { 330 | "attributes": { 331 | "constant": false, 332 | "name": "value", 333 | "scope": 604, 334 | "stateVariable": false, 335 | "storageLocation": "default", 336 | "type": "uint256", 337 | "value": null, 338 | "visibility": "internal" 339 | }, 340 | "children": [ 341 | { 342 | "attributes": { 343 | "name": "uint256", 344 | "type": "uint256" 345 | }, 346 | "id": 598, 347 | "name": "ElementaryTypeName", 348 | "src": "330:7:6" 349 | } 350 | ], 351 | "id": 599, 352 | "name": "VariableDeclaration", 353 | "src": "330:13:6" 354 | } 355 | ], 356 | "id": 600, 357 | "name": "ParameterList", 358 | "src": "317:27:6" 359 | }, 360 | { 361 | "children": [ 362 | { 363 | "attributes": { 364 | "constant": false, 365 | "name": "", 366 | "scope": 604, 367 | "stateVariable": false, 368 | "storageLocation": "default", 369 | "type": "bool", 370 | "value": null, 371 | "visibility": "internal" 372 | }, 373 | "children": [ 374 | { 375 | "attributes": { 376 | "name": "bool", 377 | "type": "bool" 378 | }, 379 | "id": 601, 380 | "name": "ElementaryTypeName", 381 | "src": "361:4:6" 382 | } 383 | ], 384 | "id": 602, 385 | "name": "VariableDeclaration", 386 | "src": "361:4:6" 387 | } 388 | ], 389 | "id": 603, 390 | "name": "ParameterList", 391 | "src": "360:6:6" 392 | } 393 | ], 394 | "id": 604, 395 | "name": "FunctionDefinition", 396 | "src": "300:67:6" 397 | }, 398 | { 399 | "attributes": { 400 | "anonymous": false, 401 | "name": "Transfer" 402 | }, 403 | "children": [ 404 | { 405 | "children": [ 406 | { 407 | "attributes": { 408 | "constant": false, 409 | "indexed": true, 410 | "name": "from", 411 | "scope": 612, 412 | "stateVariable": false, 413 | "storageLocation": "default", 414 | "type": "address", 415 | "value": null, 416 | "visibility": "internal" 417 | }, 418 | "children": [ 419 | { 420 | "attributes": { 421 | "name": "address", 422 | "type": "address" 423 | }, 424 | "id": 605, 425 | "name": "ElementaryTypeName", 426 | "src": "385:7:6" 427 | } 428 | ], 429 | "id": 606, 430 | "name": "VariableDeclaration", 431 | "src": "385:20:6" 432 | }, 433 | { 434 | "attributes": { 435 | "constant": false, 436 | "indexed": true, 437 | "name": "to", 438 | "scope": 612, 439 | "stateVariable": false, 440 | "storageLocation": "default", 441 | "type": "address", 442 | "value": null, 443 | "visibility": "internal" 444 | }, 445 | "children": [ 446 | { 447 | "attributes": { 448 | "name": "address", 449 | "type": "address" 450 | }, 451 | "id": 607, 452 | "name": "ElementaryTypeName", 453 | "src": "407:7:6" 454 | } 455 | ], 456 | "id": 608, 457 | "name": "VariableDeclaration", 458 | "src": "407:18:6" 459 | }, 460 | { 461 | "attributes": { 462 | "constant": false, 463 | "indexed": false, 464 | "name": "value", 465 | "scope": 612, 466 | "stateVariable": false, 467 | "storageLocation": "default", 468 | "type": "uint256", 469 | "value": null, 470 | "visibility": "internal" 471 | }, 472 | "children": [ 473 | { 474 | "attributes": { 475 | "name": "uint256", 476 | "type": "uint256" 477 | }, 478 | "id": 609, 479 | "name": "ElementaryTypeName", 480 | "src": "427:7:6" 481 | } 482 | ], 483 | "id": 610, 484 | "name": "VariableDeclaration", 485 | "src": "427:13:6" 486 | } 487 | ], 488 | "id": 611, 489 | "name": "ParameterList", 490 | "src": "384:57:6" 491 | } 492 | ], 493 | "id": 612, 494 | "name": "EventDefinition", 495 | "src": "370:72:6" 496 | } 497 | ], 498 | "id": 613, 499 | "name": "ContractDefinition", 500 | "src": "155:289:6" 501 | } 502 | ], 503 | "id": 614, 504 | "name": "SourceUnit", 505 | "src": "0:445:6" 506 | }, 507 | "compiler": { 508 | "name": "solc", 509 | "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" 510 | }, 511 | "networks": {}, 512 | "schemaVersion": "1.0.1", 513 | "updatedAt": "2018-02-03T10:35:56.372Z" 514 | } -------------------------------------------------------------------------------- /contracts/Migrations.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "Migrations", 3 | "abi": [ 4 | { 5 | "constant": true, 6 | "inputs": [], 7 | "name": "last_completed_migration", 8 | "outputs": [ 9 | { 10 | "name": "", 11 | "type": "uint256" 12 | } 13 | ], 14 | "payable": false, 15 | "stateMutability": "view", 16 | "type": "function" 17 | }, 18 | { 19 | "constant": true, 20 | "inputs": [], 21 | "name": "owner", 22 | "outputs": [ 23 | { 24 | "name": "", 25 | "type": "address" 26 | } 27 | ], 28 | "payable": false, 29 | "stateMutability": "view", 30 | "type": "function" 31 | }, 32 | { 33 | "inputs": [], 34 | "payable": false, 35 | "stateMutability": "nonpayable", 36 | "type": "constructor" 37 | }, 38 | { 39 | "constant": false, 40 | "inputs": [ 41 | { 42 | "name": "completed", 43 | "type": "uint256" 44 | } 45 | ], 46 | "name": "setCompleted", 47 | "outputs": [], 48 | "payable": false, 49 | "stateMutability": "nonpayable", 50 | "type": "function" 51 | }, 52 | { 53 | "constant": false, 54 | "inputs": [ 55 | { 56 | "name": "new_address", 57 | "type": "address" 58 | } 59 | ], 60 | "name": "upgrade", 61 | "outputs": [], 62 | "payable": false, 63 | "stateMutability": "nonpayable", 64 | "type": "function" 65 | } 66 | ], 67 | "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820c3d95644f7bcc3250d2c4ba9001c663ab9b9b78b732e5dc9f4d41632b74e1dce0029", 68 | "deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820c3d95644f7bcc3250d2c4ba9001c663ab9b9b78b732e5dc9f4d41632b74e1dce0029", 69 | "sourceMap": "26:488:2:-;;;178:58;;;;;;;;221:10;213:5;;:18;;;;;;;;;;;;;;;;;;26:488;;;;;;", 70 | "deployedSourceMap": "26:488:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;240:103;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;409:19;161:5;;;;;;;;;;;147:19;;:10;:19;;;143:26;;;442:11;409:45;;460:8;:21;;;482:24;;460:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;143:26;347:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;240:103::-;161:5;;;;;;;;;;;147:19;;:10;:19;;;143:26;;;329:9;302:24;:36;;;;143:26;240:103;:::o", 71 | "source": "pragma solidity ^0.4.17;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", 72 | "sourcePath": "C:\\Users\\yubolun\\Desktop\\my-ico\\contracts\\Migrations.sol", 73 | "ast": { 74 | "attributes": { 75 | "absolutePath": "/C/Users/yubolun/Desktop/my-ico/contracts/Migrations.sol", 76 | "exportedSymbols": { 77 | "Migrations": [ 78 | 312 79 | ] 80 | } 81 | }, 82 | "children": [ 83 | { 84 | "attributes": { 85 | "literals": [ 86 | "solidity", 87 | "^", 88 | "0.4", 89 | ".17" 90 | ] 91 | }, 92 | "id": 257, 93 | "name": "PragmaDirective", 94 | "src": "0:24:2" 95 | }, 96 | { 97 | "attributes": { 98 | "baseContracts": [ 99 | null 100 | ], 101 | "contractDependencies": [ 102 | null 103 | ], 104 | "contractKind": "contract", 105 | "documentation": null, 106 | "fullyImplemented": true, 107 | "linearizedBaseContracts": [ 108 | 312 109 | ], 110 | "name": "Migrations", 111 | "scope": 313 112 | }, 113 | "children": [ 114 | { 115 | "attributes": { 116 | "constant": false, 117 | "name": "owner", 118 | "scope": 312, 119 | "stateVariable": true, 120 | "storageLocation": "default", 121 | "type": "address", 122 | "value": null, 123 | "visibility": "public" 124 | }, 125 | "children": [ 126 | { 127 | "attributes": { 128 | "name": "address", 129 | "type": "address" 130 | }, 131 | "id": 258, 132 | "name": "ElementaryTypeName", 133 | "src": "50:7:2" 134 | } 135 | ], 136 | "id": 259, 137 | "name": "VariableDeclaration", 138 | "src": "50:20:2" 139 | }, 140 | { 141 | "attributes": { 142 | "constant": false, 143 | "name": "last_completed_migration", 144 | "scope": 312, 145 | "stateVariable": true, 146 | "storageLocation": "default", 147 | "type": "uint256", 148 | "value": null, 149 | "visibility": "public" 150 | }, 151 | "children": [ 152 | { 153 | "attributes": { 154 | "name": "uint", 155 | "type": "uint256" 156 | }, 157 | "id": 260, 158 | "name": "ElementaryTypeName", 159 | "src": "74:4:2" 160 | } 161 | ], 162 | "id": 261, 163 | "name": "VariableDeclaration", 164 | "src": "74:36:2" 165 | }, 166 | { 167 | "attributes": { 168 | "name": "restricted", 169 | "visibility": "internal" 170 | }, 171 | "children": [ 172 | { 173 | "attributes": { 174 | "parameters": [ 175 | null 176 | ] 177 | }, 178 | "children": [], 179 | "id": 262, 180 | "name": "ParameterList", 181 | "src": "134:2:2" 182 | }, 183 | { 184 | "children": [ 185 | { 186 | "attributes": { 187 | "falseBody": null 188 | }, 189 | "children": [ 190 | { 191 | "attributes": { 192 | "argumentTypes": null, 193 | "commonType": { 194 | "typeIdentifier": "t_address", 195 | "typeString": "address" 196 | }, 197 | "isConstant": false, 198 | "isLValue": false, 199 | "isPure": false, 200 | "lValueRequested": false, 201 | "operator": "==", 202 | "type": "bool" 203 | }, 204 | "children": [ 205 | { 206 | "attributes": { 207 | "argumentTypes": null, 208 | "isConstant": false, 209 | "isLValue": false, 210 | "isPure": false, 211 | "lValueRequested": false, 212 | "member_name": "sender", 213 | "referencedDeclaration": null, 214 | "type": "address" 215 | }, 216 | "children": [ 217 | { 218 | "attributes": { 219 | "argumentTypes": null, 220 | "overloadedDeclarations": [ 221 | null 222 | ], 223 | "referencedDeclaration": 990, 224 | "type": "msg", 225 | "value": "msg" 226 | }, 227 | "id": 263, 228 | "name": "Identifier", 229 | "src": "147:3:2" 230 | } 231 | ], 232 | "id": 264, 233 | "name": "MemberAccess", 234 | "src": "147:10:2" 235 | }, 236 | { 237 | "attributes": { 238 | "argumentTypes": null, 239 | "overloadedDeclarations": [ 240 | null 241 | ], 242 | "referencedDeclaration": 259, 243 | "type": "address", 244 | "value": "owner" 245 | }, 246 | "id": 265, 247 | "name": "Identifier", 248 | "src": "161:5:2" 249 | } 250 | ], 251 | "id": 266, 252 | "name": "BinaryOperation", 253 | "src": "147:19:2" 254 | }, 255 | { 256 | "id": 267, 257 | "name": "PlaceholderStatement", 258 | "src": "168:1:2" 259 | } 260 | ], 261 | "id": 268, 262 | "name": "IfStatement", 263 | "src": "143:26:2" 264 | } 265 | ], 266 | "id": 269, 267 | "name": "Block", 268 | "src": "137:37:2" 269 | } 270 | ], 271 | "id": 270, 272 | "name": "ModifierDefinition", 273 | "src": "115:59:2" 274 | }, 275 | { 276 | "attributes": { 277 | "constant": false, 278 | "implemented": true, 279 | "isConstructor": true, 280 | "modifiers": [ 281 | null 282 | ], 283 | "name": "Migrations", 284 | "payable": false, 285 | "scope": 312, 286 | "stateMutability": "nonpayable", 287 | "superFunction": null, 288 | "visibility": "public" 289 | }, 290 | "children": [ 291 | { 292 | "attributes": { 293 | "parameters": [ 294 | null 295 | ] 296 | }, 297 | "children": [], 298 | "id": 271, 299 | "name": "ParameterList", 300 | "src": "197:2:2" 301 | }, 302 | { 303 | "attributes": { 304 | "parameters": [ 305 | null 306 | ] 307 | }, 308 | "children": [], 309 | "id": 272, 310 | "name": "ParameterList", 311 | "src": "207:0:2" 312 | }, 313 | { 314 | "children": [ 315 | { 316 | "children": [ 317 | { 318 | "attributes": { 319 | "argumentTypes": null, 320 | "isConstant": false, 321 | "isLValue": false, 322 | "isPure": false, 323 | "lValueRequested": false, 324 | "operator": "=", 325 | "type": "address" 326 | }, 327 | "children": [ 328 | { 329 | "attributes": { 330 | "argumentTypes": null, 331 | "overloadedDeclarations": [ 332 | null 333 | ], 334 | "referencedDeclaration": 259, 335 | "type": "address", 336 | "value": "owner" 337 | }, 338 | "id": 273, 339 | "name": "Identifier", 340 | "src": "213:5:2" 341 | }, 342 | { 343 | "attributes": { 344 | "argumentTypes": null, 345 | "isConstant": false, 346 | "isLValue": false, 347 | "isPure": false, 348 | "lValueRequested": false, 349 | "member_name": "sender", 350 | "referencedDeclaration": null, 351 | "type": "address" 352 | }, 353 | "children": [ 354 | { 355 | "attributes": { 356 | "argumentTypes": null, 357 | "overloadedDeclarations": [ 358 | null 359 | ], 360 | "referencedDeclaration": 990, 361 | "type": "msg", 362 | "value": "msg" 363 | }, 364 | "id": 274, 365 | "name": "Identifier", 366 | "src": "221:3:2" 367 | } 368 | ], 369 | "id": 275, 370 | "name": "MemberAccess", 371 | "src": "221:10:2" 372 | } 373 | ], 374 | "id": 276, 375 | "name": "Assignment", 376 | "src": "213:18:2" 377 | } 378 | ], 379 | "id": 277, 380 | "name": "ExpressionStatement", 381 | "src": "213:18:2" 382 | } 383 | ], 384 | "id": 278, 385 | "name": "Block", 386 | "src": "207:29:2" 387 | } 388 | ], 389 | "id": 279, 390 | "name": "FunctionDefinition", 391 | "src": "178:58:2" 392 | }, 393 | { 394 | "attributes": { 395 | "constant": false, 396 | "implemented": true, 397 | "isConstructor": false, 398 | "name": "setCompleted", 399 | "payable": false, 400 | "scope": 312, 401 | "stateMutability": "nonpayable", 402 | "superFunction": null, 403 | "visibility": "public" 404 | }, 405 | "children": [ 406 | { 407 | "children": [ 408 | { 409 | "attributes": { 410 | "constant": false, 411 | "name": "completed", 412 | "scope": 291, 413 | "stateVariable": false, 414 | "storageLocation": "default", 415 | "type": "uint256", 416 | "value": null, 417 | "visibility": "internal" 418 | }, 419 | "children": [ 420 | { 421 | "attributes": { 422 | "name": "uint", 423 | "type": "uint256" 424 | }, 425 | "id": 280, 426 | "name": "ElementaryTypeName", 427 | "src": "262:4:2" 428 | } 429 | ], 430 | "id": 281, 431 | "name": "VariableDeclaration", 432 | "src": "262:14:2" 433 | } 434 | ], 435 | "id": 282, 436 | "name": "ParameterList", 437 | "src": "261:16:2" 438 | }, 439 | { 440 | "attributes": { 441 | "parameters": [ 442 | null 443 | ] 444 | }, 445 | "children": [], 446 | "id": 285, 447 | "name": "ParameterList", 448 | "src": "296:0:2" 449 | }, 450 | { 451 | "attributes": { 452 | "arguments": [ 453 | null 454 | ] 455 | }, 456 | "children": [ 457 | { 458 | "attributes": { 459 | "argumentTypes": null, 460 | "overloadedDeclarations": [ 461 | null 462 | ], 463 | "referencedDeclaration": 270, 464 | "type": "modifier ()", 465 | "value": "restricted" 466 | }, 467 | "id": 283, 468 | "name": "Identifier", 469 | "src": "285:10:2" 470 | } 471 | ], 472 | "id": 284, 473 | "name": "ModifierInvocation", 474 | "src": "285:10:2" 475 | }, 476 | { 477 | "children": [ 478 | { 479 | "children": [ 480 | { 481 | "attributes": { 482 | "argumentTypes": null, 483 | "isConstant": false, 484 | "isLValue": false, 485 | "isPure": false, 486 | "lValueRequested": false, 487 | "operator": "=", 488 | "type": "uint256" 489 | }, 490 | "children": [ 491 | { 492 | "attributes": { 493 | "argumentTypes": null, 494 | "overloadedDeclarations": [ 495 | null 496 | ], 497 | "referencedDeclaration": 261, 498 | "type": "uint256", 499 | "value": "last_completed_migration" 500 | }, 501 | "id": 286, 502 | "name": "Identifier", 503 | "src": "302:24:2" 504 | }, 505 | { 506 | "attributes": { 507 | "argumentTypes": null, 508 | "overloadedDeclarations": [ 509 | null 510 | ], 511 | "referencedDeclaration": 281, 512 | "type": "uint256", 513 | "value": "completed" 514 | }, 515 | "id": 287, 516 | "name": "Identifier", 517 | "src": "329:9:2" 518 | } 519 | ], 520 | "id": 288, 521 | "name": "Assignment", 522 | "src": "302:36:2" 523 | } 524 | ], 525 | "id": 289, 526 | "name": "ExpressionStatement", 527 | "src": "302:36:2" 528 | } 529 | ], 530 | "id": 290, 531 | "name": "Block", 532 | "src": "296:47:2" 533 | } 534 | ], 535 | "id": 291, 536 | "name": "FunctionDefinition", 537 | "src": "240:103:2" 538 | }, 539 | { 540 | "attributes": { 541 | "constant": false, 542 | "implemented": true, 543 | "isConstructor": false, 544 | "name": "upgrade", 545 | "payable": false, 546 | "scope": 312, 547 | "stateMutability": "nonpayable", 548 | "superFunction": null, 549 | "visibility": "public" 550 | }, 551 | "children": [ 552 | { 553 | "children": [ 554 | { 555 | "attributes": { 556 | "constant": false, 557 | "name": "new_address", 558 | "scope": 311, 559 | "stateVariable": false, 560 | "storageLocation": "default", 561 | "type": "address", 562 | "value": null, 563 | "visibility": "internal" 564 | }, 565 | "children": [ 566 | { 567 | "attributes": { 568 | "name": "address", 569 | "type": "address" 570 | }, 571 | "id": 292, 572 | "name": "ElementaryTypeName", 573 | "src": "364:7:2" 574 | } 575 | ], 576 | "id": 293, 577 | "name": "VariableDeclaration", 578 | "src": "364:19:2" 579 | } 580 | ], 581 | "id": 294, 582 | "name": "ParameterList", 583 | "src": "363:21:2" 584 | }, 585 | { 586 | "attributes": { 587 | "parameters": [ 588 | null 589 | ] 590 | }, 591 | "children": [], 592 | "id": 297, 593 | "name": "ParameterList", 594 | "src": "403:0:2" 595 | }, 596 | { 597 | "attributes": { 598 | "arguments": [ 599 | null 600 | ] 601 | }, 602 | "children": [ 603 | { 604 | "attributes": { 605 | "argumentTypes": null, 606 | "overloadedDeclarations": [ 607 | null 608 | ], 609 | "referencedDeclaration": 270, 610 | "type": "modifier ()", 611 | "value": "restricted" 612 | }, 613 | "id": 295, 614 | "name": "Identifier", 615 | "src": "392:10:2" 616 | } 617 | ], 618 | "id": 296, 619 | "name": "ModifierInvocation", 620 | "src": "392:10:2" 621 | }, 622 | { 623 | "children": [ 624 | { 625 | "attributes": { 626 | "assignments": [ 627 | 299 628 | ] 629 | }, 630 | "children": [ 631 | { 632 | "attributes": { 633 | "constant": false, 634 | "name": "upgraded", 635 | "scope": 311, 636 | "stateVariable": false, 637 | "storageLocation": "default", 638 | "type": "contract Migrations", 639 | "value": null, 640 | "visibility": "internal" 641 | }, 642 | "children": [ 643 | { 644 | "attributes": { 645 | "contractScope": null, 646 | "name": "Migrations", 647 | "referencedDeclaration": 312, 648 | "type": "contract Migrations" 649 | }, 650 | "id": 298, 651 | "name": "UserDefinedTypeName", 652 | "src": "409:10:2" 653 | } 654 | ], 655 | "id": 299, 656 | "name": "VariableDeclaration", 657 | "src": "409:19:2" 658 | }, 659 | { 660 | "attributes": { 661 | "argumentTypes": null, 662 | "isConstant": false, 663 | "isLValue": false, 664 | "isPure": false, 665 | "isStructConstructorCall": false, 666 | "lValueRequested": false, 667 | "names": [ 668 | null 669 | ], 670 | "type": "contract Migrations", 671 | "type_conversion": true 672 | }, 673 | "children": [ 674 | { 675 | "attributes": { 676 | "argumentTypes": [ 677 | { 678 | "typeIdentifier": "t_address", 679 | "typeString": "address" 680 | } 681 | ], 682 | "overloadedDeclarations": [ 683 | null 684 | ], 685 | "referencedDeclaration": 312, 686 | "type": "type(contract Migrations)", 687 | "value": "Migrations" 688 | }, 689 | "id": 300, 690 | "name": "Identifier", 691 | "src": "431:10:2" 692 | }, 693 | { 694 | "attributes": { 695 | "argumentTypes": null, 696 | "overloadedDeclarations": [ 697 | null 698 | ], 699 | "referencedDeclaration": 293, 700 | "type": "address", 701 | "value": "new_address" 702 | }, 703 | "id": 301, 704 | "name": "Identifier", 705 | "src": "442:11:2" 706 | } 707 | ], 708 | "id": 302, 709 | "name": "FunctionCall", 710 | "src": "431:23:2" 711 | } 712 | ], 713 | "id": 303, 714 | "name": "VariableDeclarationStatement", 715 | "src": "409:45:2" 716 | }, 717 | { 718 | "children": [ 719 | { 720 | "attributes": { 721 | "argumentTypes": null, 722 | "isConstant": false, 723 | "isLValue": false, 724 | "isPure": false, 725 | "isStructConstructorCall": false, 726 | "lValueRequested": false, 727 | "names": [ 728 | null 729 | ], 730 | "type": "tuple()", 731 | "type_conversion": false 732 | }, 733 | "children": [ 734 | { 735 | "attributes": { 736 | "argumentTypes": [ 737 | { 738 | "typeIdentifier": "t_uint256", 739 | "typeString": "uint256" 740 | } 741 | ], 742 | "isConstant": false, 743 | "isLValue": false, 744 | "isPure": false, 745 | "lValueRequested": false, 746 | "member_name": "setCompleted", 747 | "referencedDeclaration": 291, 748 | "type": "function (uint256) external" 749 | }, 750 | "children": [ 751 | { 752 | "attributes": { 753 | "argumentTypes": null, 754 | "overloadedDeclarations": [ 755 | null 756 | ], 757 | "referencedDeclaration": 299, 758 | "type": "contract Migrations", 759 | "value": "upgraded" 760 | }, 761 | "id": 304, 762 | "name": "Identifier", 763 | "src": "460:8:2" 764 | } 765 | ], 766 | "id": 306, 767 | "name": "MemberAccess", 768 | "src": "460:21:2" 769 | }, 770 | { 771 | "attributes": { 772 | "argumentTypes": null, 773 | "overloadedDeclarations": [ 774 | null 775 | ], 776 | "referencedDeclaration": 261, 777 | "type": "uint256", 778 | "value": "last_completed_migration" 779 | }, 780 | "id": 307, 781 | "name": "Identifier", 782 | "src": "482:24:2" 783 | } 784 | ], 785 | "id": 308, 786 | "name": "FunctionCall", 787 | "src": "460:47:2" 788 | } 789 | ], 790 | "id": 309, 791 | "name": "ExpressionStatement", 792 | "src": "460:47:2" 793 | } 794 | ], 795 | "id": 310, 796 | "name": "Block", 797 | "src": "403:109:2" 798 | } 799 | ], 800 | "id": 311, 801 | "name": "FunctionDefinition", 802 | "src": "347:165:2" 803 | } 804 | ], 805 | "id": 312, 806 | "name": "ContractDefinition", 807 | "src": "26:488:2" 808 | } 809 | ], 810 | "id": 313, 811 | "name": "SourceUnit", 812 | "src": "0:515:2" 813 | }, 814 | "compiler": { 815 | "name": "solc", 816 | "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" 817 | }, 818 | "networks": { 819 | "3": { 820 | "events": {}, 821 | "links": {}, 822 | "address": "0x05dd904eb70bd5a900e617e1e05712327dc53bd6" 823 | }, 824 | "5777": { 825 | "events": {}, 826 | "links": {}, 827 | "address": "0x8cdaf0cd259887258bc13a92c0a6da92698644c0" 828 | } 829 | }, 830 | "schemaVersion": "1.0.1", 831 | "updatedAt": "2018-02-05T15:52:31.763Z" 832 | } -------------------------------------------------------------------------------- /contracts/Ownable.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "Ownable", 3 | "abi": [ 4 | { 5 | "constant": true, 6 | "inputs": [], 7 | "name": "owner", 8 | "outputs": [ 9 | { 10 | "name": "", 11 | "type": "address" 12 | } 13 | ], 14 | "payable": false, 15 | "stateMutability": "view", 16 | "type": "function" 17 | }, 18 | { 19 | "inputs": [], 20 | "payable": false, 21 | "stateMutability": "nonpayable", 22 | "type": "constructor" 23 | }, 24 | { 25 | "anonymous": false, 26 | "inputs": [ 27 | { 28 | "indexed": true, 29 | "name": "previousOwner", 30 | "type": "address" 31 | }, 32 | { 33 | "indexed": true, 34 | "name": "newOwner", 35 | "type": "address" 36 | } 37 | ], 38 | "name": "OwnershipTransferred", 39 | "type": "event" 40 | }, 41 | { 42 | "constant": false, 43 | "inputs": [ 44 | { 45 | "name": "newOwner", 46 | "type": "address" 47 | } 48 | ], 49 | "name": "transferOwnership", 50 | "outputs": [], 51 | "payable": false, 52 | "stateMutability": "nonpayable", 53 | "type": "function" 54 | } 55 | ], 56 | "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102858061005e6000396000f30060606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820f6da63c798e1eced339eb6db5b99cc5c83ea4d81bd768c0ec7ac0d5ebf9052b70029", 57 | "deployedBytecode": "0x60606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820f6da63c798e1eced339eb6db5b99cc5c83ea4d81bd768c0ec7ac0d5ebf9052b70029", 58 | "sourceMap": "217:787:3:-;;;469:55;;;;;;;;509:10;501:5;;:18;;;;;;;;;;;;;;;;;;217:787;;;;;;", 59 | "deployedSourceMap": "217:787:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;:::o;832:169::-;653:5;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;928:1;908:22;;:8;:22;;;;900:31;;;;;;;;965:8;937:37;;958:5;;;;;;;;;;;937:37;;;;;;;;;;;;988:8;980:5;;:16;;;;;;;;;;;;;;;;;;832:169;:::o", 60 | "source": "pragma solidity ^0.4.18;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n function Ownable() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != address(0));\n OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n\n}\n", 61 | "sourcePath": "zeppelin-solidity\\contracts\\ownership\\Ownable.sol", 62 | "ast": { 63 | "attributes": { 64 | "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", 65 | "exportedSymbols": { 66 | "Ownable": [ 67 | 442 68 | ] 69 | } 70 | }, 71 | "children": [ 72 | { 73 | "attributes": { 74 | "literals": [ 75 | "solidity", 76 | "^", 77 | "0.4", 78 | ".18" 79 | ] 80 | }, 81 | "id": 388, 82 | "name": "PragmaDirective", 83 | "src": "0:24:3" 84 | }, 85 | { 86 | "attributes": { 87 | "baseContracts": [ 88 | null 89 | ], 90 | "contractDependencies": [ 91 | null 92 | ], 93 | "contractKind": "contract", 94 | "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".", 95 | "fullyImplemented": true, 96 | "linearizedBaseContracts": [ 97 | 442 98 | ], 99 | "name": "Ownable", 100 | "scope": 443 101 | }, 102 | "children": [ 103 | { 104 | "attributes": { 105 | "constant": false, 106 | "name": "owner", 107 | "scope": 442, 108 | "stateVariable": true, 109 | "storageLocation": "default", 110 | "type": "address", 111 | "value": null, 112 | "visibility": "public" 113 | }, 114 | "children": [ 115 | { 116 | "attributes": { 117 | "name": "address", 118 | "type": "address" 119 | }, 120 | "id": 389, 121 | "name": "ElementaryTypeName", 122 | "src": "238:7:3" 123 | } 124 | ], 125 | "id": 390, 126 | "name": "VariableDeclaration", 127 | "src": "238:20:3" 128 | }, 129 | { 130 | "attributes": { 131 | "anonymous": false, 132 | "name": "OwnershipTransferred" 133 | }, 134 | "children": [ 135 | { 136 | "children": [ 137 | { 138 | "attributes": { 139 | "constant": false, 140 | "indexed": true, 141 | "name": "previousOwner", 142 | "scope": 396, 143 | "stateVariable": false, 144 | "storageLocation": "default", 145 | "type": "address", 146 | "value": null, 147 | "visibility": "internal" 148 | }, 149 | "children": [ 150 | { 151 | "attributes": { 152 | "name": "address", 153 | "type": "address" 154 | }, 155 | "id": 391, 156 | "name": "ElementaryTypeName", 157 | "src": "291:7:3" 158 | } 159 | ], 160 | "id": 392, 161 | "name": "VariableDeclaration", 162 | "src": "291:29:3" 163 | }, 164 | { 165 | "attributes": { 166 | "constant": false, 167 | "indexed": true, 168 | "name": "newOwner", 169 | "scope": 396, 170 | "stateVariable": false, 171 | "storageLocation": "default", 172 | "type": "address", 173 | "value": null, 174 | "visibility": "internal" 175 | }, 176 | "children": [ 177 | { 178 | "attributes": { 179 | "name": "address", 180 | "type": "address" 181 | }, 182 | "id": 393, 183 | "name": "ElementaryTypeName", 184 | "src": "322:7:3" 185 | } 186 | ], 187 | "id": 394, 188 | "name": "VariableDeclaration", 189 | "src": "322:24:3" 190 | } 191 | ], 192 | "id": 395, 193 | "name": "ParameterList", 194 | "src": "290:57:3" 195 | } 196 | ], 197 | "id": 396, 198 | "name": "EventDefinition", 199 | "src": "264:84:3" 200 | }, 201 | { 202 | "attributes": { 203 | "constant": false, 204 | "implemented": true, 205 | "isConstructor": true, 206 | "modifiers": [ 207 | null 208 | ], 209 | "name": "Ownable", 210 | "payable": false, 211 | "scope": 442, 212 | "stateMutability": "nonpayable", 213 | "superFunction": null, 214 | "visibility": "public" 215 | }, 216 | "children": [ 217 | { 218 | "attributes": { 219 | "parameters": [ 220 | null 221 | ] 222 | }, 223 | "children": [], 224 | "id": 397, 225 | "name": "ParameterList", 226 | "src": "485:2:3" 227 | }, 228 | { 229 | "attributes": { 230 | "parameters": [ 231 | null 232 | ] 233 | }, 234 | "children": [], 235 | "id": 398, 236 | "name": "ParameterList", 237 | "src": "495:0:3" 238 | }, 239 | { 240 | "children": [ 241 | { 242 | "children": [ 243 | { 244 | "attributes": { 245 | "argumentTypes": null, 246 | "isConstant": false, 247 | "isLValue": false, 248 | "isPure": false, 249 | "lValueRequested": false, 250 | "operator": "=", 251 | "type": "address" 252 | }, 253 | "children": [ 254 | { 255 | "attributes": { 256 | "argumentTypes": null, 257 | "overloadedDeclarations": [ 258 | null 259 | ], 260 | "referencedDeclaration": 390, 261 | "type": "address", 262 | "value": "owner" 263 | }, 264 | "id": 399, 265 | "name": "Identifier", 266 | "src": "501:5:3" 267 | }, 268 | { 269 | "attributes": { 270 | "argumentTypes": null, 271 | "isConstant": false, 272 | "isLValue": false, 273 | "isPure": false, 274 | "lValueRequested": false, 275 | "member_name": "sender", 276 | "referencedDeclaration": null, 277 | "type": "address" 278 | }, 279 | "children": [ 280 | { 281 | "attributes": { 282 | "argumentTypes": null, 283 | "overloadedDeclarations": [ 284 | null 285 | ], 286 | "referencedDeclaration": 966, 287 | "type": "msg", 288 | "value": "msg" 289 | }, 290 | "id": 400, 291 | "name": "Identifier", 292 | "src": "509:3:3" 293 | } 294 | ], 295 | "id": 401, 296 | "name": "MemberAccess", 297 | "src": "509:10:3" 298 | } 299 | ], 300 | "id": 402, 301 | "name": "Assignment", 302 | "src": "501:18:3" 303 | } 304 | ], 305 | "id": 403, 306 | "name": "ExpressionStatement", 307 | "src": "501:18:3" 308 | } 309 | ], 310 | "id": 404, 311 | "name": "Block", 312 | "src": "495:29:3" 313 | } 314 | ], 315 | "id": 405, 316 | "name": "FunctionDefinition", 317 | "src": "469:55:3" 318 | }, 319 | { 320 | "attributes": { 321 | "name": "onlyOwner", 322 | "visibility": "internal" 323 | }, 324 | "children": [ 325 | { 326 | "attributes": { 327 | "parameters": [ 328 | null 329 | ] 330 | }, 331 | "children": [], 332 | "id": 406, 333 | "name": "ParameterList", 334 | "src": "622:2:3" 335 | }, 336 | { 337 | "children": [ 338 | { 339 | "children": [ 340 | { 341 | "attributes": { 342 | "argumentTypes": null, 343 | "isConstant": false, 344 | "isLValue": false, 345 | "isPure": false, 346 | "isStructConstructorCall": false, 347 | "lValueRequested": false, 348 | "names": [ 349 | null 350 | ], 351 | "type": "tuple()", 352 | "type_conversion": false 353 | }, 354 | "children": [ 355 | { 356 | "attributes": { 357 | "argumentTypes": [ 358 | { 359 | "typeIdentifier": "t_bool", 360 | "typeString": "bool" 361 | } 362 | ], 363 | "overloadedDeclarations": [ 364 | null 365 | ], 366 | "referencedDeclaration": 969, 367 | "type": "function (bool) pure", 368 | "value": "require" 369 | }, 370 | "id": 407, 371 | "name": "Identifier", 372 | "src": "631:7:3" 373 | }, 374 | { 375 | "attributes": { 376 | "argumentTypes": null, 377 | "commonType": { 378 | "typeIdentifier": "t_address", 379 | "typeString": "address" 380 | }, 381 | "isConstant": false, 382 | "isLValue": false, 383 | "isPure": false, 384 | "lValueRequested": false, 385 | "operator": "==", 386 | "type": "bool" 387 | }, 388 | "children": [ 389 | { 390 | "attributes": { 391 | "argumentTypes": null, 392 | "isConstant": false, 393 | "isLValue": false, 394 | "isPure": false, 395 | "lValueRequested": false, 396 | "member_name": "sender", 397 | "referencedDeclaration": null, 398 | "type": "address" 399 | }, 400 | "children": [ 401 | { 402 | "attributes": { 403 | "argumentTypes": null, 404 | "overloadedDeclarations": [ 405 | null 406 | ], 407 | "referencedDeclaration": 966, 408 | "type": "msg", 409 | "value": "msg" 410 | }, 411 | "id": 408, 412 | "name": "Identifier", 413 | "src": "639:3:3" 414 | } 415 | ], 416 | "id": 409, 417 | "name": "MemberAccess", 418 | "src": "639:10:3" 419 | }, 420 | { 421 | "attributes": { 422 | "argumentTypes": null, 423 | "overloadedDeclarations": [ 424 | null 425 | ], 426 | "referencedDeclaration": 390, 427 | "type": "address", 428 | "value": "owner" 429 | }, 430 | "id": 410, 431 | "name": "Identifier", 432 | "src": "653:5:3" 433 | } 434 | ], 435 | "id": 411, 436 | "name": "BinaryOperation", 437 | "src": "639:19:3" 438 | } 439 | ], 440 | "id": 412, 441 | "name": "FunctionCall", 442 | "src": "631:28:3" 443 | } 444 | ], 445 | "id": 413, 446 | "name": "ExpressionStatement", 447 | "src": "631:28:3" 448 | }, 449 | { 450 | "id": 414, 451 | "name": "PlaceholderStatement", 452 | "src": "665:1:3" 453 | } 454 | ], 455 | "id": 415, 456 | "name": "Block", 457 | "src": "625:46:3" 458 | } 459 | ], 460 | "id": 416, 461 | "name": "ModifierDefinition", 462 | "src": "604:67:3" 463 | }, 464 | { 465 | "attributes": { 466 | "constant": false, 467 | "implemented": true, 468 | "isConstructor": false, 469 | "name": "transferOwnership", 470 | "payable": false, 471 | "scope": 442, 472 | "stateMutability": "nonpayable", 473 | "superFunction": null, 474 | "visibility": "public" 475 | }, 476 | "children": [ 477 | { 478 | "children": [ 479 | { 480 | "attributes": { 481 | "constant": false, 482 | "name": "newOwner", 483 | "scope": 441, 484 | "stateVariable": false, 485 | "storageLocation": "default", 486 | "type": "address", 487 | "value": null, 488 | "visibility": "internal" 489 | }, 490 | "children": [ 491 | { 492 | "attributes": { 493 | "name": "address", 494 | "type": "address" 495 | }, 496 | "id": 417, 497 | "name": "ElementaryTypeName", 498 | "src": "859:7:3" 499 | } 500 | ], 501 | "id": 418, 502 | "name": "VariableDeclaration", 503 | "src": "859:16:3" 504 | } 505 | ], 506 | "id": 419, 507 | "name": "ParameterList", 508 | "src": "858:18:3" 509 | }, 510 | { 511 | "attributes": { 512 | "parameters": [ 513 | null 514 | ] 515 | }, 516 | "children": [], 517 | "id": 422, 518 | "name": "ParameterList", 519 | "src": "894:0:3" 520 | }, 521 | { 522 | "attributes": { 523 | "arguments": [ 524 | null 525 | ] 526 | }, 527 | "children": [ 528 | { 529 | "attributes": { 530 | "argumentTypes": null, 531 | "overloadedDeclarations": [ 532 | null 533 | ], 534 | "referencedDeclaration": 416, 535 | "type": "modifier ()", 536 | "value": "onlyOwner" 537 | }, 538 | "id": 420, 539 | "name": "Identifier", 540 | "src": "884:9:3" 541 | } 542 | ], 543 | "id": 421, 544 | "name": "ModifierInvocation", 545 | "src": "884:9:3" 546 | }, 547 | { 548 | "children": [ 549 | { 550 | "children": [ 551 | { 552 | "attributes": { 553 | "argumentTypes": null, 554 | "isConstant": false, 555 | "isLValue": false, 556 | "isPure": false, 557 | "isStructConstructorCall": false, 558 | "lValueRequested": false, 559 | "names": [ 560 | null 561 | ], 562 | "type": "tuple()", 563 | "type_conversion": false 564 | }, 565 | "children": [ 566 | { 567 | "attributes": { 568 | "argumentTypes": [ 569 | { 570 | "typeIdentifier": "t_bool", 571 | "typeString": "bool" 572 | } 573 | ], 574 | "overloadedDeclarations": [ 575 | null 576 | ], 577 | "referencedDeclaration": 969, 578 | "type": "function (bool) pure", 579 | "value": "require" 580 | }, 581 | "id": 423, 582 | "name": "Identifier", 583 | "src": "900:7:3" 584 | }, 585 | { 586 | "attributes": { 587 | "argumentTypes": null, 588 | "commonType": { 589 | "typeIdentifier": "t_address", 590 | "typeString": "address" 591 | }, 592 | "isConstant": false, 593 | "isLValue": false, 594 | "isPure": false, 595 | "lValueRequested": false, 596 | "operator": "!=", 597 | "type": "bool" 598 | }, 599 | "children": [ 600 | { 601 | "attributes": { 602 | "argumentTypes": null, 603 | "overloadedDeclarations": [ 604 | null 605 | ], 606 | "referencedDeclaration": 418, 607 | "type": "address", 608 | "value": "newOwner" 609 | }, 610 | "id": 424, 611 | "name": "Identifier", 612 | "src": "908:8:3" 613 | }, 614 | { 615 | "attributes": { 616 | "argumentTypes": null, 617 | "isConstant": false, 618 | "isLValue": false, 619 | "isPure": true, 620 | "isStructConstructorCall": false, 621 | "lValueRequested": false, 622 | "names": [ 623 | null 624 | ], 625 | "type": "address", 626 | "type_conversion": true 627 | }, 628 | "children": [ 629 | { 630 | "attributes": { 631 | "argumentTypes": [ 632 | { 633 | "typeIdentifier": "t_rational_0_by_1", 634 | "typeString": "int_const 0" 635 | } 636 | ], 637 | "isConstant": false, 638 | "isLValue": false, 639 | "isPure": true, 640 | "lValueRequested": false, 641 | "type": "type(address)", 642 | "value": "address" 643 | }, 644 | "id": 425, 645 | "name": "ElementaryTypeNameExpression", 646 | "src": "920:7:3" 647 | }, 648 | { 649 | "attributes": { 650 | "argumentTypes": null, 651 | "hexvalue": "30", 652 | "isConstant": false, 653 | "isLValue": false, 654 | "isPure": true, 655 | "lValueRequested": false, 656 | "subdenomination": null, 657 | "token": "number", 658 | "type": "int_const 0", 659 | "value": "0" 660 | }, 661 | "id": 426, 662 | "name": "Literal", 663 | "src": "928:1:3" 664 | } 665 | ], 666 | "id": 427, 667 | "name": "FunctionCall", 668 | "src": "920:10:3" 669 | } 670 | ], 671 | "id": 428, 672 | "name": "BinaryOperation", 673 | "src": "908:22:3" 674 | } 675 | ], 676 | "id": 429, 677 | "name": "FunctionCall", 678 | "src": "900:31:3" 679 | } 680 | ], 681 | "id": 430, 682 | "name": "ExpressionStatement", 683 | "src": "900:31:3" 684 | }, 685 | { 686 | "children": [ 687 | { 688 | "attributes": { 689 | "argumentTypes": null, 690 | "isConstant": false, 691 | "isLValue": false, 692 | "isPure": false, 693 | "isStructConstructorCall": false, 694 | "lValueRequested": false, 695 | "names": [ 696 | null 697 | ], 698 | "type": "tuple()", 699 | "type_conversion": false 700 | }, 701 | "children": [ 702 | { 703 | "attributes": { 704 | "argumentTypes": [ 705 | { 706 | "typeIdentifier": "t_address", 707 | "typeString": "address" 708 | }, 709 | { 710 | "typeIdentifier": "t_address", 711 | "typeString": "address" 712 | } 713 | ], 714 | "overloadedDeclarations": [ 715 | null 716 | ], 717 | "referencedDeclaration": 396, 718 | "type": "function (address,address)", 719 | "value": "OwnershipTransferred" 720 | }, 721 | "id": 431, 722 | "name": "Identifier", 723 | "src": "937:20:3" 724 | }, 725 | { 726 | "attributes": { 727 | "argumentTypes": null, 728 | "overloadedDeclarations": [ 729 | null 730 | ], 731 | "referencedDeclaration": 390, 732 | "type": "address", 733 | "value": "owner" 734 | }, 735 | "id": 432, 736 | "name": "Identifier", 737 | "src": "958:5:3" 738 | }, 739 | { 740 | "attributes": { 741 | "argumentTypes": null, 742 | "overloadedDeclarations": [ 743 | null 744 | ], 745 | "referencedDeclaration": 418, 746 | "type": "address", 747 | "value": "newOwner" 748 | }, 749 | "id": 433, 750 | "name": "Identifier", 751 | "src": "965:8:3" 752 | } 753 | ], 754 | "id": 434, 755 | "name": "FunctionCall", 756 | "src": "937:37:3" 757 | } 758 | ], 759 | "id": 435, 760 | "name": "ExpressionStatement", 761 | "src": "937:37:3" 762 | }, 763 | { 764 | "children": [ 765 | { 766 | "attributes": { 767 | "argumentTypes": null, 768 | "isConstant": false, 769 | "isLValue": false, 770 | "isPure": false, 771 | "lValueRequested": false, 772 | "operator": "=", 773 | "type": "address" 774 | }, 775 | "children": [ 776 | { 777 | "attributes": { 778 | "argumentTypes": null, 779 | "overloadedDeclarations": [ 780 | null 781 | ], 782 | "referencedDeclaration": 390, 783 | "type": "address", 784 | "value": "owner" 785 | }, 786 | "id": 436, 787 | "name": "Identifier", 788 | "src": "980:5:3" 789 | }, 790 | { 791 | "attributes": { 792 | "argumentTypes": null, 793 | "overloadedDeclarations": [ 794 | null 795 | ], 796 | "referencedDeclaration": 418, 797 | "type": "address", 798 | "value": "newOwner" 799 | }, 800 | "id": 437, 801 | "name": "Identifier", 802 | "src": "988:8:3" 803 | } 804 | ], 805 | "id": 438, 806 | "name": "Assignment", 807 | "src": "980:16:3" 808 | } 809 | ], 810 | "id": 439, 811 | "name": "ExpressionStatement", 812 | "src": "980:16:3" 813 | } 814 | ], 815 | "id": 440, 816 | "name": "Block", 817 | "src": "894:107:3" 818 | } 819 | ], 820 | "id": 441, 821 | "name": "FunctionDefinition", 822 | "src": "832:169:3" 823 | } 824 | ], 825 | "id": 442, 826 | "name": "ContractDefinition", 827 | "src": "217:787:3" 828 | } 829 | ], 830 | "id": 443, 831 | "name": "SourceUnit", 832 | "src": "0:1005:3" 833 | }, 834 | "compiler": { 835 | "name": "solc", 836 | "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" 837 | }, 838 | "networks": {}, 839 | "schemaVersion": "1.0.1", 840 | "updatedAt": "2018-02-03T10:35:56.370Z" 841 | } -------------------------------------------------------------------------------- /crowdsale.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 31 | 32 | Crowdsale | Leek Ecological Chain 33 | 34 | 35 | 36 | 37 | 41 | 42 | 43 | 44 |
45 |
46 |
47 | 48 |
49 |
50 | 51 |
52 |
53 | 54 | 55 |
56 |
    57 |
  • Buy Now
  • 58 |
  • You've got: 0 LEC
  • 59 |
60 |
61 |
62 |
63 | 64 |
65 | © LEC. All Rights Reserved 66 |
67 | 68 | 69 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | * { 2 | -webkit-box-sizing: border-box; 3 | -moz-box-sizing: border-box; 4 | box-sizing: border-box 5 | } 6 | 7 | :before, 8 | :after { 9 | -webkit-box-sizing: border-box; 10 | -moz-box-sizing: border-box; 11 | box-sizing: border-box 12 | } 13 | 14 | html, 15 | body { 16 | height: 100% 17 | } 18 | 19 | a, 20 | a:active, 21 | a:focus, 22 | input:focus { 23 | text-decoration: none !important; 24 | outline: 0 25 | } 26 | 27 | ::-webkit-input-placeholder { 28 | color: rgba(255, 255, 255, 0.1) 29 | } 30 | 31 | :-moz-placeholder { 32 | color: rgba(255, 255, 255, 0.1) 33 | } 34 | 35 | ::-moz-placeholder { 36 | color: rgba(255, 255, 255, 0.1) 37 | } 38 | 39 | :-ms-input-placeholder { 40 | color: rgba(255, 255, 255, 0.1) 41 | } 42 | 43 | input { 44 | -webkit-appearance: none; 45 | -moz-appearance: none; 46 | appearance: none; 47 | -webkit-border-radius: 0 !important; 48 | -moz-border-radius: 0 !important; 49 | border-radius: 0 !important 50 | } 51 | 52 | .gpu-hack { 53 | -webkit-perspective: 1000px; 54 | -moz-perspective: 1000px; 55 | perspective: 1000px; 56 | -webkit-transform: translateZ(0); 57 | -moz-transform: translateZ(0); 58 | transform: translateZ(0); 59 | -webkit-backface-visibility: hidden; 60 | -moz-backface-visibility: hidden; 61 | backface-visibility: hidden 62 | } 63 | 64 | .bg-cover { 65 | position: absolute; 66 | left: 0; 67 | top: 0; 68 | width: 100%; 69 | height: 100%; 70 | -webkit-background-size: cover; 71 | -moz-background-size: cover; 72 | -o-background-size: cover; 73 | background-size: cover; 74 | background-position: center center; 75 | background-repeat: no-repeat; 76 | z-index: 0; 77 | visibility: hidden 78 | } 79 | 80 | .bg-cover::after { 81 | content: ""; 82 | position: absolute; 83 | left: 0; 84 | top: 0; 85 | width: 100%; 86 | height: 100%; 87 | background: -moz-linear-gradient(270deg, rgba(29, 31, 40, 0.75) 0%, rgba(29, 31, 40, 0.95) 100%); 88 | background: -webkit-linear-gradient(270deg, rgba(29, 31, 40, 0.75) 0%, rgba(29, 31, 40, 0.95) 100%); 89 | background: -o-linear-gradient(270deg, rgba(29, 31, 40, 0.75) 0%, rgba(29, 31, 40, 0.95) 100%); 90 | background: -ms-linear-gradient(270deg, rgba(29, 31, 40, 0.75) 0%, rgba(29, 31, 40, 0.95) 100%); 91 | background: linear-gradient(180deg, rgba(29, 31, 40, 0.75) 0%, rgba(29, 31, 40, 0.95) 100%) 92 | } 93 | 94 | div[class^="sven-char"] { 95 | -webkit-backface-visibility: hidden; 96 | -moz-backface-visibility: hidden; 97 | backface-visibility: hidden; 98 | -webkit-perspective: 1000px; 99 | -moz-perspective: 1000px; 100 | perspective: 1000px; 101 | outline: 1px solid transparent 102 | } 103 | 104 | .abs-center { 105 | position: absolute; 106 | top: 50%; 107 | left: 50%; 108 | -ms-transform: translate(-50%, -50%); 109 | -webkit-transform: translate(-50%, -50%); 110 | -moz-transform: translate(-50%, -50%); 111 | -o-transform: translate(-50%, -50%); 112 | transform: translate(-50%, -50%) 113 | } 114 | 115 | .mt-0 { 116 | margin-top: 0 117 | } 118 | 119 | body { 120 | padding: 0; 121 | margin: 0; 122 | background: #151515; 123 | color: #fff; 124 | font-size: 16px; 125 | line-height: 30px 126 | } 127 | 128 | .main-title{ 129 | font-size: 2em; 130 | } 131 | 132 | .content-wrapper { 133 | position: relative; 134 | overflow: hidden; 135 | width: 100%; 136 | height: 100%; 137 | text-align: center; 138 | z-index: 1 139 | } 140 | 141 | .content-wrapper::before { 142 | content: ''; 143 | display: inline-block; 144 | height: 100%; 145 | margin-right: -.25em; 146 | vertical-align: middle 147 | } 148 | 149 | .v-center { 150 | position: relative; 151 | display: inline-block; 152 | width: 86%; 153 | text-align: left; 154 | vertical-align: middle 155 | } 156 | 157 | .main-content { 158 | visibility: hidden 159 | } 160 | 161 | p { 162 | font-size: 1em; 163 | line-height: 1.875em; 164 | margin: 0; 165 | padding: 0 0 .9375em 166 | } 167 | 168 | h3 { 169 | margin-bottom: .714em; 170 | padding: 0; 171 | font-size: 1.333em; 172 | line-height: 1.429em 173 | } 174 | 175 | p a { 176 | color: #DDC225 177 | } 178 | 179 | ul { 180 | padding: 0; 181 | margin: 0; 182 | opacity: 0; 183 | visibility: hidden; 184 | font-size: .75em 185 | } 186 | 187 | ul li { 188 | position: relative; 189 | display: inline; 190 | padding-bottom: .1875em; 191 | margin-right: .75em 192 | } 193 | 194 | li a { 195 | color: #A3A3A3; 196 | -webkit-transition: color .5s; 197 | -moz-transition: color .5s; 198 | -ms-transition: color .5s; 199 | -o-transition: color .5s; 200 | transition: color .5s; 201 | cursor: pointer 202 | } 203 | 204 | li a:after { 205 | content: ''; 206 | position: absolute; 207 | bottom: 0; 208 | left: 0; 209 | opacity: 0; 210 | width: 100%; 211 | height: .125em; 212 | background-color: #DDC225; 213 | -webkit-transition: opacity .5s; 214 | -moz-transition: opacity .5s; 215 | -ms-transition: opacity .5s; 216 | -o-transition: opacity .5s; 217 | transition: opacity .5s 218 | } 219 | 220 | li a:hover { 221 | color: #FFF 222 | } 223 | 224 | li a:hover:after { 225 | opacity: 1 226 | } 227 | 228 | a.btn-fill, 229 | a.btn-bordered { 230 | padding: .5em 1em; 231 | border: .063em solid transparent; 232 | border-radius: .125em; 233 | font-weight: 700; 234 | text-transform: uppercase 235 | } 236 | 237 | a.btn-fill:after, 238 | a.btn-bordered:after { 239 | display: none 240 | } 241 | 242 | a.btn-fill { 243 | color: #00A1E0; 244 | background: #FFD61F 245 | } 246 | 247 | a.btn-fill:hover { 248 | background: #FFF; 249 | color: #00A1E0 250 | } 251 | 252 | a.btn-bordered { 253 | color: #FFF; 254 | border-color: #FFF 255 | } 256 | 257 | #drifter, 258 | #particles-js { 259 | position: absolute; 260 | top: 0; 261 | left: 0; 262 | width: 100%; 263 | height: 100%; 264 | z-index: 0; 265 | overflow: hidden 266 | } 267 | 268 | .sven-badge { 269 | position: fixed; 270 | left: 0; 271 | right: 0; 272 | bottom: 2em; 273 | margin: 0 auto; 274 | width: 86%; 275 | font-size: .438em; 276 | line-height: 1.875em; 277 | text-transform: uppercase; 278 | letter-spacing: .0625em; 279 | z-index: 10 280 | } 281 | 282 | .sven-badge a { 283 | color: #707070 284 | } 285 | 286 | .sven-badge span { 287 | display: inline-block; 288 | font-weight: 700; 289 | border-bottom: 1px dotted 290 | } 291 | 292 | .sven-badge:hover span { 293 | color: #DDC225; 294 | border-bottom: 1px dotted transparent 295 | } 296 | 297 | .preloader { 298 | z-index: 100 299 | } 300 | 301 | .spinner { 302 | position: relative; 303 | width: 1em; 304 | height: 1em; 305 | margin: 0 auto; 306 | border-radius: 50%; 307 | background: #DDC225; 308 | background: -moz-linear-gradient(top, #DDC225 10%, rgba(255, 255, 255, 0) 100%); 309 | background: -webkit-linear-gradient(top, #DDC225 10%, rgba(255, 255, 255, 0) 100%); 310 | background: linear-gradient(to bottom, #DDC225 10%, rgba(255, 255, 255, 0) 100%); 311 | -webkit-animation: load 1s infinite linear; 312 | -moz-animation: load 1s infinite linear; 313 | animation: load 1s infinite linear 314 | } 315 | 316 | .spinner:before, 317 | .spinner:after { 318 | content: ''; 319 | position: absolute; 320 | top: 0; 321 | right: 0; 322 | bottom: 0; 323 | left: 0; 324 | width: 100%; 325 | height: 100% 326 | } 327 | 328 | .spinner:before { 329 | border-radius: 100%; 330 | background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 50%, #DDC225 50%); 331 | background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 50%, #DDC225 50%); 332 | background: linear-gradient(to right, rgba(255, 255, 255, 0) 50%, #DDC225 50%) 333 | } 334 | 335 | .spinner:after { 336 | width: 90%; 337 | height: 90%; 338 | margin: auto; 339 | border-radius: 50%; 340 | background: #151515 341 | } 342 | 343 | @-webkit-keyframes load { 344 | from { 345 | -webkit-transform: rotate(0deg) 346 | } 347 | to { 348 | -webkit-transform: rotate(360deg) 349 | } 350 | } 351 | 352 | @-moz-keyframes load { 353 | from { 354 | -moz-transform: rotate(0deg) 355 | } 356 | to { 357 | -moz-transform: rotate(360deg) 358 | } 359 | } 360 | 361 | @keyframes load { 362 | from { 363 | -webkit-transform: rotate(0deg); 364 | -moz-transform: rotate(0deg); 365 | -ms-transform: rotate(0deg); 366 | -o-transform: rotate(0deg); 367 | transform: rotate(0deg) 368 | } 369 | to { 370 | -webkit-transform: rotate(360deg); 371 | -moz-transform: rotate(360deg); 372 | -ms-transform: rotate(360deg); 373 | -o-transform: rotate(360deg); 374 | transform: rotate(360deg) 375 | } 376 | } 377 | 378 | #minimos-1 { 379 | font-family: "Raleway", sans-serif; 380 | background: #151515 381 | } 382 | 383 | #minimos-2, 384 | #minimos-2 .spinner:after { 385 | font-family: "Abel", sans-serif; 386 | background: #280B29 387 | } 388 | 389 | #minimos-3, 390 | #minimos-3 .spinner:after { 391 | font-family: "Nunito", sans-serif; 392 | background: #00A1E0 393 | } 394 | 395 | #minimos-3 .sven-badge a { 396 | color: #CCC 397 | } 398 | 399 | #minimos-3 .sven-badge:hover span { 400 | color: #FFD61F 401 | } 402 | 403 | #minimos-4, 404 | #minimos-4 .spinner:after { 405 | font-family: "Josefin Sans", sans-serif; 406 | background: #030920 407 | } 408 | 409 | #minimos-4 .sven-badge a { 410 | color: #CCC 411 | } 412 | 413 | #minimos-4 .sven-badge:hover span { 414 | color: #F8EB31 415 | } 416 | 417 | #minimos-4 li a { 418 | color: #E0E0E0 419 | } 420 | 421 | #minimos-4 li a:hover { 422 | color: #FFF 423 | } 424 | 425 | #cafe1 { 426 | font-family: "Crimson Text", serif; 427 | color: #FFF 428 | } 429 | 430 | #cafe1 h3 { 431 | font-family: 'Alegreya', serif; 432 | font-weight: 700; 433 | color: #D08E25 434 | } 435 | 436 | #cafe1 .bg-image { 437 | background-image: url(../images/cafe1-bg.jpg) 438 | } 439 | 440 | #cafe2 { 441 | font-family: "Cormorant Infant", serif; 442 | color: #FFF 443 | } 444 | 445 | #cafe2 h3 { 446 | font-family: 'Muli', serif; 447 | font-weight: 700; 448 | color: #D08E25 449 | } 450 | 451 | #cafe2 .bg-image { 452 | background-image: url(../images/cafe2-bg.jpg) 453 | } 454 | 455 | #cafe1 .spinner::after, 456 | #cafe2 .spinner::after { 457 | background: transparent 458 | } 459 | 460 | .layout-center .v-center, 461 | .layout-center .sven-badge { 462 | text-align: center 463 | } 464 | 465 | .layout-center .main-content { 466 | margin: 0 auto 467 | } 468 | 469 | @media only screen and (min-width: 768px) { 470 | body { 471 | font-size: 22px; 472 | line-height: 48px 473 | } 474 | .main-content { 475 | width: 80% 476 | } 477 | } 478 | 479 | @media only screen and (min-width: 1200px) { 480 | body { 481 | font-size: 26px; 482 | line-height: 48px 483 | } 484 | } 485 | 486 | @media only screen and (min-width: 1824px) { 487 | body { 488 | font-size: 32px; 489 | line-height: 60px 490 | } 491 | } -------------------------------------------------------------------------------- /css/scifi.css: -------------------------------------------------------------------------------- 1 | .scifiUI * { 2 | -webkit-transition: all 500ms ease-in-out; 3 | transition: all 500ms ease-in-out; 4 | outline: none; 5 | } 6 | .scifiUI :before, 7 | .scifiUI :after { 8 | -webkit-transition: all 200ms ease-in-out; 9 | transition: all 200ms ease-in-out; 10 | content: ''; 11 | } 12 | .scifiUI .inline { 13 | display: block; 14 | width: 100%; 15 | margin: 20px 0; 16 | } 17 | .scifiUI .inline label { 18 | padding-right: 5px; 19 | } 20 | .scifiUI input[type=text] { 21 | caret-color: white; 22 | color: aliceblue; 23 | font-size: 1em; 24 | font-family: "Raleway", sans-serif; 25 | height: 50px; 26 | border-bottom: 1px solid #00dcdc; 27 | border-top: none; 28 | border-left: none; 29 | border-right: none; 30 | padding: 0 10px; 31 | background: transparent; 32 | } 33 | .scifiUI input[type=text]:hover { 34 | -webkit-box-shadow: 0 2px 0 0 #00bebe; 35 | box-shadow: 0 2px 0 0 #00bebe; 36 | border-bottom: 1px solid #00dcdc; 37 | border-top: none; 38 | border-left: none; 39 | border-right: none; 40 | } 41 | .scifiUI input[type=text]:focus { 42 | -webkit-box-shadow: 0 2px 0 0 #00bebe; 43 | box-shadow: 0 2px 0 0 #00bebe; 44 | border-bottom: 1px solid #00dcdc; 45 | border-top: none; 46 | border-left: none; 47 | border-right: none; 48 | } -------------------------------------------------------------------------------- /images/icons/android-icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/android-icon-192x192.png -------------------------------------------------------------------------------- /images/icons/apple-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/apple-icon-120x120.png -------------------------------------------------------------------------------- /images/icons/apple-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/apple-icon-144x144.png -------------------------------------------------------------------------------- /images/icons/apple-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/apple-icon-152x152.png -------------------------------------------------------------------------------- /images/icons/apple-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/apple-icon-76x76.png -------------------------------------------------------------------------------- /images/icons/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discountry/lec/4cc387c0bf0a3a266d89077a1cc3173e967af84c/images/icons/favicon.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 31 | 32 | Leek Ecological Chain 33 | 34 | 35 | 36 | 40 | 41 | 42 | 43 |
44 |
45 |
46 | 47 |
48 |
49 |
50 |

Launching in

51 |

Welcome to the Leek Ecological Chain.

52 |

A team of talanted men to change the world of blockchain. Coming soon in this summer.

53 |

Join our Crowdsale

54 | 59 |
60 |
61 |
62 | 63 |
64 | © LEC. All Rights Reserved 65 |
66 | 67 | 68 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /js/backgrounds/drifter.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Stars 3 | * https://codepen.io/cr0ybot/pen/zNyYeW 4 | * Inspired by Steve Courtney's poster art for Celsius GS's Drifter - http://celsiusgs.com/drifter/posters.php 5 | * by Cory Hughart - http://coryhughart.com 6 | */ 7 | function initDrifter(t,i){function h(){if(g&&(++P>=y&&(P=0),k=n(P)),m.clearRect(0,0,x.width,x.height),w>0&&(m.shadowBlur=w,m.shadowColor=f),u)for(var t=0;t=x.height?x.width:x.height}function l(t,i,h){return h?Math.random()*(i-t)+t:Math.floor(Math.random()*(i-t+1))+t}var a=40,s=10,c=.05,f=i,u=!0,d=!0,w=0,g=!0,y=1e3,p=1,x=document.getElementById(t),m=x.getContext("2d"),b={x:0,y:0},v=1e3,P=0,A=2*Math.PI/y,M=100,k={x:0,y:0},z=[],I=[],q=[],F=[],R=[],W=function(){this.x=l(-.1,1.1,!0),this.y=l(-.1,1.1,!0),this.z=l(0,4),this.color=f,this.opacity=l(.1,1,!0),this.flicker=0,this.neighbors=[]};W.prototype.render=function(){var t=o(this.x,this.y,this.z),i=(.5*this.z+1)*(r()/1e3),h=this.opacity,e=l(-.5,.5,!0);this.flicker+=(e-this.flicker)/15,this.flicker>.5&&(this.flicker=.5),this.flicker<-.5&&(this.flicker=-.5),(h+=this.flicker)>1&&(h=1),h<0&&(h=0),m.fillStyle=this.color,m.globalAlpha=h,m.beginPath(),m.arc(t.x,t.y,i,0,2*Math.PI,!1),m.fill(),m.closePath(),m.globalAlpha=.05*h,m.ellipse(t.x,t.y,100*i,i,(-60-(k.x-.5)*p*c)*(Math.PI/180),0,2*Math.PI,!1),m.fill(),m.closePath(),m.globalAlpha=1};var B=function(){this.x=l(-.25,1.25,!0),this.y=l(-.25,1.25,!0),this.z=l(0,2),this.color=f,this.opacity=l(.001,.01,!0)};B.prototype.render=function(){var t=o(this.x,this.y,this.z),i=(100*this.z+100)*(r()/1e3);m.beginPath(),m.globalAlpha=this.opacity,m.arc(t.x,t.y,i,0,2*Math.PI,!1),m.fillStyle=this.color,m.fill(),m.closePath(),m.globalAlpha=1},x&&function(){var t,i;for(window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},e(),b.x=x.clientWidth/2,b.y=x.clientHeight/2,t=0;t-1}var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.particles.move.direction){case"top":n={x:0,y:-1};break;case"top-right":n={x:.5,y:-.5};break;case"right":n={x:1,y:-0};break;case"bottom-right":n={x:.5,y:.5};break;case"bottom":n={x:0,y:1};break;case"bottom-left":n={x:-.5,y:1};break;case"left":n={x:-1,y:0};break;case"top-left":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var r=i.particles.shape.type;if("object"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if("image"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),"svg"==i.tmp.img_type&&void 0!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.fn.particle.prototype.draw=function(){function e(){i.canvas.ctx.drawImage(r,a.x-t,a.y-t,2*t,2*t/a.img.ratio)}var a=this;if(void 0!=a.radius_bubble)var t=a.radius_bubble;else var t=a.radius;if(void 0!=a.opacity_bubble)var s=a.opacity_bubble;else var s=a.opacity;if(a.color.rgb)var n="rgba("+a.color.rgb.r+","+a.color.rgb.g+","+a.color.rgb.b+","+s+")";else var n="hsla("+a.color.hsl.h+","+a.color.hsl.s+"%,"+a.color.hsl.l+"%,"+s+")";switch(i.canvas.ctx.fillStyle=n,i.canvas.ctx.beginPath(),a.shape){case"circle":i.canvas.ctx.arc(a.x,a.y,t,0,2*Math.PI,!1);break;case"edge":i.canvas.ctx.rect(a.x-t,a.y-t,2*t,2*t);break;case"triangle":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t,a.y+t/1.66,2*t,3,2);break;case"polygon":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t/(i.particles.shape.polygon.nb_sides/3.5),a.y-t/.76,2.66*t/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case"star":i.fn.vendors.drawShape(i.canvas.ctx,a.x-2*t/(i.particles.shape.polygon.nb_sides/4),a.y-t/1.52,2*t*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==i.tmp.img_type)var r=a.img.obj;else var r=i.tmp.img_obj;r&&e()}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e=i.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=i.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),i.particles.size.anim.enable&&(1==a.size_status?(a.radius>=i.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=i.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),"bounce"==i.particles.move.out_mode)var s={x_left:a.radius,x_right:i.canvas.w,y_top:a.radius,y_bottom:i.canvas.h};else var s={x_left:-a.radius,x_right:i.canvas.w+a.radius,y_top:-a.radius,y_bottom:i.canvas.h+a.radius};switch(a.x-a.radius>i.canvas.w?(a.x=s.x_left,a.y=Math.random()*i.canvas.h):a.x+a.radius<0&&(a.x=s.x_right,a.y=Math.random()*i.canvas.h),a.y-a.radius>i.canvas.h?(a.y=s.y_top,a.x=Math.random()*i.canvas.w):a.y+a.radius<0&&(a.y=s.y_bottom,a.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case"bounce":a.x+a.radius>i.canvas.w?a.vx=-a.vx:a.x-a.radius<0&&(a.vx=-a.vx),a.y+a.radius>i.canvas.h?a.vy=-a.vy:a.y-a.radius<0&&(a.vy=-a.vy)}if(isInArray("grab",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(a),(isInArray("bubble",i.interactivity.events.onhover.mode)||isInArray("bubble",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(a),(isInArray("repulse",i.interactivity.events.onhover.mode)||isInArray("repulse",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(a),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+c.r+","+c.g+","+c.b+","+r+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(a.x,a.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=t/(1e3*i.particles.move.attract.rotateX),c=s/(1e3*i.particles.move.attract.rotateY);e.vx-=r,e.vy-=c,a.vx+=r,a.vy+=c}},i.fn.interact.bounceParticles=function(e,a){var t=e.x-a.x,i=e.y-a.y,s=Math.sqrt(t*t+i*i),n=e.radius+a.radius;n>=s&&(e.vx=-e.vx,e.vy=-e.vy,a.vx=-a.vx,a.vy=-a.vy)},i.fn.modes.pushParticles=function(e,a){i.tmp.pushing=!0;for(var t=0;e>t;t++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:a?a.pos_x:Math.random()*i.canvas.w,y:a?a.pos_y:Math.random()*i.canvas.h})),t==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){function a(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function t(a,t,s,n,c){if(a!=t)if(i.tmp.bubble_duration_end){if(void 0!=s){var o=n-p*(n-a)/i.interactivity.modes.bubble.duration,l=a-o;d=a+l,"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else if(r<=i.interactivity.modes.bubble.distance){if(void 0!=s)var v=s;else var v=n;if(v!=a){var d=n-p*(n-a)/i.interactivity.modes.bubble.duration;"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else"size"==c&&(e.radius_bubble=void 0),"opacity"==c&&(e.opacity_bubble=void 0)}if(i.interactivity.events.onhover.enable&&isInArray("bubble",i.interactivity.events.onhover.mode)){var s=e.x-i.interactivity.mouse.pos_x,n=e.y-i.interactivity.mouse.pos_y,r=Math.sqrt(s*s+n*n),c=1-r/i.interactivity.modes.bubble.distance;if(r<=i.interactivity.modes.bubble.distance){if(c>=0&&"mousemove"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){var o=e.radius+i.interactivity.modes.bubble.size*c;o>=0&&(e.radius_bubble=o)}else{var l=e.radius-i.interactivity.modes.bubble.size,o=e.radius-l*c;o>0?e.radius_bubble=o:e.radius_bubble=0}if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value){var v=i.interactivity.modes.bubble.opacity*c;v>e.opacity&&v<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}else{var v=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*c;v=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}}}else a();"mouseleave"==i.interactivity.status&&a()}else if(i.interactivity.events.onclick.enable&&isInArray("bubble",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){var s=e.x-i.interactivity.mouse.click_pos_x,n=e.y-i.interactivity.mouse.click_pos_y,r=Math.sqrt(s*s+n*n),p=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;p>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),p>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}i.tmp.bubble_clicking&&(t(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,"size"),t(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},i.fn.modes.repulseParticle=function(e){function a(){var a=Math.atan2(d,p);if(e.vx=u*Math.cos(a),e.vy=u*Math.sin(a),"bounce"==i.particles.move.out_mode){var t={x:e.x+e.vx,y:e.y+e.vy};t.x+e.radius>i.canvas.w?e.vx=-e.vx:t.x-e.radius<0&&(e.vx=-e.vx),t.y+e.radius>i.canvas.h?e.vy=-e.vy:t.y-e.radius<0&&(e.vy=-e.vy)}}if(i.interactivity.events.onhover.enable&&isInArray("repulse",i.interactivity.events.onhover.mode)&&"mousemove"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,s=e.y-i.interactivity.mouse.pos_y,n=Math.sqrt(t*t+s*s),r={x:t/n,y:s/n},c=i.interactivity.modes.repulse.distance,o=100,l=clamp(1/c*(-1*Math.pow(n/c,2)+1)*c*o,0,50),v={x:e.x+r.x*l,y:e.y+r.y*l};"bounce"==i.particles.move.out_mode?(v.x-e.radius>0&&v.x+e.radius0&&v.y+e.radius=m&&a()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&"mousemove"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){"window"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener("mousemove",function(e){if(i.interactivity.el==window)var a=e.clientX,t=e.clientY;else var a=e.offsetX||e.clientX,t=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=a,i.interactivity.mouse.pos_y=t,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status="mousemove"}),i.interactivity.el.addEventListener("mouseleave",function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status="mouseleave"})),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener("click",function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case"push":i.particles.move.enable?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case"remove":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case"bubble":i.tmp.bubble_clicking=!0;break;case"repulse":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout(function(){i.tmp.repulse_clicking=!1},1e3*i.interactivity.modes.repulse.duration)}})},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var a=e*i.particles.number.value/i.particles.number.density.value_area,t=i.particles.array.length-a;0>t?i.fn.modes.pushParticles(Math.abs(t)):i.fn.modes.removeParticles(t)}},i.fn.vendors.checkOverlap=function(e,a){for(var t=0;tv;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL("image/png"),"_blank")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,""!=i.particles.shape.image.src)if("svg"==e){var a=new XMLHttpRequest;a.open("GET",i.particles.shape.image.src),a.onreadystatechange=function(e){4==a.readyState&&(200==a.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),i.tmp.img_error=!0))},a.send()}else{var t=new Image;t.addEventListener("load",function(){i.tmp.img_obj=t,i.fn.vendors.checkBeforeDraw()}),t.src=i.particles.shape.image.src}else console.log("Error pJS - No image.src"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):void 0!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type&&void 0==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray("image",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.fn.vendors.start()};Object.deepExtend=function(e,a){for(var t in a)a[t]&&a[t].constructor&&a[t].constructor===Object?(e[t]=e[t]||{},arguments.callee(e[t],a[t])):e[t]=a[t];return e},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(e,a){"string"!=typeof e&&(a=e,e="particles-js"),e||(e="particles-js");var t=document.getElementById(e),i="particles-js-canvas-el",s=t.getElementsByClassName(i);if(s.length)for(;s.length>0;)t.removeChild(s[0]);var n=document.createElement("canvas");n.className=i,n.style.width="100%",n.style.height="100%";var r=document.getElementById(e).appendChild(n);null!=r&&pJSDom.push(new pJS(e,a))},window.particlesJS.load=function(e,a,t){var i=new XMLHttpRequest;i.open("GET",a),i.onreadystatechange=function(a){if(4==i.readyState)if(200==i.status){var s=JSON.parse(a.currentTarget.response);window.particlesJS(e,s),t&&t()}else console.log("Error pJS - XMLHttpRequest status: "+i.status),console.log("Error pJS - File config not found")},i.send()}; 10 | 11 | /******************************************************** 12 | Particles animation configuration 13 | Please visit http://vincentgarreau.com/particles.js/ 14 | *********************************************************/ 15 | function initStompParticles() { 16 | particlesJS("particles-js",{particles:{number:{value:30,density:{enable:!0,value_area:800}},color:{value:"#45B6EA"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.5,random:!0,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:12,random:!0,anim:{enable:!1,speed:40,size_min:1,sync:!1}},line_linked:{enable:!1,distance:500,color:"#ffffff",opacity:.4,width:2},move:{enable:!0,speed:1,direction:"top",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"bubble"},onclick:{enable:!1,mode:"repulse"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:.5}},bubble:{distance:400,size:4,duration:.3,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}); 17 | } 18 | -------------------------------------------------------------------------------- /js/buy-token.js: -------------------------------------------------------------------------------- 1 | App = { 2 | web3Provider: null, 3 | contracts: {}, 4 | tokenAddress: null, 5 | 6 | init: function() { 7 | return App.initWeb3(); 8 | }, 9 | 10 | initWeb3: function() { 11 | // Initialize web3 and set the provider to the testRPC. 12 | if (typeof web3 !== 'undefined') { 13 | App.web3Provider = web3.currentProvider; 14 | web3 = new Web3(web3.currentProvider); 15 | } else { 16 | // set the provider you want from Web3.providers 17 | App.web3Provider = new Web3.providers.HttpProvider('https://ropsten.infura.io/ubIJ4ZVFRvylZRFpbNMQ'); 18 | web3 = new Web3(App.web3Provider); 19 | } 20 | 21 | return App.initContract(); 22 | }, 23 | 24 | initContract: function() { 25 | $.getJSON('contracts/LeekCoinCrowdsale.json', function(data) { 26 | // Get the necessary contract artifact file and instantiate it with truffle-contract. 27 | var CrowdsaleArtifact = data; 28 | App.contracts.Crowdsale = TruffleContract(CrowdsaleArtifact); 29 | 30 | // Set the provider for our contract. 31 | App.contracts.Crowdsale.setProvider(App.web3Provider); 32 | 33 | web3.eth.getBlock("latest",(err,block)=>{ 34 | console.log('gasLimit',block.gasLimit) 35 | let gasLimit = block.gasLimit; 36 | web3.eth.getGasPrice((err,price)=>{ 37 | console.log('gasPrice',price.c[0]) 38 | App.contracts.Crowdsale.defaults({ 39 | gas: gasLimit, 40 | gasPrice: price.c[0], 41 | }); 42 | App.contracts.Crowdsale.deployed().then(function(instance) { 43 | crowdsaleInstance = instance; 44 | 45 | return crowdsaleInstance.tokenReward(); 46 | }).then(function(tokenAddress){ 47 | console.log(tokenAddress); 48 | App.tokenAddress = tokenAddress; 49 | return App.initCoin(); 50 | }).catch(function(err) { 51 | console.log(err.message); 52 | }); 53 | }); 54 | }); 55 | }); 56 | }, 57 | 58 | initCoin: function() { 59 | $.getJSON('contracts/LeekCoin.json', function(data) { 60 | // Get the necessary contract artifact file and instantiate it with truffle-contract. 61 | var LeekCoinArtifact = data; 62 | App.contracts.LeekCoin = TruffleContract(LeekCoinArtifact); 63 | 64 | // Set the provider for our contract. 65 | App.contracts.LeekCoin.setProvider(App.web3Provider); 66 | 67 | // Use our contract to retieve and mark the adopted pets. 68 | return App.getBalances(); 69 | }); 70 | 71 | return App.bindEvents(); 72 | }, 73 | 74 | bindEvents: function() { 75 | $(document).on('click', '#buy-link', App.handleSendTransaction); 76 | }, 77 | 78 | handleSendTransaction: function(event) { 79 | event.preventDefault(); 80 | 81 | var amount = parseInt($('#textInput').val()); 82 | 83 | console.log('Buying ' + amount); 84 | 85 | var crowdsaleInstance; 86 | 87 | web3.eth.getAccounts(function(error, accounts) { 88 | if (error) { 89 | console.log(error); 90 | } 91 | 92 | var account = accounts[0]; 93 | 94 | App.contracts.Crowdsale.deployed().then(function(instance) { 95 | crowdsaleInstance = instance; 96 | 97 | return crowdsaleInstance.sendTransaction({ from: account, value: web3.toWei(amount/1000, "ether")}); 98 | }).then(function(result) { 99 | alert('Transfer Successful!'); 100 | return App.getBalances(); 101 | }).catch(function(err) { 102 | console.log(err.message); 103 | }); 104 | }); 105 | }, 106 | 107 | getBalances: function() { 108 | console.log('Getting balances...'); 109 | 110 | var crowdsaleInstance; 111 | 112 | web3.eth.getAccounts(function(error, accounts) { 113 | if (error) { 114 | console.log(error); 115 | } 116 | 117 | var account = accounts[0]; 118 | 119 | leekCoinInstance = App.contracts.LeekCoin.at(App.tokenAddress); 120 | 121 | leekCoinInstance.balanceOf(account).then(function(result) { 122 | console.log('balance', result); 123 | $('#possession').text(web3.fromWei(result.toNumber(), "ether")); 124 | }).catch(function(err) { 125 | console.log(err.message); 126 | }); 127 | }); 128 | } 129 | 130 | }; 131 | 132 | $(function() { 133 | $(window).load(function() { 134 | if (typeof web3 === 'undefined') { 135 | $('#warning').show(); 136 | return false; 137 | } 138 | var account = web3.eth.accounts[0]; 139 | if (!account) { 140 | $('#warning').show(); 141 | var accountInterval = setInterval(function() { 142 | if (web3.eth.accounts[0] !== account) { 143 | account = web3.eth.accounts[0]; 144 | $('#warning').hide(); 145 | App.init(); 146 | } 147 | }, 100); 148 | } else { 149 | App.init(); 150 | } 151 | }); 152 | }); 153 | -------------------------------------------------------------------------------- /js/dependencies.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * VERSION: 0.5.6 3 | * DATE: 2017-01-17 4 | * UPDATES AND DOCS AT: http://greensock.com 5 | * 6 | * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 7 | * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use 8 | * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. 9 | * This work is subject to the software agreement that was issued with your membership. 10 | * 11 | * @author: Jack Doyle, jack@greensock.com 12 | */ 13 | var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;!function(a){"use strict";var b=a.GreenSockGlobals||a,c=function(a){var c,d=a.split("."),e=b;for(c=0;cb;b++)if(c=a[b],j(c))for(d=c.length,d=0;d":">")}},y=d.SplitText=b.SplitText=function(a,b){if("string"==typeof a&&(a=y.selector(a)),!a)throw"cannot split a null element.";this.elements=j(a)?k(a):[a],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=b||{},this.split(b)},z=function(a,b,c){var d=a.nodeType;if(1===d||9===d||11===d)for(a=a.firstChild;a;a=a.nextSibling)z(a,b,c);else(3===d||4===d)&&(a.nodeValue=a.nodeValue.split(b).join(c))},A=function(a,b){for(var c=b.length;--c>-1;)a.push(b[c])},B=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},C=function(a,b,c){for(var d;a&&a!==b;){if(d=a._next||a.nextSibling)return d.textContent.charAt(0)===c;a=a.parentNode||a._parent}return!1},D=function(a){var b,c,d=B(a.childNodes),e=d.length;for(b=0;e>b;b++)c=d[b],c._isSplit?D(c):(b&&3===c.previousSibling.nodeType?c.previousSibling.nodeValue+=3===c.nodeType?c.nodeValue:c.firstChild.nodeValue:3!==c.nodeType&&a.insertBefore(c.firstChild,c),a.removeChild(c))},E=function(a,b,c,d,e,h,j){var k,l,m,n,o,p,q,r,s,t,u,v,w=g(a),x=i(a,"paddingLeft",w),y=-999,B=i(a,"borderBottomWidth",w)+i(a,"borderTopWidth",w),E=i(a,"borderLeftWidth",w)+i(a,"borderRightWidth",w),F=i(a,"paddingTop",w)+i(a,"paddingBottom",w),G=i(a,"paddingLeft",w)+i(a,"paddingRight",w),H=.2*i(a,"fontSize"),I=i(a,"textAlign",w,!0),J=[],K=[],L=[],M=b.wordDelimiter||" ",N=b.span?"span":"div",O=b.type||b.split||"chars,words,lines",P=e&&-1!==O.indexOf("lines")?[]:null,Q=-1!==O.indexOf("words"),R=-1!==O.indexOf("chars"),S="absolute"===b.position||b.absolute===!0,T=b.linesClass,U=-1!==(T||"").indexOf("++"),V=[];for(P&&1===a.children.length&&a.children[0]._isSplit&&(a=a.children[0]),U&&(T=T.split("++").join("")),l=a.getElementsByTagName("*"),m=l.length,o=[],k=0;m>k;k++)o[k]=l[k];if(P||S)for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,(p||S||R&&!Q)&&(v=n.offsetTop,P&&p&&Math.abs(v-y)>H&&"BR"!==n.nodeName&&(q=[],P.push(q),y=v),S&&(n._x=n.offsetLeft,n._y=v,n._w=n.offsetWidth,n._h=n.offsetHeight),P&&((n._isSplit&&p||!R&&p||Q&&p||!Q&&n.parentNode.parentNode===a&&!n.parentNode._isSplit)&&(q.push(n),n._x-=x,C(n,a,M)&&(n._wordEnd=!0)),"BR"===n.nodeName&&n.nextSibling&&"BR"===n.nextSibling.nodeName&&P.push([])));for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,"BR"!==n.nodeName?(S&&(s=n.style,Q||p||(n._x+=n.parentNode._x,n._y+=n.parentNode._y),s.left=n._x+"px",s.top=n._y+"px",s.position="absolute",s.display="block",s.width=n._w+1+"px",s.height=n._h+"px"),!Q&&R?n._isSplit?(n._next=n.nextSibling,n.parentNode.appendChild(n)):n.parentNode._isSplit?(n._parent=n.parentNode,!n.previousSibling&&n.firstChild&&(n.firstChild._isFirst=!0),n.nextSibling&&" "===n.nextSibling.textContent&&!n.nextSibling.nextSibling&&V.push(n.nextSibling),n._next=n.nextSibling&&n.nextSibling._isFirst?null:n.nextSibling,n.parentNode.removeChild(n),o.splice(k--,1),m--):p||(v=!n.nextSibling&&C(n.parentNode,a,M),n.parentNode._parent&&n.parentNode._parent.appendChild(n),v&&n.parentNode.appendChild(f.createTextNode(" ")),b.span&&(n.style.display="inline"),J.push(n)):n.parentNode._isSplit&&!n._isSplit&&""!==n.innerHTML?K.push(n):R&&!n._isSplit&&(b.span&&(n.style.display="inline"),J.push(n))):P||S?(n.parentNode&&n.parentNode.removeChild(n),o.splice(k--,1),m--):Q||a.appendChild(n);for(k=V.length;--k>-1;)V[k].parentNode.removeChild(V[k]);if(P){for(S&&(t=f.createElement(N),a.appendChild(t),u=t.offsetWidth+"px",v=t.offsetParent===a?0:a.offsetLeft,a.removeChild(t)),s=a.style.cssText,a.style.cssText="display:none;";a.firstChild;)a.removeChild(a.firstChild);for(r=" "===M&&(!S||!Q&&!R),k=0;kl;l++)"BR"!==q[l].nodeName&&(n=q[l],t.appendChild(n),r&&n._wordEnd&&t.appendChild(f.createTextNode(" ")),S&&(0===l&&(t.style.top=n._y+"px",t.style.left=x+v+"px"),n.style.top="0px",v&&(n.style.left=n._x-v+"px")));0===m?t.innerHTML=" ":Q||R||(D(t),z(t,String.fromCharCode(160)," ")),S&&(t.style.width=u,t.style.height=n._h+"px"),a.appendChild(t)}a.style.cssText=s}S&&(j>a.clientHeight&&(a.style.height=j-F+"px",a.clientHeighta.clientWidth&&(a.style.width=h-G+"px",a.clientWidth":"",G=!0,H=f.createElement("div"),I=a.parentNode;for(I.insertBefore(H,a),H.textContent=a.nodeValue,I.removeChild(a),a=H,g=e(a),v=-1!==g.indexOf("<"),b.reduceWhiteSpace!==!1&&(g=g.replace(m," ").replace(l,"")),v&&(g=g.split("<").join("{{LT}}")),k=g.length,h=(" "===g.charAt(0)?E:"")+c(),i=0;k>i;i++)if(p=g.charAt(i),p===D&&g.charAt(i-1)!==D&&i){for(h+=G?F:"",G=!1;g.charAt(i+1)===D;)h+=E,i++;i===k-1?h+=E:")"!==g.charAt(i+1)&&(h+=E+c(),G=!0)}else"{"===p&&"{{LT}}"===g.substr(i,6)?(h+=B?d()+"{{LT}}":"{{LT}}",i+=5):p.charCodeAt(0)>=n&&p.charCodeAt(0)<=o||g.charCodeAt(i+1)>=65024&&g.charCodeAt(i+1)<=65039?(w=u(g.substr(i,2)),x=u(g.substr(i+2,2)),j=w>=q&&r>=w&&x>=q&&r>=x||x>=s&&t>=x?4:2,h+=B&&" "!==p?d()+g.substr(i,j)+"":g.substr(i,j),i+=j-1):h+=B&&" "!==p?d()+p+"":p;a.outerHTML=h+(G?F:""),v&&z(I,"{{LT}}","<")},G=function(a,b,c,d){var e,f,g=B(a.childNodes),h=g.length,j="absolute"===b.position||b.absolute===!0;if(3!==a.nodeType||h>1){for(b.absolute=!1,e=0;h>e;e++)f=g[e],(3!==f.nodeType||/\S+/.test(f.nodeValue))&&(j&&3!==f.nodeType&&"inline"===i(f,"display",null,!0)&&(f.style.display="inline-block",f.style.position="relative"),f._isSplit=!0,G(f,b,c,d));return b.absolute=j,void(a._isSplit=!0)}F(a,b,c,d)},H=y.prototype;H.split=function(a){this.isSplit&&this.revert(),this.vars=a=a||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var b,c,d,e=this.elements.length,f=a.span?"span":"div",g=("absolute"===a.position||a.absolute===!0,x(a.wordsClass,f)),h=x(a.charsClass,f);--e>-1;)d=this.elements[e],this._originals[e]=d.innerHTML,b=d.clientHeight,c=d.clientWidth,G(d,a,g,h),E(d,a,this.chars,this.words,this.lines,c,b);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},H.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var a=this._originals.length;--a>-1;)this.elements[a].innerHTML=this._originals[a];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},y.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(y.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)},y.version="0.5.6"}(_gsScope),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports&&(module.exports=b())}("SplitText"); 14 | 15 | /*! 16 | * isMobile.js v0.4.1 17 | * 18 | * A simple library to detect Apple phones and tablets, 19 | * Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone), 20 | * and any kind of seven inch device, via user agent sniffing. 21 | * 22 | * @author: Kai Mallea (kmallea@gmail.com) 23 | * 24 | * @license: http://creativecommons.org/publicdomain/zero/1.0/ 25 | */ 26 | !function(a){var b=/iPhone/i,c=/iPod/i,d=/iPad/i,e=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,f=/Android/i,g=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,i=/Windows Phone/i,j=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,k=/BlackBerry/i,l=/BB10/i,m=/Opera Mini/i,n=/(CriOS|Chrome)(?=.*\bMobile\b)/i,o=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,p=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),q=function(a,b){return a.test(b)},r=function(a){var r=a||navigator.userAgent||'',s=r.split("[FBAN");if("undefined"!=typeof s[1]&&(r=s[0]),s=r.split("Twitter"),"undefined"!=typeof s[1]&&(r=s[0]),this.apple={phone:q(b,r),ipod:q(c,r),tablet:!q(b,r)&&q(d,r),device:q(b,r)||q(c,r)||q(d,r)},this.amazon={phone:q(g,r),tablet:!q(g,r)&&q(h,r),device:q(g,r)||q(h,r)},this.android={phone:q(g,r)||q(e,r),tablet:!q(g,r)&&!q(e,r)&&(q(h,r)||q(f,r)),device:q(g,r)||q(h,r)||q(e,r)||q(f,r)},this.windows={phone:q(i,r),tablet:q(j,r),device:q(i,r)||q(j,r)},this.other={blackberry:q(k,r),blackberry10:q(l,r),opera:q(m,r),firefox:q(o,r),chrome:q(n,r),device:q(k,r)||q(l,r)||q(m,r)||q(o,r)||q(n,r)},this.seven_inch=q(p,r),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},s=function(){var a=new r;return a.Class=r,a};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=r:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=s():"function"==typeof define&&define.amd?define("isMobile",[],a.isMobile=s()):a.isMobile=s()}(this); 27 | 28 | /*! 29 | * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/) 30 | * Copyright (c) 2016 Edson Hilios 31 | * 32 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 33 | * this software and associated documentation files (the "Software"), to deal in 34 | * the Software without restriction, including without limitation the rights to 35 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 36 | * the Software, and to permit persons to whom the Software is furnished to do so, 37 | * subject to the following conditions: 38 | * 39 | * The above copyright notice and this permission notice shall be included in all 40 | * copies or substantial portions of the Software. 41 | * 42 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 43 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 44 | * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 45 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 46 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 47 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 48 | */ 49 | !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;f1?c:d}var f=[],g=[],h={precision:100,elapse:!1,defer:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.options.defer===!1&&this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&b<0?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}}); 50 | 51 | /*! 52 | * imagesLoaded PACKAGED v4.1.3 53 | * JavaScript is all like "You images are done yet or what?" 54 | * MIT License 55 | */ 56 | 57 | !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=0,o=i[n];t=t||[];for(var r=this._onceEvents&&this._onceEvents[e];o;){var s=r&&r[o];s&&(this.off(e,o),delete r[o]),o.apply(this,t),n+=s?0:1,o=i[n]}return this}},t.allOff=t.removeAllListeners=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var i=0;i