template <const>
#define macro FOO = takes(0) returns(1) {
<const>
}
#define macro BAR = takes(0) returns(1) {
0x01
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
pub struct Z; | |
pub struct S<Z>(std::marker::PhantomData<Z>); | |
pub trait Succ { type Pred; } | |
pub struct Type0; pub struct Type1; pub struct Type2; pub struct Type3; | |
impl Succ for Type0 { type Pred = Type1; } | |
impl Succ for Type1 { type Pred = Type2; } | |
pub auto trait NotNat {} |
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.6.9; | |
pragma experimental ABIEncoderV2; | |
import "./SafeMath.sol"; | |
import "./interfaces/IERC20.sol"; | |
import "./interfaces/IMoloch.sol"; | |
contract Vester { | |
address public constant MOLOCH_GUILD_ADDR = address(0xdead); |
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.12; | |
import "./Moloch.sol"; | |
contract MolochActor { | |
uint256 public nonce; | |
Moloch public moloch; | |
event Action( |
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.12; | |
import "./Moloch.sol"; | |
contract MolochActor { | |
bytes4 public constant ACTOR_MAGIC_BYTES = bytes4(keccak256("MolochActor")); | |
uint256 public nonce; | |
Moloch public moloch; |