Giter VIP home page Giter VIP logo

sunday-morning's Introduction

license license

Sunday-morning

icon

Sunday-morning is a decentralized live-broadcast platform.

LINE X KIISE Blockchain Competition Entry Work
Based on ICON Token Standard

Abstract

Appearance of new business models, like live commerce and curation commerce, requires new SNS platform. Sunday-morning, the decentralized live-broadcast platform, is designed for fitting these needs. Because of the properties of decentralization, Sunday-morning makes both creators and consumers active. The service provider delegates authority to users—creator, consumer, and advertiser, etc.—.

With our platform, there are many opportunities to expand business. Donation and subscription, live commerce, curation commerce, and so on. Also you are able to settle profits automatically, so what you need is a just passion!

We expect to activate and spread the live broadcasting ecosystem through Sunday-morning. Why don't you join us?

Details

Decentralized Live-broadcast Platform

diagram_1

Overview

  • Creator uploads paid videos on the platform.
  • Contract automatically distributes profit.

Features

  • Video upload
  • Donation
  • Auto-distribution

Live Commerce

diagram_2

Overview

  • Creator adds advertisements on his own video.
  • Contract automatically distributes sales.

Features

  • Advertisement
  • Buying
  • Auto-distribution

Curation Commerce

diagram_3

Overview

  • User makes a playlist and shares it.
  • Contract automatically distributes profit.

Features

  • Making a Playlist
  • Watching Videos through the Playlist
  • Auto-distribution

How to Use

Install

Environments

upper version 3.6, under version 3.7
python 3.6.7 recommended

  • tbears 1.0.6.2
  • requests 2.19.1

OS

Only for macOS and Linux.

Install LINE SDK

brew install leveldb
brew install rabbitmq
brew services start rabbitmq
mkdir work
cd work
virtualenv -p python3 .
source bin/activate
pip install tbears

Start

$ cd work
$ source bin/activate
(work) $ tbears start

Get Private Key

(work) $ tbears keystore <private.key>

Deploy

(work) $ tbears deploy -k <keystore_file> [-c deploy_json] <contract_dir>

Get "scoreAddress" by tbears txresult <the above TxID>.

  • For example: cxc083078edbe951560728105235c235d6f5906c65

Call

(work) $ tbears call <call_json>

Or you can use HTTP POST instead:

curl -X POST http://127.0.0.1:9000/api/v3 -H"Content-Type: application/json; application/json" -d @<call_json>

Here is a sample of <call_json> below. Change "id", "from", "to", "method", and "params".

{
    "jsonrpc": "2.0",
    "method": "icx_call",
    "id": 1234,
    "params": {
        "from"	: "hx27d99b5a1d8ffdd58bce204c303153a1a388eead",
        "to"	: "cx509430b08e156d002ade0e1cbdf0b2c5a5daad45",
        "dataType": "call",
        "data": {
            "method": "purchase",
            "params": {
                "_hash"	    : "0x0000123412341234123412341234123412341234123412341234123412341234",
				"_value"	: "100"
			}
        }
    }
}

Stop

(work) $ tbears stop

Delete deployed Contracts

$ tbears clear

Demonstration

Deploy LINK SCORE

video

Click on the image above to play the video.

Call LINK SCORE's Functions

video

Click on the image above to play the video.

Trouble Shooting

pkg-config is required

'pkg-config' is required to install this package. Please see the README for details.

Do brew install pkg-config, brew link pkg-config and pip install tbears.

tbears samples

tbears samples causes an error like:

The samples command has been deprecated since v1.1.0 ...

When you receive the above error, go https://github.com/icon-project/samples, download files, move them into /work. Then do tbears deploy -k private.key hello_world/hello_world/, Input your keystore password, step by step.

Out of step

    ...
    "failure": {
        "code": "0x7d64",
        "message": "Out of step: contractSet"
    }
    ...

When you receive an "Out of step" error, assign more "stepLimit" in the request message.

put is not allowed

    ...
    "jsonrpc": "2.0",
    "error": {
        "code": -32000,
        "message": "put is not allowed"
    }
    ...

When you receive an "put is not allowed" error, try this stopgap:

  • Go to ~/word/lib/python3.6/site-packages/iconservice/database/db.py, _is_db_writable_on_context().

  • Change the following code

    	...
        return context_type != IconScoreContextType.QUERY and \
            func_type != IconScoreFuncType.READONLY

    to

    	...
        return True

References

LINK dApp Development Guide
ICON Token Standard RI
ICON Documents

Designed by

@Luke Park
@Minseo Park
@Jeonga Seo

License

The Sunday-morning project is licensed under the MIT, also included in our repository in the LICENSE file.

sunday-morning's People

Contributors

zzna avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.