Skip to content

Instantly share code, notes, and snippets.

@marcianovc
marcianovc / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created April 8, 2021 16: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.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
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
* specific functions.
*
#!/bin/bash
#MIT License
#
#Copyright (c) 2018 cryptorex @ github.com
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@marcianovc
marcianovc / DarkGravityWave3.cpp
Created January 14, 2018 00:50 — forked from GeertJohan/DarkGravityWave3.cpp
Dark Gravity Wave version 3
static const int64 nTargetSpacing = 2.5 * 60; // Guldencoin: 2.5 minutes between block
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock) {
/* current difficulty formula, darkcoin - DarkGravity v3, written by Evan Duffield - evan@darkcoin.io */
const CBlockIndex *BlockLastSolved = pindexLast;
const CBlockIndex *BlockReading = pindexLast;
const CBlockHeader *BlockCreating = pblock;
BlockCreating = BlockCreating;
int64 nActualTimespan = 0;

Keybase proof

I hereby claim:

  • I am marcianovc on github.
  • I am marcianovc (https://keybase.io/marcianovc) on keybase.
  • I have a public key whose fingerprint is 548E 39C5 6097 754D 7440 4669 E46F 25D7 8088 A29E

To claim this, I am signing this object: