Skip to content

Instantly share code, notes, and snippets.

View Dexaran's full-sized avatar

Dexaran Dexaran

View GitHub Profile
pragma solidity ^0.4.0;
contract ERC20Constant {
function totalSupply() constant returns (uint supply);
function balanceOf( address who ) constant returns (uint value);
function allowance(address owner, address spender) constant returns (uint _allowance);
}
contract ERC20Stateful {
function transfer( address to, uint value) returns (bool ok);
function transferFrom( address from, address to, uint value) returns (bool ok);
@Dexaran
Dexaran / token.md
Created March 5, 2017 09:50 — forked from frozeman/token.md
Token proposal

This is outdated: The ERC-20 is here: ethereum/EIPs#20

Token

Methods

totalSupply

@Dexaran
Dexaran / ETC23_tokens.sol
Created March 5, 2017 12:23
ERC23 tokens
pragma solidity ^0.4.9;
contract Owned {
function owned() { owner = msg.sender; }
address owner;
modifier onlyOwner {
if (msg.sender != owner)
throw;
_;
}
0x222E674FB1a7910cCF228f8aECF760508426b482
@Dexaran
Dexaran / Rinkeby
Created May 26, 2017 07:50
Rinkeby GitHub Authenticated Faucet
0x222E674FB1a7910cCF228f8aECF760508426b482
@Dexaran
Dexaran / Report.md
Last active August 3, 2017 22:48
CORION audit report

CORION platform audit report

Summary

This is the report from a security audit performed on CORION platform by Dexaran. The audit focused primarily on the fault tolerance of the system. I can conclude that smart-contracts were not in the final state at the time of the audit start, and the changes were applied during the audit process, which made it more time consuming.

The whole system is modular. Contracts are upgradeable. The debug mode allows to intervene into contracts workflow to fix any error during the contracts workflow.

Findings

@Dexaran
Dexaran / standardaccount.sol
Created April 26, 2017 09:51 — forked from axic/standardaccount.sol
EIP101 Standard Account code in Solidity
//
// Implementation of the standard account contract as per EIP101 (Cryptocurrency
// abstraction). See: https://github.com/ethereum/EIPs/issues/28
//
// Written by Alex Beregszaszi, use under the MIT license.
//
contract StandardAccount {
uint256 nextSequence = 1;

ETC TokenMint audit report.

Summary

This is the report from a security audit performed on ETC TokenMint by yuriy77k.

TokenMint is a service that offers to launch an ICO and deploy a custom token contract easily.

In scope

1. DexNS improvement: token registration.

It is necessary to improve the DexNS tab functionality. "I am a token developer and I want to register my token" button should be enabled. CEW must provide a UI for registering tokens via DexNS. This includes:

  • token name (DexNS name)
  • optional token parameters: ABI, link, source code, info
  • token network

For more info read https://github.com/EthereumCommonwealth/DexNS/#how-do-i-register-my-erc20erc223-token-on-dexns

info should represent a brief description of the token.

@Dexaran
Dexaran / wst.md
Created January 16, 2019 21:43
wst.md

1