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
using Nethereum.Signer; | |
using System; | |
using System.Numerics; | |
using System.Runtime.InteropServices; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
public class NFTLicense : MonoBehaviour | |
{ | |
[DllImport("__Internal")] |
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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
contract Versioned is ERC721URIStorage { | |
using Counters for Counters.Counter; | |
using Strings for uint256; |
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
struct Blockies: View { | |
private var color: Color! | |
private var bgColor: Color! | |
private var spotColor: Color! | |
private var seed: [Int32] = Array(repeating: 0, count: 4) | |
private var pixels: [UInt8] = Array(repeating: 0, count: 100) | |
var body: some View { | |
VStack(alignment: .center, spacing: 0) { |
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
import Foundation | |
class RPCMessage: Codable { | |
var container: KeyedDecodingContainer<CodingKeys> | |
var timestamp = NSDate.now.timeIntervalSince1970 | |
var jsonrpc = "2.0" | |
var method: String? | |
var id: Int? | |