Skip to content

Instantly share code, notes, and snippets.

@georgeroman
georgeroman / labels.md
Created December 21, 2021 13:15
Token sets labeling

Single-token orders

  • id: token:${contract}:${tokenId}
  • label:
{
  kind: "token",
  data: {
    contract: ${contract},
 tokenId: ${tokenId}
@georgeroman
georgeroman / bloot.js
Created November 4, 2021 19:35
bLoot metadata
const { BigNumber } = require("@ethersproject/bignumber");
const { id } = require("@ethersproject/hash");
const { keccak256 } = require("@ethersproject/keccak256");
const fs = require("fs");
let items = {};
items.WEAPON = [
"Shitpost",
"Tweet",
@georgeroman
georgeroman / GSoC.md
Last active August 7, 2018 19:02
GSoC 2018 Work Product Submission

Summary

This summer, as part of the GSoC project, I worked on improving the coverage and reliability of the LuaRocks test suite. The initial test suite was mainly composed of integration tests that used real rocks for testing different functionality. Relying on network availability for running the tests made them slow and different network issues triggered false negatives on the tests results from time to time. Besides this, the missing unit tests kept the coverage at a low of 84% not including files that were not used when running the integration tests.

Description of my work

The first thing I did as part of my project was to add unit tests for some important modules in the LuaRocks codebase. I started with the filesystem module, fs, which provides a cross-platform interface for file-related functions. As a side result of this, I worked on implementing the set_permissions function which provides a cross-platform way for manipulating the permissions of files and directories. Regarding the unit test