Skip to content

Instantly share code, notes, and snippets.

/**
*Submitted for verification at Etherscan.io on 2020-06-09
*/
// File: @openzeppelin/upgrades/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.6.0;
/**
* @title Initializable
/**
*Submitted for verification at Etherscan.io on 2020-06-09
*/
// File: @openzeppelin/upgrades/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.6.0;
/**
* @title Initializable
// File: LibReentrancyGuardRichErrors.sol
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
const HDWalletProvider = require("@truffle/hdwallet-provider");
//
// const fs = require('fs');
// const mnemonic = fs.readFileSync(".secret").toString().trim();
const MNEMONIC =
process.env.MNEMONIC ||
"";
module.exports = {
let Web3 = require("web3");
const provider = new Web3.providers.HttpProvider(
"https://rpc-mumbai.matic.today"
);
const web3 = new Web3(provider);
web3.eth
.getTransactionReceipt(
"0xd38dd611ae110286a9c640e08181869211752be9a48b52b9e6edeba90fe58921"
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
pragma solidity ^0.5.2;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
pragma solidity >=0.5.0 <0.6.0;
import "../contracts-package/IERC20.sol";
import "./ERC20Predicate.sol";
contract MintableERC20Predicate is ERC20Predicate {
constructor(
address _withdrawManager,
address _depositManager,
pragma solidity >=0.5.0 <0.6.0;
import "./ISubredditPointsParent.sol";
import "./contracts-package/Initializable.sol";
import "./contracts-package/Ownable.sol";
import "./contracts-package/ERC20.sol";
import "./libraries/Address.sol";
// ERC20 and borrows only operators notion from ERC777, accounts can revoke default operator
contract SubredditPointsParent is
// File: contracts/contracts-package/IERC20.sol
// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
// File: openzeppelin-solidity/contracts/introspection/IERC165.sol
pragma solidity ^0.5.2;
/**
* @title IERC165
* @dev https://eips.ethereum.org/EIPS/eip-165
*/
interface IERC165 {