Skip to content

Instantly share code, notes, and snippets.

@jackeyliutw
jackeyliutw / 2020714.sol
Created July 17, 2020 09: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.6.11+commit.5ef660b1.js&optimize=false&gist=
pragma solidity ^0.6.1;
//2020/2/24
contract uploadtexttoblockchain {
address author;
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text);
//address owner = msg.sender;
uint256 public articlenumber = 0;
function submittext (string memory nickname, string memory filename, string memory text) public {
author = msg.sender;
@jackeyliutw
jackeyliutw / 2020714.sol
Created July 15, 2020 15:09
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.6.11+commit.5ef660b1.js&optimize=false&gist=
pragma solidity ^0.6.1;
//2020/2/24
contract uploadtexttoblockchain {
address author;
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text);
//address owner = msg.sender;
uint256 public articlenumber = 0;
function submittext (string memory nickname, string memory filename, string memory text) public {
author = msg.sender;
@jackeyliutw
jackeyliutw / 2020714.sol
Created July 15, 2020 14:01
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.6.11+commit.5ef660b1.js&optimize=false&gist=
pragma solidity ^0.6.1;
//2020/2/24
contract uploadtexttoblockchain {
address author;
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text);
//address owner = msg.sender;
uint256 public articlenumber = 0;
function submittext (string memory nickname, string memory filename, string memory text) public {
author = msg.sender;
@jackeyliutw
jackeyliutw / 2020714.sol
Created July 15, 2020 04:37
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.6.11+commit.5ef660b1.js&optimize=false&gist=
pragma solidity ^0.6.1;
//2020/2/24
contract uploadtexttoblockchain {
address author;
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text);
//address owner = msg.sender;
uint256 public articlenumber = 0;
function submittext (string memory nickname, string memory filename, string memory text) public {
author = msg.sender;
@jackeyliutw
jackeyliutw / 2020714.sol
Created July 15, 2020 03:49
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.6.11+commit.5ef660b1.js&optimize=false&gist=
pragma solidity ^0.6.1;
//2020/2/24
contract uploadtexttoblockchain {
address author;
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text);
//address owner = msg.sender;
uint256 public articlenumber = 0;
function submittext (string memory nickname, string memory filename, string memory text) public {
author = msg.sender;
@jackeyliutw
jackeyliutw / Helloworld.sol
Last active July 11, 2020 16:45
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.6.11+commit.5ef660b1.js&optimize=false&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract Helloworld {
string public sayhello;
constructor() public {
sayhello = "helloworld";
}
function saysomething (string memory sth) public {
@jackeyliutw
jackeyliutw / Helloworld.sol
Created July 11, 2020 15:48
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.6.11+commit.5ef660b1.js&optimize=false&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract hello {
int public _age;
string public _name;
constructor(int age,string memory name) public {
_age = age;
@jackeyliutw
jackeyliutw / Untitled.sol
Created July 11, 2020 10:42
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.5.0;
contract Token {
string public name = "PandaZeng";
string public symbol = "PZ";
uint256 public totalSupply;
uint8 public decimals = 0;
event Transfer(
address indexed _from,