Blockwell

HedgeTrade

ERC20

This contract is an ERC20 token.

Name HedgeTrade
Symbol HEDG
Decimals 18
Total Supply 1,000,000,000 HEDG

About link

HedgeTrade aims to become a platform where the world’s best traders share their knowledge. Traders post predictions into a smart contract-powered Blueprint that users can purchase or unlock in order to access. Traders are rewarded if the Blueprint is correct otherwise the user's purchase is refunded. HedgeTrade aims to revolutionize social trading using blockchain technology.

Stats

Public Functions 20
Event Types 8
Code Size 9,147 bytes

Approval Event

Parameters help
src
address help
guy
address help
wad
uint help

Burn Event

Parameters help
guy
address help
wad
uint help

LogNote Event

Parameters help
sig
bytes4 help
guy
address help
foo
bytes32 help
bar
bytes32 help
wad
uint help
fax
bytes help

LogSetAuthority Event

Parameters help
authority
address help

LogSetOwner Event

Parameters help
owner
address help

Mint Event

Parameters help
guy
address help
wad
uint help

Transfer Event

Parameters help
src
address help
dst
address help
wad
uint help

Trust Event

Parameters help
src
address help
guy
address help
wat
bool help

Functions Expand All Collapse All

setOwner keyboard_arrow_up

Parameters help

Name Type
owner_
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setOwner(address owner_)
        public
        auth
    {
        owner = owner_;
        emit LogSetOwner(owner);
    }

setAuthority keyboard_arrow_up

Parameters help

Name Type
authority_
DSAuthority help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setAuthority(DSAuthority authority_)
        public
        auth
    {
        authority = authority_;
        emit LogSetAuthority(address(authority));
    }

stop keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable

Modifiers help

auth checks for the following:
null
note checks for the following:
Source Code
    function stop() public payable auth note {
        stopped = true;
    }

start keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable

Modifiers help

auth checks for the following:
null
note checks for the following:
Source Code
    function start() public payable auth note {
        stopped = false;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function totalSupply() public view returns (uint) {
        return _supply;
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
src
address help

Properties

Visibility help public
Mutability help view
Source Code
    function balanceOf(address src) public view returns (uint) {
        return _balances[src];
    }

allowance keyboard_arrow_up

Parameters help

Name Type
src
address help
guy
address help

Properties

Visibility help public
Mutability help view
Source Code
    function allowance(address src, address guy) public view returns (uint) {
        return _approvals[src][guy];
    }

approve keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function approve(address guy, uint wad) public stoppable returns (bool) {
        return super.approve(guy, wad);
    }

transfer keyboard_arrow_up

Parameters help

Name Type
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address dst, uint wad) public returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
src
address help
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function transferFrom(address src, address dst, uint wad)
        public
        stoppable
        returns (bool)
    {
        if (src != msg.sender && !_trusted[src][msg.sender]) {
            _approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
        }

        _balances[src] = sub(_balances[src], wad);
        _balances[dst] = add(_balances[dst], wad);

        emit Transfer(src, dst, wad);

        return true;
    }

trusted keyboard_arrow_up

Parameters help

Name Type
src
address help
guy
address help

Properties

Visibility help public
Mutability help view
Source Code
    function trusted(address src, address guy) public view returns (bool) {
        return _trusted[src][guy];
    }

trust keyboard_arrow_up

Parameters help

Name Type
guy
address help
wat
bool help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function trust(address guy, bool wat) public stoppable {
        _trusted[msg.sender][guy] = wat;
        emit Trust(msg.sender, guy, wat);
    }

push keyboard_arrow_up

Parameters help

Name Type
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function push(address dst, uint wad) public {
        transferFrom(msg.sender, dst, wad);
    }

pull keyboard_arrow_up

Parameters help

Name Type
src
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function pull(address src, uint wad) public {
        transferFrom(src, msg.sender, wad);
    }

move keyboard_arrow_up

Parameters help

Name Type
src
address help
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function move(address src, address dst, uint wad) public {
        transferFrom(src, dst, wad);
    }

mint keyboard_arrow_up

Parameters help

Name Type
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function mint(uint wad) public {
        mint(msg.sender, wad);
    }

burn keyboard_arrow_up

Parameters help

Name Type
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burn(uint wad) public {
        burn(msg.sender, wad);
    }

mint keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function mint(address guy, uint wad) public auth stoppable {
        _balances[guy] = add(_balances[guy], wad);
        _supply = add(_supply, wad);
        emit Mint(guy, wad);
	    emit Transfer(address(0), guy, wad);
    }

burn keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function burn(address guy, uint wad) public auth stoppable {
        _balances[guy] = sub(_balances[guy], wad);
        _supply = sub(_supply, wad);
        emit Burn(guy, wad);
	    emit Transfer(guy, address(0), wad);
    }

setName keyboard_arrow_up

Parameters help

Name Type
name_
bytes32 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setName(bytes32 name_) public auth {
        name = name_;
    }