Skip to content

Latest commit

 

History

History
168 lines (146 loc) · 4.02 KB

README.md

File metadata and controls

168 lines (146 loc) · 4.02 KB

alt text

cre8bid.io

Pay attention to watch and support original content. The decentralized CRE8coin protocol empowers, and monetizes, creation and viewership. Through Multidimensional Tokenization, attention generated by each channel and piece of unique content is market liquid.

CRE8

peer setup procedure

// in "/path/to/folder" copy https://pastebin.com/JfQtY8hw as geneis.json 
geth --datadir="/path/to/folder" init genesis.json
geth --datadir="/path/to/folder" --networkid="88888888" console
admin.addPeer("enode://4c9ec1b929cb995a9fb174968c4fed4627cecdecfdde080af6a8fdbf9600062fbafc79ef4d92b3617b9e8d7b49bb1255e7066a27923f48ce81cfead8a61063f7@54.212.193.239:30302")
admin //to see if peers connected
miner.start(1)

download

ERC-888

gist | EIP

Token data-structures with balances specified by unique identifiers create emergent properties within cryptoeconomic systems that introduce valuable approaches to mechanism design and contract development.

contract MultidimensionalToken {
    mapping (address => mapping (string => uint)) balances;
    event Transfer(address indexed _from, address indexed _to, string indexed _id, uint256 _value);
    
    function balanceOf(address _owner, string _id) constant returns (uint256 balance) {
        return balances[_owner][_id];
    }

    function transfer(address _to, string _id, uint256 _value) returns (bool success) {
        if (balances[msg.sender][_id] >= _value && _value > 0) {
            balances[msg.sender][_id] -= _value;
            balances[_to][_id] += _value;
            Transfer(msg.sender, _to, _id, _value);
            return true;
        } 
        else {return false;}
    }
}

ViewToken Protocol

gist

ViewToken Protocol

contract ViewToken {
    
}

MultiDimensional Token Market

gist

contract MultiDimensionalTokenMarket {
    
}

Governance Protocol

gist

Governance Protocol

contract Governance {
    
}

API

Filters

Every endpoint can be filtered by each model param: {DESC, ASC}

//req.params.query
var query = {
    limit: 10,
    skip: 10,
    sort: 'createdAt DESC', // modelParam | {'DESC', 'ASC'}
    filter:{
    	obj: param
    }
};

Models | Endpoints

Content

This is the Content Model

var contentModel = {
    amazonUrl: string,
    createdAt: dateObj,
    description: string,
    id: idObj,
    thumbnailUrl: string,
    title: string,
    user: userObj,
};
get /api/content
post /api/content

Campaign

This is the Campaign Model

var campaignModel = {
    content: string,
    createdAt: dateObj,
    campaignImageUrl: string,
    id: idObj,
    title: string,
    redirectUrl: string,
    user: userObj,
};
get /api/campaign
post /api/campaign

Member

This is the Member Model

var memberModel = {
    avatarUrl: string,
    createdAt: dateObj,
    email: string,
    id: idObj,
    passports: [passportObj]
    title: string,
    username: string,
    walletAddress: string,
};
get /api/member
post /api/member

Order

This is the Order Model

var orderModel = {
    amountSet1: [double],
    amountSet2: [double],
    createdAt: dateObj,
    id: idObj,
    identifierSet1: [string],
    identifierSet2: [string],
    redirectUrl: string,
    user: userObj,
};
get /api/order
post /api/order

View | Token

This is the View | Token Model

var viewModel = {
    content: contentObj,
    createdAt: dateObj,
    id: idObj,
    time: integer,
    user: userObj,
};
get /api/view
post /api/view