Skip to content

Instantly share code, notes, and snippets.

View alex-damjanovic's full-sized avatar

Aleksandar alex-damjanovic

View GitHub Profile
@alex-damjanovic
alex-damjanovic / contracts...DonationPlatform.sol
Created November 21, 2021 21:26
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=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title DonationPlatform
/// @author Aleks
/// @dev Bug when returning funds , figured out events
import "@openzeppelin/contracts/access/Ownable.sol";
contract DonationPlatform is Ownable {
/// @notice Create campaigns and recieve funds
@alex-damjanovic
alex-damjanovic / contracts...DonationPlatform.sol
Created November 21, 2021 20:34
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=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title DonationPlatform
/// @author Aleks
/// @dev So far didnt spot any errors
import "@openzeppelin/contracts/access/Ownable.sol";
contract DonationPlatform is Ownable {
// creating campaign attributes
@alex-damjanovic
alex-damjanovic / contracts...NFT.sol
Created October 25, 2021 16:46
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=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// erc721 standard, Counter, Ownable,
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
contract DNFT is ERC721URIStorage, Ownable {
using Counters for Counters.Counter;
@alex-damjanovic
alex-damjanovic / contracts...Donation2.sol
Created October 25, 2021 16:40
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=
// SPDX-License-Identifier: MIT;
pragma solidity ^0.8.0;
/// @title DonationPlatform
/// @author
/// @notice Can only be used for the most basic simulation
/// @dev So far didnt spot any errors
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./ucenje.sol";
@alex-damjanovic
alex-damjanovic / contracts...Donation2.sol
Created October 19, 2021 20:03
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=
// SPDX-License-Identifier: MIT;
pragma solidity ^0.8.0;
/// @title DonationPlatform
/// @author Aleksandar
/// @notice Can only be used for the most basic simulation
/// @dev So far didnt spot any errors
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
@alex-damjanovic
alex-damjanovic / contracts...Donation2.sol
Created October 18, 2021 09:35
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=
// SPDX-License-Identifier: MIT;
pragma solidity ^0.8.0;
/// @title DonationPlatform
/// @author Aleksandar Damjanivic
/// @notice Can only be used for the most basic simulation
/// @dev Currently facing issues with gas expenditure, deadline implementation, donation exceeding goal
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";