Skip to content

Instantly share code, notes, and snippets.

import './SafeMath.sol';
import './Stoppable.sol';
import './MyCoolNFT.sol';
/**
* @title NFT Linkdrop Contract
*
*/
contract NFTLinkdropContract is Stoppable {
contract IGivethBridge {
function donateAndCreateGiver(address giver, uint64 receiverId, address token, uint _amount) payable public {
}
}
contract Donator {
IGivethBridge givethBridge = IGivethBridge(0xC59dCE5CCC065A4b51A2321F857466A25ca49B40);
uint64 public givethReceiverId = 226;
@Dobrokhvalov
Dobrokhvalov / Owned.sol
Created May 13, 2018 17:41
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.4.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity 0.4.23;
/*
* Ownable
*
* Base contract with an owner.
* Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.
*/
contract Ownable {
@Dobrokhvalov
Dobrokhvalov / InviteLink.sol
Last active January 22, 2019 10:44
InviteLink module for ERC-1077

Keybase proof

I hereby claim:

  • I am dobrokhvalov on github.
  • I am dobrokhvalov (https://keybase.io/dobrokhvalov) on keybase.
  • I have a public key ASDbE6ghjqoeenuBYcVS_YN-mH-KYzYxHIpI5y5qLNLOago

To claim this, I am signing this object:

/**
* @dev Internal function to deploy a proxy contract for linkdrop master
* @param _linkdropMaster Address of linkdrop master
* @return Proxy contract address
*/
function _deployProxy(address payable _linkdropMaster)
internal
returns (address payable)
{
require(!isDeployed(_linkdropMaster), "Deployed");
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmPuajdHfqJogCcyFbh64qk4jfoG6SvB8EcrweYG4WuWFt ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Ens Login iFrame draft proposal

Abstract

Iframe benefits

  • Better security: wallet provider code is loaded in a sandbox environment, can't read dapp's localstorage/cookies and can't track dapp location
  • Formalized specs: a wallet provider needs to provide a js code that can respond to the eip-1474 messages

Linkdrop V2 Spec

To unify all linkdrop types (campaigns, p2p, modules, on-ramps) we need common interface.
This will allow to utilize the same claim code (claim web apps, API, SDK, URI) for all kinds of the linkdrops,
reducing the need to repeat ourselves again and again.

The idea is to allow different ways to generate linkdrops (dashboard, sdk, wallets), but interoperable way to claim all kind of linkdrops.

Linkdrop Escrow Contract Interface:

// to phone number
linkdrop.send({
to:'+14158609050',
amount: '25',
token: 'DAI',
from: 'PoolTogether',
message: 'Hey, PoolTogether sent you 25 DAI 🤑'
})