View SolidityLinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LinkedList is Initializable { | |
event AddEntry(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { |
View LinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LinkedList is Initializable { | |
event AddEntry(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { |
View linkedlist.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LinkedList is Initializable { | |
event AddEntry(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { |
View QuickContract.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "dennison-linkedlist/contracts/LinkedList.sol"; | |
contract QuickContract { | |
LinkedList private _linkedlist; | |
function setLinkedList(LinkedList linkedlist) external { | |
require(linkedlist != address(0), "You must provide a non-0x0 address"); |
View StringToLower.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11; | |
contract StringToLower { | |
function _toLower(string str) internal returns (string) { | |
bytes memory bStr = bytes(str); | |
bytes memory bLower = new bytes(bStr.length); | |
for (uint i = 0; i < bStr.length; i++) { | |
// Uppercase character... | |
if ((bStr[i] >= 65) && (bStr[i] <= 90)) { | |
// So we add 32 to make it lowercase |
View LinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LinkedList is Initializable{ | |
event AddEntry(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { |
View LinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
//import "zos-lib/contracts/Initializable.sol"; | |
//contract LinkedList is Initializable{ | |
contract LinkedList { | |
event EntryAdded(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node |
View LinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.24 <0.6.0; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LinkedList is Initializable{ | |
event EntryAdded(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { |
View QuickContract.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.24 <0.6.0; | |
import "zos-linkedlist/contracts/LinkedList.sol"; | |
//The NPM package name will have it's own folder under modules | |
contract QuickContract { | |
LinkedList private _linkedlist; | |
function setLinkedList(LinkedList linkedlist) external { | |
_linkedlist = linkedlist; | |
} |
View LowerCase.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Original Code: | |
//https://gist.github.com/ottodevs/c43d0a8b4b891ac2da675f825b1d1dbf | |
//Credit: ottodevs | |
//EVM Package: Dennison Bertram, dennison@dennisonbertram.com | |
pragma solidity ^0.4.24; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract LowerCase is Initializable{ |
OlderNewer