Skip to content

Instantly share code, notes, and snippets.

@ColinPlatt
ColinPlatt / contracts...pointsData.sol
Created January 10, 2022 17:15
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.8.9+commit.e5eed63a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
contract pointsData {
struct layerData {
bytes data;
}
@ColinPlatt
ColinPlatt / contracts...pointsData.sol
Created January 10, 2022 15:29
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.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IPointsNFT {
function readSeed(uint256 id) external view returns (uint256);
}
contract pointsData {
@ColinPlatt
ColinPlatt / pointsNFT_flat.sol
Last active January 10, 2022 14:10
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.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// File: contracts/Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
/**
*Submitted for verification at Etherscan.io on 2021-09-01
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the