This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| import "./Greeter.sol"; | |
| contract Wallet { | |
| Greeter internal greeter; | |
| constructor() public { | |
| greeter = new Greeter(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| contract Greeter { | |
| event Thanks(address sender, uint256 value); | |
| function thanks() public payable { | |
| emit Thanks(msg.sender, msg.value); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| import "./Implementation.sol"; | |
| contract Caller { | |
| event CallerLog(uint256 gas); | |
| Implementation public implementation; | |
| constructor() public { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| import {MyContract} from "./MyContract.sol"; | |
| contract AnotherContract { | |
| MyContract public myContract; | |
| constructor() public { | |
| myContract = new MyContract(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| contract Impossible { | |
| constructor() public { | |
| test(); | |
| } | |
| function test() public pure returns(uint256) { | |
| return 2; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| contract MyContract { | |
| event Log(address addr); | |
| constructor() public { | |
| emit Log(address(this)); | |
| } | |
| function add(uint256 a, uint256 b) public pure returns (uint256) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| import "./Implementation.sol"; | |
| contract Delegator { | |
| event DelegatorLog(uint256 gas); | |
| Implementation public implementation; | |
| constructor() public { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.11; | |
| import "./Product.sol"; | |
| import "./Addition.sol"; | |
| import "./ResultStorage.sol"; | |
| contract Calculator is ResultStorage { | |
| Product public product; | |
| Addition public addition; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ipfs.dag.put({name: 'vasa'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| foo: barCid | |
| } |