Skip to content

Instantly share code, notes, and snippets.

View hswopeams's full-sized avatar

Heather hswopeams

View GitHub Profile
@danielkhoo
danielkhoo / BuidlGuidlTabard.sol
Last active November 9, 2023 13:52
Contract for BuidlGuidl Tabard NFT v1 on Eth Mainnet at https://etherscan.io/address/0x06a13a0fcb0fa92fdb7359c1dbfb8c8addee0424
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
/**
* @title BuidlGuidl Tabard
* @author Daniel Khoo
import "ITokenLedger.sol";
import "ProposalsLibrary.sol";
contract Organisation
{
ITokenLedger public tokenLedger;
using ProposalsLibrary for address;
address public eternalStorage;
function Organisation(address _tokenLedger, address _eternalStorage) {
import "ITokenLedger.sol";
contract Organisation
{
ITokenLedger public tokenLedger;
function Organisation(address _tokenLedger) {
tokenLedger = ITokenLedger(_tokenLedger);
}
contract EternalStorage{
mapping(bytes32 => uint) UIntStorage;
function getUIntValue(bytes32 record) constant returns (uint){
return UIntStorage[record];
}
function setUIntValue(bytes32 record, uint value)
{
import "Organisation.sol";
import "TokenLedger.sol";
import "EternalStorage.sol";
contract Parent {
event OrganisationCreated(address organisation, uint now);
event OrganisationUpgraded(address organisation, uint now);
mapping(bytes32 => address) public organisations;