JSONの文字列形式で返すのが難しそうなので、下記のフォーマットで返します
## 返す文字列
a,11:b,22:c,33
## フロントエンドでの解釈
{
"a": "11",
"b": "22",
| Traceback (most recent call last): | |
| File "/private/var/folders/14/1c4m6rnj2yg9t092lhh65ccm0000gp/T/pip-install-uelah6cy/grpcio/src/python/grpcio/commands.py", line 281, in build_extensions | |
| build_ext.build_ext.build_extensions(self) | |
| File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions | |
| self._build_extensions_serial() | |
| File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial | |
| self.build_extension(ext) | |
| File "/Users/masashi.mitsuzawa/dev/go/1.12.0/src/github.com/LayerXcom/link-chain/venv/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 199, in build_extension | |
| _build_ext.build_extension(self, ext) | |
| File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension |
| { | |
| "contractHash": "916aea0f054541c4be723790931da144787bd725", | |
| "abi": { | |
| "functions": [ | |
| { | |
| "name": "Main", | |
| "parameters": [ | |
| { | |
| "name": "operation", | |
| "type": "" |
| # トークン名 | |
| NAME = 'MOONTY' | |
| # トークンのシンボル USDとかBTCみたいなもの | |
| SYMBOL = 'MTYT' | |
| # 最小単位が小数点第何位まで存在するか | |
| DECIMALS = 8 | |
| FACTOR = 100000000 | |
| # OWNERのアドレス ここを自分のアドレスに書き換えてください。 | |
| OWNER = ToScriptHash("AVP2tuBG7ZTgGrJyHyaQJh37vgvFuLBEz1") | |
| # OWNER = bytearray(b'\x61\x6f\x2a\x4a\x38\x39\x6f\xf2\x03\xea\x01\xe6\xc0\x70\xae\x42\x1b\xb8\xce\x2d') |
| from boa.interop.System.Runtime import Notify | |
| def Main(operation, args): | |
| if operation == 'Hello': | |
| msg = args[0] | |
| return Hello(msg) | |
| return False | |
| def Hello(msg): |
| import React, { Component } from 'react'; | |
| import Infinite from 'react-infinite'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <div className="App"> | |
| <div className="App-header"> |
| 2017-04-25T08:46:54.321621+00:00 app[web.1]: W, [2017-04-25T08:46:54.321561 #4] WARN -- : localhost:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 11211 |
| # Error in launcing app server in Heroku (And how to solve) | |
| ## Environments | |
| * Heroku | |
| * Memcachier | |
| * Rails 5 API Mode | |
| * MySQL ClearDB | |
| ## Error | |
| ``` | |
| 2017-04-25T08:46:54.321621+00:00 app[web.1]: W, [2017-04-25T08:46:54.321561 #4] WARN -- : localhost:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 11211 |
| import 'whatwg-fetch'; | |
| export const makeRequest = () => { | |
| return fetch("http://httpbin.org/get").then((response) => { | |
| const x = response.json(); | |
| return x; | |
| }); | |
| } | |
| export default { makeRequest } |
| .atom |