Skip to content

Instantly share code, notes, and snippets.

@Jsherborne92
Jsherborne92 / bn.ts
Last active October 23, 2025 11:41
BigNumber.ts
// big-number.ts
/* eslint-disable no-constant-condition */
/* eslint-disable @typescript-eslint/ban-ts-comment */
export type ModuloMode = 0 | 1 | 3 | 6 | 9; // compatibility with your original
export type RoundingMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
export interface Format {
readonly prefix?: string;
readonly decimalSeparator?: string;
@Jsherborne92
Jsherborne92 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created August 29, 2025 00:08
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.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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