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; | |
contract LinkedList { | |
event AddEntry(bytes32 head, string data, bytes32 next); | |
//Struct will be our Node | |
struct Node { | |
bytes32 next; | |
string data; |
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 { |
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 { |
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 { |
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"); |
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 |
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 { |
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 |
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 { |
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; | |
} |
OlderNewer