Skip to content

Instantly share code, notes, and snippets.

View Gizmotronn's full-sized avatar

Liam Arbuckle Gizmotronn

View GitHub Profile
@Gizmotronn
Gizmotronn / migrations.sql
Created November 7, 2023 04:16
Star Sailors Schema
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
/*—————————————————————————————————*/
/*———————— THEME VARIABLES ————————*/
/*—————————————————————————————————*/
@font-face {
font-family: 'malayalam';
src: url('https://sites.super.so/altar/assets/malayalam.woff') format('woff'),
url('https://sites.super.so/altar/assets/malayalam.ttf') format('truetype');
}
@Gizmotronn
Gizmotronn / 1155abi.md
Last active October 14, 2022 07:14
contract info for BricktOrigins

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"metadataURI","type":"string"}],"name":"MetadataURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"inter

@Gizmotronn
Gizmotronn / erc1155.sol
Created September 13, 2022 06:50
abnormal
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
@Gizmotronn
Gizmotronn / did:3:kjzl6cwe1jw14b2e5103oiz4phs2f1yv3k25xve7foy7w7fie16tmrux2k21z46
Created February 6, 2022 01:48
did:3:kjzl6cwe1jw14b2e5103oiz4phs2f1yv3k25xve7foy7w7fie16tmrux2k21z46
did:3:kjzl6cwe1jw14b2e5103oiz4phs2f1yv3k25xve7foy7w7fie16tmrux2k21z46
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@Gizmotronn
Gizmotronn / README.txt
Created February 1, 2022 21:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
MaterialTheme: {
// Set the theme variant,
// OPTIONS: 'Darker', 'Palenight', 'Ocean', ''
theme: 'Ocean',
{"customShortcutsDatabase3":{"4flz8jfq4lk":{"name":"Discord","url":"https://discord.com/channels/@me"},"4flwkt6ugzc":{"name":"Carbon","url":"https://carbon.now.sh/jp6ruwdFU90QgggCUipw"}},"customShortcutsDatabase1":{"4flwlckdwoo":{"name":"Figma","url":"https://www.figma.com/community"},"4flza85c36o":{"name":"Runkit","url":"https://npm.runkit.com/hyper-custom-touchbar"},"4flwju83q0e":{"name":"Github","url":"https://github.com/signal-k"}},"userList":["729","581","580","370","4flzab1v2ao","48","45","4flz8jfq4lk","4flwjwd1tkg","4flza85c36o","71","4flx0ifubxw","4flwkt6ugzc","4flwlckdwoo","4flwju83q0e","753","172","23","79","27","31","59","97","234","109","89","70","808","157","158","972","160"],"customShortcutsDatabase2":{"4flx0ifubxw":{"name":"Notion","url":"http://notion.so/"},"4flwjwd1tkg":{"name":"CLI","url":"https://cli.skinetics.tech/"},"4flzab1v2ao":{"name":"NPM","url":"https://www.npmjs.com/package/hyper-match"}},"toolbarIcon":"gsa_nobg","autoListRemoved":[],"customServicesDatabase":{"4flwlckdwoo":{"name":"