Skip to content

Instantly share code, notes, and snippets.

View MatiFalcone's full-sized avatar

Falcon MatiFalcone

View GitHub Profile
import { AirService } from '@mocanetwork/airkit';
export const API_BASE_URL = 'https://mv-hub-backend-dev-0358dc390a17.herokuapp.com/api/v1';
// Types for better type safety
export interface UserProfile {
id: string;
email?: string;
name?: string;
avatarUrl?: string;
'use client';
import React, {
createContext,
useContext,
useState,
useCallback,
useRef,
ReactNode,
} from 'react';
import type { AirUserDetails as AirKitUserDetails } from '@mocanetwork/airkit';
{
"@context": {
"CIP100": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#",
"CIP119": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0119/README.md#",
"hashAlgorithm": "CIP100:hashAlgorithm",
"body": {
"@id": "CIP119:body",
"@context": {
"references": {
"@id": "CIP119:references",
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;
// ========== External imports ==========
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol";
// ========== Internal imports ==========