github.com/shyftnetwork/go-empyrean@v1.8.3-0.20191127201940-fbfca9338f04/shyft-config/shyft-cli/web3/transfer-through-master/build/contracts/Migrations.json (about) 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": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820ea802e1f3352f08f4947eff4a38be1b39756ca0c46eea9a37adc5bc92f0fb5890029", 68 "deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820ea802e1f3352f08f4947eff4a38be1b39756ca0c46eea9a37adc5bc92f0fb5890029", 69 "sourceMap": "26:488:0:-;;;115:58;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:58:0;158:10;150:5;;:18;;;;;;;;;;;;;;;;;;26:488;;;;;;", 70 "deployedSourceMap": "26:488:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;347:165:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74:36:0;;;;;;;;;;;;;;;;;;;;;;;50:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;240:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;240:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;409:19;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;442:11;409:45;;460:8;:21;;;482:24;;460:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;460:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;460:47:0;;;;205:26;347:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;240:103::-;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;329:9;302:24;:36;;;;205:26;240:103;:::o", 71 "source": "pragma solidity ^0.4.23;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\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": "/Users/dustinbrickwood/go/src/github.com/ShyftNetwork/go-empyrean/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol", 73 "ast": { 74 "absolutePath": "/Users/dustinbrickwood/go/src/github.com/ShyftNetwork/go-empyrean/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol", 75 "exportedSymbols": { 76 "Migrations": [ 77 56 78 ] 79 }, 80 "id": 57, 81 "nodeType": "SourceUnit", 82 "nodes": [ 83 { 84 "id": 1, 85 "literals": [ 86 "solidity", 87 "^", 88 "0.4", 89 ".23" 90 ], 91 "nodeType": "PragmaDirective", 92 "src": "0:24:0" 93 }, 94 { 95 "baseContracts": [], 96 "contractDependencies": [], 97 "contractKind": "contract", 98 "documentation": null, 99 "fullyImplemented": true, 100 "id": 56, 101 "linearizedBaseContracts": [ 102 56 103 ], 104 "name": "Migrations", 105 "nodeType": "ContractDefinition", 106 "nodes": [ 107 { 108 "constant": false, 109 "id": 3, 110 "name": "owner", 111 "nodeType": "VariableDeclaration", 112 "scope": 56, 113 "src": "50:20:0", 114 "stateVariable": true, 115 "storageLocation": "default", 116 "typeDescriptions": { 117 "typeIdentifier": "t_address", 118 "typeString": "address" 119 }, 120 "typeName": { 121 "id": 2, 122 "name": "address", 123 "nodeType": "ElementaryTypeName", 124 "src": "50:7:0", 125 "typeDescriptions": { 126 "typeIdentifier": "t_address", 127 "typeString": "address" 128 } 129 }, 130 "value": null, 131 "visibility": "public" 132 }, 133 { 134 "constant": false, 135 "id": 5, 136 "name": "last_completed_migration", 137 "nodeType": "VariableDeclaration", 138 "scope": 56, 139 "src": "74:36:0", 140 "stateVariable": true, 141 "storageLocation": "default", 142 "typeDescriptions": { 143 "typeIdentifier": "t_uint256", 144 "typeString": "uint256" 145 }, 146 "typeName": { 147 "id": 4, 148 "name": "uint", 149 "nodeType": "ElementaryTypeName", 150 "src": "74:4:0", 151 "typeDescriptions": { 152 "typeIdentifier": "t_uint256", 153 "typeString": "uint256" 154 } 155 }, 156 "value": null, 157 "visibility": "public" 158 }, 159 { 160 "body": { 161 "id": 13, 162 "nodeType": "Block", 163 "src": "144:29:0", 164 "statements": [ 165 { 166 "expression": { 167 "argumentTypes": null, 168 "id": 11, 169 "isConstant": false, 170 "isLValue": false, 171 "isPure": false, 172 "lValueRequested": false, 173 "leftHandSide": { 174 "argumentTypes": null, 175 "id": 8, 176 "name": "owner", 177 "nodeType": "Identifier", 178 "overloadedDeclarations": [], 179 "referencedDeclaration": 3, 180 "src": "150:5:0", 181 "typeDescriptions": { 182 "typeIdentifier": "t_address", 183 "typeString": "address" 184 } 185 }, 186 "nodeType": "Assignment", 187 "operator": "=", 188 "rightHandSide": { 189 "argumentTypes": null, 190 "expression": { 191 "argumentTypes": null, 192 "id": 9, 193 "name": "msg", 194 "nodeType": "Identifier", 195 "overloadedDeclarations": [], 196 "referencedDeclaration": 264, 197 "src": "158:3:0", 198 "typeDescriptions": { 199 "typeIdentifier": "t_magic_message", 200 "typeString": "msg" 201 } 202 }, 203 "id": 10, 204 "isConstant": false, 205 "isLValue": false, 206 "isPure": false, 207 "lValueRequested": false, 208 "memberName": "sender", 209 "nodeType": "MemberAccess", 210 "referencedDeclaration": null, 211 "src": "158:10:0", 212 "typeDescriptions": { 213 "typeIdentifier": "t_address", 214 "typeString": "address" 215 } 216 }, 217 "src": "150:18:0", 218 "typeDescriptions": { 219 "typeIdentifier": "t_address", 220 "typeString": "address" 221 } 222 }, 223 "id": 12, 224 "nodeType": "ExpressionStatement", 225 "src": "150:18:0" 226 } 227 ] 228 }, 229 "documentation": null, 230 "id": 14, 231 "implemented": true, 232 "isConstructor": true, 233 "isDeclaredConst": false, 234 "modifiers": [], 235 "name": "Migrations", 236 "nodeType": "FunctionDefinition", 237 "parameters": { 238 "id": 6, 239 "nodeType": "ParameterList", 240 "parameters": [], 241 "src": "134:2:0" 242 }, 243 "payable": false, 244 "returnParameters": { 245 "id": 7, 246 "nodeType": "ParameterList", 247 "parameters": [], 248 "src": "144:0:0" 249 }, 250 "scope": 56, 251 "src": "115:58:0", 252 "stateMutability": "nonpayable", 253 "superFunction": null, 254 "visibility": "public" 255 }, 256 { 257 "body": { 258 "id": 22, 259 "nodeType": "Block", 260 "src": "199:37:0", 261 "statements": [ 262 { 263 "condition": { 264 "argumentTypes": null, 265 "commonType": { 266 "typeIdentifier": "t_address", 267 "typeString": "address" 268 }, 269 "id": 19, 270 "isConstant": false, 271 "isLValue": false, 272 "isPure": false, 273 "lValueRequested": false, 274 "leftExpression": { 275 "argumentTypes": null, 276 "expression": { 277 "argumentTypes": null, 278 "id": 16, 279 "name": "msg", 280 "nodeType": "Identifier", 281 "overloadedDeclarations": [], 282 "referencedDeclaration": 264, 283 "src": "209:3:0", 284 "typeDescriptions": { 285 "typeIdentifier": "t_magic_message", 286 "typeString": "msg" 287 } 288 }, 289 "id": 17, 290 "isConstant": false, 291 "isLValue": false, 292 "isPure": false, 293 "lValueRequested": false, 294 "memberName": "sender", 295 "nodeType": "MemberAccess", 296 "referencedDeclaration": null, 297 "src": "209:10:0", 298 "typeDescriptions": { 299 "typeIdentifier": "t_address", 300 "typeString": "address" 301 } 302 }, 303 "nodeType": "BinaryOperation", 304 "operator": "==", 305 "rightExpression": { 306 "argumentTypes": null, 307 "id": 18, 308 "name": "owner", 309 "nodeType": "Identifier", 310 "overloadedDeclarations": [], 311 "referencedDeclaration": 3, 312 "src": "223:5:0", 313 "typeDescriptions": { 314 "typeIdentifier": "t_address", 315 "typeString": "address" 316 } 317 }, 318 "src": "209:19:0", 319 "typeDescriptions": { 320 "typeIdentifier": "t_bool", 321 "typeString": "bool" 322 } 323 }, 324 "falseBody": null, 325 "id": 21, 326 "nodeType": "IfStatement", 327 "src": "205:26:0", 328 "trueBody": { 329 "id": 20, 330 "nodeType": "PlaceholderStatement", 331 "src": "230:1:0" 332 } 333 } 334 ] 335 }, 336 "documentation": null, 337 "id": 23, 338 "name": "restricted", 339 "nodeType": "ModifierDefinition", 340 "parameters": { 341 "id": 15, 342 "nodeType": "ParameterList", 343 "parameters": [], 344 "src": "196:2:0" 345 }, 346 "src": "177:59:0", 347 "visibility": "internal" 348 }, 349 { 350 "body": { 351 "id": 34, 352 "nodeType": "Block", 353 "src": "296:47:0", 354 "statements": [ 355 { 356 "expression": { 357 "argumentTypes": null, 358 "id": 32, 359 "isConstant": false, 360 "isLValue": false, 361 "isPure": false, 362 "lValueRequested": false, 363 "leftHandSide": { 364 "argumentTypes": null, 365 "id": 30, 366 "name": "last_completed_migration", 367 "nodeType": "Identifier", 368 "overloadedDeclarations": [], 369 "referencedDeclaration": 5, 370 "src": "302:24:0", 371 "typeDescriptions": { 372 "typeIdentifier": "t_uint256", 373 "typeString": "uint256" 374 } 375 }, 376 "nodeType": "Assignment", 377 "operator": "=", 378 "rightHandSide": { 379 "argumentTypes": null, 380 "id": 31, 381 "name": "completed", 382 "nodeType": "Identifier", 383 "overloadedDeclarations": [], 384 "referencedDeclaration": 25, 385 "src": "329:9:0", 386 "typeDescriptions": { 387 "typeIdentifier": "t_uint256", 388 "typeString": "uint256" 389 } 390 }, 391 "src": "302:36:0", 392 "typeDescriptions": { 393 "typeIdentifier": "t_uint256", 394 "typeString": "uint256" 395 } 396 }, 397 "id": 33, 398 "nodeType": "ExpressionStatement", 399 "src": "302:36:0" 400 } 401 ] 402 }, 403 "documentation": null, 404 "id": 35, 405 "implemented": true, 406 "isConstructor": false, 407 "isDeclaredConst": false, 408 "modifiers": [ 409 { 410 "arguments": null, 411 "id": 28, 412 "modifierName": { 413 "argumentTypes": null, 414 "id": 27, 415 "name": "restricted", 416 "nodeType": "Identifier", 417 "overloadedDeclarations": [], 418 "referencedDeclaration": 23, 419 "src": "285:10:0", 420 "typeDescriptions": { 421 "typeIdentifier": "t_modifier$__$", 422 "typeString": "modifier ()" 423 } 424 }, 425 "nodeType": "ModifierInvocation", 426 "src": "285:10:0" 427 } 428 ], 429 "name": "setCompleted", 430 "nodeType": "FunctionDefinition", 431 "parameters": { 432 "id": 26, 433 "nodeType": "ParameterList", 434 "parameters": [ 435 { 436 "constant": false, 437 "id": 25, 438 "name": "completed", 439 "nodeType": "VariableDeclaration", 440 "scope": 35, 441 "src": "262:14:0", 442 "stateVariable": false, 443 "storageLocation": "default", 444 "typeDescriptions": { 445 "typeIdentifier": "t_uint256", 446 "typeString": "uint256" 447 }, 448 "typeName": { 449 "id": 24, 450 "name": "uint", 451 "nodeType": "ElementaryTypeName", 452 "src": "262:4:0", 453 "typeDescriptions": { 454 "typeIdentifier": "t_uint256", 455 "typeString": "uint256" 456 } 457 }, 458 "value": null, 459 "visibility": "internal" 460 } 461 ], 462 "src": "261:16:0" 463 }, 464 "payable": false, 465 "returnParameters": { 466 "id": 29, 467 "nodeType": "ParameterList", 468 "parameters": [], 469 "src": "296:0:0" 470 }, 471 "scope": 56, 472 "src": "240:103:0", 473 "stateMutability": "nonpayable", 474 "superFunction": null, 475 "visibility": "public" 476 }, 477 { 478 "body": { 479 "id": 54, 480 "nodeType": "Block", 481 "src": "403:109:0", 482 "statements": [ 483 { 484 "assignments": [ 485 43 486 ], 487 "declarations": [ 488 { 489 "constant": false, 490 "id": 43, 491 "name": "upgraded", 492 "nodeType": "VariableDeclaration", 493 "scope": 55, 494 "src": "409:19:0", 495 "stateVariable": false, 496 "storageLocation": "default", 497 "typeDescriptions": { 498 "typeIdentifier": "t_contract$_Migrations_$56", 499 "typeString": "contract Migrations" 500 }, 501 "typeName": { 502 "contractScope": null, 503 "id": 42, 504 "name": "Migrations", 505 "nodeType": "UserDefinedTypeName", 506 "referencedDeclaration": 56, 507 "src": "409:10:0", 508 "typeDescriptions": { 509 "typeIdentifier": "t_contract$_Migrations_$56", 510 "typeString": "contract Migrations" 511 } 512 }, 513 "value": null, 514 "visibility": "internal" 515 } 516 ], 517 "id": 47, 518 "initialValue": { 519 "argumentTypes": null, 520 "arguments": [ 521 { 522 "argumentTypes": null, 523 "id": 45, 524 "name": "new_address", 525 "nodeType": "Identifier", 526 "overloadedDeclarations": [], 527 "referencedDeclaration": 37, 528 "src": "442:11:0", 529 "typeDescriptions": { 530 "typeIdentifier": "t_address", 531 "typeString": "address" 532 } 533 } 534 ], 535 "expression": { 536 "argumentTypes": [ 537 { 538 "typeIdentifier": "t_address", 539 "typeString": "address" 540 } 541 ], 542 "id": 44, 543 "name": "Migrations", 544 "nodeType": "Identifier", 545 "overloadedDeclarations": [], 546 "referencedDeclaration": 56, 547 "src": "431:10:0", 548 "typeDescriptions": { 549 "typeIdentifier": "t_type$_t_contract$_Migrations_$56_$", 550 "typeString": "type(contract Migrations)" 551 } 552 }, 553 "id": 46, 554 "isConstant": false, 555 "isLValue": false, 556 "isPure": false, 557 "kind": "typeConversion", 558 "lValueRequested": false, 559 "names": [], 560 "nodeType": "FunctionCall", 561 "src": "431:23:0", 562 "typeDescriptions": { 563 "typeIdentifier": "t_contract$_Migrations_$56", 564 "typeString": "contract Migrations" 565 } 566 }, 567 "nodeType": "VariableDeclarationStatement", 568 "src": "409:45:0" 569 }, 570 { 571 "expression": { 572 "argumentTypes": null, 573 "arguments": [ 574 { 575 "argumentTypes": null, 576 "id": 51, 577 "name": "last_completed_migration", 578 "nodeType": "Identifier", 579 "overloadedDeclarations": [], 580 "referencedDeclaration": 5, 581 "src": "482:24:0", 582 "typeDescriptions": { 583 "typeIdentifier": "t_uint256", 584 "typeString": "uint256" 585 } 586 } 587 ], 588 "expression": { 589 "argumentTypes": [ 590 { 591 "typeIdentifier": "t_uint256", 592 "typeString": "uint256" 593 } 594 ], 595 "expression": { 596 "argumentTypes": null, 597 "id": 48, 598 "name": "upgraded", 599 "nodeType": "Identifier", 600 "overloadedDeclarations": [], 601 "referencedDeclaration": 43, 602 "src": "460:8:0", 603 "typeDescriptions": { 604 "typeIdentifier": "t_contract$_Migrations_$56", 605 "typeString": "contract Migrations" 606 } 607 }, 608 "id": 50, 609 "isConstant": false, 610 "isLValue": false, 611 "isPure": false, 612 "lValueRequested": false, 613 "memberName": "setCompleted", 614 "nodeType": "MemberAccess", 615 "referencedDeclaration": 35, 616 "src": "460:21:0", 617 "typeDescriptions": { 618 "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", 619 "typeString": "function (uint256) external" 620 } 621 }, 622 "id": 52, 623 "isConstant": false, 624 "isLValue": false, 625 "isPure": false, 626 "kind": "functionCall", 627 "lValueRequested": false, 628 "names": [], 629 "nodeType": "FunctionCall", 630 "src": "460:47:0", 631 "typeDescriptions": { 632 "typeIdentifier": "t_tuple$__$", 633 "typeString": "tuple()" 634 } 635 }, 636 "id": 53, 637 "nodeType": "ExpressionStatement", 638 "src": "460:47:0" 639 } 640 ] 641 }, 642 "documentation": null, 643 "id": 55, 644 "implemented": true, 645 "isConstructor": false, 646 "isDeclaredConst": false, 647 "modifiers": [ 648 { 649 "arguments": null, 650 "id": 40, 651 "modifierName": { 652 "argumentTypes": null, 653 "id": 39, 654 "name": "restricted", 655 "nodeType": "Identifier", 656 "overloadedDeclarations": [], 657 "referencedDeclaration": 23, 658 "src": "392:10:0", 659 "typeDescriptions": { 660 "typeIdentifier": "t_modifier$__$", 661 "typeString": "modifier ()" 662 } 663 }, 664 "nodeType": "ModifierInvocation", 665 "src": "392:10:0" 666 } 667 ], 668 "name": "upgrade", 669 "nodeType": "FunctionDefinition", 670 "parameters": { 671 "id": 38, 672 "nodeType": "ParameterList", 673 "parameters": [ 674 { 675 "constant": false, 676 "id": 37, 677 "name": "new_address", 678 "nodeType": "VariableDeclaration", 679 "scope": 55, 680 "src": "364:19:0", 681 "stateVariable": false, 682 "storageLocation": "default", 683 "typeDescriptions": { 684 "typeIdentifier": "t_address", 685 "typeString": "address" 686 }, 687 "typeName": { 688 "id": 36, 689 "name": "address", 690 "nodeType": "ElementaryTypeName", 691 "src": "364:7:0", 692 "typeDescriptions": { 693 "typeIdentifier": "t_address", 694 "typeString": "address" 695 } 696 }, 697 "value": null, 698 "visibility": "internal" 699 } 700 ], 701 "src": "363:21:0" 702 }, 703 "payable": false, 704 "returnParameters": { 705 "id": 41, 706 "nodeType": "ParameterList", 707 "parameters": [], 708 "src": "403:0:0" 709 }, 710 "scope": 56, 711 "src": "347:165:0", 712 "stateMutability": "nonpayable", 713 "superFunction": null, 714 "visibility": "public" 715 } 716 ], 717 "scope": 57, 718 "src": "26:488:0" 719 } 720 ], 721 "src": "0:515:0" 722 }, 723 "legacyAST": { 724 "absolutePath": "/Users/dustinbrickwood/go/src/github.com/ShyftNetwork/go-empyrean/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol", 725 "exportedSymbols": { 726 "Migrations": [ 727 56 728 ] 729 }, 730 "id": 57, 731 "nodeType": "SourceUnit", 732 "nodes": [ 733 { 734 "id": 1, 735 "literals": [ 736 "solidity", 737 "^", 738 "0.4", 739 ".23" 740 ], 741 "nodeType": "PragmaDirective", 742 "src": "0:24:0" 743 }, 744 { 745 "baseContracts": [], 746 "contractDependencies": [], 747 "contractKind": "contract", 748 "documentation": null, 749 "fullyImplemented": true, 750 "id": 56, 751 "linearizedBaseContracts": [ 752 56 753 ], 754 "name": "Migrations", 755 "nodeType": "ContractDefinition", 756 "nodes": [ 757 { 758 "constant": false, 759 "id": 3, 760 "name": "owner", 761 "nodeType": "VariableDeclaration", 762 "scope": 56, 763 "src": "50:20:0", 764 "stateVariable": true, 765 "storageLocation": "default", 766 "typeDescriptions": { 767 "typeIdentifier": "t_address", 768 "typeString": "address" 769 }, 770 "typeName": { 771 "id": 2, 772 "name": "address", 773 "nodeType": "ElementaryTypeName", 774 "src": "50:7:0", 775 "typeDescriptions": { 776 "typeIdentifier": "t_address", 777 "typeString": "address" 778 } 779 }, 780 "value": null, 781 "visibility": "public" 782 }, 783 { 784 "constant": false, 785 "id": 5, 786 "name": "last_completed_migration", 787 "nodeType": "VariableDeclaration", 788 "scope": 56, 789 "src": "74:36:0", 790 "stateVariable": true, 791 "storageLocation": "default", 792 "typeDescriptions": { 793 "typeIdentifier": "t_uint256", 794 "typeString": "uint256" 795 }, 796 "typeName": { 797 "id": 4, 798 "name": "uint", 799 "nodeType": "ElementaryTypeName", 800 "src": "74:4:0", 801 "typeDescriptions": { 802 "typeIdentifier": "t_uint256", 803 "typeString": "uint256" 804 } 805 }, 806 "value": null, 807 "visibility": "public" 808 }, 809 { 810 "body": { 811 "id": 13, 812 "nodeType": "Block", 813 "src": "144:29:0", 814 "statements": [ 815 { 816 "expression": { 817 "argumentTypes": null, 818 "id": 11, 819 "isConstant": false, 820 "isLValue": false, 821 "isPure": false, 822 "lValueRequested": false, 823 "leftHandSide": { 824 "argumentTypes": null, 825 "id": 8, 826 "name": "owner", 827 "nodeType": "Identifier", 828 "overloadedDeclarations": [], 829 "referencedDeclaration": 3, 830 "src": "150:5:0", 831 "typeDescriptions": { 832 "typeIdentifier": "t_address", 833 "typeString": "address" 834 } 835 }, 836 "nodeType": "Assignment", 837 "operator": "=", 838 "rightHandSide": { 839 "argumentTypes": null, 840 "expression": { 841 "argumentTypes": null, 842 "id": 9, 843 "name": "msg", 844 "nodeType": "Identifier", 845 "overloadedDeclarations": [], 846 "referencedDeclaration": 264, 847 "src": "158:3:0", 848 "typeDescriptions": { 849 "typeIdentifier": "t_magic_message", 850 "typeString": "msg" 851 } 852 }, 853 "id": 10, 854 "isConstant": false, 855 "isLValue": false, 856 "isPure": false, 857 "lValueRequested": false, 858 "memberName": "sender", 859 "nodeType": "MemberAccess", 860 "referencedDeclaration": null, 861 "src": "158:10:0", 862 "typeDescriptions": { 863 "typeIdentifier": "t_address", 864 "typeString": "address" 865 } 866 }, 867 "src": "150:18:0", 868 "typeDescriptions": { 869 "typeIdentifier": "t_address", 870 "typeString": "address" 871 } 872 }, 873 "id": 12, 874 "nodeType": "ExpressionStatement", 875 "src": "150:18:0" 876 } 877 ] 878 }, 879 "documentation": null, 880 "id": 14, 881 "implemented": true, 882 "isConstructor": true, 883 "isDeclaredConst": false, 884 "modifiers": [], 885 "name": "Migrations", 886 "nodeType": "FunctionDefinition", 887 "parameters": { 888 "id": 6, 889 "nodeType": "ParameterList", 890 "parameters": [], 891 "src": "134:2:0" 892 }, 893 "payable": false, 894 "returnParameters": { 895 "id": 7, 896 "nodeType": "ParameterList", 897 "parameters": [], 898 "src": "144:0:0" 899 }, 900 "scope": 56, 901 "src": "115:58:0", 902 "stateMutability": "nonpayable", 903 "superFunction": null, 904 "visibility": "public" 905 }, 906 { 907 "body": { 908 "id": 22, 909 "nodeType": "Block", 910 "src": "199:37:0", 911 "statements": [ 912 { 913 "condition": { 914 "argumentTypes": null, 915 "commonType": { 916 "typeIdentifier": "t_address", 917 "typeString": "address" 918 }, 919 "id": 19, 920 "isConstant": false, 921 "isLValue": false, 922 "isPure": false, 923 "lValueRequested": false, 924 "leftExpression": { 925 "argumentTypes": null, 926 "expression": { 927 "argumentTypes": null, 928 "id": 16, 929 "name": "msg", 930 "nodeType": "Identifier", 931 "overloadedDeclarations": [], 932 "referencedDeclaration": 264, 933 "src": "209:3:0", 934 "typeDescriptions": { 935 "typeIdentifier": "t_magic_message", 936 "typeString": "msg" 937 } 938 }, 939 "id": 17, 940 "isConstant": false, 941 "isLValue": false, 942 "isPure": false, 943 "lValueRequested": false, 944 "memberName": "sender", 945 "nodeType": "MemberAccess", 946 "referencedDeclaration": null, 947 "src": "209:10:0", 948 "typeDescriptions": { 949 "typeIdentifier": "t_address", 950 "typeString": "address" 951 } 952 }, 953 "nodeType": "BinaryOperation", 954 "operator": "==", 955 "rightExpression": { 956 "argumentTypes": null, 957 "id": 18, 958 "name": "owner", 959 "nodeType": "Identifier", 960 "overloadedDeclarations": [], 961 "referencedDeclaration": 3, 962 "src": "223:5:0", 963 "typeDescriptions": { 964 "typeIdentifier": "t_address", 965 "typeString": "address" 966 } 967 }, 968 "src": "209:19:0", 969 "typeDescriptions": { 970 "typeIdentifier": "t_bool", 971 "typeString": "bool" 972 } 973 }, 974 "falseBody": null, 975 "id": 21, 976 "nodeType": "IfStatement", 977 "src": "205:26:0", 978 "trueBody": { 979 "id": 20, 980 "nodeType": "PlaceholderStatement", 981 "src": "230:1:0" 982 } 983 } 984 ] 985 }, 986 "documentation": null, 987 "id": 23, 988 "name": "restricted", 989 "nodeType": "ModifierDefinition", 990 "parameters": { 991 "id": 15, 992 "nodeType": "ParameterList", 993 "parameters": [], 994 "src": "196:2:0" 995 }, 996 "src": "177:59:0", 997 "visibility": "internal" 998 }, 999 { 1000 "body": { 1001 "id": 34, 1002 "nodeType": "Block", 1003 "src": "296:47:0", 1004 "statements": [ 1005 { 1006 "expression": { 1007 "argumentTypes": null, 1008 "id": 32, 1009 "isConstant": false, 1010 "isLValue": false, 1011 "isPure": false, 1012 "lValueRequested": false, 1013 "leftHandSide": { 1014 "argumentTypes": null, 1015 "id": 30, 1016 "name": "last_completed_migration", 1017 "nodeType": "Identifier", 1018 "overloadedDeclarations": [], 1019 "referencedDeclaration": 5, 1020 "src": "302:24:0", 1021 "typeDescriptions": { 1022 "typeIdentifier": "t_uint256", 1023 "typeString": "uint256" 1024 } 1025 }, 1026 "nodeType": "Assignment", 1027 "operator": "=", 1028 "rightHandSide": { 1029 "argumentTypes": null, 1030 "id": 31, 1031 "name": "completed", 1032 "nodeType": "Identifier", 1033 "overloadedDeclarations": [], 1034 "referencedDeclaration": 25, 1035 "src": "329:9:0", 1036 "typeDescriptions": { 1037 "typeIdentifier": "t_uint256", 1038 "typeString": "uint256" 1039 } 1040 }, 1041 "src": "302:36:0", 1042 "typeDescriptions": { 1043 "typeIdentifier": "t_uint256", 1044 "typeString": "uint256" 1045 } 1046 }, 1047 "id": 33, 1048 "nodeType": "ExpressionStatement", 1049 "src": "302:36:0" 1050 } 1051 ] 1052 }, 1053 "documentation": null, 1054 "id": 35, 1055 "implemented": true, 1056 "isConstructor": false, 1057 "isDeclaredConst": false, 1058 "modifiers": [ 1059 { 1060 "arguments": null, 1061 "id": 28, 1062 "modifierName": { 1063 "argumentTypes": null, 1064 "id": 27, 1065 "name": "restricted", 1066 "nodeType": "Identifier", 1067 "overloadedDeclarations": [], 1068 "referencedDeclaration": 23, 1069 "src": "285:10:0", 1070 "typeDescriptions": { 1071 "typeIdentifier": "t_modifier$__$", 1072 "typeString": "modifier ()" 1073 } 1074 }, 1075 "nodeType": "ModifierInvocation", 1076 "src": "285:10:0" 1077 } 1078 ], 1079 "name": "setCompleted", 1080 "nodeType": "FunctionDefinition", 1081 "parameters": { 1082 "id": 26, 1083 "nodeType": "ParameterList", 1084 "parameters": [ 1085 { 1086 "constant": false, 1087 "id": 25, 1088 "name": "completed", 1089 "nodeType": "VariableDeclaration", 1090 "scope": 35, 1091 "src": "262:14:0", 1092 "stateVariable": false, 1093 "storageLocation": "default", 1094 "typeDescriptions": { 1095 "typeIdentifier": "t_uint256", 1096 "typeString": "uint256" 1097 }, 1098 "typeName": { 1099 "id": 24, 1100 "name": "uint", 1101 "nodeType": "ElementaryTypeName", 1102 "src": "262:4:0", 1103 "typeDescriptions": { 1104 "typeIdentifier": "t_uint256", 1105 "typeString": "uint256" 1106 } 1107 }, 1108 "value": null, 1109 "visibility": "internal" 1110 } 1111 ], 1112 "src": "261:16:0" 1113 }, 1114 "payable": false, 1115 "returnParameters": { 1116 "id": 29, 1117 "nodeType": "ParameterList", 1118 "parameters": [], 1119 "src": "296:0:0" 1120 }, 1121 "scope": 56, 1122 "src": "240:103:0", 1123 "stateMutability": "nonpayable", 1124 "superFunction": null, 1125 "visibility": "public" 1126 }, 1127 { 1128 "body": { 1129 "id": 54, 1130 "nodeType": "Block", 1131 "src": "403:109:0", 1132 "statements": [ 1133 { 1134 "assignments": [ 1135 43 1136 ], 1137 "declarations": [ 1138 { 1139 "constant": false, 1140 "id": 43, 1141 "name": "upgraded", 1142 "nodeType": "VariableDeclaration", 1143 "scope": 55, 1144 "src": "409:19:0", 1145 "stateVariable": false, 1146 "storageLocation": "default", 1147 "typeDescriptions": { 1148 "typeIdentifier": "t_contract$_Migrations_$56", 1149 "typeString": "contract Migrations" 1150 }, 1151 "typeName": { 1152 "contractScope": null, 1153 "id": 42, 1154 "name": "Migrations", 1155 "nodeType": "UserDefinedTypeName", 1156 "referencedDeclaration": 56, 1157 "src": "409:10:0", 1158 "typeDescriptions": { 1159 "typeIdentifier": "t_contract$_Migrations_$56", 1160 "typeString": "contract Migrations" 1161 } 1162 }, 1163 "value": null, 1164 "visibility": "internal" 1165 } 1166 ], 1167 "id": 47, 1168 "initialValue": { 1169 "argumentTypes": null, 1170 "arguments": [ 1171 { 1172 "argumentTypes": null, 1173 "id": 45, 1174 "name": "new_address", 1175 "nodeType": "Identifier", 1176 "overloadedDeclarations": [], 1177 "referencedDeclaration": 37, 1178 "src": "442:11:0", 1179 "typeDescriptions": { 1180 "typeIdentifier": "t_address", 1181 "typeString": "address" 1182 } 1183 } 1184 ], 1185 "expression": { 1186 "argumentTypes": [ 1187 { 1188 "typeIdentifier": "t_address", 1189 "typeString": "address" 1190 } 1191 ], 1192 "id": 44, 1193 "name": "Migrations", 1194 "nodeType": "Identifier", 1195 "overloadedDeclarations": [], 1196 "referencedDeclaration": 56, 1197 "src": "431:10:0", 1198 "typeDescriptions": { 1199 "typeIdentifier": "t_type$_t_contract$_Migrations_$56_$", 1200 "typeString": "type(contract Migrations)" 1201 } 1202 }, 1203 "id": 46, 1204 "isConstant": false, 1205 "isLValue": false, 1206 "isPure": false, 1207 "kind": "typeConversion", 1208 "lValueRequested": false, 1209 "names": [], 1210 "nodeType": "FunctionCall", 1211 "src": "431:23:0", 1212 "typeDescriptions": { 1213 "typeIdentifier": "t_contract$_Migrations_$56", 1214 "typeString": "contract Migrations" 1215 } 1216 }, 1217 "nodeType": "VariableDeclarationStatement", 1218 "src": "409:45:0" 1219 }, 1220 { 1221 "expression": { 1222 "argumentTypes": null, 1223 "arguments": [ 1224 { 1225 "argumentTypes": null, 1226 "id": 51, 1227 "name": "last_completed_migration", 1228 "nodeType": "Identifier", 1229 "overloadedDeclarations": [], 1230 "referencedDeclaration": 5, 1231 "src": "482:24:0", 1232 "typeDescriptions": { 1233 "typeIdentifier": "t_uint256", 1234 "typeString": "uint256" 1235 } 1236 } 1237 ], 1238 "expression": { 1239 "argumentTypes": [ 1240 { 1241 "typeIdentifier": "t_uint256", 1242 "typeString": "uint256" 1243 } 1244 ], 1245 "expression": { 1246 "argumentTypes": null, 1247 "id": 48, 1248 "name": "upgraded", 1249 "nodeType": "Identifier", 1250 "overloadedDeclarations": [], 1251 "referencedDeclaration": 43, 1252 "src": "460:8:0", 1253 "typeDescriptions": { 1254 "typeIdentifier": "t_contract$_Migrations_$56", 1255 "typeString": "contract Migrations" 1256 } 1257 }, 1258 "id": 50, 1259 "isConstant": false, 1260 "isLValue": false, 1261 "isPure": false, 1262 "lValueRequested": false, 1263 "memberName": "setCompleted", 1264 "nodeType": "MemberAccess", 1265 "referencedDeclaration": 35, 1266 "src": "460:21:0", 1267 "typeDescriptions": { 1268 "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", 1269 "typeString": "function (uint256) external" 1270 } 1271 }, 1272 "id": 52, 1273 "isConstant": false, 1274 "isLValue": false, 1275 "isPure": false, 1276 "kind": "functionCall", 1277 "lValueRequested": false, 1278 "names": [], 1279 "nodeType": "FunctionCall", 1280 "src": "460:47:0", 1281 "typeDescriptions": { 1282 "typeIdentifier": "t_tuple$__$", 1283 "typeString": "tuple()" 1284 } 1285 }, 1286 "id": 53, 1287 "nodeType": "ExpressionStatement", 1288 "src": "460:47:0" 1289 } 1290 ] 1291 }, 1292 "documentation": null, 1293 "id": 55, 1294 "implemented": true, 1295 "isConstructor": false, 1296 "isDeclaredConst": false, 1297 "modifiers": [ 1298 { 1299 "arguments": null, 1300 "id": 40, 1301 "modifierName": { 1302 "argumentTypes": null, 1303 "id": 39, 1304 "name": "restricted", 1305 "nodeType": "Identifier", 1306 "overloadedDeclarations": [], 1307 "referencedDeclaration": 23, 1308 "src": "392:10:0", 1309 "typeDescriptions": { 1310 "typeIdentifier": "t_modifier$__$", 1311 "typeString": "modifier ()" 1312 } 1313 }, 1314 "nodeType": "ModifierInvocation", 1315 "src": "392:10:0" 1316 } 1317 ], 1318 "name": "upgrade", 1319 "nodeType": "FunctionDefinition", 1320 "parameters": { 1321 "id": 38, 1322 "nodeType": "ParameterList", 1323 "parameters": [ 1324 { 1325 "constant": false, 1326 "id": 37, 1327 "name": "new_address", 1328 "nodeType": "VariableDeclaration", 1329 "scope": 55, 1330 "src": "364:19:0", 1331 "stateVariable": false, 1332 "storageLocation": "default", 1333 "typeDescriptions": { 1334 "typeIdentifier": "t_address", 1335 "typeString": "address" 1336 }, 1337 "typeName": { 1338 "id": 36, 1339 "name": "address", 1340 "nodeType": "ElementaryTypeName", 1341 "src": "364:7:0", 1342 "typeDescriptions": { 1343 "typeIdentifier": "t_address", 1344 "typeString": "address" 1345 } 1346 }, 1347 "value": null, 1348 "visibility": "internal" 1349 } 1350 ], 1351 "src": "363:21:0" 1352 }, 1353 "payable": false, 1354 "returnParameters": { 1355 "id": 41, 1356 "nodeType": "ParameterList", 1357 "parameters": [], 1358 "src": "403:0:0" 1359 }, 1360 "scope": 56, 1361 "src": "347:165:0", 1362 "stateMutability": "nonpayable", 1363 "superFunction": null, 1364 "visibility": "public" 1365 } 1366 ], 1367 "scope": 57, 1368 "src": "26:488:0" 1369 } 1370 ], 1371 "src": "0:515:0" 1372 }, 1373 "compiler": { 1374 "name": "solc", 1375 "version": "0.4.24+commit.e67f0147.Emscripten.clang" 1376 }, 1377 "networks": { 1378 "1": { 1379 "events": {}, 1380 "links": {}, 1381 "address": "0xfaeccae8c1af6bdfd71095e1b6a2f61c61c8a7e7", 1382 "transactionHash": "0x79d68857d23437507895cbdcd033462f3a799fd1b94d51b7e624f6710cfb6c9a" 1383 }, 1384 "2147483647": { 1385 "events": {}, 1386 "links": {}, 1387 "address": "0xfaeccae8c1af6bdfd71095e1b6a2f61c61c8a7e7", 1388 "transactionHash": "0x7da80aaf6f7e382735310c725b81f790f84c75a541a5360ecba30eb2d7965395" 1389 }, 1390 "1528420224459": { 1391 "events": {}, 1392 "links": {}, 1393 "address": "0x8887d2e7638bec1c9badc47beaeddc6dd261a095", 1394 "transactionHash": "0x1d1b9f147f05f37206bbfa1143bb5ec43c8a1e193d17513471b6d6f58911779c" 1395 } 1396 }, 1397 "schemaVersion": "2.0.1", 1398 "updatedAt": "2018-11-13T22:16:42.103Z" 1399 }