Skip to content

Instantly share code, notes, and snippets.

@dima91
dima91 / crowdfund.sol
Created May 27, 2018 11:04
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./mortal.sol";
contract Crowdfund {
struct Funder {
address addr;
uint amount;
}
@dima91
dima91 / baseContentManagementContract.sol
Created May 27, 2018 15:21
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
contract BaseContentManagementContract {
address internal owner;
constructor () public {
}
}
@dima91
dima91 / baseContentManagementContract.sol
Created May 28, 2018 18:02
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
contract BaseContentManagementContract {
address internal owner;
constructor () public {
owner= msg.sender;
}
}
@dima91
dima91 / baseContentManagementContract.sol
Created May 28, 2018 21:47
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address internal author;
SharedTypes.contentType internal typeOfContent;
uint internal numberOfViews;
mapping (address => address) viewersList; // List of user that
@dima91
dima91 / baseContentManagementContract.sol
Created May 30, 2018 21:18
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address internal author;
SharedTypes.contentType internal typeOfContent;
uint internal numberOfViews;
mapping (address => address) viewersList; // List of user that
@dima91
dima91 / baseContentManagementContract.sol
Created May 31, 2018 21: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.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address private author;
SharedTypes.contentType private typeOfContent;
uint private numberOfViews;
string contentTitle;
@dima91
dima91 / baseContentManagementContract.sol
Created June 1, 2018 17:25
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address private authorAddress; // Address of contract's author
address private catalogAddress; // Address of catalog to check if determined functions are called only by catalog
SharedTypes.contentType private typeOfContent; // Tpe of content which this contract contains
uint private numberOfViews; // Number of viwes about content of this contract
@dima91
dima91 / baseContentManagementContract.sol
Created June 1, 2018 21: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.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address private authorAddress; // Address of contract's author
address private catalogAddress; // Address of catalog to check if determined functions are called only by catalog
SharedTypes.contentType private typeOfContent; // Tpe of content which this contract contains
uint private numberOfViews; // Number of viwes about content of this contract
@dima91
dima91 / baseContentManagementContract.sol
Created June 2, 2018 11:04
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address private authorAddress; // Address of contract's author
address private catalogAddress; // Address of catalog to check if determined functions are called only by catalog
SharedTypes.contentType private typeOfContent; // Tpe of content which this contract contains
@dima91
dima91 / baseContentManagementContract.sol
Created June 2, 2018 16:15
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./sharedTypes.sol";
contract BaseContentManagementContract {
address private authorAddress; // Address of contract's author
address private catalogAddress; // Address of catalog to check if determined functions are called only by catalog
SharedTypes.contentType private typeOfContent; // Tpe of content which this contract contains