Skip to content

Instantly share code, notes, and snippets.

@crazybuster
crazybuster / TestLibrary.sol
Created September 13, 2018 20:00
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
//
// Selector for create in TestMarketplace:
// "10a9ee58": "dispatched_createListing(address,bytes32,uint256)"
// call_params:
// _listing: 0xAB01 deposit: 8
// ab010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008
@crazybuster
crazybuster / TestLibrary.sol
Created September 13, 2018 20:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
//
// Selector for create in TestMarketplace:
// "10a9ee58": "dispatched_createListing(address,bytes32,uint256)"
// call_params:
// _listing: 0xAB01 deposit: 8
// ab010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008
@crazybuster
crazybuster / TestLibrary.sol
Created September 14, 2018 01:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
//
// Selector for create in TestMarketplace:
// "f3f0e7be": "dispatched_createListing(uint256,address,bytes32,uint256)"
// call_params:
// _listing: 0xAB01 deposit: 8
// ab010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008
contract DispatcherContract {
function approve_and_dispatch(
pragma solidity ^0.4.24;
import "./openzeppelin-solidity/ownership/Ownable.sol";
import "./openzeppelin-solidity/token/ERC20/StandardToken";
contract Token is StandardToken, Ownable {
uint256 public constant decimals = 0;
string public constant name = "ERC827 Token";
string public constant symbol = "TOK";