Skip to content

Instantly share code, notes, and snippets.

"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
@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,
import {
Address,
Event,
Fixed,
SmartContract,
notify,
verifySender,
} from '@neo-one/smart-contract';
class Transfer<Decimals extends number> extends Event {
import {
Address,
Event,
Fixed,
SmartContract,
notify,
verifySender,
} from '@neo-one/smart-contract';
class Transfer extends Event {
Testing 0xfc732edee1efdf968c23c20a9628eaa5a6ccb934
NOT EQUAL:
0xfc732edee1efdf968c23c20a9628eaa5a6ccb934
113d59202fbe96d59b916b0556a10aa52013f14cc4
=Y /��՛�kV�
� �L�
005847f80d
60000000000
00e8764817
100000000000
private readonly foo = ArrayStorage.for<[Address, Address]>();
private readonly foo2 = SetStorage.for<[Address, Address]>();
private readonly balances = MapStorage.for<Address, Fixed<8>>();
private readonly approvedTransfers = MapStorage.for<[Address, Address], Fixed<8>>();
private mutableRemaining: Fixed<8> = 10_000_000_000_00000000;
private mutableSupply: Fixed<8> = 0;
public constructor(
public readonly owner: Address = Deploy.senderAddress,
public readonly startTimeSeconds: Integer = Blockchain.currentBlockTime + 60 * 60,
expect(mintReceipt.result.gasConsumed).toMatchSnapshot();
expect(mintReceipt.result.gasCost).toMatchSnapshot();
const jest = require('jest-cli');
const fs = require('fs-extra');
const nodePath = require('path');
const outputDir = process.env.TEST_UNDECLARED_OUTPUTS_DIR;
const cwd = process.cwd();
const getSnapshotPath = (testResult) => {
const filePath = nodePath.relative(cwd, testResult.testFilePath);
load("//packages/bazel/rules_common:defs.bzl",
"module_mappings_runtime_aspect",
"collect_node_modules_aspect",
"sources_aspect",
"test_sources_aspect",
"short_path_to_manifest_path",
"get_ci")
load("//packages/bazel/rules_nodejs/internal/node:node.bzl", "nodejs_binary_impl",
"NODE_EXECUTABLE_OUTPUTS", "BASE_NODE_EXECUTABLE_ATTRS", "NODE_TOOLCHAINS")
load(":providers.bzl", "TypeScriptModuleInfo")
def _test_sources_aspect_impl(target, ctx):
result = depset()
if hasattr(ctx.rule.attr, "tags") and "NODE_MODULE_MARKER" in ctx.rule.attr.tags:
return struct(node_test_sources=result)
if hasattr(ctx.rule.attr, "deps"):