Skip to content

Instantly share code, notes, and snippets.

View PillarDevelopment's full-sized avatar
🏐
🚀 Building AI-powered Web3 infrastructu

Ivan Borisov PillarDevelopment

🏐
🚀 Building AI-powered Web3 infrastructu
View GitHub Profile
anonymous
anonymous / hwless4.sol
Created November 25, 2017 16:11
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=undefined&gist=
pragma solidity ^0.4.11;
contract ViewCounter {
address public donator;
function ViewCounter() {
donator = msg.sender;
}
function () payable {
donator = msg.sender;
anonymous
anonymous / PSTLcoin.sol
Created October 8, 2017 22:12
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.17+commit.bdeb9e52.js&optimize=undefined&gist=
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }
contract PastilaToken {
// Public variables of the token
string public name; ////название
string public symbol; ///символ
uint8 public decimals; ///количество знаков после запятой
uint256 public totalSupply; ///размер эмиссии
/**
* Base contract that all upgradeable contracts should use.
*
* Contracts implementing this interface are all called using delegatecall from
* a dispatcher. As a result, the _sizes and _dest variables are shared with the
* dispatcher contract, which allows the called contract to update these at will.
*
* _sizes is a map of function signatures to return value sizes. Due to EVM
* limitations, these need to be populated by the target contract, so the
* dispatcher knows how many bytes of data to return from called functions.