Skip to content

Instantly share code, notes, and snippets.

@y12studio
y12studio / hyperledger-fabric-trial.md
Last active October 16, 2017 02:38
Hyperledger Fabric Trial
@y12studio
y12studio / ytbc1601.sol
Last active April 5, 2016 14:34
Y12 Testnet Banana Coin 1601
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@y12studio
y12studio / ymc3.sol
Created March 31, 2016 02:36
Y12 Marriage Contract 3 with GovOracle
// -------------------------------------------
// 政府驗證服務智能婚約 2016
// 在法律許可的範圍內,作者(們)已將此軟體的著作權、相關權利與鄰接權釋出到全球的公眾領域。此軟體之散布不含任何擔保責任。
// 您應該已經連同軟體取得一份CC0的公眾領域貢獻宣告複本,若沒有收到,則請見:http://creativecommons.org/publicdomain/zero/1.0/。
// -------------------------------------------
// Ethereum以太坊智能合約環境說明 https://gist.github.com/y12studio/f142cd9789c7d396d8f7
// 有意願測試簽智能婚約可聯絡 https://github.com/y12studio
// 測試流程參閱 ymc1.sol
// <GOV_ORACLE>
@y12studio
y12studio / yot1.sol
Created March 28, 2016 11:22
Y12 Oraclize Testnet 1
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@y12studio
y12studio / yot1.json
Created March 28, 2016 11:21
YOT1 JSON Interface
[ { "constant": true, "inputs": [], "name": "count", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "count" }, { "constant": false, "inputs": [ { "name": "myid", "type": "bytes32", "typeShort": "bytes", "bits": "32", "displayName": "myid", "template": "elements_input_bytes" }, { "name": "result", "type": "string", "typeShort": "string", "bits": "", "displayName": "result", "template": "elements_input_string" }, { "name": "proof", "type": "bytes", "typeShort": "bytes", "bits": "", "displayName": "proof", "template": "elements_input_bytes" } ], "name": "__callback", "outputs": [], "type": "function", "displayName": "__callback" }, { "constant": false, "inputs": [], "name": "kill", "outputs": [], "type": "function", "displayName": "kill" }, { "constant": true, "inputs": [], "name": "ETHUSD", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": " E T H U S D" }, { "constant": fal
@y12studio
y12studio / ymc2.json
Created March 28, 2016 06:34
YMC2 JSON Interface
[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "YMC2", "displayName": "" } ], "type": "function", "displayName": "name" }, { "constant": true, "inputs": [], "name": "giftTime", "outputs": [ { "name": "", "type": "uint256", "value": "600", "displayName": "" } ], "type": "function", "displayName": "gift Time" }, { "constant": true, "inputs": [], "name": "giftValue", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "gift Value" }, { "constant": false, "inputs": [], "name": "doUsPartByOne", "outputs": [], "type": "function", "displayName": "do Us Part By One" }, { "constant": true, "inputs": [], "name": "mValue", "outputs": [ { "name": "", "type": "uint256", "value": "100000000000000000", "displayName": "" } ], "type": "function", "displayName": "m Value" }, { "constant": false, "inputs": [ { "name": "newSellPrice", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": "n
@y12studio
y12studio / ymc2.sol
Last active March 28, 2016 06:30
Y12 Marriage Contract 2
// ---------
// 智能證券化婚約 2016
// 在法律許可的範圍內,作者(們)已將此軟體的著作權、相關權利與鄰接權釋出到全球的公眾領域。此軟體之散布不含任何擔保責任。
// 您應該已經連同軟體取得一份CC0的公眾領域貢獻宣告複本,若沒有收到,則請見:http://creativecommons.org/publicdomain/zero/1.0/。
// ---------
// Ethereum以太坊智能合約環境說明 https://gist.github.com/y12studio/f142cd9789c7d396d8f7
// 有意願測試簽智能婚約可聯絡 https://github.com/y12studio
// 1. 發起方(下記mblue)建立合約,並存入一筆金額(下記A),得到股份B。
// 2. 發起方求婚執行合約 willYouMarryMe 條款,並填入身份證明的數位檔案摘要(SHA256)。
// 3. 提案受方(下記mred)確認 proposalYes 進入婚姻狀態或是拒絕 proposalSorry。
@y12studio
y12studio / ymc1.json
Created March 26, 2016 03:49
YMC1 JSON Interface
[ { "constant": true, "inputs": [], "name": "giftTime", "outputs": [ { "name": "", "type": "uint256", "value": "300", "displayName": "" } ], "type": "function", "displayName": "gift Time" }, { "constant": true, "inputs": [], "name": "giftValue", "outputs": [ { "name": "", "type": "uint256", "value": "600000000000000000", "displayName": "" } ], "type": "function", "displayName": "gift Value" }, { "constant": false, "inputs": [], "name": "doUsPartByOne", "outputs": [], "type": "function", "displayName": "do Us Part By One" }, { "constant": true, "inputs": [], "name": "mValue", "outputs": [ { "name": "", "type": "uint256", "value": "100000000000000000", "displayName": "" } ], "type": "function", "displayName": "m Value" }, { "constant": false, "inputs": [], "name": "devOnlyClose", "outputs": [], "type": "function", "displayName": "dev Only Close" }, { "constant": false, "inputs": [ { "name": "id_hash", "type": "bytes32", "typeShort": "bytes", "bits": "32", "displayName": "id&thinsp;<span class=\"punctuation\">_<
@y12studio
y12studio / ymc1.sol
Last active March 27, 2016 02:45
Y12 Marriage Contract 1
// ---------
// 智能婚約 2016
// 在法律許可的範圍內,作者(們)已將此軟體的著作權、相關權利與鄰接權釋出到全球的公眾領域。此軟體之散布不含任何擔保責任。
// 您應該已經連同軟體取得一份CC0的公眾領域貢獻宣告複本,若沒有收到,則請見:http://creativecommons.org/publicdomain/zero/1.0/。
// ---------
// Ethereum以太坊智能合約環境說明 https://gist.github.com/y12studio/f142cd9789c7d396d8f7
// 有意願測試簽智能婚約可聯絡 https://github.com/y12studio
// 1. 發起方(下記mblue)建立合約,並存入一筆金額(下記A)。
// 2. 發起方求婚執行合約 willYouMarryMe 條款,並填入身份證明的數位檔案摘要(SHA256)。
// 3. 提案受方(下記mred)確認 proposalYes 進入婚姻狀態或是拒絕 proposalSorry。