Skip to content

Instantly share code, notes, and snippets.

import {
Address,
Event,
Fixed,
SmartContract,
notify,
verifySender,
} from '@neo-one/smart-contract';
class Transfer extends Event {
import {
Address,
Event,
Fixed,
SmartContract,
notify,
verifySender,
} from '@neo-one/smart-contract';
class Transfer<Decimals extends number> extends Event {
@dicarlo2
dicarlo2 / bootstrap.js
Created February 28, 2018 22:26
WIP bootstrap command
/* @flow */
import {
type GetCLIResourceOptions,
type InteractiveCLIArgs,
} from '@neo-one/server-plugin';
import {
Client,
LocalKeyStore,
LocalUserAccountProvider,
LocalMemoryStore,
"event":"PEER_CONNECT_ERROR","peer":"tcp$$0000:0000:0000:0000:0000:ffff:d3fd:3c12$$10333","level":"error","stack":"Error: Socket inactive.\n at SocketTimeoutError.CustomError (/Users/dicarlo/projects/neo-one/packages/neo-one-utils/dist/index.js:87:24)\n at new SocketTimeoutError (/Users/dicarlo/projects/neo-one/packages/neo-one-node-network/dist/index.js:185:123)\n at Socket.<anonymous> (/Users/dicarlo/projects/neo-one/packages/neo-one-node-network/dist/index.js:507:29)\n at Object.onceWrapper (events.js:254:19)\n at Socket.emit (events.js:159:13)\n at Socket._onTimeout (net.js:421:8)\n at ontimeout (timers.js:466:11)\n at tryOnTimeout (timers.js:304:5)\n at Timer.listOnTimeout (timers.js:264:5)","timestamp":"2018-01-14T06:24:18.711Z"}
{"event":"PEER_CONNECT_ERROR","peer":"tcp$$0000:0000:0000:0000:0000:ffff:d1c5:a37b$$10333","level":"error","stack":"Error: Socket inactive.\n at SocketTimeoutError.CustomError (/Users/dicarlo/projects/neo-one/packages/neo-one-utils/dist/index.js:87