Skip to content

Instantly share code, notes, and snippets.

const getStorageItemKeyMin = ({ hash, prefix }: StorageItemsKey): Buffer => {
if (hash === undefined || hash.length === 0) {
return bytewise.encode(bytewise.sorts.array.bound.lower([storageItemKeyPrefix]));
}
if (prefix === undefined || prefix.length === 0) {
return bytewise.encode(bytewise.sorts.array.bound.lower([storageItemKeyPrefix, common.uInt160ToBuffer(hash)]));
}
return bytewise.encode(
{
"name": "10.0.3.50_3000",
"address": {
"socketAddress": {
"address": "10.0.3.50",
"portValue": 3000
}
},
"filterChains": [
{
{
"name": "10.0.3.50_3000",
"address": {
"socketAddress": {
"address": "10.0.3.50",
"portValue": 3000
}
},
"filterChains": [
{

Keybase proof

I hereby claim:

  • I am dicarlo2 on github.
  • I am dicarlo2 (https://keybase.io/dicarlo2) on keybase.
  • I have a public key ASD1WFfNYTVm9oHqgGzUfkKF4o-fiBY6D7TxXs6Se2r7FAo

To claim this, I am signing this object:

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"):
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")
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);
expect(mintReceipt.result.gasConsumed).toMatchSnapshot();
expect(mintReceipt.result.gasCost).toMatchSnapshot();
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,
Testing 0xfc732edee1efdf968c23c20a9628eaa5a6ccb934
NOT EQUAL:
0xfc732edee1efdf968c23c20a9628eaa5a6ccb934
113d59202fbe96d59b916b0556a10aa52013f14cc4
=Y /��՛�kV�
� �L�
005847f80d
60000000000
00e8764817
100000000000